2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
835 ENABLE_EXPENSIVE_CHECKS
889 CONVENIENCE_LTDL_TRUE
890 CONVENIENCE_LTDL_FALSE
930 ENABLE_VISIBILITY_INLINES_HIDDEN
936 ac_precious_vars='build_alias
950 ac_subdirs_all='projects/sample
952 projects/llvm-stacker
959 projects/llvm-poolalloc
961 projects/llvm-kernel'
963 # Initialize some variables set by options.
965 ac_init_version=false
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
975 program_transform_name=s,x,x,
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000 infodir='${datarootdir}/info'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1051 -datadir | --datadir | --datadi | --datad)
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1070 eval enable_$ac_feature=no ;;
1072 -docdir | --docdir | --docdi | --doc | --do)
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1089 eval enable_$ac_feature=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1253 -site=* | --site=* | --sit=*)
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
1285 ac_package=`echo $ac_package| sed 's/-/_/g'`
1286 eval with_$ac_package=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package=`echo $ac_package | sed 's/-/_/g'`
1295 eval with_$ac_package=no ;;
1298 # Obsolete; use --with-x.
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316 Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340 if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1346 # Be sure to have absolute directory names.
1347 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1352 eval ac_val=\$$ac_var
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1366 target=$target_alias
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382 test "$silent" = yes && exec 6>/dev/null
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
1400 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
1403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1427 ac_srcdir_defaulted=no
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432 { (exit 1); exit 1; }; }
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437 { (exit 1); exit 1; }; }
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1463 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1527 if test -n "$ac_init_help"; then
1528 case $ac_init_help in
1529 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1539 --enable-expensive-checks
1541 --enable-debug-runtime
1542 --enable-jit Enable Just In Time Compiling (default is YES)
1543 --enable-doxygen Build doxygen documentation (default is NO)
1544 --enable-threads Use threads if available (default is YES)
1545 --enable-pic Build LLVM with Position Independent Code (default
1547 --enable-targets Build specific host targets:
1548 all,host-only,{target-name} (default=all)
1549 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1551 --enable-bindings Build specific language bindings:
1552 all,auto,none,{binding-name} (default=auto)
1553 --enable-ltdl-install install libltdl
1554 --enable-shared[=PKGS] build shared libraries
1556 --enable-static[=PKGS] build static libraries
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation
1561 --disable-libtool-lock avoid locking (might break parallel builds)
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1568 --with-llvmgcc Specify location of llvm-gcc driver (default
1570 --with-llvmgxx Specify location of llvm-g++ driver (default
1572 --with-extra-options Specify additional options to compile LLVM with
1573 --with-ocaml-libdir Specify install location for ocaml bindings (default
1575 --with-binutils-include Specify path to binutils/include/ containing
1576 plugin-api.h file for gold plugin.
1577 --with-tclinclude directory where tcl headers are
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1581 --with-tags[=TAGS] include additional configurations [automatic]
1582 --with-udis86=<path> Use udis86 external x86 disassembler library
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
1594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1601 Report bugs to <llvmbugs@cs.uiuc.edu>.
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" || continue
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1629 .) # We are building in place.
1631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
1634 ac_srcdir=$srcdir$ac_dir_suffix;
1635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1651 $SHELL "$ac_srcdir/configure" --help=recursive
1653 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 cd "$ac_pwd" || { ac_status=$?; break; }
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1662 llvm configure 2.6svn
1663 generated by GNU Autoconf 2.60
1665 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1666 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1670 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1678 It was created by llvm $as_me 2.6svn, which was
1679 generated by GNU Autoconf 2.60. Invocation command line was
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1704 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 test -z "$as_dir" && as_dir=.
1715 echo "PATH: $as_dir"
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1739 ac_must_keep_next=false
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1750 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
1757 ac_must_keep_next=false # Got value, back to normal.
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768 -* ) ac_must_keep_next=true ;;
1771 ac_configure_args="$ac_configure_args '$ac_arg'"
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log. We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1795 # The following way of writing the cache mishandles newlines in values,
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1802 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806 _ | IFS | as_nl) ;; #(
1807 *) $as_unset $ac_var ;;
1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
1815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1827 ## ----------------- ##
1828 ## Output variables. ##
1829 ## ----------------- ##
1832 for ac_var in $ac_subst_vars
1834 eval ac_val=\$$ac_var
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 echo "$ac_var='\''$ac_val'\''"
1842 if test -n "$ac_subst_files"; then
1844 ## ------------------- ##
1845 ## File substitutions. ##
1846 ## ------------------- ##
1849 for ac_var in $ac_subst_files
1851 eval ac_val=\$$ac_var
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 echo "$ac_var='\''$ac_val'\''"
1860 if test -s confdefs.h; then
1870 test "$ac_signal" != 0 &&
1871 echo "$as_me: caught signal $ac_signal"
1872 echo "$as_me: exit $exit_status"
1874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878 for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1884 rm -f -r conftest* confdefs.h
1886 # Predefined preprocessor variables.
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_NAME "$PACKAGE_NAME"
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_STRING "$PACKAGE_STRING"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1913 # Let the site file select an alternate cache file if it wants to.
1914 # Prefer explicitly selected file to automatically selected ones.
1915 if test -n "$CONFIG_SITE"; then
1916 set x "$CONFIG_SITE"
1917 elif test "x$prefix" != xNONE; then
1918 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920 set x "$ac_default_prefix/share/config.site" \
1921 "$ac_default_prefix/etc/config.site"
1926 if test -r "$ac_site_file"; then
1927 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928 echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1934 if test -r "$cache_file"; then
1935 # Some versions of bash will fail to source /dev/null (special
1936 # files actually), so we avoid doing that.
1937 if test -f "$cache_file"; then
1938 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939 echo "$as_me: loading cache $cache_file" >&6;}
1941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
1946 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947 echo "$as_me: creating cache $cache_file" >&6;}
1951 # Check that the precious variables saved in the cache have kept the same
1953 ac_cache_corrupted=false
1954 for ac_var in $ac_precious_vars; do
1955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
1957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
1959 case $ac_old_set,$ac_new_set in
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
1971 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1974 echo "$as_me: former value: $ac_old_val" >&2;}
1975 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1976 echo "$as_me: current value: $ac_new_val" >&2;}
1977 ac_cache_corrupted=:
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1983 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1984 *) ac_arg=$ac_var=$ac_new_val ;;
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1992 if $ac_cache_corrupted; then
1993 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997 { (exit 1); exit 1; }; }
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2041 for ac_dir in autoconf "$srcdir"/autoconf; do
2042 if test -f "$ac_dir/install-sh"; then
2044 ac_install_sh="$ac_aux_dir/install-sh -c"
2046 elif test -f "$ac_dir/install.sh"; then
2048 ac_install_sh="$ac_aux_dir/install.sh -c"
2050 elif test -f "$ac_dir/shtool"; then
2052 ac_install_sh="$ac_aux_dir/shtool install -c"
2056 if test -z "$ac_aux_dir"; then
2057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2059 { (exit 1); exit 1; }; }
2062 # These three variables are undocumented and unsupported,
2063 # and are intended to be withdrawn in a future Autoconf release.
2064 # They can cause serious problems if a builder's source tree is in a directory
2065 # whose full name contains unusual characters.
2066 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2067 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2068 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2072 if test ${srcdir} != "." ; then
2073 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2075 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076 { (exit 1); exit 1; }; }
2080 for i in `ls ${srcdir}/projects`
2082 if test -d ${srcdir}/projects/${i} ; then
2085 sample) subdirs="$subdirs projects/sample"
2087 privbracket) subdirs="$subdirs projects/privbracket"
2089 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2091 # llvm-test is the old name of the test-suite, kept here for backwards
2093 llvm-test) subdirs="$subdirs projects/llvm-test"
2095 test-suite) subdirs="$subdirs projects/test-suite"
2097 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2099 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2101 llvm-java) subdirs="$subdirs projects/llvm-java"
2103 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2105 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2107 poolalloc) subdirs="$subdirs projects/poolalloc"
2109 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2112 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2113 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2120 # Make sure we can run config.sub.
2121 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2122 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2124 { (exit 1); exit 1; }; }
2126 { echo "$as_me:$LINENO: checking build system type" >&5
2127 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2128 if test "${ac_cv_build+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 ac_build_alias=$build_alias
2132 test "x$ac_build_alias" = x &&
2133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2134 test "x$ac_build_alias" = x &&
2135 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137 { (exit 1); exit 1; }; }
2138 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2141 { (exit 1); exit 1; }; }
2144 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145 echo "${ECHO_T}$ac_cv_build" >&6; }
2146 case $ac_cv_build in
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149 echo "$as_me: error: invalid value of canonical build" >&2;}
2150 { (exit 1); exit 1; }; };;
2153 ac_save_IFS=$IFS; IFS='-'
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2163 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2166 { echo "$as_me:$LINENO: checking host system type" >&5
2167 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2168 if test "${ac_cv_host+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 if test "x$host_alias" = x; then
2172 ac_cv_host=$ac_cv_build
2174 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2177 { (exit 1); exit 1; }; }
2181 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182 echo "${ECHO_T}$ac_cv_host" >&6; }
2185 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186 echo "$as_me: error: invalid value of canonical host" >&2;}
2187 { (exit 1); exit 1; }; };;
2190 ac_save_IFS=$IFS; IFS='-'
2196 # Remember, the first character of IFS is used to create $*,
2197 # except with old shells:
2200 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2203 { echo "$as_me:$LINENO: checking target system type" >&5
2204 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2205 if test "${ac_cv_target+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 if test "x$target_alias" = x; then
2209 ac_cv_target=$ac_cv_host
2211 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2212 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2213 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2214 { (exit 1); exit 1; }; }
2218 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219 echo "${ECHO_T}$ac_cv_target" >&6; }
2220 case $ac_cv_target in
2222 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2223 echo "$as_me: error: invalid value of canonical target" >&2;}
2224 { (exit 1); exit 1; }; };;
2226 target=$ac_cv_target
2227 ac_save_IFS=$IFS; IFS='-'
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2237 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2240 # The aliases save the names the user supplied, while $host etc.
2241 # will get canonicalized.
2242 test -n "$target_alias" &&
2243 test "$program_prefix$program_suffix$program_transform_name" = \
2245 program_prefix=${target_alias}-
2247 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2248 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2249 if test "${llvm_cv_os_type+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256 llvm_cv_os_type="AIX"
2257 llvm_cv_platform_type="Unix" ;;
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="IRIX"
2262 llvm_cv_platform_type="Unix" ;;
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="Cygwin"
2267 llvm_cv_platform_type="Unix" ;;
2269 llvm_cv_link_all_option="-Wl,-all_load"
2270 llvm_cv_no_link_all_option="-Wl,-noall_load"
2271 llvm_cv_os_type="Darwin"
2272 llvm_cv_platform_type="Unix" ;;
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="FreeBSD"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="OpenBSD"
2282 llvm_cv_platform_type="Unix" ;;
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="NetBSD"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="DragonFly"
2292 llvm_cv_platform_type="Unix" ;;
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="HP-UX"
2297 llvm_cv_platform_type="Unix" ;;
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="Interix"
2302 llvm_cv_platform_type="Unix" ;;
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="Linux"
2307 llvm_cv_platform_type="Unix" ;;
2309 llvm_cv_link_all_option="-Wl,-z,allextract"
2310 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2311 llvm_cv_os_type="SunOS"
2312 llvm_cv_platform_type="Unix" ;;
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="Win32"
2317 llvm_cv_platform_type="Win32" ;;
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="MingW"
2322 llvm_cv_platform_type="Win32" ;;
2324 llvm_cv_link_all_option=""
2325 llvm_cv_no_link_all_option=""
2326 llvm_cv_os_type="Unknown"
2327 llvm_cv_platform_type="Unknown" ;;
2330 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2331 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2333 if test "$llvm_cv_os_type" = "Unknown" ; then
2334 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2335 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2336 { (exit 1); exit 1; }; }
2342 LINKALL=$llvm_cv_link_all_option
2344 NOLINKALL=$llvm_cv_no_link_all_option
2347 case $llvm_cv_platform_type in
2350 cat >>confdefs.h <<\_ACEOF
2351 #define LLVM_ON_UNIX 1
2361 cat >>confdefs.h <<\_ACEOF
2362 #define LLVM_ON_WIN32 1
2372 { echo "$as_me:$LINENO: checking target architecture" >&5
2373 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2374 if test "${llvm_cv_target_arch+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 i?86-*) llvm_cv_target_arch="x86" ;;
2379 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2380 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2381 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2382 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2383 ia64-*) llvm_cv_target_arch="IA64" ;;
2384 arm*-*) llvm_cv_target_arch="ARM" ;;
2385 mips-*) llvm_cv_target_arch="Mips" ;;
2386 pic16-*) llvm_cv_target_arch="PIC16" ;;
2387 xcore-*) llvm_cv_target_arch="XCore" ;;
2388 msp430-*) llvm_cv_target_arch="MSP430" ;;
2389 *) llvm_cv_target_arch="Unknown" ;;
2392 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2393 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2395 if test "$llvm_cv_target_arch" = "Unknown" ; then
2396 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2397 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2400 ARCH=$llvm_cv_target_arch
2404 ac_cpp='$CPP $CPPFLAGS'
2405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2410 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 if test -n "$CC"; then
2438 { echo "$as_me:$LINENO: result: $CC" >&5
2439 echo "${ECHO_T}$CC" >&6; }
2441 { echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6; }
2447 if test -z "$ac_cv_prog_CC"; then
2449 # Extract the first word of "gcc", so it can be a program name with args.
2450 set dummy gcc; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 if test -n "$ac_ct_CC"; then
2457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_ac_ct_CC="gcc"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477 if test -n "$ac_ct_CC"; then
2478 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479 echo "${ECHO_T}$ac_ct_CC" >&6; }
2481 { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2485 if test "x$ac_ct_CC" = x; then
2488 case $cross_compiling:$ac_tool_warned in
2490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&5
2493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet. If you think this
2495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496 ac_tool_warned=yes ;;
2504 if test -z "$CC"; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}cc; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_CC="${ac_tool_prefix}cc"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 if test -n "$CC"; then
2535 { echo "$as_me:$LINENO: result: $CC" >&5
2536 echo "${ECHO_T}$CC" >&6; }
2538 { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2545 if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547 set dummy cc; ac_word=$2
2548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550 if test "${ac_cv_prog_CC+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2591 if test -n "$CC"; then
2592 { echo "$as_me:$LINENO: result: $CC" >&5
2593 echo "${ECHO_T}$CC" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2601 if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
2603 for ac_prog in cl.exe
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_CC+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 if test -n "$CC"; then
2634 { echo "$as_me:$LINENO: result: $CC" >&5
2635 echo "${ECHO_T}$CC" >&6; }
2637 { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2642 test -n "$CC" && break
2645 if test -z "$CC"; then
2647 for ac_prog in cl.exe
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_ac_ct_CC="$ac_prog"
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679 echo "${ECHO_T}$ac_ct_CC" >&6; }
2681 { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2686 test -n "$ac_ct_CC" && break
2689 if test "x$ac_ct_CC" = x; then
2692 case $cross_compiling:$ac_tool_warned in
2694 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2695 whose name does not start with the host triplet. If you think this
2696 configuration is useful to you, please write to autoconf@gnu.org." >&5
2697 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2698 whose name does not start with the host triplet. If you think this
2699 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2700 ac_tool_warned=yes ;;
2709 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: no acceptable C compiler found in \$PATH
2712 See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2715 # Provide some information about the compiler.
2716 echo "$as_me:$LINENO: checking for C compiler version" >&5
2717 ac_compiler=`set X $ac_compile; echo $2`
2718 { (ac_try="$ac_compiler --version >&5"
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compiler --version >&5") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728 { (ac_try="$ac_compiler -v >&5"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compiler -v >&5") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }
2738 { (ac_try="$ac_compiler -V >&5"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler -V >&5") 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2749 cat >conftest.$ac_ext <<_ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2764 ac_clean_files_save=$ac_clean_files
2765 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2766 # Try to create an executable without -o first, disregard a.out.
2767 # It will help us diagnose broken compilers, and finding out an intuition
2769 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2770 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2771 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2773 # List of possible output files, starting from the most likely.
2774 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2775 # only as a last resort. b.out is created by i960 compilers.
2776 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2778 # The IRIX 6 linker writes into existing files which may not be
2779 # executable, retaining their permissions. Remove them first so a
2780 # subsequent execution test works.
2782 for ac_file in $ac_files
2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2786 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2791 if { (ac_try="$ac_link_default"
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_link_default") 2>&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; then
2801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2804 # so that the user can short-circuit this test for compilers unknown to
2806 for ac_file in $ac_files
2808 test -f "$ac_file" || continue
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2813 # We found the default executable, but exeext='' is most
2817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2821 # We set ac_cv_exeext here because the later test for it is not
2822 # safe: cross compilers may not add the suffix if given an `-o'
2823 # argument, so we may need to know it at that point already.
2824 # Even if this section looks crufty: it has the advantage of
2831 test "$ac_cv_exeext" = no && ac_cv_exeext=
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2837 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2838 See \`config.log' for more details." >&5
2839 echo "$as_me: error: C compiler cannot create executables
2840 See \`config.log' for more details." >&2;}
2841 { (exit 77); exit 77; }; }
2844 ac_exeext=$ac_cv_exeext
2845 { echo "$as_me:$LINENO: result: $ac_file" >&5
2846 echo "${ECHO_T}$ac_file" >&6; }
2848 # Check that the compiler produces executables we can run. If not, either
2849 # the compiler is broken, or we cross compile.
2850 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2851 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2852 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2853 # If not cross compiling, check that we can run a simple program.
2854 if test "$cross_compiling" != yes; then
2855 if { ac_try='./$ac_file'
2856 { (case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_try") 2>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2867 if test "$cross_compiling" = maybe; then
2870 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: cannot run C compiled programs.
2874 If you meant to cross compile, use \`--host'.
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }
2880 { echo "$as_me:$LINENO: result: yes" >&5
2881 echo "${ECHO_T}yes" >&6; }
2883 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2884 ac_clean_files=$ac_clean_files_save
2885 # Check that the compiler produces executables we can run. If not, either
2886 # the compiler is broken, or we cross compile.
2887 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2888 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2889 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2890 echo "${ECHO_T}$cross_compiling" >&6; }
2892 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2893 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2894 if { (ac_try="$ac_link"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_link") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2906 # work properly (i.e., refer to `conftest.exe'), while it won't with
2908 for ac_file in conftest.exe conftest conftest.*; do
2909 test -f "$ac_file" || continue
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2918 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2919 See \`config.log' for more details." >&5
2920 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2921 See \`config.log' for more details." >&2;}
2922 { (exit 1); exit 1; }; }
2925 rm -f conftest$ac_cv_exeext
2926 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2927 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2929 rm -f conftest.$ac_ext
2930 EXEEXT=$ac_cv_exeext
2932 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2933 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2934 if test "${ac_cv_objext+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 cat >conftest.$ac_ext <<_ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2952 rm -f conftest.o conftest.obj
2953 if { (ac_try="$ac_compile"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; then
2963 for ac_file in conftest.o conftest.obj conftest.*; do
2964 test -f "$ac_file" || continue;
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2976 See \`config.log' for more details." >&5
2977 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2978 See \`config.log' for more details." >&2;}
2979 { (exit 1); exit 1; }; }
2982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2984 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2985 echo "${ECHO_T}$ac_cv_objext" >&6; }
2986 OBJEXT=$ac_cv_objext
2988 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2989 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2990 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 cat >conftest.$ac_ext <<_ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3059 GCC=`test $ac_compiler_gnu = yes && echo yes`
3060 ac_test_CFLAGS=${CFLAGS+set}
3061 ac_save_CFLAGS=$CFLAGS
3062 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3063 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_cc_g+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 ac_save_c_werror_flag=$ac_c_werror_flag
3068 ac_c_werror_flag=yes
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3182 cat >conftest.$ac_ext <<_ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3206 grep -v '^ *+' conftest.er1 >conftest.err
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3212 { (case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_try") 2>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; } &&
3221 { ac_try='test -s conftest.$ac_objext'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3250 if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3259 if test "$GCC" = yes; then
3265 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267 if test "${ac_cv_prog_cc_c89+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 ac_cv_prog_cc_c89=no
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3296 s = g (p, va_arg (v,int));
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3348 { (case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_try") 2>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_try") 2>&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3367 ac_cv_prog_cc_c89=$ac_arg
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3375 rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
3378 rm -f conftest.$ac_ext
3383 case "x$ac_cv_prog_cc_c89" in
3385 { echo "$as_me:$LINENO: result: none needed" >&5
3386 echo "${ECHO_T}none needed" >&6; } ;;
3388 { echo "$as_me:$LINENO: result: unsupported" >&5
3389 echo "${ECHO_T}unsupported" >&6; } ;;
3391 CC="$CC $ac_cv_prog_cc_c89"
3392 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3393 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3410 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3411 # On Suns, sometimes $CPP names a directory.
3412 if test -n "$CPP" && test -d "$CPP"; then
3415 if test -z "$CPP"; then
3416 if test "${ac_cv_prog_CPP+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 # Double quotes because CPP needs to be expanded
3420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3423 for ac_c_preproc_warn_flag in '' yes
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3438 # include <limits.h>
3440 # include <assert.h>
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 if test -z "$ac_cpp_err"; then
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 # Broken: fails on valid input.
3476 rm -f conftest.err conftest.$ac_ext
3478 # OK, works on sane cases. Now check whether nonexistent headers
3479 # can be detected and how.
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 #include <ac_nonexistent.h>
3488 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev/null; then
3501 if test -s conftest.err; then
3502 ac_cpp_err=$ac_c_preproc_warn_flag
3503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3510 if test -z "$ac_cpp_err"; then
3511 # Broken: success on invalid input.
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 # Passes both tests.
3522 rm -f conftest.err conftest.$ac_ext
3525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526 rm -f conftest.err conftest.$ac_ext
3527 if $ac_preproc_ok; then
3539 { echo "$as_me:$LINENO: result: $CPP" >&5
3540 echo "${ECHO_T}$CPP" >&6; }
3542 for ac_c_preproc_warn_flag in '' yes
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547 # <limits.h> exists even on freestanding compilers.
3548 # On the NeXT, cc -E runs the code through the compiler's parser,
3549 # not just through cpp. "Syntax error" is here to catch this case.
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3557 # include <limits.h>
3559 # include <assert.h>
3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } >/dev/null; then
3576 if test -s conftest.err; then
3577 ac_cpp_err=$ac_c_preproc_warn_flag
3578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3585 if test -z "$ac_cpp_err"; then
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 # Broken: fails on valid input.
3595 rm -f conftest.err conftest.$ac_ext
3597 # OK, works on sane cases. Now check whether nonexistent headers
3598 # can be detected and how.
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #include <ac_nonexistent.h>
3607 if { (ac_try="$ac_cpp conftest.$ac_ext"
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3615 grep -v '^ *+' conftest.er1 >conftest.err
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } >/dev/null; then
3620 if test -s conftest.err; then
3621 ac_cpp_err=$ac_c_preproc_warn_flag
3622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3629 if test -z "$ac_cpp_err"; then
3630 # Broken: success on invalid input.
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 # Passes both tests.
3641 rm -f conftest.err conftest.$ac_ext
3644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645 rm -f conftest.err conftest.$ac_ext
3646 if $ac_preproc_ok; then
3649 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3650 See \`config.log' for more details." >&5
3651 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3652 See \`config.log' for more details." >&2;}
3653 { (exit 1); exit 1; }; }
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3664 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3665 if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 # Extract the first word of "grep ggrep" to use in msg output
3669 if test -z "$GREP"; then
3670 set dummy grep ggrep; ac_prog_name=$2
3671 if test "${ac_cv_path_GREP+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 ac_path_GREP_found=false
3675 # Loop through the user's path and test for each of PROGNAME-LIST
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680 test -z "$as_dir" && as_dir=.
3681 for ac_prog in grep ggrep; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3684 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3685 # Check for GNU ac_path_GREP and select it if it is found.
3686 # Check for GNU $ac_path_GREP
3687 case `"$ac_path_GREP" --version 2>&1` in
3689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3695 cat "conftest.in" "conftest.in" >"conftest.tmp"
3696 mv "conftest.tmp" "conftest.in"
3697 cp "conftest.in" "conftest.nl"
3698 echo 'GREP' >> "conftest.nl"
3699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701 ac_count=`expr $ac_count + 1`
3702 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3703 # Best one so far, save it but keep looking for a better one
3704 ac_cv_path_GREP="$ac_path_GREP"
3705 ac_path_GREP_max=$ac_count
3707 # 10*(2^10) chars as input seems more than enough
3708 test $ac_count -gt 10 && break
3710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3714 $ac_path_GREP_found && break 3
3724 GREP="$ac_cv_path_GREP"
3725 if test -z "$GREP"; then
3726 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728 { (exit 1); exit 1; }; }
3732 ac_cv_path_GREP=$GREP
3737 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3738 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3739 GREP="$ac_cv_path_GREP"
3742 { echo "$as_me:$LINENO: checking for egrep" >&5
3743 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3744 if test "${ac_cv_path_EGREP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3748 then ac_cv_path_EGREP="$GREP -E"
3750 # Extract the first word of "egrep" to use in msg output
3751 if test -z "$EGREP"; then
3752 set dummy egrep; ac_prog_name=$2
3753 if test "${ac_cv_path_EGREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 ac_path_EGREP_found=false
3757 # Loop through the user's path and test for each of PROGNAME-LIST
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3762 test -z "$as_dir" && as_dir=.
3763 for ac_prog in egrep; do
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3766 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3767 # Check for GNU ac_path_EGREP and select it if it is found.
3768 # Check for GNU $ac_path_EGREP
3769 case `"$ac_path_EGREP" --version 2>&1` in
3771 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3774 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3777 cat "conftest.in" "conftest.in" >"conftest.tmp"
3778 mv "conftest.tmp" "conftest.in"
3779 cp "conftest.in" "conftest.nl"
3780 echo 'EGREP' >> "conftest.nl"
3781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783 ac_count=`expr $ac_count + 1`
3784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3785 # Best one so far, save it but keep looking for a better one
3786 ac_cv_path_EGREP="$ac_path_EGREP"
3787 ac_path_EGREP_max=$ac_count
3789 # 10*(2^10) chars as input seems more than enough
3790 test $ac_count -gt 10 && break
3792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796 $ac_path_EGREP_found && break 3
3806 EGREP="$ac_cv_path_EGREP"
3807 if test -z "$EGREP"; then
3808 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810 { (exit 1); exit 1; }; }
3814 ac_cv_path_EGREP=$EGREP
3820 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3821 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3822 EGREP="$ac_cv_path_EGREP"
3825 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3827 if test "${ac_cv_header_stdc+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3849 rm -f conftest.$ac_objext
3850 if { (ac_try="$ac_compile"
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
3858 grep -v '^ *+' conftest.er1 >conftest.err
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } &&
3863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3864 { (case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_try") 2>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_try") 2>&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_header_stdc=yes
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 ac_cv_header_stdc=no
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 if test $ac_cv_header_stdc = yes; then
3894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905 $EGREP "memchr" >/dev/null 2>&1; then
3908 ac_cv_header_stdc=no
3914 if test $ac_cv_header_stdc = yes; then
3915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3926 $EGREP "free" >/dev/null 2>&1; then
3929 ac_cv_header_stdc=no
3935 if test $ac_cv_header_stdc = yes; then
3936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937 if test "$cross_compiling" = yes; then
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3948 #if ((' ' & 0x0FF) == 0x020)
3949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3952 # define ISLOWER(c) \
3953 (('a' <= (c) && (c) <= 'i') \
3954 || ('j' <= (c) && (c) <= 'r') \
3955 || ('s' <= (c) && (c) <= 'z'))
3956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3964 for (i = 0; i < 256; i++)
3965 if (XOR (islower (i), ISLOWER (i))
3966 || toupper (i) != TOUPPER (i))
3971 rm -f conftest$ac_exeext
3972 if { (ac_try="$ac_link"
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_link") 2>&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3982 { (case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_try") 2>&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3993 echo "$as_me: program exited with status $ac_status" >&5
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3998 ac_cv_header_stdc=no
4000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4006 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4007 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4008 if test $ac_cv_header_stdc = yes; then
4010 cat >>confdefs.h <<\_ACEOF
4011 #define STDC_HEADERS 1
4016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027 inttypes.h stdint.h unistd.h
4029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 cat >conftest.$ac_ext <<_ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4041 $ac_includes_default
4043 #include <$ac_header>
4045 rm -f conftest.$ac_objext
4046 if { (ac_try="$ac_compile"
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4054 grep -v '^ *+' conftest.er1 >conftest.err
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } &&
4059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4060 { (case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_try") 2>&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_try") 2>&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 eval "$as_ac_Header=yes"
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 eval "$as_ac_Header=no"
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_res=`eval echo '${'$as_ac_Header'}'`
4090 { echo "$as_me:$LINENO: result: $ac_res" >&5
4091 echo "${ECHO_T}$ac_res" >&6; }
4092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4093 cat >>confdefs.h <<_ACEOF
4094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4102 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4103 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4104 if test "${ac_cv_c_bigendian+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 # See if sys/param.h defines the BYTE_ORDER macro.
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #include <sys/types.h>
4115 #include <sys/param.h>
4120 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4137 grep -v '^ *+' conftest.er1 >conftest.err
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4143 { (case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_try") 2>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 # It does; now see whether it defined to BIG_ENDIAN or not.
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 #include <sys/types.h>
4170 #include <sys/param.h>
4175 #if BYTE_ORDER != BIG_ENDIAN
4183 rm -f conftest.$ac_objext
4184 if { (ac_try="$ac_compile"
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_compile") 2>conftest.er1
4192 grep -v '^ *+' conftest.er1 >conftest.err
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4198 { (case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_try") 2>&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_try") 2>&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 ac_cv_c_bigendian=yes
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 ac_cv_c_bigendian=no
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 # It does not; compile a test program.
4231 if test "$cross_compiling" = yes; then
4232 # try to guess the endianness by grepping values into an object file
4233 ac_cv_c_bigendian=unknown
4234 cat >conftest.$ac_ext <<_ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4241 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4242 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4243 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4244 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4245 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4249 _ascii (); _ebcdic ();
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4289 ac_cv_c_bigendian=yes
4291 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4292 if test "$ac_cv_c_bigendian" = unknown; then
4293 ac_cv_c_bigendian=no
4295 # finding both strings is unlikely to happen, but who knows?
4296 ac_cv_c_bigendian=unknown
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 $ac_includes_default
4319 /* Are we little or big endian? From Harbison&Steele. */
4323 char c[sizeof (long int)];
4326 return u.c[sizeof (long int) - 1] == 1;
4332 rm -f conftest$ac_exeext
4333 if { (ac_try="$ac_link"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_link") 2>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4343 { (case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_try") 2>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_c_bigendian=no
4354 echo "$as_me: program exited with status $ac_status" >&5
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4359 ac_cv_c_bigendian=yes
4361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4370 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4371 case $ac_cv_c_bigendian in
4379 { { echo "$as_me:$LINENO: error: unknown endianness
4380 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4381 echo "$as_me: error: unknown endianness
4382 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4383 { (exit 1); exit 1; }; } ;;
4387 if test "$cross_compiling" = yes; then
4388 LLVM_CROSS_COMPILING=1
4391 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4392 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4393 if test "${ac_cv_build_exeext+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4397 ac_cv_build_exeext=.exe
4399 ac_build_prefix=${build_alias}-
4401 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4402 set dummy ${ac_build_prefix}gcc; ac_word=$2
4403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 if test -n "$BUILD_CC"; then
4409 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 BUILD_CC=$ac_cv_prog_BUILD_CC
4429 if test -n "$BUILD_CC"; then
4430 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4431 echo "${ECHO_T}$BUILD_CC" >&6; }
4433 { echo "$as_me:$LINENO: result: no" >&5
4434 echo "${ECHO_T}no" >&6; }
4438 if test -z "$BUILD_CC"; then
4439 # Extract the first word of "gcc", so it can be a program name with args.
4440 set dummy gcc; ac_word=$2
4441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 if test -n "$BUILD_CC"; then
4447 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_BUILD_CC="gcc"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 BUILD_CC=$ac_cv_prog_BUILD_CC
4467 if test -n "$BUILD_CC"; then
4468 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4469 echo "${ECHO_T}$BUILD_CC" >&6; }
4471 { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4476 if test -z "$BUILD_CC"; then
4477 # Extract the first word of "cc", so it can be a program name with args.
4478 set dummy cc; ac_word=$2
4479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4481 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 if test -n "$BUILD_CC"; then
4485 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4496 ac_prog_rejected=yes
4499 ac_cv_prog_BUILD_CC="cc"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 if test $ac_prog_rejected = yes; then
4508 # We found a bogon in the path, so make sure we never use it.
4509 set dummy $ac_cv_prog_BUILD_CC
4511 if test $# != 0; then
4512 # We chose a different compiler from the bogus one.
4513 # However, it has the same basename, so the bogon will be chosen
4514 # first if we set BUILD_CC to just the basename; use the full file name.
4516 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4521 BUILD_CC=$ac_cv_prog_BUILD_CC
4522 if test -n "$BUILD_CC"; then
4523 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524 echo "${ECHO_T}$BUILD_CC" >&6; }
4526 { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4533 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4534 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4535 { (exit 1); exit 1; }; }
4536 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4538 echo 'int main () { return 0; }' > conftest.$ac_ext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4541 (eval $ac_build_link) 2>&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; then
4545 for file in conftest.*; do
4547 *.c | *.o | *.obj | *.dSYM) ;;
4548 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4552 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4553 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4554 { (exit 1); exit 1; }; }
4557 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4562 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4563 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4564 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4565 ac_build_exeext=$BUILD_EXEEXT
4567 ac_build_prefix=${build_alias}-
4568 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4569 set dummy ${ac_build_prefix}g++; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 if test -n "$BUILD_CXX"; then
4576 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4596 if test -n "$BUILD_CXX"; then
4597 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4598 echo "${ECHO_T}$BUILD_CXX" >&6; }
4600 { echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6; }
4605 if test -z "$BUILD_CXX"; then
4606 # Extract the first word of "g++", so it can be a program name with args.
4607 set dummy g++; ac_word=$2
4608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 if test -n "$BUILD_CXX"; then
4614 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_prog_BUILD_CXX="g++"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4634 if test -n "$BUILD_CXX"; then
4635 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4636 echo "${ECHO_T}$BUILD_CXX" >&6; }
4638 { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4643 if test -z "$BUILD_CXX"; then
4644 # Extract the first word of "c++", so it can be a program name with args.
4645 set dummy c++; ac_word=$2
4646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 if test -n "$BUILD_CXX"; then
4652 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4663 ac_prog_rejected=yes
4666 ac_cv_prog_BUILD_CXX="c++"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 if test $ac_prog_rejected = yes; then
4675 # We found a bogon in the path, so make sure we never use it.
4676 set dummy $ac_cv_prog_BUILD_CXX
4678 if test $# != 0; then
4679 # We chose a different compiler from the bogus one.
4680 # However, it has the same basename, so the bogon will be chosen
4681 # first if we set BUILD_CXX to just the basename; use the full file name.
4683 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4688 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689 if test -n "$BUILD_CXX"; then
4690 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691 echo "${ECHO_T}$BUILD_CXX" >&6; }
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4701 LLVM_CROSS_COMPILING=0
4705 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4716 # Check whether --enable-optimized was given.
4717 if test "${enable_optimized+set}" = set; then
4718 enableval=$enable_optimized;
4723 if test ${enableval} = "no" ; then
4727 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4731 # Check whether --enable-profiling was given.
4732 if test "${enable_profiling+set}" = set; then
4733 enableval=$enable_profiling;
4738 if test ${enableval} = "no" ; then
4742 ENABLE_PROFILING=ENABLE_PROFILING=1
4746 # Check whether --enable-assertions was given.
4747 if test "${enable_assertions+set}" = set; then
4748 enableval=$enable_assertions;
4753 if test ${enableval} = "yes" ; then
4757 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4761 # Check whether --enable-expensive-checks was given.
4762 if test "${enable_expensive_checks+set}" = set; then
4763 enableval=$enable_expensive_checks;
4768 if test ${enableval} = "yes" ; then
4769 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4771 EXPENSIVE_CHECKS=yes
4774 ENABLE_EXPENSIVE_CHECKS=
4780 # Check whether --enable-debug-runtime was given.
4781 if test "${enable_debug_runtime+set}" = set; then
4782 enableval=$enable_debug_runtime;
4787 if test ${enableval} = "no" ; then
4791 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4795 # Check whether --enable-jit was given.
4796 if test "${enable_jit+set}" = set; then
4797 enableval=$enable_jit;
4802 if test ${enableval} = "no"
4807 case "$llvm_cv_target_arch" in
4808 x86) TARGET_HAS_JIT=1
4810 Sparc) TARGET_HAS_JIT=0
4812 PowerPC) TARGET_HAS_JIT=1
4814 x86_64) TARGET_HAS_JIT=1
4816 Alpha) TARGET_HAS_JIT=1
4818 IA64) TARGET_HAS_JIT=0
4820 ARM) TARGET_HAS_JIT=0
4822 Mips) TARGET_HAS_JIT=0
4824 PIC16) TARGET_HAS_JIT=0
4826 XCore) TARGET_HAS_JIT=0
4828 MSP430) TARGET_HAS_JIT=0
4835 # Check whether --enable-doxygen was given.
4836 if test "${enable_doxygen+set}" = set; then
4837 enableval=$enable_doxygen;
4842 case "$enableval" in
4843 yes) ENABLE_DOXYGEN=1
4845 no) ENABLE_DOXYGEN=0
4847 default) ENABLE_DOXYGEN=0
4849 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4850 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; } ;;
4854 # Check whether --enable-threads was given.
4855 if test "${enable_threads+set}" = set; then
4856 enableval=$enable_threads;
4861 case "$enableval" in
4862 yes) ENABLE_THREADS=1
4864 no) ENABLE_THREADS=0
4866 default) ENABLE_THREADS=1
4868 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4869 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4870 { (exit 1); exit 1; }; } ;;
4873 # Check whether --enable-pic was given.
4874 if test "${enable_pic+set}" = set; then
4875 enableval=$enable_pic;
4880 case "$enableval" in
4885 default) ENABLE_PIC=1
4887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4892 cat >>confdefs.h <<_ACEOF
4893 #define ENABLE_PIC $ENABLE_PIC
4898 # Check whether --enable-targets was given.
4899 if test "${enable_targets+set}" = set; then
4900 enableval=$enable_targets;
4905 case "$enableval" in
4906 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4908 case "$llvm_cv_target_arch" in
4909 x86) TARGETS_TO_BUILD="X86" ;;
4910 x86_64) TARGETS_TO_BUILD="X86" ;;
4911 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4912 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4913 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4914 IA64) TARGETS_TO_BUILD="IA64" ;;
4915 ARM) TARGETS_TO_BUILD="ARM" ;;
4916 Mips) TARGETS_TO_BUILD="Mips" ;;
4917 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4918 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4919 XCore) TARGETS_TO_BUILD="XCore" ;;
4920 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4921 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4922 echo "$as_me: error: Can not set target to build" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4926 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4928 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4929 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4930 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4931 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4932 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4933 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4934 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4935 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4936 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4937 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4938 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4939 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4940 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4941 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4942 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4943 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4944 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4945 { (exit 1); exit 1; }; } ;;
4950 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4953 # Check whether --enable-cbe-printf-a was given.
4954 if test "${enable_cbe_printf_a+set}" = set; then
4955 enableval=$enable_cbe_printf_a;
4960 case "$enableval" in
4961 yes) ENABLE_CBE_PRINTF_A=1
4963 no) ENABLE_CBE_PRINTF_A=0
4965 default) ENABLE_CBE_PRINTF_A=1
4967 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4968 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4969 { (exit 1); exit 1; }; } ;;
4972 cat >>confdefs.h <<_ACEOF
4973 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4978 # Check whether --with-llvmgccdir was given.
4979 if test "${with_llvmgccdir+set}" = set; then
4980 withval=$with_llvmgccdir;
4986 default) WITH_LLVMGCCDIR=default ;;
4987 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4988 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4989 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4990 { (exit 1); exit 1; }; } ;;
4994 # Check whether --with-llvmgcc was given.
4995 if test "${with_llvmgcc+set}" = set; then
4996 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5002 # Check whether --with-llvmgxx was given.
5003 if test "${with_llvmgxx+set}" = set; then
5004 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5009 if test -n "$LLVMGCC"; then
5010 LLVMGCCCOMMAND="$LLVMGCC"
5013 if test -n "$LLVMGXX"; then
5014 LLVMGXXCOMMAND="$LLVMGXX"
5017 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5018 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5019 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5020 { (exit 1); exit 1; }; };
5023 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5024 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5025 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5026 { (exit 1); exit 1; }; };
5030 # Check whether --with-extra-options was given.
5031 if test "${with_extra_options+set}" = set; then
5032 withval=$with_extra_options;
5038 default) EXTRA_OPTIONS= ;;
5039 *) EXTRA_OPTIONS=$withval ;;
5041 EXTRA_OPTIONS=$EXTRA_OPTIONS
5044 # Check whether --enable-bindings was given.
5045 if test "${enable_bindings+set}" = set; then
5046 enableval=$enable_bindings;
5051 BINDINGS_TO_BUILD=""
5052 case "$enableval" in
5053 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5054 all ) BINDINGS_TO_BUILD="ocaml" ;;
5055 none | no) BINDINGS_TO_BUILD="" ;;
5056 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5057 case "$a_binding" in
5058 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5059 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5060 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5061 { (exit 1); exit 1; }; } ;;
5068 # Check whether --with-ocaml-libdir was given.
5069 if test "${with_ocaml_libdir+set}" = set; then
5070 withval=$with_ocaml_libdir;
5076 auto) with_ocaml_libdir="$withval" ;;
5077 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5078 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5079 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5080 { (exit 1); exit 1; }; } ;;
5084 # Check whether --with-binutils-include was given.
5085 if test "${with_binutils_include+set}" = set; then
5086 withval=$with_binutils_include;
5092 default) WITH_BINUTILS_INCDIR=default ;;
5093 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5094 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5095 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5098 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5099 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5101 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5102 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5103 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5104 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5105 { (exit 1); exit 1; }; };
5111 ac_cpp='$CPP $CPPFLAGS'
5112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5116 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5117 # On Suns, sometimes $CPP names a directory.
5118 if test -n "$CPP" && test -d "$CPP"; then
5121 if test -z "$CPP"; then
5122 if test "${ac_cv_prog_CPP+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 # Double quotes because CPP needs to be expanded
5126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5129 for ac_c_preproc_warn_flag in '' yes
5131 # Use a header file that comes with gcc, so configuring glibc
5132 # with a fresh cross-compiler works.
5133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134 # <limits.h> exists even on freestanding compilers.
5135 # On the NeXT, cc -E runs the code through the compiler's parser,
5136 # not just through cpp. "Syntax error" is here to catch this case.
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5144 # include <limits.h>
5146 # include <assert.h>
5150 if { (ac_try="$ac_cpp conftest.$ac_ext"
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5158 grep -v '^ *+' conftest.er1 >conftest.err
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } >/dev/null; then
5163 if test -s conftest.err; then
5164 ac_cpp_err=$ac_c_preproc_warn_flag
5165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5172 if test -z "$ac_cpp_err"; then
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5178 # Broken: fails on valid input.
5182 rm -f conftest.err conftest.$ac_ext
5184 # OK, works on sane cases. Now check whether nonexistent headers
5185 # can be detected and how.
5186 cat >conftest.$ac_ext <<_ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5194 if { (ac_try="$ac_cpp conftest.$ac_ext"
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } >/dev/null; then
5207 if test -s conftest.err; then
5208 ac_cpp_err=$ac_c_preproc_warn_flag
5209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5216 if test -z "$ac_cpp_err"; then
5217 # Broken: success on invalid input.
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 # Passes both tests.
5228 rm -f conftest.err conftest.$ac_ext
5231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5232 rm -f conftest.err conftest.$ac_ext
5233 if $ac_preproc_ok; then
5245 { echo "$as_me:$LINENO: result: $CPP" >&5
5246 echo "${ECHO_T}$CPP" >&6; }
5248 for ac_c_preproc_warn_flag in '' yes
5250 # Use a header file that comes with gcc, so configuring glibc
5251 # with a fresh cross-compiler works.
5252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5253 # <limits.h> exists even on freestanding compilers.
5254 # On the NeXT, cc -E runs the code through the compiler's parser,
5255 # not just through cpp. "Syntax error" is here to catch this case.
5256 cat >conftest.$ac_ext <<_ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5263 # include <limits.h>
5265 # include <assert.h>
5269 if { (ac_try="$ac_cpp conftest.$ac_ext"
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5277 grep -v '^ *+' conftest.er1 >conftest.err
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } >/dev/null; then
5282 if test -s conftest.err; then
5283 ac_cpp_err=$ac_c_preproc_warn_flag
5284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5291 if test -z "$ac_cpp_err"; then
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 # Broken: fails on valid input.
5301 rm -f conftest.err conftest.$ac_ext
5303 # OK, works on sane cases. Now check whether nonexistent headers
5304 # can be detected and how.
5305 cat >conftest.$ac_ext <<_ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 #include <ac_nonexistent.h>
5313 if { (ac_try="$ac_cpp conftest.$ac_ext"
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } >/dev/null; then
5326 if test -s conftest.err; then
5327 ac_cpp_err=$ac_c_preproc_warn_flag
5328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5335 if test -z "$ac_cpp_err"; then
5336 # Broken: success on invalid input.
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 # Passes both tests.
5347 rm -f conftest.err conftest.$ac_ext
5350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5351 rm -f conftest.err conftest.$ac_ext
5352 if $ac_preproc_ok; then
5355 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5356 See \`config.log' for more details." >&5
5357 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5358 See \`config.log' for more details." >&2;}
5359 { (exit 1); exit 1; }; }
5363 ac_cpp='$CPP $CPPFLAGS'
5364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373 if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5380 if test "${ac_cv_prog_CC+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 if test -n "$CC"; then
5384 ac_cv_prog_CC="$CC" # Let the user override the test.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 if test -n "$CC"; then
5405 { echo "$as_me:$LINENO: result: $CC" >&5
5406 echo "${ECHO_T}$CC" >&6; }
5408 { echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6; }
5413 test -n "$CC" && break
5416 if test -z "$CC"; then
5420 # Extract the first word of "$ac_prog", so it can be a program name with args.
5421 set dummy $ac_prog; ac_word=$2
5422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 if test -n "$ac_ct_CC"; then
5428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_ac_ct_CC="$ac_prog"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5448 if test -n "$ac_ct_CC"; then
5449 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5450 echo "${ECHO_T}$ac_ct_CC" >&6; }
5452 { echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6; }
5457 test -n "$ac_ct_CC" && break
5460 if test "x$ac_ct_CC" = x; then
5463 case $cross_compiling:$ac_tool_warned in
5465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5466 whose name does not start with the host triplet. If you think this
5467 configuration is useful to you, please write to autoconf@gnu.org." >&5
5468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5469 whose name does not start with the host triplet. If you think this
5470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5471 ac_tool_warned=yes ;;
5478 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5479 See \`config.log' for more details." >&5
5480 echo "$as_me: error: no acceptable C compiler found in \$PATH
5481 See \`config.log' for more details." >&2;}
5482 { (exit 1); exit 1; }; }
5484 # Provide some information about the compiler.
5485 echo "$as_me:$LINENO: checking for C compiler version" >&5
5486 ac_compiler=`set X $ac_compile; echo $2`
5487 { (ac_try="$ac_compiler --version >&5"
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compiler --version >&5") 2>&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }
5497 { (ac_try="$ac_compiler -v >&5"
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compiler -v >&5") 2>&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }
5507 { (ac_try="$ac_compiler -V >&5"
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compiler -V >&5") 2>&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }
5518 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5519 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5520 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 cat >conftest.$ac_ext <<_ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5541 rm -f conftest.$ac_objext
5542 if { (ac_try="$ac_compile"
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compile") 2>conftest.er1
5550 grep -v '^ *+' conftest.er1 >conftest.err
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } &&
5555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5556 { (case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_try") 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; } &&
5565 { ac_try='test -s conftest.$ac_objext'
5566 { (case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_try") 2>&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5587 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5589 GCC=`test $ac_compiler_gnu = yes && echo yes`
5590 ac_test_CFLAGS=${CFLAGS+set}
5591 ac_save_CFLAGS=$CFLAGS
5592 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5593 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5594 if test "${ac_cv_prog_cc_g+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 ac_save_c_werror_flag=$ac_c_werror_flag
5598 ac_c_werror_flag=yes
5601 cat >conftest.$ac_ext <<_ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5616 rm -f conftest.$ac_objext
5617 if { (ac_try="$ac_compile"
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_compile") 2>conftest.er1
5625 grep -v '^ *+' conftest.er1 >conftest.err
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } &&
5630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5631 { (case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_try") 2>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; } &&
5640 { ac_try='test -s conftest.$ac_objext'
5641 { (case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_try") 2>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5680 grep -v '^ *+' conftest.er1 >conftest.err
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5686 { (case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_try") 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; } &&
5695 { ac_try='test -s conftest.$ac_objext'
5696 { (case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_try") 2>&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5710 ac_c_werror_flag=$ac_save_c_werror_flag
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5727 rm -f conftest.$ac_objext
5728 if { (ac_try="$ac_compile"
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_compile") 2>conftest.er1
5736 grep -v '^ *+' conftest.er1 >conftest.err
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5751 { ac_try='test -s conftest.$ac_objext'
5752 { (case "(($ac_try" in
5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754 *) ac_try_echo=$ac_try;;
5756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757 (eval "$ac_try") 2>&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 ac_c_werror_flag=$ac_save_c_werror_flag
5778 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5779 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5780 if test "$ac_test_CFLAGS" = set; then
5781 CFLAGS=$ac_save_CFLAGS
5782 elif test $ac_cv_prog_cc_g = yes; then
5783 if test "$GCC" = yes; then
5789 if test "$GCC" = yes; then
5795 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5796 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5797 if test "${ac_cv_prog_cc_c89+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 ac_cv_prog_cc_c89=no
5802 cat >conftest.$ac_ext <<_ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5810 #include <sys/types.h>
5811 #include <sys/stat.h>
5812 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5813 struct buf { int x; };
5814 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5815 static char *e (p, i)
5821 static char *f (char * (*g) (char **, int), char **p, ...)
5826 s = g (p, va_arg (v,int));
5831 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5832 function prototypes and stuff, but not '\xHH' hex character constants.
5833 These don't provoke an error unfortunately, instead are silently treated
5834 as 'x'. The following induces an error, until -std is added to get
5835 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5836 array size at least. It's necessary to write '\x00'==0 to get something
5837 that's true only with -std. */
5838 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5840 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5841 inside strings and character constants. */
5843 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5845 int test (int i, double x);
5846 struct s1 {int (*f) (int a);};
5847 struct s2 {int (*f) (double a);};
5848 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5854 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5859 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5860 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5862 CC="$ac_save_CC $ac_arg"
5863 rm -f conftest.$ac_objext
5864 if { (ac_try="$ac_compile"
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; } &&
5887 { ac_try='test -s conftest.$ac_objext'
5888 { (case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_try") 2>&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_cv_prog_cc_c89=$ac_arg
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5905 rm -f core conftest.err conftest.$ac_objext
5906 test "x$ac_cv_prog_cc_c89" != "xno" && break
5908 rm -f conftest.$ac_ext
5913 case "x$ac_cv_prog_cc_c89" in
5915 { echo "$as_me:$LINENO: result: none needed" >&5
5916 echo "${ECHO_T}none needed" >&6; } ;;
5918 { echo "$as_me:$LINENO: result: unsupported" >&5
5919 echo "${ECHO_T}unsupported" >&6; } ;;
5921 CC="$CC $ac_cv_prog_cc_c89"
5922 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5923 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5928 ac_cpp='$CPP $CPPFLAGS'
5929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5934 ac_cpp='$CXXCPP $CPPFLAGS'
5935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5938 if test -z "$CXX"; then
5939 if test -n "$CCC"; then
5942 if test -n "$ac_tool_prefix"; then
5945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949 if test "${ac_cv_prog_CXX+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 if test -n "$CXX"; then
5953 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 if test -n "$CXX"; then
5974 { echo "$as_me:$LINENO: result: $CXX" >&5
5975 echo "${ECHO_T}$CXX" >&6; }
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5982 test -n "$CXX" && break
5985 if test -z "$CXX"; then
5989 # Extract the first word of "$ac_prog", so it can be a program name with args.
5990 set dummy $ac_prog; ac_word=$2
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 if test -n "$ac_ct_CXX"; then
5997 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6006 ac_cv_prog_ac_ct_CXX="$ac_prog"
6007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6017 if test -n "$ac_ct_CXX"; then
6018 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6019 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6021 { echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6; }
6026 test -n "$ac_ct_CXX" && break
6029 if test "x$ac_ct_CXX" = x; then
6032 case $cross_compiling:$ac_tool_warned in
6034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6035 whose name does not start with the host triplet. If you think this
6036 configuration is useful to you, please write to autoconf@gnu.org." >&5
6037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6038 whose name does not start with the host triplet. If you think this
6039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6040 ac_tool_warned=yes ;;
6048 # Provide some information about the compiler.
6049 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6050 ac_compiler=`set X $ac_compile; echo $2`
6051 { (ac_try="$ac_compiler --version >&5"
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compiler --version >&5") 2>&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }
6061 { (ac_try="$ac_compiler -v >&5"
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compiler -v >&5") 2>&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }
6071 { (ac_try="$ac_compiler -V >&5"
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compiler -V >&5") 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }
6082 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6083 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6084 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 cat >conftest.$ac_ext <<_ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6114 grep -v '^ *+' conftest.er1 >conftest.err
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6120 { (case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_try") 2>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6151 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6152 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6153 GXX=`test $ac_compiler_gnu = yes && echo yes`
6154 ac_test_CXXFLAGS=${CXXFLAGS+set}
6155 ac_save_CXXFLAGS=$CXXFLAGS
6156 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6157 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_cxx_g+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6162 ac_cxx_werror_flag=yes
6165 cat >conftest.$ac_ext <<_ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6180 rm -f conftest.$ac_objext
6181 if { (ac_try="$ac_compile"
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_compile") 2>conftest.er1
6189 grep -v '^ *+' conftest.er1 >conftest.err
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } &&
6194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6195 { (case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_try") 2>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try='test -s conftest.$ac_objext'
6205 { (case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_try") 2>&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 ac_cv_prog_cxx_g=yes
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6220 cat >conftest.$ac_ext <<_ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6235 rm -f conftest.$ac_objext
6236 if { (ac_try="$ac_compile"
6238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239 *) ac_try_echo=$ac_try;;
6241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242 (eval "$ac_compile") 2>conftest.er1
6244 grep -v '^ *+' conftest.er1 >conftest.err
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6250 { (case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_try") 2>&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; } &&
6259 { ac_try='test -s conftest.$ac_objext'
6260 { (case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_try") 2>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6291 rm -f conftest.$ac_objext
6292 if { (ac_try="$ac_compile"
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_compile") 2>conftest.er1
6300 grep -v '^ *+' conftest.er1 >conftest.err
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6306 { (case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_try") 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest.$ac_objext'
6316 { (case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_try") 2>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_cv_prog_cxx_g=yes
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6342 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6343 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6344 if test "$ac_test_CXXFLAGS" = set; then
6345 CXXFLAGS=$ac_save_CXXFLAGS
6346 elif test $ac_cv_prog_cxx_g = yes; then
6347 if test "$GXX" = yes; then
6353 if test "$GXX" = yes; then
6360 ac_cpp='$CPP $CPPFLAGS'
6361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6367 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6368 if test "${lt_cv_path_NM+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 if test -n "$NM"; then
6372 # Let the user override the test.
6375 lt_nm_to_check="${ac_tool_prefix}nm"
6376 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6377 lt_nm_to_check="$lt_nm_to_check nm"
6379 for lt_tmp_nm in $lt_nm_to_check; do
6380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6381 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6383 test -z "$ac_dir" && ac_dir=.
6384 tmp_nm="$ac_dir/$lt_tmp_nm"
6385 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6386 # Check to see if the nm accepts a BSD-compat flag.
6387 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6388 # nm: unknown option "B" ignored
6389 # Tru64's nm complains that /dev/null is an invalid object file
6390 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6391 */dev/null* | *'Invalid file or object type'*)
6392 lt_cv_path_NM="$tmp_nm -B"
6396 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6398 lt_cv_path_NM="$tmp_nm -p"
6402 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6403 continue # so that we can try to find one that supports BSD flags
6412 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6415 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6416 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6421 { echo "$as_me:$LINENO: checking for GNU make" >&5
6422 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6423 if test "${llvm_cv_gnu_make_command+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 llvm_cv_gnu_make_command=''
6427 for a in "$MAKE" make gmake gnumake ; do
6428 if test -z "$a" ; then continue ; fi ;
6429 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6431 llvm_cv_gnu_make_command=$a ;
6436 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6437 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6438 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6442 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6443 echo "${ECHO_T}\"Not found\"" >&6; };
6447 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6448 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6450 if test "$LN_S" = "ln -s"; then
6451 { echo "$as_me:$LINENO: result: yes" >&5
6452 echo "${ECHO_T}yes" >&6; }
6454 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6455 echo "${ECHO_T}no, using $LN_S" >&6; }
6458 # Extract the first word of "cmp", so it can be a program name with args.
6459 set dummy cmp; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_CMP+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6490 if test -n "$CMP"; then
6491 { echo "$as_me:$LINENO: result: $CMP" >&5
6492 echo "${ECHO_T}$CMP" >&6; }
6494 { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6499 # Extract the first word of "cp", so it can be a program name with args.
6500 set dummy cp; ac_word=$2
6501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503 if test "${ac_cv_path_CP+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6531 if test -n "$CP"; then
6532 { echo "$as_me:$LINENO: result: $CP" >&5
6533 echo "${ECHO_T}$CP" >&6; }
6535 { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6540 # Extract the first word of "date", so it can be a program name with args.
6541 set dummy date; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_path_DATE+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6571 DATE=$ac_cv_path_DATE
6572 if test -n "$DATE"; then
6573 { echo "$as_me:$LINENO: result: $DATE" >&5
6574 echo "${ECHO_T}$DATE" >&6; }
6576 { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6581 # Extract the first word of "find", so it can be a program name with args.
6582 set dummy find; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_FIND+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6612 FIND=$ac_cv_path_FIND
6613 if test -n "$FIND"; then
6614 { echo "$as_me:$LINENO: result: $FIND" >&5
6615 echo "${ECHO_T}$FIND" >&6; }
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6622 # Extract the first word of "grep", so it can be a program name with args.
6623 set dummy grep; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_GREP+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6653 GREP=$ac_cv_path_GREP
6654 if test -n "$GREP"; then
6655 { echo "$as_me:$LINENO: result: $GREP" >&5
6656 echo "${ECHO_T}$GREP" >&6; }
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6663 # Extract the first word of "mkdir", so it can be a program name with args.
6664 set dummy mkdir; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_path_MKDIR+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6694 MKDIR=$ac_cv_path_MKDIR
6695 if test -n "$MKDIR"; then
6696 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6697 echo "${ECHO_T}$MKDIR" >&6; }
6699 { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6704 # Extract the first word of "mv", so it can be a program name with args.
6705 set dummy mv; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_MV+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6736 if test -n "$MV"; then
6737 { echo "$as_me:$LINENO: result: $MV" >&5
6738 echo "${ECHO_T}$MV" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6745 if test -n "$ac_tool_prefix"; then
6746 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_prog_RANLIB+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 if test -n "$RANLIB"; then
6754 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 RANLIB=$ac_cv_prog_RANLIB
6774 if test -n "$RANLIB"; then
6775 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6776 echo "${ECHO_T}$RANLIB" >&6; }
6778 { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6784 if test -z "$ac_cv_prog_RANLIB"; then
6785 ac_ct_RANLIB=$RANLIB
6786 # Extract the first word of "ranlib", so it can be a program name with args.
6787 set dummy ranlib; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test -n "$ac_ct_RANLIB"; then
6794 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_ac_ct_RANLIB="ranlib"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6814 if test -n "$ac_ct_RANLIB"; then
6815 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6816 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6822 if test "x$ac_ct_RANLIB" = x; then
6825 case $cross_compiling:$ac_tool_warned in
6827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6828 whose name does not start with the host triplet. If you think this
6829 configuration is useful to you, please write to autoconf@gnu.org." >&5
6830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6831 whose name does not start with the host triplet. If you think this
6832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6833 ac_tool_warned=yes ;;
6835 RANLIB=$ac_ct_RANLIB
6838 RANLIB="$ac_cv_prog_RANLIB"
6841 # Extract the first word of "rm", so it can be a program name with args.
6842 set dummy rm; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_RM+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6873 if test -n "$RM"; then
6874 { echo "$as_me:$LINENO: result: $RM" >&5
6875 echo "${ECHO_T}$RM" >&6; }
6877 { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6882 # Extract the first word of "sed", so it can be a program name with args.
6883 set dummy sed; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_path_SED+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6914 if test -n "$SED"; then
6915 { echo "$as_me:$LINENO: result: $SED" >&5
6916 echo "${ECHO_T}$SED" >&6; }
6918 { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6923 # Extract the first word of "tar", so it can be a program name with args.
6924 set dummy tar; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_TAR+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6955 if test -n "$TAR"; then
6956 { echo "$as_me:$LINENO: result: $TAR" >&5
6957 echo "${ECHO_T}$TAR" >&6; }
6959 { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6964 # Extract the first word of "pwd", so it can be a program name with args.
6965 set dummy pwd; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_BINPWD+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6995 BINPWD=$ac_cv_path_BINPWD
6996 if test -n "$BINPWD"; then
6997 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6998 echo "${ECHO_T}$BINPWD" >&6; }
7000 { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7006 # Extract the first word of "Graphviz", so it can be a program name with args.
7007 set dummy Graphviz; ac_word=$2
7008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7037 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7038 if test -n "$GRAPHVIZ"; then
7039 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7040 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7042 { echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6; }
7047 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7049 cat >>confdefs.h <<\_ACEOF
7050 #define HAVE_GRAPHVIZ 1
7053 if test "$llvm_cv_os_type" = "MingW" ; then
7054 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7057 cat >>confdefs.h <<_ACEOF
7058 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7062 # Extract the first word of "dot", so it can be a program name with args.
7063 set dummy dot; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_path_DOT+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7094 if test -n "$DOT"; then
7095 { echo "$as_me:$LINENO: result: $DOT" >&5
7096 echo "${ECHO_T}$DOT" >&6; }
7098 { echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6; }
7103 if test "$DOT" != "echo dot" ; then
7105 cat >>confdefs.h <<\_ACEOF
7109 if test "$llvm_cv_os_type" = "MingW" ; then
7110 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7113 cat >>confdefs.h <<_ACEOF
7114 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7118 for ac_prog in gv gsview32
7120 # Extract the first word of "$ac_prog", so it can be a program name with args.
7121 set dummy $ac_prog; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_GV+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 if test -n "$GV"; then
7152 { echo "$as_me:$LINENO: result: $GV" >&5
7153 echo "${ECHO_T}$GV" >&6; }
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7160 test -n "$GV" && break
7162 test -n "$GV" || GV="echo gv"
7164 if test "$GV" != "echo gv" ; then
7166 cat >>confdefs.h <<\_ACEOF
7170 if test "$llvm_cv_os_type" = "MingW" ; then
7171 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7174 cat >>confdefs.h <<_ACEOF
7175 #define LLVM_PATH_GV "$GV${EXEEXT}"
7179 # Extract the first word of "dotty", so it can be a program name with args.
7180 set dummy dotty; ac_word=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_path_DOTTY+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7210 DOTTY=$ac_cv_path_DOTTY
7211 if test -n "$DOTTY"; then
7212 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7213 echo "${ECHO_T}$DOTTY" >&6; }
7215 { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7220 if test "$DOTTY" != "echo dotty" ; then
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_DOTTY 1
7226 if test "$llvm_cv_os_type" = "MingW" ; then
7227 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7230 cat >>confdefs.h <<_ACEOF
7231 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7237 # Extract the first word of "perl", so it can be a program name with args.
7238 set dummy perl; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_PERL+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7268 PERL=$ac_cv_path_PERL
7269 if test -n "$PERL"; then
7270 { echo "$as_me:$LINENO: result: $PERL" >&5
7271 echo "${ECHO_T}$PERL" >&6; }
7273 { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7278 if test "$PERL" != "none"; then
7279 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7280 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7281 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7282 { echo "$as_me:$LINENO: result: yes" >&5
7283 echo "${ECHO_T}yes" >&6; }
7286 { echo "$as_me:$LINENO: result: not found" >&5
7287 echo "${ECHO_T}not found" >&6; }
7292 if test x"$PERL" = xnone; then
7295 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7296 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7297 { (exit 1); exit 1; }; }
7303 # Find a good install program. We prefer a C program (faster),
7304 # so one script is as good as another. But avoid the broken or
7305 # incompatible versions:
7306 # SysV /etc/install, /usr/sbin/install
7307 # SunOS /usr/etc/install
7308 # IRIX /sbin/install
7310 # AmigaOS /C/install, which installs bootblocks on floppy discs
7311 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7312 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7313 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7314 # OS/2's system install, which has a completely different semantic
7315 # ./install, which can be erroneously created by make from ./install.sh.
7316 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7317 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7318 if test -z "$INSTALL"; then
7319 if test "${ac_cv_path_install+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir=.
7327 # Account for people who put trailing slashes in PATH elements.
7329 ./ | .// | /cC/* | \
7330 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7331 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7334 # OSF1 and SCO ODT 3.0 have their own names for install.
7335 # Don't use installbsd from OSF since it installs stuff as root
7337 for ac_prog in ginstall scoinst install; do
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7340 if test $ac_prog = install &&
7341 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7342 # AIX install. It has an incompatible calling convention.
7344 elif test $ac_prog = install &&
7345 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7346 # program-specific install script used by HP pwplus--don't use.
7349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7362 if test "${ac_cv_path_install+set}" = set; then
7363 INSTALL=$ac_cv_path_install
7365 # As a last resort, use the slow shell script. Don't cache a
7366 # value for INSTALL within a source directory, because that will
7367 # break other packages using the cache if that directory is
7368 # removed, or if the value is a relative name.
7369 INSTALL=$ac_install_sh
7372 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7373 echo "${ECHO_T}$INSTALL" >&6; }
7375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7376 # It thinks the first close brace ends the variable substitution.
7377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7384 # Extract the first word of "bzip2", so it can be a program name with args.
7385 set dummy bzip2; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_BZIP2+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 BZIP2=$ac_cv_path_BZIP2
7415 if test -n "$BZIP2"; then
7416 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7417 echo "${ECHO_T}$BZIP2" >&6; }
7419 { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7424 # Extract the first word of "doxygen", so it can be a program name with args.
7425 set dummy doxygen; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 DOXYGEN=$ac_cv_path_DOXYGEN
7455 if test -n "$DOXYGEN"; then
7456 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7457 echo "${ECHO_T}$DOXYGEN" >&6; }
7459 { echo "$as_me:$LINENO: result: no" >&5
7460 echo "${ECHO_T}no" >&6; }
7464 # Extract the first word of "groff", so it can be a program name with args.
7465 set dummy groff; ac_word=$2
7466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468 if test "${ac_cv_path_GROFF+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 GROFF=$ac_cv_path_GROFF
7495 if test -n "$GROFF"; then
7496 { echo "$as_me:$LINENO: result: $GROFF" >&5
7497 echo "${ECHO_T}$GROFF" >&6; }
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7504 # Extract the first word of "gzip", so it can be a program name with args.
7505 set dummy gzip; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_GZIP+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 GZIP=$ac_cv_path_GZIP
7535 if test -n "$GZIP"; then
7536 { echo "$as_me:$LINENO: result: $GZIP" >&5
7537 echo "${ECHO_T}$GZIP" >&6; }
7539 { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7544 # Extract the first word of "pod2html", so it can be a program name with args.
7545 set dummy pod2html; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_POD2HTML+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 POD2HTML=$ac_cv_path_POD2HTML
7575 if test -n "$POD2HTML"; then
7576 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7577 echo "${ECHO_T}$POD2HTML" >&6; }
7579 { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7584 # Extract the first word of "pod2man", so it can be a program name with args.
7585 set dummy pod2man; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_path_POD2MAN+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 POD2MAN=$ac_cv_path_POD2MAN
7615 if test -n "$POD2MAN"; then
7616 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7617 echo "${ECHO_T}$POD2MAN" >&6; }
7619 { echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6; }
7624 # Extract the first word of "runtest", so it can be a program name with args.
7625 set dummy runtest; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_RUNTEST+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 RUNTEST=$ac_cv_path_RUNTEST
7655 if test -n "$RUNTEST"; then
7656 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7657 echo "${ECHO_T}$RUNTEST" >&6; }
7659 { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7666 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7667 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7669 # Check whether --with-tclinclude was given.
7670 if test "${with_tclinclude+set}" = set; then
7671 withval=$with_tclinclude; with_tclinclude=${withval}
7676 if test "${ac_cv_path_tclsh+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 if test x"${with_tclinclude}" != x ; then
7681 if test -f ${with_tclinclude}/tclsh ; then
7682 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7683 elif test -f ${with_tclinclude}/src/tclsh ; then
7684 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7686 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7687 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7688 { (exit 1); exit 1; }; }
7692 if test x"${ac_cv_path_tclsh}" = x ; then
7693 { echo "$as_me:$LINENO: result: none" >&5
7694 echo "${ECHO_T}none" >&6; }
7695 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
7697 # Extract the first word of "$ac_prog", so it can be a program name with args.
7698 set dummy $ac_prog; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_path_TCLSH+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7716 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 TCLSH=$ac_cv_path_TCLSH
7728 if test -n "$TCLSH"; then
7729 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7730 echo "${ECHO_T}$TCLSH" >&6; }
7732 { echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6; }
7737 test -n "$TCLSH" && break
7740 if test x"${TCLSH}" = x ; then
7741 ac_cv_path_tclsh='';
7743 ac_cv_path_tclsh="${TCLSH}";
7746 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7747 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7748 TCLSH="${ac_cv_path_tclsh}"
7754 # Extract the first word of "zip", so it can be a program name with args.
7755 set dummy zip; ac_word=$2
7756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7758 if test "${ac_cv_path_ZIP+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7773 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 if test -n "$ZIP"; then
7786 { echo "$as_me:$LINENO: result: $ZIP" >&5
7787 echo "${ECHO_T}$ZIP" >&6; }
7789 { echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6; }
7794 for ac_prog in ocamlc
7796 # Extract the first word of "$ac_prog", so it can be a program name with args.
7797 set dummy $ac_prog; ac_word=$2
7798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800 if test "${ac_cv_path_OCAMLC+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 OCAMLC=$ac_cv_path_OCAMLC
7827 if test -n "$OCAMLC"; then
7828 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7829 echo "${ECHO_T}$OCAMLC" >&6; }
7831 { echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6; }
7836 test -n "$OCAMLC" && break
7839 for ac_prog in ocamlopt
7841 # Extract the first word of "$ac_prog", so it can be a program name with args.
7842 set dummy $ac_prog; ac_word=$2
7843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7845 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7860 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 OCAMLOPT=$ac_cv_path_OCAMLOPT
7872 if test -n "$OCAMLOPT"; then
7873 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7874 echo "${ECHO_T}$OCAMLOPT" >&6; }
7876 { echo "$as_me:$LINENO: result: no" >&5
7877 echo "${ECHO_T}no" >&6; }
7881 test -n "$OCAMLOPT" && break
7884 for ac_prog in ocamldep
7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
7887 set dummy $ac_prog; ac_word=$2
7888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7890 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 OCAMLDEP=$ac_cv_path_OCAMLDEP
7917 if test -n "$OCAMLDEP"; then
7918 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7919 echo "${ECHO_T}$OCAMLDEP" >&6; }
7921 { echo "$as_me:$LINENO: result: no" >&5
7922 echo "${ECHO_T}no" >&6; }
7926 test -n "$OCAMLDEP" && break
7929 for ac_prog in ocamldoc
7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
7932 set dummy $ac_prog; ac_word=$2
7933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7935 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 OCAMLDOC=$ac_cv_path_OCAMLDOC
7962 if test -n "$OCAMLDOC"; then
7963 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7964 echo "${ECHO_T}$OCAMLDOC" >&6; }
7966 { echo "$as_me:$LINENO: result: no" >&5
7967 echo "${ECHO_T}no" >&6; }
7971 test -n "$OCAMLDOC" && break
7974 for ac_prog in gas as
7976 # Extract the first word of "$ac_prog", so it can be a program name with args.
7977 set dummy $ac_prog; ac_word=$2
7978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7980 if test "${ac_cv_path_GAS+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 if test -n "$GAS"; then
8008 { echo "$as_me:$LINENO: result: $GAS" >&5
8009 echo "${ECHO_T}$GAS" >&6; }
8011 { echo "$as_me:$LINENO: result: no" >&5
8012 echo "${ECHO_T}no" >&6; }
8016 test -n "$GAS" && break
8020 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8021 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8022 if test "${llvm_cv_link_use_r+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 ac_cpp='$CPP $CPPFLAGS'
8027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8032 CFLAGS="$CFLAGS -Wl,-R."
8033 cat >conftest.$ac_ext <<_ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8043 int main() { return 0; }
8048 rm -f conftest.$ac_objext conftest$ac_exeext
8049 if { (ac_try="$ac_link"
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_link") 2>conftest.er1
8057 grep -v '^ *+' conftest.er1 >conftest.err
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8082 llvm_cv_link_use_r=yes
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 llvm_cv_link_use_r=no
8090 rm -f core conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
8094 ac_cpp='$CPP $CPPFLAGS'
8095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8101 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8102 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8103 if test "$llvm_cv_link_use_r" = yes ; then
8105 cat >>confdefs.h <<\_ACEOF
8106 #define HAVE_LINK_R 1
8112 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8113 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8114 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8135 int main() { return 0; }
8140 rm -f conftest.$ac_objext conftest$ac_exeext
8141 if { (ac_try="$ac_link"
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_link") 2>conftest.er1
8149 grep -v '^ *+' conftest.er1 >conftest.err
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_try") 2>&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 llvm_cv_link_use_export_dynamic=yes
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 llvm_cv_link_use_export_dynamic=no
8182 rm -f core conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8186 ac_cpp='$CPP $CPPFLAGS'
8187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8193 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8194 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8195 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8197 cat >>confdefs.h <<\_ACEOF
8198 #define HAVE_LINK_EXPORT_DYNAMIC 1
8206 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8207 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8208 if test "${ac_cv_c_const+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8221 /* FIXME: Include the comments suggested by Paul. */
8223 /* Ultrix mips cc rejects this. */
8224 typedef int charset[2];
8226 /* SunOS 4.1.1 cc rejects this. */
8227 char const *const *ccp;
8229 /* NEC SVR4.0.2 mips cc rejects this. */
8230 struct point {int x, y;};
8231 static struct point const zero = {0,0};
8232 /* AIX XL C 1.02.0.0 rejects this.
8233 It does not let you subtract one const X* pointer from another in
8234 an arm of an if-expression whose if-part is not a constant
8236 const char *g = "string";
8237 ccp = &g + (g ? g-g : 0);
8238 /* HPUX 7.0 cc rejects these. */
8241 ccp = (char const *const *) p;
8242 { /* SCO 3.2v4 cc rejects this. */
8244 char const *s = 0 ? (char *) 0 : (char const *) 0;
8249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8251 const int *foo = &x[0];
8254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8255 typedef const int *iptr;
8259 { /* AIX XL C 1.02.0.0 rejects this saying
8260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8261 struct s { int j; const int *ap[3]; };
8262 struct s *b; b->j = 5;
8264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8268 return !x[0] && !zero.x;
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8320 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8321 if test $ac_cv_c_const = no; then
8323 cat >>confdefs.h <<\_ACEOF
8335 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8336 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8337 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8338 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 cat >conftest.$ac_ext <<_ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 #include <sys/types.h>
8360 rm -f conftest.$ac_objext
8361 if { (ac_try="$ac_compile"
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8375 { (case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_try") 2>&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest.$ac_objext'
8385 { (case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_try") 2>&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 eval "$as_ac_Header=yes"
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 eval "$as_ac_Header=no"
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 ac_res=`eval echo '${'$as_ac_Header'}'`
8405 { echo "$as_me:$LINENO: result: $ac_res" >&5
8406 echo "${ECHO_T}$ac_res" >&6; }
8407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8408 cat >>confdefs.h <<_ACEOF
8409 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8412 ac_header_dirent=$ac_hdr; break
8416 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8417 if test $ac_header_dirent = dirent.h; then
8418 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8419 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8420 if test "${ac_cv_search_opendir+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 ac_func_search_save_LIBS=$LIBS
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8431 /* Override any GCC internal prototype to avoid an error.
8432 Use char because int might match the return type of a GCC
8433 builtin and then its argument prototype would still apply. */
8446 for ac_lib in '' dir; do
8447 if test -z "$ac_lib"; then
8448 ac_res="none required"
8451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (ac_try="$ac_link"
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_link") 2>conftest.er1
8462 grep -v '^ *+' conftest.er1 >conftest.err
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8468 { (case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_try") 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest$ac_exeext'
8478 { (case "(($ac_try" in
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_try") 2>&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
8487 ac_cv_search_opendir=$ac_res
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8495 rm -f core conftest.err conftest.$ac_objext \
8497 if test "${ac_cv_search_opendir+set}" = set; then
8501 if test "${ac_cv_search_opendir+set}" = set; then
8504 ac_cv_search_opendir=no
8507 LIBS=$ac_func_search_save_LIBS
8509 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8510 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8511 ac_res=$ac_cv_search_opendir
8512 if test "$ac_res" != no; then
8513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8518 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8519 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8520 if test "${ac_cv_search_opendir+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 ac_func_search_save_LIBS=$LIBS
8524 cat >conftest.$ac_ext <<_ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8531 /* Override any GCC internal prototype to avoid an error.
8532 Use char because int might match the return type of a GCC
8533 builtin and then its argument prototype would still apply. */
8546 for ac_lib in '' x; do
8547 if test -z "$ac_lib"; then
8548 ac_res="none required"
8551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (ac_try="$ac_link"
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_link") 2>conftest.er1
8562 grep -v '^ *+' conftest.er1 >conftest.err
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8568 { (case "(($ac_try" in
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_try") 2>&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try='test -s conftest$ac_exeext'
8578 { (case "(($ac_try" in
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583 (eval "$ac_try") 2>&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8587 ac_cv_search_opendir=$ac_res
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8595 rm -f core conftest.err conftest.$ac_objext \
8597 if test "${ac_cv_search_opendir+set}" = set; then
8601 if test "${ac_cv_search_opendir+set}" = set; then
8604 ac_cv_search_opendir=no
8607 LIBS=$ac_func_search_save_LIBS
8609 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8610 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8611 ac_res=$ac_cv_search_opendir
8612 if test "$ac_res" != no; then
8613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8620 for ac_header in dlfcn.h
8622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 ac_res=`eval echo '${'$as_ac_Header'}'`
8630 { echo "$as_me:$LINENO: result: $ac_res" >&5
8631 echo "${ECHO_T}$ac_res" >&6; }
8633 # Is the header compilable?
8634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8636 cat >conftest.$ac_ext <<_ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 #include <$ac_header>
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_compile") 2>conftest.er1
8654 grep -v '^ *+' conftest.er1 >conftest.err
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8660 { (case "(($ac_try" in
8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665 (eval "$ac_try") 2>&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; } &&
8669 { ac_try='test -s conftest.$ac_objext'
8670 { (case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_try") 2>&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
8679 ac_header_compiler=yes
8681 echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 ac_header_compiler=no
8687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8689 echo "${ECHO_T}$ac_header_compiler" >&6; }
8691 # Is the header present?
8692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8694 cat >conftest.$ac_ext <<_ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700 #include <$ac_header>
8702 if { (ac_try="$ac_cpp conftest.$ac_ext"
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8710 grep -v '^ *+' conftest.er1 >conftest.err
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } >/dev/null; then
8715 if test -s conftest.err; then
8716 ac_cpp_err=$ac_c_preproc_warn_flag
8717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8724 if test -z "$ac_cpp_err"; then
8725 ac_header_preproc=yes
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8730 ac_header_preproc=no
8733 rm -f conftest.err conftest.$ac_ext
8734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8735 echo "${ECHO_T}$ac_header_preproc" >&6; }
8737 # So? What about this header?
8738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8744 ac_header_preproc=yes
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8760 ## ----------------------------------- ##
8761 ## Report this to llvmbugs@cs.uiuc.edu ##
8762 ## ----------------------------------- ##
8764 ) | sed "s/^/$as_me: WARNING: /" >&2
8767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 eval "$as_ac_Header=\$ac_header_preproc"
8774 ac_res=`eval echo '${'$as_ac_Header'}'`
8775 { echo "$as_me:$LINENO: result: $ac_res" >&5
8776 echo "${ECHO_T}$ac_res" >&6; }
8779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8780 cat >>confdefs.h <<_ACEOF
8781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788 # Check whether --enable-ltdl-install was given.
8789 if test "${enable_ltdl_install+set}" = set; then
8790 enableval=$enable_ltdl_install;
8796 if test x"${enable_ltdl_install-no}" != xno; then
8798 INSTALL_LTDL_FALSE='#'
8800 INSTALL_LTDL_TRUE='#'
8806 if test x"${enable_ltdl_convenience-no}" != xno; then
8807 CONVENIENCE_LTDL_TRUE=
8808 CONVENIENCE_LTDL_FALSE='#'
8810 CONVENIENCE_LTDL_TRUE='#'
8811 CONVENIENCE_LTDL_FALSE=
8815 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8816 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8818 libname_spec='lib$name'
8826 shlibpath_overrides_runpath=unknown
8828 dynamic_linker="$host_os ld.so"
8829 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8830 if test "$GCC" = yes; then
8831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8832 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8833 # if the path contains ";" then we assume it to be the separator
8834 # otherwise default to the standard path separator (i.e. ":") - it is
8835 # assumed that no part of a normal pathname contains ";" but that should
8836 # okay in the real world where ";" in dirpaths is itself problematic.
8837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8842 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8844 need_lib_prefix=unknown
8845 hardcode_into_libs=no
8847 # when you set need_version to no, make sure it does not cause -set_version
8848 # flags to be left without arguments
8849 need_version=unknown
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8855 shlibpath_var=LIBPATH
8857 # AIX 3 has no versioning support, so we append a major version to the name.
8858 soname_spec='${libname}${release}${shared_ext}$major'
8865 hardcode_into_libs=yes
8866 if test "$host_cpu" = ia64; then
8867 # AIX 5 supports IA64
8868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8869 shlibpath_var=LD_LIBRARY_PATH
8871 # With GCC up to 2.95.x, collect2 would create an import file
8872 # for dependence libraries. The import file would start with
8873 # the line `#! .'. This would cause the generated library to
8874 # depend on `.', always an invalid library. This was fixed in
8875 # development snapshots of GCC prior to 3.0.
8877 aix4 | aix4.[01] | aix4.[01].*)
8878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8880 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8888 # soname into executable. Probably we can add versioning support to
8889 # collect2, so additional links can be useful in future.
8890 if test "$aix_use_runtimelinking" = yes; then
8891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8892 # instead of lib<name>.a to let people know that these are not
8893 # typical AIX shared libraries.
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 # We preserve .a as extension for shared libraries through AIX4.2
8897 # and later when we are not doing run time linking.
8898 library_names_spec='${libname}${release}.a $libname.a'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8901 shlibpath_var=LIBPATH
8906 library_names_spec='$libname.ixlibrary $libname.a'
8907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8908 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'
8912 library_names_spec='${libname}${shared_ext}'
8913 dynamic_linker="$host_os ld.so"
8914 shlibpath_var=LIBRARY_PATH
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8926 # the default ld.so.conf also contains /usr/contrib/lib and
8927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8928 # libtool to hard-code these into programs
8931 cygwin* | mingw* | pw32*)
8932 version_type=windows
8937 case $GCC,$host_os in
8938 yes,cygwin* | yes,mingw* | yes,pw32*)
8939 library_names_spec='$libname.dll.a'
8940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8941 postinstall_cmds='base_file=`basename \${file}`~
8942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8943 dldir=$destdir/`dirname \$dlpath`~
8944 test -d \$dldir || mkdir -p \$dldir~
8945 $install_prog $dir/$dlname \$dldir/$dlname~
8946 chmod a+x \$dldir/$dlname'
8947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8948 dlpath=$dir/\$dldll~
8950 shlibpath_overrides_runpath=yes
8954 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8955 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8956 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8959 # MinGW DLLs use traditional 'lib' prefix
8960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8962 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8963 # It is most probably a Windows format PATH printed by
8964 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8965 # path with ; separators, and with drive letters. We can handle the
8966 # drive letters (cygwin fileutils understands them), so leave them,
8967 # especially as we might pass files found there to a mingw objdump,
8968 # which wouldn't understand a cygwinified path. Ahh.
8969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8975 # pw32 DLLs use 'pw' prefix rather than 'lib'
8976 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8982 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8985 dynamic_linker='Win32 ld.exe'
8986 # FIXME: first we should search . and the directory the executable is in
8990 darwin* | rhapsody*)
8991 dynamic_linker="$host_os dyld"
8995 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8996 soname_spec='${libname}${release}${major}$shared_ext'
8997 shlibpath_overrides_runpath=yes
8998 shlibpath_var=DYLD_LIBRARY_PATH
8999 shrext_cmds='.dylib'
9000 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9001 if test "$GCC" = yes; then
9002 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"`
9004 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=no
9030 hardcode_into_libs=yes
9031 dynamic_linker='GNU ld.so'
9034 freebsd* | dragonfly*)
9035 # DragonFly does not have aout. When/if they implement a new
9036 # versioning mechanism, adjust this.
9037 if test -x /usr/bin/objformat; then
9038 objformat=`/usr/bin/objformat`
9041 freebsd[123]*) objformat=aout ;;
9045 version_type=freebsd-$objformat
9046 case $version_type in
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9057 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=yes
9062 freebsd3.[01]* | freebsdelf3.[01]*)
9063 shlibpath_overrides_runpath=yes
9064 hardcode_into_libs=yes
9066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9068 shlibpath_overrides_runpath=no
9069 hardcode_into_libs=yes
9071 freebsd*) # from 4.6 on
9072 shlibpath_overrides_runpath=yes
9073 hardcode_into_libs=yes
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 hardcode_into_libs=yes
9088 hpux9* | hpux10* | hpux11*)
9089 # Give a soname corresponding to the major version so that dld.sl refuses to
9090 # link against other versions.
9097 hardcode_into_libs=yes
9098 dynamic_linker="$host_os dld.so"
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 if test "X$HPUX_IA64_MODE" = X32; then
9104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9112 hardcode_into_libs=yes
9113 dynamic_linker="$host_os dld.sl"
9114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9123 dynamic_linker="$host_os dld.sl"
9124 shlibpath_var=SHLIB_PATH
9125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9130 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9131 postinstall_cmds='chmod 555 $lib'
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=no
9143 hardcode_into_libs=yes
9146 irix5* | irix6* | nonstopux*)
9148 nonstopux*) version_type=nonstopux ;;
9150 if test "$lt_cv_prog_gnu_ld" = yes; then
9158 soname_spec='${libname}${release}${shared_ext}$major'
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9161 irix5* | nonstopux*)
9165 case $LD in # libtool.m4 will add one of these switches to LD
9166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9167 libsuff= shlibsuff= libmagic=32-bit;;
9168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9169 libsuff=32 shlibsuff=N32 libmagic=N32;;
9170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9171 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9172 *) libsuff= shlibsuff= libmagic=never-match;;
9176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9177 shlibpath_overrides_runpath=no
9178 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9179 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9180 hardcode_into_libs=yes
9183 # No shared lib support for Linux oldld, aout, or coff.
9184 linux*oldld* | linux*aout* | linux*coff*)
9188 # This must be Linux ELF.
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 shlibpath_overrides_runpath=no
9198 # This implies no fast_install, which is unacceptable.
9199 # Some rework will be needed to allow for fast_install
9200 # before this can be enabled.
9201 hardcode_into_libs=yes
9203 # Append ld.so.conf contents to the search path
9204 if test -f /etc/ld.so.conf; then
9205 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' ' '`
9206 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9209 # We used to test for /lib/ld.so.1 and disable shared libraries on
9210 # powerpc, because MkLinux only supported shared libraries with the
9211 # GNU dynamic linker. Since this was broken with cross compilers,
9212 # most powerpc-linux boxes support dynamic linking these days and
9213 # people can always --disable-shared, the test was removed, and we
9214 # assume the GNU/Linux dynamic linker is in use.
9215 dynamic_linker='GNU/Linux ld.so'
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=no
9226 hardcode_into_libs=yes
9227 dynamic_linker='GNU ld.so'
9234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9237 dynamic_linker='NetBSD (a.out) ld.so'
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 dynamic_linker='NetBSD ld.elf_so'
9243 shlibpath_var=LD_LIBRARY_PATH
9244 shlibpath_overrides_runpath=yes
9245 hardcode_into_libs=yes
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 shlibpath_overrides_runpath=yes
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=yes
9267 sys_lib_dlsearch_path_spec="/usr/lib"
9269 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9271 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9272 *) need_version=no ;;
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9279 openbsd2.[89] | openbsd2.[89].*)
9280 shlibpath_overrides_runpath=no
9283 shlibpath_overrides_runpath=yes
9287 shlibpath_overrides_runpath=yes
9292 libname_spec='$name'
9295 library_names_spec='$libname${shared_ext} $libname.a'
9296 dynamic_linker='OS/2 ld.exe'
9297 shlibpath_var=LIBPATH
9300 osf3* | osf4* | osf5*)
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9308 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=yes
9319 hardcode_into_libs=yes
9320 # ldd complains unless libraries are executable
9321 postinstall_cmds='chmod +x $lib'
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=yes
9330 if test "$with_gnu_ld" = yes; then
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 case $host_vendor in
9343 shlibpath_overrides_runpath=no
9345 export_dynamic_flag_spec='${wl}-Blargedynsym'
9346 runpath_var=LD_RUN_PATH
9354 shlibpath_overrides_runpath=no
9355 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9361 if test -d /usr/nec ;then
9363 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9364 soname_spec='$libname${shared_ext}.$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9370 version_type=freebsd-elf
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 hardcode_into_libs=yes
9377 if test "$with_gnu_ld" = yes; then
9378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9379 shlibpath_overrides_runpath=no
9381 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9382 shlibpath_overrides_runpath=yes
9385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9389 sys_lib_dlsearch_path_spec='/usr/lib'
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 shlibpath_var=LD_LIBRARY_PATH
9403 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9404 echo "${ECHO_T}$dynamic_linker" >&6; }
9405 test "$dynamic_linker" = no && can_build_shared=no
9407 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9408 if test "$GCC" = yes; then
9409 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9413 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9414 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9415 if test "${libltdl_cv_shlibext+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 eval libltdl_cv_shlibext=$shrext_cmds
9423 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9424 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9425 if test -n "$libltdl_cv_shlibext"; then
9427 cat >>confdefs.h <<_ACEOF
9428 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9434 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9435 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9436 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 libltdl_cv_shlibpath_var="$shlibpath_var"
9441 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9442 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9443 if test -n "$libltdl_cv_shlibpath_var"; then
9445 cat >>confdefs.h <<_ACEOF
9446 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9452 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9453 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9454 if test "${libltdl_cv_sys_search_path+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9459 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9460 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9461 if test -n "$libltdl_cv_sys_search_path"; then
9463 for dir in $libltdl_cv_sys_search_path; do
9464 if test -z "$sys_search_path"; then
9465 sys_search_path="$dir"
9467 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9471 cat >>confdefs.h <<_ACEOF
9472 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9477 { echo "$as_me:$LINENO: checking for objdir" >&5
9478 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9479 if test "${libltdl_cv_objdir+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 libltdl_cv_objdir="$objdir"
9483 if test -n "$objdir"; then
9486 rm -f .libs 2>/dev/null
9487 mkdir .libs 2>/dev/null
9488 if test -d .libs; then
9489 libltdl_cv_objdir=.libs
9491 # MS-DOS does not allow filenames that begin with a dot.
9492 libltdl_cv_objdir=_libs
9494 rmdir .libs 2>/dev/null
9498 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9499 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9501 cat >>confdefs.h <<_ACEOF
9502 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9510 # Check for command to grab the raw symbol name followed by C symbol from nm.
9511 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9512 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9513 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 # These are sane defaults that work on at least a few old systems.
9518 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9520 # Character class describing NM global symbol codes.
9521 symcode='[BCDEGRST]'
9523 # Regexp to match symbols that can be accessed directly from C.
9524 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9526 # Transform an extracted symbol line into a proper C declaration
9527 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9529 # Transform an extracted symbol line into symbol name and symbol address
9530 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'"
9532 # Define system-specific variables.
9537 cygwin* | mingw* | pw32*)
9538 symcode='[ABCDGISTW]'
9540 hpux*) # Its linker distinguishes data from code symbols
9541 if test "$host_cpu" = ia64; then
9542 symcode='[ABCDEGRST]'
9544 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9545 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'"
9548 if test "$host_cpu" = ia64; then
9549 symcode='[ABCDGIRSTW]'
9550 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9551 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9555 symcode='[BCDEGRST]'
9558 symcode='[BCDEGQRST]'
9569 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9577 # Handle CRLF in mingw tool chain
9581 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9585 # If we're using GNU nm, then use its standard symbol codes.
9586 case `$NM -V 2>&1` in
9587 *GNU* | *'with BFD'*)
9588 symcode='[ABCDGIRSTW]' ;;
9591 # Try without a prefix undercore, then with it.
9592 for ac_symprfx in "" "_"; do
9594 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9595 symxfrm="\\1 $ac_symprfx\\2 \\2"
9597 # Write the raw and C identifiers.
9598 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9600 # Check to see that the pipe works correctly.
9604 cat > conftest.$ac_ext <<EOF
9609 void nm_test_func(){}
9613 int main(){nm_test_var='a';nm_test_func();return(0);}
9616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9617 (eval $ac_compile) 2>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; then
9621 # Now try to grab the symbols.
9623 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9624 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } && test -s "$nlist"; then
9628 # Try sorting and uniquifying the output.
9629 if sort "$nlist" | uniq > "$nlist"T; then
9630 mv -f "$nlist"T "$nlist"
9635 # Make sure that we snagged all the symbols we need.
9636 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9637 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9638 cat <<EOF > conftest.$ac_ext
9644 # Now generate the symbol file.
9645 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9647 cat <<EOF >> conftest.$ac_ext
9648 #if defined (__STDC__) && __STDC__
9649 # define lt_ptr_t void *
9651 # define lt_ptr_t char *
9655 /* The mapping between symbol names and symbols. */
9660 lt_preloaded_symbols[] =
9663 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9664 cat <<\EOF >> conftest.$ac_ext
9672 # Now try linking the two files.
9673 mv conftest.$ac_objext conftstm.$ac_objext
9674 lt_save_LIBS="$LIBS"
9675 lt_save_CFLAGS="$CFLAGS"
9676 LIBS="conftstm.$ac_objext"
9677 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9685 LIBS="$lt_save_LIBS"
9686 CFLAGS="$lt_save_CFLAGS"
9688 echo "cannot find nm_test_func in $nlist" >&5
9691 echo "cannot find nm_test_var in $nlist" >&5
9694 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9697 echo "$progname: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9700 rm -f conftest* conftst*
9702 # Do not use the global_symbol_pipe unless it works.
9703 if test "$pipe_works" = yes; then
9706 lt_cv_sys_global_symbol_pipe=
9712 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9713 lt_cv_sys_global_symbol_to_cdecl=
9715 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9716 { echo "$as_me:$LINENO: result: failed" >&5
9717 echo "${ECHO_T}failed" >&6; }
9719 { echo "$as_me:$LINENO: result: ok" >&5
9720 echo "${ECHO_T}ok" >&6; }
9724 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9725 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9726 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9730 libltdl_cv_preloaded_symbols=yes
9732 libltdl_cv_preloaded_symbols=no
9736 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9737 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9738 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9740 cat >>confdefs.h <<\_ACEOF
9741 #define HAVE_PRELOADED_SYMBOLS 1
9749 ac_cpp='$CPP $CPPFLAGS'
9750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9755 { echo "$as_me:$LINENO: checking for shl_load" >&5
9756 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9757 if test "${ac_cv_func_shl_load+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 cat >conftest.$ac_ext <<_ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9768 #define shl_load innocuous_shl_load
9770 /* System header to define __stub macros and hopefully few prototypes,
9771 which can conflict with char shl_load (); below.
9772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9773 <limits.h> exists even on freestanding compilers. */
9776 # include <limits.h>
9778 # include <assert.h>
9783 /* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
9790 /* The GNU C library defines this for functions which it implements
9791 to always fail with ENOSYS. Some functions are actually named
9792 something starting with __ and the normal name is an alias. */
9793 #if defined __stub_shl_load || defined __stub___shl_load
9805 rm -f conftest.$ac_objext conftest$ac_exeext
9806 if { (ac_try="$ac_link"
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9820 { (case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_try") 2>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; } &&
9829 { ac_try='test -s conftest$ac_exeext'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_func_shl_load=yes
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ac_cv_func_shl_load=no
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9850 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9851 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9852 if test $ac_cv_func_shl_load = yes; then
9854 cat >>confdefs.h <<\_ACEOF
9855 #define HAVE_SHL_LOAD 1
9859 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9860 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9861 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 ac_check_lib_save_LIBS=$LIBS
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest$ac_exeext'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_lib_dld_shl_load=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_cv_lib_dld_shl_load=no
9930 rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9934 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9935 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9936 if test $ac_cv_lib_dld_shl_load = yes; then
9938 cat >>confdefs.h <<\_ACEOF
9939 #define HAVE_SHL_LOAD 1
9942 LIBADD_DL="$LIBADD_DL -ldld"
9944 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9945 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9946 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 ac_check_lib_save_LIBS=$LIBS
9951 cat >conftest.$ac_ext <<_ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9958 /* Override any GCC internal prototype to avoid an error.
9959 Use char because int might match the return type of a GCC
9960 builtin and then its argument prototype would still apply. */
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (ac_try="$ac_link"
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_link") 2>conftest.er1
9982 grep -v '^ *+' conftest.er1 >conftest.err
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9988 { (case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_try") 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_lib_dl_dlopen=yes
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_cv_lib_dl_dlopen=no
10015 rm -f core conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10017 LIBS=$ac_check_lib_save_LIBS
10019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10020 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10021 if test $ac_cv_lib_dl_dlopen = yes; then
10023 cat >>confdefs.h <<\_ACEOF
10024 #define HAVE_LIBDL 1
10027 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10036 # include <dlfcn.h>
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_link") 2>conftest.er1
10056 grep -v '^ *+' conftest.er1 >conftest.err
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10062 { (case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_try") 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10082 cat >>confdefs.h <<\_ACEOF
10083 #define HAVE_LIBDL 1
10085 libltdl_cv_func_dlopen="yes"
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10091 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-lsvld $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10104 /* Override any GCC internal prototype to avoid an error.
10105 Use char because int might match the return type of a GCC
10106 builtin and then its argument prototype would still apply. */
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>conftest.er1
10128 grep -v '^ *+' conftest.er1 >conftest.err
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } &&
10133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; } &&
10143 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_lib_svld_dlopen=yes
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 ac_cv_lib_svld_dlopen=no
10161 rm -f core conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10165 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10166 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10167 if test $ac_cv_lib_svld_dlopen = yes; then
10169 cat >>confdefs.h <<\_ACEOF
10170 #define HAVE_LIBDL 1
10173 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10175 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10176 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10177 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 ac_check_lib_save_LIBS=$LIBS
10182 cat >conftest.$ac_ext <<_ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10189 /* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
10199 return dld_link ();
10204 rm -f conftest.$ac_objext conftest$ac_exeext
10205 if { (ac_try="$ac_link"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_link") 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest$ac_exeext'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_lib_dld_dld_link=yes
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10243 ac_cv_lib_dld_dld_link=no
10246 rm -f core conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10248 LIBS=$ac_check_lib_save_LIBS
10250 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10251 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10252 if test $ac_cv_lib_dld_dld_link = yes; then
10254 cat >>confdefs.h <<\_ACEOF
10258 LIBADD_DL="$LIBADD_DL -ldld"
10260 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10261 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10262 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 cat >conftest.$ac_ext <<_ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10273 #define _dyld_func_lookup innocuous__dyld_func_lookup
10275 /* System header to define __stub macros and hopefully few prototypes,
10276 which can conflict with char _dyld_func_lookup (); below.
10277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10278 <limits.h> exists even on freestanding compilers. */
10281 # include <limits.h>
10283 # include <assert.h>
10286 #undef _dyld_func_lookup
10288 /* Override any GCC internal prototype to avoid an error.
10289 Use char because int might match the return type of a GCC
10290 builtin and then its argument prototype would still apply. */
10294 char _dyld_func_lookup ();
10295 /* The GNU C library defines this for functions which it implements
10296 to always fail with ENOSYS. Some functions are actually named
10297 something starting with __ and the normal name is an alias. */
10298 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10305 return _dyld_func_lookup ();
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
10319 grep -v '^ *+' conftest.er1 >conftest.err
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_try") 2>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 ac_cv_func__dyld_func_lookup=yes
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10349 ac_cv_func__dyld_func_lookup=no
10352 rm -f core conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10355 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10356 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10357 if test $ac_cv_func__dyld_func_lookup = yes; then
10359 cat >>confdefs.h <<\_ACEOF
10360 #define HAVE_DYLD 1
10374 rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10386 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10388 lt_save_LIBS="$LIBS"
10389 LIBS="$LIBS $LIBADD_DL"
10391 for ac_func in dlerror
10393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 cat >conftest.$ac_ext <<_ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10407 #define $ac_func innocuous_$ac_func
10409 /* System header to define __stub macros and hopefully few prototypes,
10410 which can conflict with char $ac_func (); below.
10411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10412 <limits.h> exists even on freestanding compilers. */
10415 # include <limits.h>
10417 # include <assert.h>
10422 /* Override any GCC internal prototype to avoid an error.
10423 Use char because int might match the return type of a GCC
10424 builtin and then its argument prototype would still apply. */
10429 /* The GNU C library defines this for functions which it implements
10430 to always fail with ENOSYS. Some functions are actually named
10431 something starting with __ and the normal name is an alias. */
10432 #if defined __stub_$ac_func || defined __stub___$ac_func
10439 return $ac_func ();
10444 rm -f conftest.$ac_objext conftest$ac_exeext
10445 if { (ac_try="$ac_link"
10446 case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_link") 2>conftest.er1
10453 grep -v '^ *+' conftest.er1 >conftest.err
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } &&
10458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10459 { (case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_try") 2>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try='test -s conftest$ac_exeext'
10469 { (case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_try") 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; }; then
10478 eval "$as_ac_var=yes"
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 eval "$as_ac_var=no"
10486 rm -f core conftest.err conftest.$ac_objext \
10487 conftest$ac_exeext conftest.$ac_ext
10489 ac_res=`eval echo '${'$as_ac_var'}'`
10490 { echo "$as_me:$LINENO: result: $ac_res" >&5
10491 echo "${ECHO_T}$ac_res" >&6; }
10492 if test `eval echo '${'$as_ac_var'}'` = yes; then
10493 cat >>confdefs.h <<_ACEOF
10494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10500 LIBS="$lt_save_LIBS"
10503 ac_cpp='$CPP $CPPFLAGS'
10504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10510 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10511 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10512 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10515 ac_cv_sys_symbol_underscore=no
10516 cat > conftest.$ac_ext <<EOF
10517 void nm_test_func(){}
10518 int main(){nm_test_func;return 0;}
10520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10521 (eval $ac_compile) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; then
10525 # Now try to grab the symbols.
10526 ac_nlist=conftest.nm
10527 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10528 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && test -s "$ac_nlist"; then
10532 # See whether the symbols have a leading underscore.
10533 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10534 ac_cv_sys_symbol_underscore=yes
10536 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10539 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10543 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10546 echo "configure: failed program was:" >&5
10552 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10553 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10556 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10557 if test x"$libltdl_cv_func_dlopen" = xyes ||
10558 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10559 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10560 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10561 if test "${libltdl_cv_need_uscore+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 libltdl_cv_need_uscore=unknown
10566 LIBS="$LIBS $LIBADD_DL"
10567 if test "$cross_compiling" = yes; then :
10568 libltdl_cv_need_uscore=cross
10570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10571 lt_status=$lt_dlunknown
10572 cat > conftest.$ac_ext <<EOF
10573 #line 10573 "configure"
10574 #include "confdefs.h"
10583 # define LT_DLGLOBAL RTLD_GLOBAL
10586 # define LT_DLGLOBAL DL_GLOBAL
10588 # define LT_DLGLOBAL 0
10592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10593 find out it does not work in some platform. */
10594 #ifndef LT_DLLAZY_OR_NOW
10596 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10599 # define LT_DLLAZY_OR_NOW DL_LAZY
10602 # define LT_DLLAZY_OR_NOW RTLD_NOW
10605 # define LT_DLLAZY_OR_NOW DL_NOW
10607 # define LT_DLLAZY_OR_NOW 0
10615 extern "C" void exit (int);
10618 void fnord() { int i=42;}
10621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10622 int status = $lt_dlunknown;
10626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10628 /* dlclose (self); */
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10641 (./conftest; exit; ) >&5 2>/dev/null
10643 case x$lt_status in
10644 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10645 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10646 x$lt_dlunknown|x*) ;;
10649 # compilation failed
10658 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10659 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10663 if test x"$libltdl_cv_need_uscore" = xyes; then
10665 cat >>confdefs.h <<\_ACEOF
10666 #define NEED_USCORE 1
10672 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10673 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10674 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 # PORTME does your system automatically load deplibs for dlopen?
10678 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10679 # For now, we just catch OSes we know something about -- in the
10680 # future, we'll try test this programmatically.
10681 libltdl_cv_sys_dlopen_deplibs=unknown
10683 aix3*|aix4.1.*|aix4.2.*)
10684 # Unknown whether this is true for these versions of AIX, but
10685 # we want this `case' here to explicitly catch those versions.
10686 libltdl_cv_sys_dlopen_deplibs=unknown
10689 libltdl_cv_sys_dlopen_deplibs=yes
10692 # Assuming the user has installed a libdl from somewhere, this is true
10693 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10694 libltdl_cv_sys_dlopen_deplibs=yes
10696 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10697 # GNU and its variants, using gnu ld.so (Glibc)
10698 libltdl_cv_sys_dlopen_deplibs=yes
10701 libltdl_cv_sys_dlopen_deplibs=yes
10704 libltdl_cv_sys_dlopen_deplibs=yes
10706 irix[12345]*|irix6.[01]*)
10707 # Catch all versions of IRIX before 6.2, and indicate that we don't
10708 # know how it worked for any of those versions.
10709 libltdl_cv_sys_dlopen_deplibs=unknown
10712 # The case above catches anything before 6.2, and it's known that
10713 # at 6.2 and later dlopen does load deplibs.
10714 libltdl_cv_sys_dlopen_deplibs=yes
10717 libltdl_cv_sys_dlopen_deplibs=yes
10720 libltdl_cv_sys_dlopen_deplibs=yes
10723 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10724 # it did *not* use an RPATH in a shared library to find objects the
10725 # library depends on, so we explictly say `no'.
10726 libltdl_cv_sys_dlopen_deplibs=no
10728 osf5.0|osf5.0a|osf5.1)
10729 # dlopen *does* load deplibs and with the right loader patch applied
10730 # it even uses RPATH in a shared library to search for shared objects
10731 # that the library depends on, but there's no easy way to know if that
10732 # patch is installed. Since this is the case, all we can really
10733 # say is unknown -- it depends on the patch being installed. If
10734 # it is, this changes to `yes'. Without it, it would be `no'.
10735 libltdl_cv_sys_dlopen_deplibs=unknown
10738 # the two cases above should catch all versions of osf <= 5.1. Read
10739 # the comments above for what we know about them.
10740 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10741 # is used to find them so we can finally say `yes'.
10742 libltdl_cv_sys_dlopen_deplibs=yes
10745 libltdl_cv_sys_dlopen_deplibs=yes
10747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10748 libltdl_cv_sys_dlopen_deplibs=yes
10753 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10754 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10755 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10757 cat >>confdefs.h <<\_ACEOF
10758 #define LTDL_DLOPEN_DEPLIBS 1
10764 for ac_header in argz.h
10766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 ac_res=`eval echo '${'$as_ac_Header'}'`
10774 { echo "$as_me:$LINENO: result: $ac_res" >&5
10775 echo "${ECHO_T}$ac_res" >&6; }
10777 # Is the header compilable?
10778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10780 cat >conftest.$ac_ext <<_ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10786 $ac_includes_default
10787 #include <$ac_header>
10789 rm -f conftest.$ac_objext
10790 if { (ac_try="$ac_compile"
10791 case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_compile") 2>conftest.er1
10798 grep -v '^ *+' conftest.er1 >conftest.err
10800 cat conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } &&
10803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10804 { (case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_try") 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; } &&
10813 { ac_try='test -s conftest.$ac_objext'
10814 { (case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_try") 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 ac_header_compiler=yes
10825 echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10828 ac_header_compiler=no
10831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10833 echo "${ECHO_T}$ac_header_compiler" >&6; }
10835 # Is the header present?
10836 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 #include <$ac_header>
10846 if { (ac_try="$ac_cpp conftest.$ac_ext"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10854 grep -v '^ *+' conftest.er1 >conftest.err
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } >/dev/null; then
10859 if test -s conftest.err; then
10860 ac_cpp_err=$ac_c_preproc_warn_flag
10861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10868 if test -z "$ac_cpp_err"; then
10869 ac_header_preproc=yes
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10874 ac_header_preproc=no
10877 rm -f conftest.err conftest.$ac_ext
10878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10879 echo "${ECHO_T}$ac_header_preproc" >&6; }
10881 # So? What about this header?
10882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10888 ac_header_preproc=yes
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10904 ## ----------------------------------- ##
10905 ## Report this to llvmbugs@cs.uiuc.edu ##
10906 ## ----------------------------------- ##
10908 ) | sed "s/^/$as_me: WARNING: /" >&2
10911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 eval "$as_ac_Header=\$ac_header_preproc"
10918 ac_res=`eval echo '${'$as_ac_Header'}'`
10919 { echo "$as_me:$LINENO: result: $ac_res" >&5
10920 echo "${ECHO_T}$ac_res" >&6; }
10923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10933 { echo "$as_me:$LINENO: checking for error_t" >&5
10934 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10935 if test "${ac_cv_type_error_t+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10948 typedef error_t ac__type_new_;
10952 if ((ac__type_new_ *) 0)
10954 if (sizeof (ac__type_new_))
10960 rm -f conftest.$ac_objext
10961 if { (ac_try="$ac_compile"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_compile") 2>conftest.er1
10969 grep -v '^ *+' conftest.er1 >conftest.err
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
10974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10975 { (case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_try") 2>&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try='test -s conftest.$ac_objext'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
10994 ac_cv_type_error_t=yes
10996 echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10999 ac_cv_type_error_t=no
11002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11004 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11005 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11006 if test $ac_cv_type_error_t = yes; then
11008 cat >>confdefs.h <<_ACEOF
11009 #define HAVE_ERROR_T 1
11015 cat >>confdefs.h <<\_ACEOF
11016 #define error_t int
11027 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 cat >conftest.$ac_ext <<_ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11043 #define $ac_func innocuous_$ac_func
11045 /* System header to define __stub macros and hopefully few prototypes,
11046 which can conflict with char $ac_func (); below.
11047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11048 <limits.h> exists even on freestanding compilers. */
11051 # include <limits.h>
11053 # include <assert.h>
11058 /* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11065 /* The GNU C library defines this for functions which it implements
11066 to always fail with ENOSYS. Some functions are actually named
11067 something starting with __ and the normal name is an alias. */
11068 #if defined __stub_$ac_func || defined __stub___$ac_func
11075 return $ac_func ();
11080 rm -f conftest.$ac_objext conftest$ac_exeext
11081 if { (ac_try="$ac_link"
11082 case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_link") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest$ac_exeext'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 eval "$as_ac_var=yes"
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 eval "$as_ac_var=no"
11122 rm -f core conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11125 ac_res=`eval echo '${'$as_ac_var'}'`
11126 { echo "$as_me:$LINENO: result: $ac_res" >&5
11127 echo "${ECHO_T}$ac_res" >&6; }
11128 if test `eval echo '${'$as_ac_var'}'` = yes; then
11129 cat >>confdefs.h <<_ACEOF
11130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11163 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 ac_res=`eval echo '${'$as_ac_Header'}'`
11174 { echo "$as_me:$LINENO: result: $ac_res" >&5
11175 echo "${ECHO_T}$ac_res" >&6; }
11177 # Is the header compilable?
11178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 $ac_includes_default
11187 #include <$ac_header>
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_compile") 2>conftest.er1
11198 grep -v '^ *+' conftest.er1 >conftest.err
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } &&
11203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11204 { (case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_try") 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; } &&
11213 { ac_try='test -s conftest.$ac_objext'
11214 { (case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_try") 2>&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; }; then
11223 ac_header_compiler=yes
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11228 ac_header_compiler=no
11231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11233 echo "${ECHO_T}$ac_header_compiler" >&6; }
11235 # Is the header present?
11236 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11238 cat >conftest.$ac_ext <<_ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 #include <$ac_header>
11246 if { (ac_try="$ac_cpp conftest.$ac_ext"
11247 case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11254 grep -v '^ *+' conftest.er1 >conftest.err
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } >/dev/null; then
11259 if test -s conftest.err; then
11260 ac_cpp_err=$ac_c_preproc_warn_flag
11261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11268 if test -z "$ac_cpp_err"; then
11269 ac_header_preproc=yes
11271 echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11274 ac_header_preproc=no
11277 rm -f conftest.err conftest.$ac_ext
11278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11279 echo "${ECHO_T}$ac_header_preproc" >&6; }
11281 # So? What about this header?
11282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11288 ac_header_preproc=yes
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11304 ## ----------------------------------- ##
11305 ## Report this to llvmbugs@cs.uiuc.edu ##
11306 ## ----------------------------------- ##
11308 ) | sed "s/^/$as_me: WARNING: /" >&2
11311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 eval "$as_ac_Header=\$ac_header_preproc"
11318 ac_res=`eval echo '${'$as_ac_Header'}'`
11319 { echo "$as_me:$LINENO: result: $ac_res" >&5
11320 echo "${ECHO_T}$ac_res" >&6; }
11323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11324 cat >>confdefs.h <<_ACEOF
11325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11336 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 ac_res=`eval echo '${'$as_ac_Header'}'`
11346 { echo "$as_me:$LINENO: result: $ac_res" >&5
11347 echo "${ECHO_T}$ac_res" >&6; }
11349 # Is the header compilable?
11350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11352 cat >conftest.$ac_ext <<_ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 $ac_includes_default
11359 #include <$ac_header>
11361 rm -f conftest.$ac_objext
11362 if { (ac_try="$ac_compile"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_compile") 2>conftest.er1
11370 grep -v '^ *+' conftest.er1 >conftest.err
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11376 { (case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_try") 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; } &&
11385 { ac_try='test -s conftest.$ac_objext'
11386 { (case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_try") 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_header_compiler=yes
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ac_header_compiler=no
11403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11405 echo "${ECHO_T}$ac_header_compiler" >&6; }
11407 # Is the header present?
11408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11410 cat >conftest.$ac_ext <<_ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 #include <$ac_header>
11418 if { (ac_try="$ac_cpp conftest.$ac_ext"
11419 case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11426 grep -v '^ *+' conftest.er1 >conftest.err
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } >/dev/null; then
11431 if test -s conftest.err; then
11432 ac_cpp_err=$ac_c_preproc_warn_flag
11433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11440 if test -z "$ac_cpp_err"; then
11441 ac_header_preproc=yes
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11446 ac_header_preproc=no
11449 rm -f conftest.err conftest.$ac_ext
11450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11451 echo "${ECHO_T}$ac_header_preproc" >&6; }
11453 # So? What about this header?
11454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11460 ac_header_preproc=yes
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11476 ## ----------------------------------- ##
11477 ## Report this to llvmbugs@cs.uiuc.edu ##
11478 ## ----------------------------------- ##
11480 ) | sed "s/^/$as_me: WARNING: /" >&2
11483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 eval "$as_ac_Header=\$ac_header_preproc"
11490 ac_res=`eval echo '${'$as_ac_Header'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11496 cat >>confdefs.h <<_ACEOF
11497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11506 for ac_header in string.h strings.h
11508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 ac_res=`eval echo '${'$as_ac_Header'}'`
11516 { echo "$as_me:$LINENO: result: $ac_res" >&5
11517 echo "${ECHO_T}$ac_res" >&6; }
11519 # Is the header compilable?
11520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11522 cat >conftest.$ac_ext <<_ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 $ac_includes_default
11529 #include <$ac_header>
11531 rm -f conftest.$ac_objext
11532 if { (ac_try="$ac_compile"
11533 case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_compile") 2>conftest.er1
11540 grep -v '^ *+' conftest.er1 >conftest.err
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } &&
11545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest.$ac_objext'
11556 { (case "(($ac_try" in
11557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558 *) ac_try_echo=$ac_try;;
11560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561 (eval "$ac_try") 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
11565 ac_header_compiler=yes
11567 echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11570 ac_header_compiler=no
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575 echo "${ECHO_T}$ac_header_compiler" >&6; }
11577 # Is the header present?
11578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11580 cat >conftest.$ac_ext <<_ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586 #include <$ac_header>
11588 if { (ac_try="$ac_cpp conftest.$ac_ext"
11589 case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11596 grep -v '^ *+' conftest.er1 >conftest.err
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } >/dev/null; then
11601 if test -s conftest.err; then
11602 ac_cpp_err=$ac_c_preproc_warn_flag
11603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11610 if test -z "$ac_cpp_err"; then
11611 ac_header_preproc=yes
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_header_preproc=no
11619 rm -f conftest.err conftest.$ac_ext
11620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11621 echo "${ECHO_T}$ac_header_preproc" >&6; }
11623 # So? What about this header?
11624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11630 ac_header_preproc=yes
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11646 ## ----------------------------------- ##
11647 ## Report this to llvmbugs@cs.uiuc.edu ##
11648 ## ----------------------------------- ##
11650 ) | sed "s/^/$as_me: WARNING: /" >&2
11653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 eval "$as_ac_Header=\$ac_header_preproc"
11660 ac_res=`eval echo '${'$as_ac_Header'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662 echo "${ECHO_T}$ac_res" >&6; }
11665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11666 cat >>confdefs.h <<_ACEOF
11667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11677 for ac_func in strchr index
11679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 cat >conftest.$ac_ext <<_ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11693 #define $ac_func innocuous_$ac_func
11695 /* System header to define __stub macros and hopefully few prototypes,
11696 which can conflict with char $ac_func (); below.
11697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11698 <limits.h> exists even on freestanding compilers. */
11701 # include <limits.h>
11703 # include <assert.h>
11708 /* Override any GCC internal prototype to avoid an error.
11709 Use char because int might match the return type of a GCC
11710 builtin and then its argument prototype would still apply. */
11715 /* The GNU C library defines this for functions which it implements
11716 to always fail with ENOSYS. Some functions are actually named
11717 something starting with __ and the normal name is an alias. */
11718 #if defined __stub_$ac_func || defined __stub___$ac_func
11725 return $ac_func ();
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (ac_try="$ac_link"
11732 case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_link") 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest$ac_exeext'
11755 { (case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760 (eval "$ac_try") 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 eval "$as_ac_var=yes"
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11769 eval "$as_ac_var=no"
11772 rm -f core conftest.err conftest.$ac_objext \
11773 conftest$ac_exeext conftest.$ac_ext
11775 ac_res=`eval echo '${'$as_ac_var'}'`
11776 { echo "$as_me:$LINENO: result: $ac_res" >&5
11777 echo "${ECHO_T}$ac_res" >&6; }
11778 if test `eval echo '${'$as_ac_var'}'` = yes; then
11779 cat >>confdefs.h <<_ACEOF
11780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11788 for ac_func in strrchr rindex
11790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11791 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 cat >conftest.$ac_ext <<_ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11804 #define $ac_func innocuous_$ac_func
11806 /* System header to define __stub macros and hopefully few prototypes,
11807 which can conflict with char $ac_func (); below.
11808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809 <limits.h> exists even on freestanding compilers. */
11812 # include <limits.h>
11814 # include <assert.h>
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11826 /* The GNU C library defines this for functions which it implements
11827 to always fail with ENOSYS. Some functions are actually named
11828 something starting with __ and the normal name is an alias. */
11829 #if defined __stub_$ac_func || defined __stub___$ac_func
11836 return $ac_func ();
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (ac_try="$ac_link"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_link") 2>conftest.er1
11850 grep -v '^ *+' conftest.er1 >conftest.err
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest$ac_exeext'
11866 { (case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_try") 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 eval "$as_ac_var=yes"
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 eval "$as_ac_var=no"
11883 rm -f core conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11886 ac_res=`eval echo '${'$as_ac_var'}'`
11887 { echo "$as_me:$LINENO: result: $ac_res" >&5
11888 echo "${ECHO_T}$ac_res" >&6; }
11889 if test `eval echo '${'$as_ac_var'}'` = yes; then
11890 cat >>confdefs.h <<_ACEOF
11891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11899 for ac_func in memcpy bcopy
11901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 cat >conftest.$ac_ext <<_ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11915 #define $ac_func innocuous_$ac_func
11917 /* System header to define __stub macros and hopefully few prototypes,
11918 which can conflict with char $ac_func (); below.
11919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11920 <limits.h> exists even on freestanding compilers. */
11923 # include <limits.h>
11925 # include <assert.h>
11930 /* Override any GCC internal prototype to avoid an error.
11931 Use char because int might match the return type of a GCC
11932 builtin and then its argument prototype would still apply. */
11937 /* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
11940 #if defined __stub_$ac_func || defined __stub___$ac_func
11947 return $ac_func ();
11952 rm -f conftest.$ac_objext conftest$ac_exeext
11953 if { (ac_try="$ac_link"
11954 case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_link") 2>conftest.er1
11961 grep -v '^ *+' conftest.er1 >conftest.err
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest$ac_exeext'
11977 { (case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_try") 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 eval "$as_ac_var=yes"
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 eval "$as_ac_var=no"
11994 rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
11997 ac_res=`eval echo '${'$as_ac_var'}'`
11998 { echo "$as_me:$LINENO: result: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12000 if test `eval echo '${'$as_ac_var'}'` = yes; then
12001 cat >>confdefs.h <<_ACEOF
12002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12010 for ac_func in memmove strcmp
12012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12026 #define $ac_func innocuous_$ac_func
12028 /* System header to define __stub macros and hopefully few prototypes,
12029 which can conflict with char $ac_func (); below.
12030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12031 <limits.h> exists even on freestanding compilers. */
12034 # include <limits.h>
12036 # include <assert.h>
12041 /* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12048 /* The GNU C library defines this for functions which it implements
12049 to always fail with ENOSYS. Some functions are actually named
12050 something starting with __ and the normal name is an alias. */
12051 #if defined __stub_$ac_func || defined __stub___$ac_func
12058 return $ac_func ();
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (ac_try="$ac_link"
12065 case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_link") 2>conftest.er1
12072 grep -v '^ *+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 eval "$as_ac_var=yes"
12099 echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12102 eval "$as_ac_var=no"
12105 rm -f core conftest.err conftest.$ac_objext \
12106 conftest$ac_exeext conftest.$ac_ext
12108 ac_res=`eval echo '${'$as_ac_var'}'`
12109 { echo "$as_me:$LINENO: result: $ac_res" >&5
12110 echo "${ECHO_T}$ac_res" >&6; }
12111 if test `eval echo '${'$as_ac_var'}'` = yes; then
12112 cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12122 for ac_func in closedir opendir readdir
12124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 cat >conftest.$ac_ext <<_ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12138 #define $ac_func innocuous_$ac_func
12140 /* System header to define __stub macros and hopefully few prototypes,
12141 which can conflict with char $ac_func (); below.
12142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12143 <limits.h> exists even on freestanding compilers. */
12146 # include <limits.h>
12148 # include <assert.h>
12153 /* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
12160 /* The GNU C library defines this for functions which it implements
12161 to always fail with ENOSYS. Some functions are actually named
12162 something starting with __ and the normal name is an alias. */
12163 #if defined __stub_$ac_func || defined __stub___$ac_func
12170 return $ac_func ();
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (ac_try="$ac_link"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_link") 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12190 { (case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_try") 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest$ac_exeext'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 eval "$as_ac_var=yes"
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 eval "$as_ac_var=no"
12217 rm -f core conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
12220 ac_res=`eval echo '${'$as_ac_var'}'`
12221 { echo "$as_me:$LINENO: result: $ac_res" >&5
12222 echo "${ECHO_T}$ac_res" >&6; }
12223 if test `eval echo '${'$as_ac_var'}'` = yes; then
12224 cat >>confdefs.h <<_ACEOF
12225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12232 # Check whether --enable-shared was given.
12233 if test "${enable_shared+set}" = set; then
12234 enableval=$enable_shared; p=${PACKAGE-default}
12236 yes) enable_shared=yes ;;
12237 no) enable_shared=no ;;
12240 # Look at the argument we got. We use all the common list separators.
12241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12242 for pkg in $enableval; do
12244 if test "X$pkg" = "X$p"; then
12256 # Check whether --enable-static was given.
12257 if test "${enable_static+set}" = set; then
12258 enableval=$enable_static; p=${PACKAGE-default}
12260 yes) enable_static=yes ;;
12261 no) enable_static=no ;;
12264 # Look at the argument we got. We use all the common list separators.
12265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12266 for pkg in $enableval; do
12268 if test "X$pkg" = "X$p"; then
12280 # Check whether --enable-fast-install was given.
12281 if test "${enable_fast_install+set}" = set; then
12282 enableval=$enable_fast_install; p=${PACKAGE-default}
12284 yes) enable_fast_install=yes ;;
12285 no) enable_fast_install=no ;;
12287 enable_fast_install=no
12288 # Look at the argument we got. We use all the common list separators.
12289 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12290 for pkg in $enableval; do
12292 if test "X$pkg" = "X$p"; then
12293 enable_fast_install=yes
12300 enable_fast_install=yes
12304 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12305 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12306 if test "${lt_cv_path_SED+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 # Loop through the user's path and test for sed and gsed.
12310 # Then use that list of sed's as ones to test for truncation.
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12315 test -z "$as_dir" && as_dir=.
12316 for lt_ac_prog in sed gsed; do
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12319 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12326 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12327 # along with /bin/sed that truncates output.
12328 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12329 test ! -f $lt_ac_sed && continue
12330 cat /dev/null > conftest.in
12332 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12333 # Check for GNU sed and select it if it is found.
12334 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12335 lt_cv_path_SED=$lt_ac_sed
12339 cat conftest.in conftest.in >conftest.tmp
12340 mv conftest.tmp conftest.in
12341 cp conftest.in conftest.nl
12343 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12344 cmp -s conftest.out conftest.nl || break
12345 # 10000 chars as input seems more than enough
12346 test $lt_ac_count -gt 10 && break
12347 lt_ac_count=`expr $lt_ac_count + 1`
12348 if test $lt_ac_count -gt $lt_ac_max; then
12349 lt_ac_max=$lt_ac_count
12350 lt_cv_path_SED=$lt_ac_sed
12357 SED=$lt_cv_path_SED
12358 { echo "$as_me:$LINENO: result: $SED" >&5
12359 echo "${ECHO_T}$SED" >&6; }
12362 # Check whether --with-gnu-ld was given.
12363 if test "${with_gnu_ld+set}" = set; then
12364 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12370 if test "$GCC" = yes; then
12371 # Check if gcc -print-prog-name=ld gives a path.
12372 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12373 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12376 # gcc leaves a trailing carriage return which upsets mingw
12377 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12379 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12382 # Accept absolute paths.
12384 re_direlt='/[^/][^/]*/\.\./'
12385 # Canonicalize the pathname of ld
12386 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12387 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12388 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12390 test -z "$LD" && LD="$ac_prog"
12393 # If it fails, then pretend we aren't using GCC.
12397 # If it is relative, then search for the first ld in PATH.
12398 with_gnu_ld=unknown
12401 elif test "$with_gnu_ld" = yes; then
12402 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12403 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12405 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12406 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12408 if test "${lt_cv_path_LD+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 if test -z "$LD"; then
12412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12413 for ac_dir in $PATH; do
12415 test -z "$ac_dir" && ac_dir=.
12416 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12417 lt_cv_path_LD="$ac_dir/$ac_prog"
12418 # Check to see if the program is GNU ld. I'd rather use --version,
12419 # but apparently some variants of GNU ld only accept -v.
12420 # Break only if it was the GNU/non-GNU ld that we prefer.
12421 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12422 *GNU* | *'with BFD'*)
12423 test "$with_gnu_ld" != no && break
12426 test "$with_gnu_ld" != yes && break
12433 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12437 LD="$lt_cv_path_LD"
12438 if test -n "$LD"; then
12439 { echo "$as_me:$LINENO: result: $LD" >&5
12440 echo "${ECHO_T}$LD" >&6; }
12442 { echo "$as_me:$LINENO: result: no" >&5
12443 echo "${ECHO_T}no" >&6; }
12445 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12446 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12447 { (exit 1); exit 1; }; }
12448 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12449 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12450 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12454 case `$LD -v 2>&1 </dev/null` in
12455 *GNU* | *'with BFD'*)
12456 lt_cv_prog_gnu_ld=yes
12459 lt_cv_prog_gnu_ld=no
12463 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12464 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12465 with_gnu_ld=$lt_cv_prog_gnu_ld
12468 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12469 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12470 if test "${lt_cv_ld_reload_flag+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 lt_cv_ld_reload_flag='-r'
12475 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12476 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12477 reload_flag=$lt_cv_ld_reload_flag
12478 case $reload_flag in
12480 *) reload_flag=" $reload_flag" ;;
12482 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12485 if test "$GCC" = yes; then
12486 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12493 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12494 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12495 if test "${lt_cv_deplibs_check_method+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 lt_cv_file_magic_cmd='$MAGIC_CMD'
12499 lt_cv_file_magic_test_file=
12500 lt_cv_deplibs_check_method='unknown'
12501 # Need to set the preceding variable on all platforms that support
12502 # interlibrary dependencies.
12503 # 'none' -- dependencies not supported.
12504 # `unknown' -- same as none, but documents that we really don't know.
12505 # 'pass_all' -- all dependencies passed with no checks.
12506 # 'test_compile' -- check by making test program.
12507 # 'file_magic [[regex]]' -- check by looking for files in library path
12508 # which responds to the $file_magic_cmd with a given extended regex.
12509 # If you have `file' or equivalent on your system and you're not sure
12510 # whether `pass_all' will *always* work, you probably want this one.
12514 lt_cv_deplibs_check_method=pass_all
12518 lt_cv_deplibs_check_method=pass_all
12522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12523 lt_cv_file_magic_cmd='/usr/bin/file -L'
12524 lt_cv_file_magic_test_file=/shlib/libc.so
12528 # func_win32_libid is a shell function defined in ltmain.sh
12529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12530 lt_cv_file_magic_cmd='func_win32_libid'
12534 # Base MSYS/MinGW do not provide the 'file' command needed by
12535 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12536 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12537 lt_cv_file_magic_cmd='$OBJDUMP -f'
12540 darwin* | rhapsody*)
12541 lt_cv_deplibs_check_method=pass_all
12544 freebsd* | kfreebsd*-gnu | dragonfly*)
12545 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12548 # Not sure whether the presence of OpenBSD here was a mistake.
12549 # Let's accept both of them until this is cleared up.
12550 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12551 lt_cv_file_magic_cmd=/usr/bin/file
12552 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12556 lt_cv_deplibs_check_method=pass_all
12561 lt_cv_deplibs_check_method=pass_all
12564 hpux10.20* | hpux11*)
12565 lt_cv_file_magic_cmd=/usr/bin/file
12568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12569 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12572 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]'
12573 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12577 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12583 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12587 irix5* | irix6* | nonstopux*)
12589 *-32|*"-32 ") libmagic=32-bit;;
12590 *-n32|*"-n32 ") libmagic=N32;;
12591 *-64|*"-64 ") libmagic=64-bit;;
12592 *) libmagic=never-match;;
12594 lt_cv_deplibs_check_method=pass_all
12597 # This must be Linux ELF.
12599 lt_cv_deplibs_check_method=pass_all
12603 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12612 lt_cv_file_magic_cmd=/usr/bin/file
12613 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12617 lt_cv_deplibs_check_method=unknown
12621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12628 osf3* | osf4* | osf5*)
12629 lt_cv_deplibs_check_method=pass_all
12633 lt_cv_deplibs_check_method=pass_all
12637 case $host_vendor in
12639 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]'
12640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12643 lt_cv_deplibs_check_method=pass_all
12646 lt_cv_file_magic_cmd='/bin/file'
12647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12650 lt_cv_file_magic_cmd='/bin/file'
12651 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12652 lt_cv_file_magic_test_file=/lib/libc.so
12655 lt_cv_deplibs_check_method=pass_all
12658 lt_cv_deplibs_check_method=pass_all
12663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12664 lt_cv_deplibs_check_method=pass_all
12669 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12670 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12671 file_magic_cmd=$lt_cv_file_magic_cmd
12672 deplibs_check_method=$lt_cv_deplibs_check_method
12673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12677 # If no C compiler was specified, use CC.
12680 # If no C compiler flags were specified, use CFLAGS.
12681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12683 # Allow CC to be a program name with arguments.
12686 # Check whether --enable-libtool-lock was given.
12687 if test "${enable_libtool_lock+set}" = set; then
12688 enableval=$enable_libtool_lock;
12691 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12693 # Some flags need to be propagated to the compiler or linker for good
12697 # Find out which ABI we are using.
12698 echo 'int i;' > conftest.$ac_ext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12700 (eval $ac_compile) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; then
12704 case `/usr/bin/file conftest.$ac_objext` in
12706 HPUX_IA64_MODE="32"
12709 HPUX_IA64_MODE="64"
12716 # Find out which ABI we are using.
12717 echo '#line 12717 "configure"' > conftest.$ac_ext
12718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12719 (eval $ac_compile) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; then
12723 if test "$lt_cv_prog_gnu_ld" = yes; then
12724 case `/usr/bin/file conftest.$ac_objext` in
12726 LD="${LD-ld} -melf32bsmip"
12729 LD="${LD-ld} -melf32bmipn32"
12732 LD="${LD-ld} -melf64bmip"
12736 case `/usr/bin/file conftest.$ac_objext` in
12752 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12753 # Find out which ABI we are using.
12754 echo 'int i;' > conftest.$ac_ext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756 (eval $ac_compile) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; then
12760 case `/usr/bin/file conftest.o` in
12764 LD="${LD-ld} -m elf_i386"
12766 ppc64-*linux*|powerpc64-*linux*)
12767 LD="${LD-ld} -m elf32ppclinux"
12770 LD="${LD-ld} -m elf_s390"
12773 LD="${LD-ld} -m elf32_sparc"
12780 LD="${LD-ld} -m elf_x86_64"
12782 ppc*-*linux*|powerpc*-*linux*)
12783 LD="${LD-ld} -m elf64ppc"
12786 LD="${LD-ld} -m elf64_s390"
12789 LD="${LD-ld} -m elf64_sparc"
12799 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12800 SAVE_CFLAGS="$CFLAGS"
12801 CFLAGS="$CFLAGS -belf"
12802 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12803 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12804 if test "${lt_cv_cc_needs_belf+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 ac_cpp='$CPP $CPPFLAGS'
12809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12813 cat >conftest.$ac_ext <<_ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12828 rm -f conftest.$ac_objext conftest$ac_exeext
12829 if { (ac_try="$ac_link"
12830 case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_link") 2>conftest.er1
12837 grep -v '^ *+' conftest.er1 >conftest.err
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12843 { (case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_try") 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest$ac_exeext'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 lt_cv_cc_needs_belf=yes
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 lt_cv_cc_needs_belf=no
12870 rm -f core conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
12873 ac_cpp='$CPP $CPPFLAGS'
12874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12879 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12880 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12881 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12883 CFLAGS="$SAVE_CFLAGS"
12887 # Find out which ABI we are using.
12888 echo 'int i;' > conftest.$ac_ext
12889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12890 (eval $ac_compile) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; then
12894 case `/usr/bin/file conftest.o` in
12896 case $lt_cv_prog_gnu_ld in
12897 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12898 *) LD="${LD-ld} -64" ;;
12909 need_locks="$enable_libtool_lock"
12914 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12915 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12916 (test "X$CXX" != "Xg++"))) ; then
12918 ac_cpp='$CXXCPP $CPPFLAGS'
12919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12922 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12923 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12924 if test -z "$CXXCPP"; then
12925 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 # Double quotes because CXXCPP needs to be expanded
12929 for CXXCPP in "$CXX -E" "/lib/cpp"
12931 ac_preproc_ok=false
12932 for ac_cxx_preproc_warn_flag in '' yes
12934 # Use a header file that comes with gcc, so configuring glibc
12935 # with a fresh cross-compiler works.
12936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12937 # <limits.h> exists even on freestanding compilers.
12938 # On the NeXT, cc -E runs the code through the compiler's parser,
12939 # not just through cpp. "Syntax error" is here to catch this case.
12940 cat >conftest.$ac_ext <<_ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12947 # include <limits.h>
12949 # include <assert.h>
12953 if { (ac_try="$ac_cpp conftest.$ac_ext"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12961 grep -v '^ *+' conftest.er1 >conftest.err
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } >/dev/null; then
12966 if test -s conftest.err; then
12967 ac_cpp_err=$ac_cxx_preproc_warn_flag
12968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12975 if test -z "$ac_cpp_err"; then
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12981 # Broken: fails on valid input.
12985 rm -f conftest.err conftest.$ac_ext
12987 # OK, works on sane cases. Now check whether nonexistent headers
12988 # can be detected and how.
12989 cat >conftest.$ac_ext <<_ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12995 #include <ac_nonexistent.h>
12997 if { (ac_try="$ac_cpp conftest.$ac_ext"
12998 case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13005 grep -v '^ *+' conftest.er1 >conftest.err
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } >/dev/null; then
13010 if test -s conftest.err; then
13011 ac_cpp_err=$ac_cxx_preproc_warn_flag
13012 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13019 if test -z "$ac_cpp_err"; then
13020 # Broken: success on invalid input.
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 # Passes both tests.
13031 rm -f conftest.err conftest.$ac_ext
13034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13035 rm -f conftest.err conftest.$ac_ext
13036 if $ac_preproc_ok; then
13041 ac_cv_prog_CXXCPP=$CXXCPP
13044 CXXCPP=$ac_cv_prog_CXXCPP
13046 ac_cv_prog_CXXCPP=$CXXCPP
13048 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13049 echo "${ECHO_T}$CXXCPP" >&6; }
13050 ac_preproc_ok=false
13051 for ac_cxx_preproc_warn_flag in '' yes
13053 # Use a header file that comes with gcc, so configuring glibc
13054 # with a fresh cross-compiler works.
13055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13056 # <limits.h> exists even on freestanding compilers.
13057 # On the NeXT, cc -E runs the code through the compiler's parser,
13058 # not just through cpp. "Syntax error" is here to catch this case.
13059 cat >conftest.$ac_ext <<_ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13066 # include <limits.h>
13068 # include <assert.h>
13072 if { (ac_try="$ac_cpp conftest.$ac_ext"
13073 case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13080 grep -v '^ *+' conftest.er1 >conftest.err
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } >/dev/null; then
13085 if test -s conftest.err; then
13086 ac_cpp_err=$ac_cxx_preproc_warn_flag
13087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13094 if test -z "$ac_cpp_err"; then
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 # Broken: fails on valid input.
13104 rm -f conftest.err conftest.$ac_ext
13106 # OK, works on sane cases. Now check whether nonexistent headers
13107 # can be detected and how.
13108 cat >conftest.$ac_ext <<_ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13114 #include <ac_nonexistent.h>
13116 if { (ac_try="$ac_cpp conftest.$ac_ext"
13117 case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13124 grep -v '^ *+' conftest.er1 >conftest.err
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } >/dev/null; then
13129 if test -s conftest.err; then
13130 ac_cpp_err=$ac_cxx_preproc_warn_flag
13131 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13138 if test -z "$ac_cpp_err"; then
13139 # Broken: success on invalid input.
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13145 # Passes both tests.
13150 rm -f conftest.err conftest.$ac_ext
13153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13154 rm -f conftest.err conftest.$ac_ext
13155 if $ac_preproc_ok; then
13158 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13159 See \`config.log' for more details." >&5
13160 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13161 See \`config.log' for more details." >&2;}
13162 { (exit 1); exit 1; }; }
13166 ac_cpp='$CXXCPP $CPPFLAGS'
13167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13175 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13176 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13178 if test -n "$ac_tool_prefix"; then
13179 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
13181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13185 if test "${ac_cv_prog_F77+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 if test -n "$F77"; then
13189 ac_cv_prog_F77="$F77" # Let the user override the test.
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13195 test -z "$as_dir" && as_dir=.
13196 for ac_exec_ext in '' $ac_executable_extensions; do
13197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13198 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 F77=$ac_cv_prog_F77
13209 if test -n "$F77"; then
13210 { echo "$as_me:$LINENO: result: $F77" >&5
13211 echo "${ECHO_T}$F77" >&6; }
13213 { echo "$as_me:$LINENO: result: no" >&5
13214 echo "${ECHO_T}no" >&6; }
13218 test -n "$F77" && break
13221 if test -z "$F77"; then
13223 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
13225 # Extract the first word of "$ac_prog", so it can be a program name with args.
13226 set dummy $ac_prog; ac_word=$2
13227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13229 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 if test -n "$ac_ct_F77"; then
13233 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236 for as_dir in $PATH
13239 test -z "$as_dir" && as_dir=.
13240 for ac_exec_ext in '' $ac_executable_extensions; do
13241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13242 ac_cv_prog_ac_ct_F77="$ac_prog"
13243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13253 if test -n "$ac_ct_F77"; then
13254 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13255 echo "${ECHO_T}$ac_ct_F77" >&6; }
13257 { echo "$as_me:$LINENO: result: no" >&5
13258 echo "${ECHO_T}no" >&6; }
13262 test -n "$ac_ct_F77" && break
13265 if test "x$ac_ct_F77" = x; then
13268 case $cross_compiling:$ac_tool_warned in
13270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13271 whose name does not start with the host triplet. If you think this
13272 configuration is useful to you, please write to autoconf@gnu.org." >&5
13273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13274 whose name does not start with the host triplet. If you think this
13275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13276 ac_tool_warned=yes ;;
13283 # Provide some information about the compiler.
13284 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13285 ac_compiler=`set X $ac_compile; echo $2`
13286 { (ac_try="$ac_compiler --version >&5"
13287 case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_compiler --version >&5") 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }
13296 { (ac_try="$ac_compiler -v >&5"
13297 case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_compiler -v >&5") 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }
13306 { (ac_try="$ac_compiler -V >&5"
13307 case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_compiler -V >&5") 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }
13318 # If we don't use `.F' as extension, the preprocessor is not run on the
13319 # input file. (Note that this only needs to work for GNU compilers.)
13320 ac_save_ext=$ac_ext
13322 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13323 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13324 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 cat >conftest.$ac_ext <<_ACEOF
13335 rm -f conftest.$ac_objext
13336 if { (ac_try="$ac_compile"
13337 case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_compile") 2>conftest.er1
13344 grep -v '^ *+' conftest.er1 >conftest.err
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; } &&
13359 { ac_try='test -s conftest.$ac_objext'
13360 { (case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_try") 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 ac_compiler_gnu=yes
13371 echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13381 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13382 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13383 ac_ext=$ac_save_ext
13384 ac_test_FFLAGS=${FFLAGS+set}
13385 ac_save_FFLAGS=$FFLAGS
13387 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13388 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13389 if test "${ac_cv_prog_f77_g+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13398 rm -f conftest.$ac_objext
13399 if { (ac_try="$ac_compile"
13400 case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_compile") 2>conftest.er1
13407 grep -v '^ *+' conftest.er1 >conftest.err
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_cv_prog_f77_g=yes
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 ac_cv_prog_f77_g=no
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13443 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13444 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13445 if test "$ac_test_FFLAGS" = set; then
13446 FFLAGS=$ac_save_FFLAGS
13447 elif test $ac_cv_prog_f77_g = yes; then
13448 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13454 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13461 G77=`test $ac_compiler_gnu = yes && echo yes`
13463 ac_cpp='$CPP $CPPFLAGS'
13464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13470 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13472 # find the maximum length of command line arguments
13473 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13474 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13475 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 # On DJGPP, this test can blow up pretty badly due to problems in libc
13484 # (any single argument exceeding 2000 bytes causes a buffer overrun
13485 # during glob expansion). Even if it were fixed, the result of this
13486 # check would be larger than it should be.
13487 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13491 # Under GNU Hurd, this test is not required because there is
13492 # no limit to the length of command line arguments.
13493 # Libtool will interpret -1 as no limit whatsoever
13494 lt_cv_sys_max_cmd_len=-1;
13498 # On Win9x/ME, this test blows up -- it succeeds, but takes
13499 # about 5 minutes as the teststring grows exponentially.
13500 # Worse, since 9x/ME are not pre-emptively multitasking,
13501 # you end up with a "frozen" computer, even though with patience
13502 # the test eventually succeeds (with a max line length of 256k).
13503 # Instead, let's just punt: use the minimum linelength reported by
13504 # all of the supported platforms: 8192 (on NT/2K/XP).
13505 lt_cv_sys_max_cmd_len=8192;
13509 # On AmigaOS with pdksh, this test takes hours, literally.
13510 # So we just punt and use a minimum line length of 8192.
13511 lt_cv_sys_max_cmd_len=8192;
13514 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13515 # This has been around since 386BSD, at least. Likely further.
13516 if test -x /sbin/sysctl; then
13517 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13518 elif test -x /usr/sbin/sysctl; then
13519 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13521 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13523 # And add a safety zone
13524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13529 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13530 lt_cv_sys_max_cmd_len=196608
13534 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13535 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13536 # nice to cause kernel panics so lets avoid the loop below.
13537 # First set a reasonable default.
13538 lt_cv_sys_max_cmd_len=16384
13540 if test -x /sbin/sysconfig; then
13541 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13542 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13547 lt_cv_sys_max_cmd_len=102400
13549 sysv5* | sco5v6* | sysv4.2uw2*)
13550 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13551 if test -n "$kargmax"; then
13552 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13554 lt_cv_sys_max_cmd_len=32768
13558 # If test is not a shell built-in, we'll probably end up computing a
13559 # maximum length that is only half of the actual maximum length, but
13561 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13562 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13563 = "XX$teststring") >/dev/null 2>&1 &&
13564 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13565 lt_cv_sys_max_cmd_len=$new_result &&
13566 test $i != 17 # 1/2 MB should be enough
13569 teststring=$teststring$teststring
13572 # Add a significant safety factor because C++ compilers can tack on massive
13573 # amounts of additional arguments before passing them to the linker.
13574 # It appears as though 1/2 is a usable value.
13575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13581 if test -n $lt_cv_sys_max_cmd_len ; then
13582 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13583 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13585 { echo "$as_me:$LINENO: result: none" >&5
13586 echo "${ECHO_T}none" >&6; }
13592 # Check for command to grab the raw symbol name followed by C symbol from nm.
13593 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13594 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13595 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 # These are sane defaults that work on at least a few old systems.
13600 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13602 # Character class describing NM global symbol codes.
13603 symcode='[BCDEGRST]'
13605 # Regexp to match symbols that can be accessed directly from C.
13606 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13608 # Transform an extracted symbol line into a proper C declaration
13609 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13611 # Transform an extracted symbol line into symbol name and symbol address
13612 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'"
13614 # Define system-specific variables.
13619 cygwin* | mingw* | pw32*)
13620 symcode='[ABCDGISTW]'
13622 hpux*) # Its linker distinguishes data from code symbols
13623 if test "$host_cpu" = ia64; then
13624 symcode='[ABCDEGRST]'
13626 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13627 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'"
13630 if test "$host_cpu" = ia64; then
13631 symcode='[ABCDGIRSTW]'
13632 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13633 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'"
13636 irix* | nonstopux*)
13637 symcode='[BCDEGRST]'
13640 symcode='[BCDEGQRST]'
13651 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13659 # Handle CRLF in mingw tool chain
13663 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13667 # If we're using GNU nm, then use its standard symbol codes.
13668 case `$NM -V 2>&1` in
13669 *GNU* | *'with BFD'*)
13670 symcode='[ABCDGIRSTW]' ;;
13673 # Try without a prefix undercore, then with it.
13674 for ac_symprfx in "" "_"; do
13676 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13677 symxfrm="\\1 $ac_symprfx\\2 \\2"
13679 # Write the raw and C identifiers.
13680 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13682 # Check to see that the pipe works correctly.
13686 cat > conftest.$ac_ext <<EOF
13691 void nm_test_func(){}
13695 int main(){nm_test_var='a';nm_test_func();return(0);}
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; then
13703 # Now try to grab the symbols.
13705 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13706 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } && test -s "$nlist"; then
13710 # Try sorting and uniquifying the output.
13711 if sort "$nlist" | uniq > "$nlist"T; then
13712 mv -f "$nlist"T "$nlist"
13717 # Make sure that we snagged all the symbols we need.
13718 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13719 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13720 cat <<EOF > conftest.$ac_ext
13726 # Now generate the symbol file.
13727 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13729 cat <<EOF >> conftest.$ac_ext
13730 #if defined (__STDC__) && __STDC__
13731 # define lt_ptr_t void *
13733 # define lt_ptr_t char *
13737 /* The mapping between symbol names and symbols. */
13742 lt_preloaded_symbols[] =
13745 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13746 cat <<\EOF >> conftest.$ac_ext
13754 # Now try linking the two files.
13755 mv conftest.$ac_objext conftstm.$ac_objext
13756 lt_save_LIBS="$LIBS"
13757 lt_save_CFLAGS="$CFLAGS"
13758 LIBS="conftstm.$ac_objext"
13759 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761 (eval $ac_link) 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13767 LIBS="$lt_save_LIBS"
13768 CFLAGS="$lt_save_CFLAGS"
13770 echo "cannot find nm_test_func in $nlist" >&5
13773 echo "cannot find nm_test_var in $nlist" >&5
13776 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13779 echo "$progname: failed program was:" >&5
13780 cat conftest.$ac_ext >&5
13782 rm -f conftest* conftst*
13784 # Do not use the global_symbol_pipe unless it works.
13785 if test "$pipe_works" = yes; then
13788 lt_cv_sys_global_symbol_pipe=
13794 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13795 lt_cv_sys_global_symbol_to_cdecl=
13797 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13798 { echo "$as_me:$LINENO: result: failed" >&5
13799 echo "${ECHO_T}failed" >&6; }
13801 { echo "$as_me:$LINENO: result: ok" >&5
13802 echo "${ECHO_T}ok" >&6; }
13805 { echo "$as_me:$LINENO: checking for objdir" >&5
13806 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13807 if test "${lt_cv_objdir+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 rm -f .libs 2>/dev/null
13811 mkdir .libs 2>/dev/null
13812 if test -d .libs; then
13815 # MS-DOS does not allow filenames that begin with a dot.
13818 rmdir .libs 2>/dev/null
13820 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13821 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13822 objdir=$lt_cv_objdir
13830 # AIX sometimes has problems with the GCC collect2 program. For some
13831 # reason, if we set the COLLECT_NAMES environment variable, the problems
13832 # vanish in a puff of smoke.
13833 if test "X${COLLECT_NAMES+set}" != Xset; then
13835 export COLLECT_NAMES
13840 # Sed substitution that helps us do robust quoting. It backslashifies
13841 # metacharacters that are still active within double-quoted strings.
13842 Xsed='sed -e 1s/^X//'
13843 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13845 # Same as above, but do not quote variable references.
13846 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13848 # Sed substitution to delay expansion of an escaped shell variable in a
13849 # double_quote_subst'ed string.
13850 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13852 # Sed substitution to avoid accidental globbing in evaled expressions
13853 no_glob_subst='s/\*/\\\*/g'
13858 # Global variables:
13859 default_ofile=mklib
13860 can_build_shared=yes
13862 # All known linkers require a `.a' archive for static linking (except MSVC,
13863 # which needs '.lib').
13865 ltmain="$ac_aux_dir/ltmain.sh"
13866 ofile="$default_ofile"
13867 with_gnu_ld="$lt_cv_prog_gnu_ld"
13869 if test -n "$ac_tool_prefix"; then
13870 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13871 set dummy ${ac_tool_prefix}ar; ac_word=$2
13872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13874 if test "${ac_cv_prog_AR+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 if test -n "$AR"; then
13878 ac_cv_prog_AR="$AR" # Let the user override the test.
13880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881 for as_dir in $PATH
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13887 ac_cv_prog_AR="${ac_tool_prefix}ar"
13888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 if test -n "$AR"; then
13899 { echo "$as_me:$LINENO: result: $AR" >&5
13900 echo "${ECHO_T}$AR" >&6; }
13902 { echo "$as_me:$LINENO: result: no" >&5
13903 echo "${ECHO_T}no" >&6; }
13908 if test -z "$ac_cv_prog_AR"; then
13910 # Extract the first word of "ar", so it can be a program name with args.
13911 set dummy ar; ac_word=$2
13912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13914 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 if test -n "$ac_ct_AR"; then
13918 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13924 test -z "$as_dir" && as_dir=.
13925 for ac_exec_ext in '' $ac_executable_extensions; do
13926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13927 ac_cv_prog_ac_ct_AR="ar"
13928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13937 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13938 if test -n "$ac_ct_AR"; then
13939 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13940 echo "${ECHO_T}$ac_ct_AR" >&6; }
13942 { echo "$as_me:$LINENO: result: no" >&5
13943 echo "${ECHO_T}no" >&6; }
13946 if test "x$ac_ct_AR" = x; then
13949 case $cross_compiling:$ac_tool_warned in
13951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13952 whose name does not start with the host triplet. If you think this
13953 configuration is useful to you, please write to autoconf@gnu.org." >&5
13954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13955 whose name does not start with the host triplet. If you think this
13956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13957 ac_tool_warned=yes ;;
13962 AR="$ac_cv_prog_AR"
13965 if test -n "$ac_tool_prefix"; then
13966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13970 if test "${ac_cv_prog_RANLIB+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 if test -n "$RANLIB"; then
13974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977 for as_dir in $PATH
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
13982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13993 RANLIB=$ac_cv_prog_RANLIB
13994 if test -n "$RANLIB"; then
13995 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13996 echo "${ECHO_T}$RANLIB" >&6; }
13998 { echo "$as_me:$LINENO: result: no" >&5
13999 echo "${ECHO_T}no" >&6; }
14004 if test -z "$ac_cv_prog_RANLIB"; then
14005 ac_ct_RANLIB=$RANLIB
14006 # Extract the first word of "ranlib", so it can be a program name with args.
14007 set dummy ranlib; ac_word=$2
14008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14010 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 if test -n "$ac_ct_RANLIB"; then
14014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14020 test -z "$as_dir" && as_dir=.
14021 for ac_exec_ext in '' $ac_executable_extensions; do
14022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14023 ac_cv_prog_ac_ct_RANLIB="ranlib"
14024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14033 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14034 if test -n "$ac_ct_RANLIB"; then
14035 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14036 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14038 { echo "$as_me:$LINENO: result: no" >&5
14039 echo "${ECHO_T}no" >&6; }
14042 if test "x$ac_ct_RANLIB" = x; then
14045 case $cross_compiling:$ac_tool_warned in
14047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14048 whose name does not start with the host triplet. If you think this
14049 configuration is useful to you, please write to autoconf@gnu.org." >&5
14050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14051 whose name does not start with the host triplet. If you think this
14052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14053 ac_tool_warned=yes ;;
14055 RANLIB=$ac_ct_RANLIB
14058 RANLIB="$ac_cv_prog_RANLIB"
14061 if test -n "$ac_tool_prefix"; then
14062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14063 set dummy ${ac_tool_prefix}strip; ac_word=$2
14064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14066 if test "${ac_cv_prog_STRIP+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 if test -n "$STRIP"; then
14070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14073 for as_dir in $PATH
14076 test -z "$as_dir" && as_dir=.
14077 for ac_exec_ext in '' $ac_executable_extensions; do
14078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14089 STRIP=$ac_cv_prog_STRIP
14090 if test -n "$STRIP"; then
14091 { echo "$as_me:$LINENO: result: $STRIP" >&5
14092 echo "${ECHO_T}$STRIP" >&6; }
14094 { echo "$as_me:$LINENO: result: no" >&5
14095 echo "${ECHO_T}no" >&6; }
14100 if test -z "$ac_cv_prog_STRIP"; then
14102 # Extract the first word of "strip", so it can be a program name with args.
14103 set dummy strip; ac_word=$2
14104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14106 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 if test -n "$ac_ct_STRIP"; then
14110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $PATH
14116 test -z "$as_dir" && as_dir=.
14117 for ac_exec_ext in '' $ac_executable_extensions; do
14118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14119 ac_cv_prog_ac_ct_STRIP="strip"
14120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14129 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14130 if test -n "$ac_ct_STRIP"; then
14131 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14132 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14134 { echo "$as_me:$LINENO: result: no" >&5
14135 echo "${ECHO_T}no" >&6; }
14138 if test "x$ac_ct_STRIP" = x; then
14141 case $cross_compiling:$ac_tool_warned in
14143 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14144 whose name does not start with the host triplet. If you think this
14145 configuration is useful to you, please write to autoconf@gnu.org." >&5
14146 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14147 whose name does not start with the host triplet. If you think this
14148 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14149 ac_tool_warned=yes ;;
14154 STRIP="$ac_cv_prog_STRIP"
14159 old_CFLAGS="$CFLAGS"
14161 # Set sane defaults for various variables
14162 test -z "$AR" && AR=ar
14163 test -z "$AR_FLAGS" && AR_FLAGS=cru
14164 test -z "$AS" && AS=as
14165 test -z "$CC" && CC=cc
14166 test -z "$LTCC" && LTCC=$CC
14167 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14168 test -z "$DLLTOOL" && DLLTOOL=dlltool
14169 test -z "$LD" && LD=ld
14170 test -z "$LN_S" && LN_S="ln -s"
14171 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14172 test -z "$NM" && NM=nm
14173 test -z "$SED" && SED=sed
14174 test -z "$OBJDUMP" && OBJDUMP=objdump
14175 test -z "$RANLIB" && RANLIB=:
14176 test -z "$STRIP" && STRIP=:
14177 test -z "$ac_objext" && ac_objext=o
14179 # Determine commands to create old-style static archives.
14180 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14181 old_postinstall_cmds='chmod 644 $oldlib'
14182 old_postuninstall_cmds=
14184 if test -n "$RANLIB"; then
14187 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14190 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14193 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14196 for cc_temp in $compiler""; do
14198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14204 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14207 # Only perform the check for file, if the check method requires it
14208 case $deplibs_check_method in
14210 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14211 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14212 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14213 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14221 lt_save_MAGIC_CMD="$MAGIC_CMD"
14222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14223 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14224 for ac_dir in $ac_dummy; do
14226 test -z "$ac_dir" && ac_dir=.
14227 if test -f $ac_dir/${ac_tool_prefix}file; then
14228 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14229 if test -n "$file_magic_test_file"; then
14230 case $deplibs_check_method in
14232 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14234 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14235 $EGREP "$file_magic_regex" > /dev/null; then
14240 *** Warning: the command libtool uses to detect shared libraries,
14241 *** $file_magic_cmd, produces output that libtool cannot recognize.
14242 *** The result is that libtool may fail to recognize shared libraries
14243 *** as such. This will affect the creation of libtool libraries that
14244 *** depend on shared libraries, but programs linked with such libtool
14245 *** libraries will work regardless of this problem. Nevertheless, you
14246 *** may want to report the problem to your system manager and/or to
14247 *** bug-libtool@gnu.org
14257 MAGIC_CMD="$lt_save_MAGIC_CMD"
14262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14263 if test -n "$MAGIC_CMD"; then
14264 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14265 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14267 { echo "$as_me:$LINENO: result: no" >&5
14268 echo "${ECHO_T}no" >&6; }
14271 if test -z "$lt_cv_path_MAGIC_CMD"; then
14272 if test -n "$ac_tool_prefix"; then
14273 { echo "$as_me:$LINENO: checking for file" >&5
14274 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14275 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14283 lt_save_MAGIC_CMD="$MAGIC_CMD"
14284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14285 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14286 for ac_dir in $ac_dummy; do
14288 test -z "$ac_dir" && ac_dir=.
14289 if test -f $ac_dir/file; then
14290 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14291 if test -n "$file_magic_test_file"; then
14292 case $deplibs_check_method in
14294 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14297 $EGREP "$file_magic_regex" > /dev/null; then
14302 *** Warning: the command libtool uses to detect shared libraries,
14303 *** $file_magic_cmd, produces output that libtool cannot recognize.
14304 *** The result is that libtool may fail to recognize shared libraries
14305 *** as such. This will affect the creation of libtool libraries that
14306 *** depend on shared libraries, but programs linked with such libtool
14307 *** libraries will work regardless of this problem. Nevertheless, you
14308 *** may want to report the problem to your system manager and/or to
14309 *** bug-libtool@gnu.org
14319 MAGIC_CMD="$lt_save_MAGIC_CMD"
14324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14325 if test -n "$MAGIC_CMD"; then
14326 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14327 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14329 { echo "$as_me:$LINENO: result: no" >&5
14330 echo "${ECHO_T}no" >&6; }
14343 enable_win32_dll=no
14345 # Check whether --enable-libtool-lock was given.
14346 if test "${enable_libtool_lock+set}" = set; then
14347 enableval=$enable_libtool_lock;
14350 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14353 # Check whether --with-pic was given.
14354 if test "${with_pic+set}" = set; then
14355 withval=$with_pic; pic_mode="$withval"
14360 test -z "$pic_mode" && pic_mode=default
14362 # Use C for the default configuration in the libtool script
14366 ac_cpp='$CPP $CPPFLAGS'
14367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14372 # Source file extension for C test sources.
14375 # Object file extension for compiled C test sources.
14379 # Code to be used in simple compile tests
14380 lt_simple_compile_test_code="int some_variable = 0;\n"
14382 # Code to be used in simple link tests
14383 lt_simple_link_test_code='int main(){return(0);}\n'
14386 # If no C compiler was specified, use CC.
14389 # If no C compiler flags were specified, use CFLAGS.
14390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14392 # Allow CC to be a program name with arguments.
14396 # save warnings/boilerplate of simple test code
14397 ac_outfile=conftest.$ac_objext
14398 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14400 _lt_compiler_boilerplate=`cat conftest.err`
14403 ac_outfile=conftest.$ac_objext
14404 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14406 _lt_linker_boilerplate=`cat conftest.err`
14411 lt_prog_compiler_no_builtin_flag=
14413 if test "$GCC" = yes; then
14414 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14417 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14418 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14419 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 lt_cv_prog_compiler_rtti_exceptions=no
14423 ac_outfile=conftest.$ac_objext
14424 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14425 lt_compiler_flag="-fno-rtti -fno-exceptions"
14426 # Insert the option either (1) after the last *FLAGS variable, or
14427 # (2) before a word containing "conftest.", or (3) at the end.
14428 # Note that $ac_compile itself does not contain backslashes and begins
14429 # with a dollar sign (not a hyphen), so the echo should work correctly.
14430 # The option is referenced via a variable to avoid confusing sed.
14431 lt_compile=`echo "$ac_compile" | $SED \
14432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14434 -e 's:$: $lt_compiler_flag:'`
14435 (eval echo "\"\$as_me:14435: $lt_compile\"" >&5)
14436 (eval "$lt_compile" 2>conftest.err)
14438 cat conftest.err >&5
14439 echo "$as_me:14439: \$? = $ac_status" >&5
14440 if (exit $ac_status) && test -s "$ac_outfile"; then
14441 # The compiler can only warn and ignore the option if not recognized
14442 # So say no if there are warnings other than the usual output.
14443 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14446 lt_cv_prog_compiler_rtti_exceptions=yes
14452 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14453 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14455 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14456 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14463 lt_prog_compiler_wl=
14464 lt_prog_compiler_pic=
14465 lt_prog_compiler_static=
14467 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14468 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14470 if test "$GCC" = yes; then
14471 lt_prog_compiler_wl='-Wl,'
14472 lt_prog_compiler_static='-static'
14476 # All AIX code is PIC.
14477 if test "$host_cpu" = ia64; then
14478 # AIX 5 now supports IA64 processor
14479 lt_prog_compiler_static='-Bstatic'
14484 # FIXME: we need at least 68020 code to build shared libraries, but
14485 # adding the `-m68020' flag to GCC prevents building anything better,
14487 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14490 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14491 # PIC is the default for these OSes.
14494 mingw* | pw32* | os2*)
14495 # This hack is so that the source file can tell whether it is being
14496 # built for inclusion in a dll (and should export symbols for example).
14497 lt_prog_compiler_pic='-DDLL_EXPORT'
14500 darwin* | rhapsody*)
14501 # PIC is the default on this platform
14502 # Common symbols not allowed in MH_DYLIB files
14503 lt_prog_compiler_pic='-fno-common'
14507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14508 # Instead, we relocate shared libraries at runtime.
14512 # Just because we use GCC doesn't mean we suddenly get shared libraries
14513 # on systems that don't support them.
14514 lt_prog_compiler_can_build_shared=no
14519 if test -d /usr/nec; then
14520 lt_prog_compiler_pic=-Kconform_pic
14525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14526 # not for PA HP-UX.
14532 lt_prog_compiler_pic='-fPIC'
14538 lt_prog_compiler_pic='-fPIC'
14542 # PORTME Check for flag to pass linker flags through the system compiler.
14545 lt_prog_compiler_wl='-Wl,'
14546 if test "$host_cpu" = ia64; then
14547 # AIX 5 now supports IA64 processor
14548 lt_prog_compiler_static='-Bstatic'
14550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14554 # PIC is the default on this platform
14555 # Common symbols not allowed in MH_DYLIB files
14556 case $cc_basename in
14558 lt_prog_compiler_pic='-qnocommon'
14559 lt_prog_compiler_wl='-Wl,'
14564 mingw* | pw32* | os2*)
14565 # This hack is so that the source file can tell whether it is being
14566 # built for inclusion in a dll (and should export symbols for example).
14567 lt_prog_compiler_pic='-DDLL_EXPORT'
14570 hpux9* | hpux10* | hpux11*)
14571 lt_prog_compiler_wl='-Wl,'
14572 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14573 # not for PA HP-UX.
14579 lt_prog_compiler_pic='+Z'
14582 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14583 lt_prog_compiler_static='${wl}-a ${wl}archive'
14586 irix5* | irix6* | nonstopux*)
14587 lt_prog_compiler_wl='-Wl,'
14588 # PIC (with -KPIC) is the default.
14589 lt_prog_compiler_static='-non_shared'
14593 lt_prog_compiler_pic='-KPIC'
14594 lt_prog_compiler_static='-Bstatic'
14598 case $cc_basename in
14600 lt_prog_compiler_wl='-Wl,'
14601 lt_prog_compiler_pic='-KPIC'
14602 lt_prog_compiler_static='-static'
14604 pgcc* | pgf77* | pgf90* | pgf95*)
14605 # Portland Group compilers (*not* the Pentium gcc compiler,
14606 # which looks to be a dead project)
14607 lt_prog_compiler_wl='-Wl,'
14608 lt_prog_compiler_pic='-fpic'
14609 lt_prog_compiler_static='-Bstatic'
14612 lt_prog_compiler_wl='-Wl,'
14613 # All Alpha code is PIC.
14614 lt_prog_compiler_static='-non_shared'
14619 osf3* | osf4* | osf5*)
14620 lt_prog_compiler_wl='-Wl,'
14621 # All OSF/1 code is PIC.
14622 lt_prog_compiler_static='-non_shared'
14626 lt_prog_compiler_pic='-KPIC'
14627 lt_prog_compiler_static='-Bstatic'
14628 case $cc_basename in
14629 f77* | f90* | f95*)
14630 lt_prog_compiler_wl='-Qoption ld ';;
14632 lt_prog_compiler_wl='-Wl,';;
14637 lt_prog_compiler_wl='-Qoption ld '
14638 lt_prog_compiler_pic='-PIC'
14639 lt_prog_compiler_static='-Bstatic'
14642 sysv4 | sysv4.2uw2* | sysv4.3*)
14643 lt_prog_compiler_wl='-Wl,'
14644 lt_prog_compiler_pic='-KPIC'
14645 lt_prog_compiler_static='-Bstatic'
14649 if test -d /usr/nec ;then
14650 lt_prog_compiler_pic='-Kconform_pic'
14651 lt_prog_compiler_static='-Bstatic'
14655 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14656 lt_prog_compiler_wl='-Wl,'
14657 lt_prog_compiler_pic='-KPIC'
14658 lt_prog_compiler_static='-Bstatic'
14662 lt_prog_compiler_wl='-Wl,'
14663 lt_prog_compiler_can_build_shared=no
14667 lt_prog_compiler_pic='-pic'
14668 lt_prog_compiler_static='-Bstatic'
14672 lt_prog_compiler_can_build_shared=no
14677 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14678 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14681 # Check to make sure the PIC flag actually works.
14683 if test -n "$lt_prog_compiler_pic"; then
14685 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14686 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14687 if test "${lt_prog_compiler_pic_works+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 lt_prog_compiler_pic_works=no
14691 ac_outfile=conftest.$ac_objext
14692 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14693 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14694 # Insert the option either (1) after the last *FLAGS variable, or
14695 # (2) before a word containing "conftest.", or (3) at the end.
14696 # Note that $ac_compile itself does not contain backslashes and begins
14697 # with a dollar sign (not a hyphen), so the echo should work correctly.
14698 # The option is referenced via a variable to avoid confusing sed.
14699 lt_compile=`echo "$ac_compile" | $SED \
14700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14702 -e 's:$: $lt_compiler_flag:'`
14703 (eval echo "\"\$as_me:14703: $lt_compile\"" >&5)
14704 (eval "$lt_compile" 2>conftest.err)
14706 cat conftest.err >&5
14707 echo "$as_me:14707: \$? = $ac_status" >&5
14708 if (exit $ac_status) && test -s "$ac_outfile"; then
14709 # The compiler can only warn and ignore the option if not recognized
14710 # So say no if there are warnings other than the usual output.
14711 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14714 lt_prog_compiler_pic_works=yes
14720 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14721 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14723 if test x"$lt_prog_compiler_pic_works" = xyes; then
14724 case $lt_prog_compiler_pic in
14726 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14729 lt_prog_compiler_pic=
14730 lt_prog_compiler_can_build_shared=no
14735 # For platforms which do not support PIC, -DPIC is meaningless:
14737 lt_prog_compiler_pic=
14740 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14745 # Check to make sure the static flag actually works.
14747 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14748 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14749 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14750 if test "${lt_prog_compiler_static_works+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 lt_prog_compiler_static_works=no
14754 save_LDFLAGS="$LDFLAGS"
14755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14756 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14758 # The linker can only warn and ignore the option if not recognized
14759 # So say no if there are warnings
14760 if test -s conftest.err; then
14761 # Append any errors to the config.log.
14762 cat conftest.err 1>&5
14763 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14765 if diff conftest.exp conftest.er2 >/dev/null; then
14766 lt_prog_compiler_static_works=yes
14769 lt_prog_compiler_static_works=yes
14773 LDFLAGS="$save_LDFLAGS"
14776 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14777 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14779 if test x"$lt_prog_compiler_static_works" = xyes; then
14782 lt_prog_compiler_static=
14786 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14787 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14788 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 lt_cv_prog_compiler_c_o=no
14792 $rm -r conftest 2>/dev/null
14796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14798 lt_compiler_flag="-o out/conftest2.$ac_objext"
14799 # Insert the option either (1) after the last *FLAGS variable, or
14800 # (2) before a word containing "conftest.", or (3) at the end.
14801 # Note that $ac_compile itself does not contain backslashes and begins
14802 # with a dollar sign (not a hyphen), so the echo should work correctly.
14803 lt_compile=`echo "$ac_compile" | $SED \
14804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14806 -e 's:$: $lt_compiler_flag:'`
14807 (eval echo "\"\$as_me:14807: $lt_compile\"" >&5)
14808 (eval "$lt_compile" 2>out/conftest.err)
14810 cat out/conftest.err >&5
14811 echo "$as_me:14811: \$? = $ac_status" >&5
14812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14814 # The compiler can only warn and ignore the option if not recognized
14815 # So say no if there are warnings
14816 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14819 lt_cv_prog_compiler_c_o=yes
14824 # SGI C++ compiler will create directory out/ii_files/ for
14825 # template instantiation
14826 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14827 $rm out/* && rmdir out
14833 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14834 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14837 hard_links="nottested"
14838 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14839 # do not overwrite the value of need_locks provided by the user
14840 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14841 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14846 ln conftest.a conftest.b 2>&5 || hard_links=no
14847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14848 { echo "$as_me:$LINENO: result: $hard_links" >&5
14849 echo "${ECHO_T}$hard_links" >&6; }
14850 if test "$hard_links" = no; then
14851 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14852 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14859 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14860 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14863 allow_undefined_flag=
14864 enable_shared_with_static_runtimes=no
14866 archive_expsym_cmds=
14867 old_archive_From_new_cmds=
14868 old_archive_from_expsyms_cmds=
14869 export_dynamic_flag_spec=
14870 whole_archive_flag_spec=
14871 thread_safe_flag_spec=
14872 hardcode_libdir_flag_spec=
14873 hardcode_libdir_flag_spec_ld=
14874 hardcode_libdir_separator=
14876 hardcode_minus_L=no
14877 hardcode_shlibpath_var=unsupported
14878 link_all_deplibs=unknown
14879 hardcode_automatic=no
14881 module_expsym_cmds=
14882 always_export_symbols=no
14883 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14884 # include_expsyms should be a list of space-separated symbols to be *always*
14885 # included in the symbol list
14887 # exclude_expsyms can be an extended regexp of symbols to exclude
14888 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14889 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14890 # as well as any symbol that contains `d'.
14891 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14892 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14893 # platforms (ab)use it in PIC code, but their linkers get confused if
14894 # the symbol is explicitly referenced. Since portable code cannot
14895 # rely on this symbol name, it's probably fine to never include it in
14896 # preloaded symbol tables.
14897 extract_expsyms_cmds=
14898 # Just being paranoid about ensuring that cc_basename is set.
14899 for cc_temp in $compiler""; do
14901 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14902 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14907 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14910 cygwin* | mingw* | pw32*)
14911 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14912 # When not using gcc, we currently assume that we are using
14913 # Microsoft Visual C++.
14914 if test "$GCC" != yes; then
14919 # we just hope/assume this is gcc and not c89 (= MSVC++)
14928 if test "$with_gnu_ld" = yes; then
14929 # If archive_cmds runs LD, not CC, wlarc should be empty
14932 # Set some defaults for GNU ld with shared library support. These
14933 # are reset later if shared libraries are not supported. Putting them
14934 # here allows them to be overridden if necessary.
14935 runpath_var=LD_RUN_PATH
14936 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14937 export_dynamic_flag_spec='${wl}--export-dynamic'
14938 # ancient GNU ld didn't support --whole-archive et. al.
14939 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14940 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14942 whole_archive_flag_spec=
14944 supports_anon_versioning=no
14945 case `$LD -v 2>/dev/null` in
14946 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14947 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14948 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14949 *\ 2.11.*) ;; # other 2.11 versions
14950 *) supports_anon_versioning=yes ;;
14953 # See if GNU ld supports shared libraries.
14955 aix3* | aix4* | aix5*)
14956 # On AIX/PPC, the GNU linker is very broken
14957 if test "$host_cpu" != ia64; then
14961 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14962 *** to be unable to reliably create shared libraries on AIX.
14963 *** Therefore, libtool is disabling shared libraries support. If you
14964 *** really care for shared libraries, you may want to modify your PATH
14965 *** so that a non-GNU linker is found, and then restart.
14972 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)'
14973 hardcode_libdir_flag_spec='-L$libdir'
14974 hardcode_minus_L=yes
14976 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14977 # that the semantics of dynamic libraries on AmigaOS, at least up
14978 # to version 4, is to share data among multiple programs linked
14979 # with the same dynamic library. Since this doesn't match the
14980 # behavior of shared libraries on other platforms, we can't use
14986 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14987 allow_undefined_flag=unsupported
14988 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14989 # support --undefined. This deserves some investigation. FIXME
14990 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14996 cygwin* | mingw* | pw32*)
14997 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14998 # as there is no search path for DLLs.
14999 hardcode_libdir_flag_spec='-L$libdir'
15000 allow_undefined_flag=unsupported
15001 always_export_symbols=no
15002 enable_shared_with_static_runtimes=yes
15003 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15005 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15007 # If the export-symbols file already is a .def file (1st line
15008 # is EXPORTS), use it as is; otherwise, prepend...
15009 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15010 cp $export_symbols $output_objdir/$soname.def;
15012 echo EXPORTS > $output_objdir/$soname.def;
15013 cat $export_symbols >> $output_objdir/$soname.def;
15015 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15023 hardcode_shlibpath_var=no
15024 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15025 export_dynamic_flag_spec='${wl}-E'
15026 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15027 # Instead, shared libraries are loaded at an image base (0x10000000 by
15028 # default) and relocated if they conflict, which is a slow very memory
15029 # consuming and fragmenting process. To avoid this, we pick a random,
15030 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15031 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15032 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15033 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'
15037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15039 case $cc_basename,$host_cpu in
15040 pgcc*) # Portland Group C compiler
15041 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'
15042 tmp_addflag=' $pic_flag'
15044 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15045 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'
15046 tmp_addflag=' $pic_flag -Mnomain' ;;
15047 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15048 tmp_addflag=' -i_dynamic' ;;
15049 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15050 tmp_addflag=' -i_dynamic -nofor_main' ;;
15051 ifc* | ifort*) # Intel Fortran compiler
15052 tmp_addflag=' -nofor_main' ;;
15054 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15056 if test $supports_anon_versioning = yes; then
15057 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15059 $echo "local: *; };" >> $output_objdir/$libname.ver~
15060 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15069 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15078 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15082 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15083 *** create shared libraries on Solaris systems. Therefore, libtool
15084 *** is disabling shared libraries support. We urge you to upgrade GNU
15085 *** binutils to release 2.9.1 or newer. Another option is to modify
15086 *** your PATH or compiler configuration so that the native linker is
15087 *** used, and then restart.
15090 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15099 case `$LD -v 2>&1` in
15100 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15104 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15105 *** reliably create shared libraries on SCO systems. Therefore, libtool
15106 *** is disabling shared libraries support. We urge you to upgrade GNU
15107 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15108 *** your PATH or compiler configuration so that the native linker is
15109 *** used, and then restart.
15114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15117 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15126 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15128 hardcode_direct=yes
15129 hardcode_shlibpath_var=no
15133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15142 if test "$ld_shlibs" = no; then
15144 hardcode_libdir_flag_spec=
15145 export_dynamic_flag_spec=
15146 whole_archive_flag_spec=
15149 # PORTME fill in a description of your system's linker (not GNU ld)
15152 allow_undefined_flag=unsupported
15153 always_export_symbols=yes
15154 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'
15155 # Note: this linker hardcodes the directories in LIBPATH if there
15156 # are no directories specified by -L.
15157 hardcode_minus_L=yes
15158 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15159 # Neither direct hardcoding nor static linking is supported with a
15161 hardcode_direct=unsupported
15166 if test "$host_cpu" = ia64; then
15167 # On IA64, the linker does run time linking by default, so we don't
15168 # have to do anything special.
15169 aix_use_runtimelinking=no
15170 exp_sym_flag='-Bexport'
15173 # If we're using GNU nm, then we don't want the "-C" option.
15174 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15175 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15176 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'
15178 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'
15180 aix_use_runtimelinking=no
15182 # Test if we are trying to use run time linking or normal
15183 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15184 # need to do runtime linking.
15185 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15186 for ld_flag in $LDFLAGS; do
15187 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15188 aix_use_runtimelinking=yes
15195 exp_sym_flag='-bexport'
15196 no_entry_flag='-bnoentry'
15199 # When large executables or shared objects are built, AIX ld can
15200 # have problems creating the table of contents. If linking a library
15201 # or program results in "error TOC overflow" add -mminimal-toc to
15202 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15203 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15206 hardcode_direct=yes
15207 hardcode_libdir_separator=':'
15208 link_all_deplibs=yes
15210 if test "$GCC" = yes; then
15211 case $host_os in aix4.[012]|aix4.[012].*)
15212 # We only want to do this on AIX 4.2 and lower, the check
15213 # below for broken collect2 doesn't work under 4.3+
15214 collect2name=`${CC} -print-prog-name=collect2`
15215 if test -f "$collect2name" && \
15216 strings "$collect2name" | grep resolve_lib_name >/dev/null
15218 # We have reworked collect2
15219 hardcode_direct=yes
15221 # We have old collect2
15222 hardcode_direct=unsupported
15223 # It fails to find uninstalled libraries when the uninstalled
15224 # path is not listed in the libpath. Setting hardcode_minus_L
15225 # to unsupported forces relinking
15226 hardcode_minus_L=yes
15227 hardcode_libdir_flag_spec='-L$libdir'
15228 hardcode_libdir_separator=
15232 shared_flag='-shared'
15233 if test "$aix_use_runtimelinking" = yes; then
15234 shared_flag="$shared_flag "'${wl}-G'
15238 if test "$host_cpu" = ia64; then
15239 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15240 # chokes on -Wl,-G. The following line is correct:
15243 if test "$aix_use_runtimelinking" = yes; then
15244 shared_flag='${wl}-G'
15246 shared_flag='${wl}-bM:SRE'
15251 # It seems that -bexpall does not export symbols beginning with
15252 # underscore (_), so it is better to generate a list of symbols to export.
15253 always_export_symbols=yes
15254 if test "$aix_use_runtimelinking" = yes; then
15255 # Warning - without using the other runtime loading flags (-brtl),
15256 # -berok will link without error, but may produce a broken library.
15257 allow_undefined_flag='-berok'
15258 # Determine the default libpath from the value encoded in an empty executable.
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15274 rm -f conftest.$ac_objext conftest$ac_exeext
15275 if { (ac_try="$ac_link"
15276 case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_link") 2>conftest.er1
15283 grep -v '^ *+' conftest.er1 >conftest.err
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15289 { (case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_try") 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try='test -s conftest$ac_exeext'
15299 { (case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15311 # Check for a 64-bit object if we didn't find anything.
15312 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; }
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15321 rm -f core conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
15323 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15325 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15326 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"
15328 if test "$host_cpu" = ia64; then
15329 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15330 allow_undefined_flag="-z nodefs"
15331 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"
15333 # Determine the default libpath from the value encoded in an empty executable.
15334 cat >conftest.$ac_ext <<_ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15349 rm -f conftest.$ac_objext conftest$ac_exeext
15350 if { (ac_try="$ac_link"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_link") 2>conftest.er1
15358 grep -v '^ *+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364 { (case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_try") 2>&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest$ac_exeext'
15374 { (case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_try") 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15386 # Check for a 64-bit object if we didn't find anything.
15387 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; }
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15396 rm -f core conftest.err conftest.$ac_objext \
15397 conftest$ac_exeext conftest.$ac_ext
15398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15400 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15401 # Warning - without using the other run time loading flags,
15402 # -berok will link without error, but may produce a broken library.
15403 no_undefined_flag=' ${wl}-bernotok'
15404 allow_undefined_flag=' ${wl}-berok'
15405 # Exported symbols can be pulled into shared objects from archives
15406 whole_archive_flag_spec='$convenience'
15407 archive_cmds_need_lc=yes
15408 # This is similar to how AIX traditionally builds its shared libraries.
15409 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'
15415 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)'
15416 hardcode_libdir_flag_spec='-L$libdir'
15417 hardcode_minus_L=yes
15418 # see comment about different semantics on the GNU ld section
15423 export_dynamic_flag_spec=-rdynamic
15426 cygwin* | mingw* | pw32*)
15427 # When not using gcc, we currently assume that we are using
15428 # Microsoft Visual C++.
15429 # hardcode_libdir_flag_spec is actually meaningless, as there is
15430 # no search path for DLLs.
15431 hardcode_libdir_flag_spec=' '
15432 allow_undefined_flag=unsupported
15433 # Tell ltmain to make .lib files, not .a files.
15435 # Tell ltmain to make .dll files, not .so files.
15437 # FIXME: Setting linknames here is a bad hack.
15438 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15439 # The linker will automatically build a .lib file if we build a DLL.
15440 old_archive_From_new_cmds='true'
15441 # FIXME: Should let the user specify the lib program.
15442 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15443 fix_srcfile_path='`cygpath -w "$srcfile"`'
15444 enable_shared_with_static_runtimes=yes
15447 darwin* | rhapsody*)
15449 rhapsody* | darwin1.[012])
15450 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15453 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15454 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15456 case ${MACOSX_DEPLOYMENT_TARGET} in
15458 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15461 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15467 archive_cmds_need_lc=no
15469 hardcode_automatic=yes
15470 hardcode_shlibpath_var=unsupported
15471 whole_archive_flag_spec=''
15472 link_all_deplibs=yes
15473 if test "$GCC" = yes ; then
15474 output_verbose_link_cmd='echo'
15475 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15476 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15477 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15478 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}'
15479 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}'
15481 case $cc_basename in
15483 output_verbose_link_cmd='echo'
15484 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15485 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15486 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15487 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}'
15488 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}'
15498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15499 hardcode_libdir_flag_spec='-L$libdir'
15500 hardcode_shlibpath_var=no
15507 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15508 # support. Future versions do this automatically, but an explicit c++rt0.o
15509 # does not break anything, and helps significantly (at the cost of a little
15512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15513 hardcode_libdir_flag_spec='-R$libdir'
15514 hardcode_direct=yes
15515 hardcode_shlibpath_var=no
15518 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct=yes
15522 hardcode_minus_L=yes
15523 hardcode_shlibpath_var=no
15526 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15527 freebsd* | kfreebsd*-gnu | dragonfly*)
15528 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15529 hardcode_libdir_flag_spec='-R$libdir'
15530 hardcode_direct=yes
15531 hardcode_shlibpath_var=no
15535 if test "$GCC" = yes; then
15536 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'
15538 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'
15540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15541 hardcode_libdir_separator=:
15542 hardcode_direct=yes
15544 # hardcode_minus_L: Not really in the search PATH,
15545 # but as the default location of the library.
15546 hardcode_minus_L=yes
15547 export_dynamic_flag_spec='${wl}-E'
15551 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15552 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15554 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15556 if test "$with_gnu_ld" = no; then
15557 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15558 hardcode_libdir_separator=:
15560 hardcode_direct=yes
15561 export_dynamic_flag_spec='${wl}-E'
15563 # hardcode_minus_L: Not really in the search PATH,
15564 # but as the default location of the library.
15565 hardcode_minus_L=yes
15570 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15573 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15576 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15579 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15588 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15595 if test "$with_gnu_ld" = no; then
15596 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15597 hardcode_libdir_separator=:
15601 hardcode_libdir_flag_spec_ld='+b $libdir'
15603 hardcode_shlibpath_var=no
15606 hardcode_direct=yes
15607 export_dynamic_flag_spec='${wl}-E'
15609 # hardcode_minus_L: Not really in the search PATH,
15610 # but as the default location of the library.
15611 hardcode_minus_L=yes
15617 irix5* | irix6* | nonstopux*)
15618 if test "$GCC" = yes; then
15619 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'
15621 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'
15622 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15625 hardcode_libdir_separator=:
15626 link_all_deplibs=yes
15630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15633 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15635 hardcode_libdir_flag_spec='-R$libdir'
15636 hardcode_direct=yes
15637 hardcode_shlibpath_var=no
15641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15642 hardcode_direct=yes
15643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15644 hardcode_libdir_separator=:
15645 hardcode_shlibpath_var=no
15649 hardcode_direct=yes
15650 hardcode_shlibpath_var=no
15651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15653 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15655 export_dynamic_flag_spec='${wl}-E'
15658 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15660 hardcode_libdir_flag_spec='-R$libdir'
15663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15671 hardcode_libdir_flag_spec='-L$libdir'
15672 hardcode_minus_L=yes
15673 allow_undefined_flag=unsupported
15674 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'
15675 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15679 if test "$GCC" = yes; then
15680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15681 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'
15683 allow_undefined_flag=' -expect_unresolved \*'
15684 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'
15686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15687 hardcode_libdir_separator=:
15690 osf4* | osf5*) # as osf3* with the addition of -msym flag
15691 if test "$GCC" = yes; then
15692 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15693 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'
15694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15696 allow_undefined_flag=' -expect_unresolved \*'
15697 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'
15698 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15699 $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'
15701 # Both c and cxx compiler support -rpath directly
15702 hardcode_libdir_flag_spec='-rpath $libdir'
15704 hardcode_libdir_separator=:
15708 no_undefined_flag=' -z text'
15709 if test "$GCC" = yes; then
15711 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15712 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15713 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15716 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15717 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15718 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15720 hardcode_libdir_flag_spec='-R$libdir'
15721 hardcode_shlibpath_var=no
15723 solaris2.[0-5] | solaris2.[0-5].*) ;;
15725 # The compiler driver will combine linker options so we
15726 # cannot just pass the convience library names through
15727 # without $wl, iff we do not link with $LD.
15728 # Luckily, gcc supports the same syntax we need for Sun Studio.
15729 # Supported since Solaris 2.6 (maybe 2.5.1?)
15732 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15734 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' ;;
15737 link_all_deplibs=yes
15741 if test "x$host_vendor" = xsequent; then
15742 # Use $CC to link under sequent, because it throws in some extra .o
15743 # files that make .init and .fini sections work.
15744 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15746 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15748 hardcode_libdir_flag_spec='-L$libdir'
15749 hardcode_direct=yes
15750 hardcode_minus_L=yes
15751 hardcode_shlibpath_var=no
15755 case $host_vendor in
15757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_direct=yes # is this really true???
15761 ## LD is ld it makes a PLAMLIB
15762 ## CC just makes a GrossModule.
15763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15764 reload_cmds='$CC -r -o $output$reload_objs'
15768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15769 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15772 runpath_var='LD_RUN_PATH'
15773 hardcode_shlibpath_var=no
15777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778 hardcode_shlibpath_var=no
15779 export_dynamic_flag_spec='-Bexport'
15783 if test -d /usr/nec; then
15784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15785 hardcode_shlibpath_var=no
15786 runpath_var=LD_RUN_PATH
15787 hardcode_runpath_var=yes
15792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15793 no_undefined_flag='${wl}-z,text'
15794 archive_cmds_need_lc=no
15795 hardcode_shlibpath_var=no
15796 runpath_var='LD_RUN_PATH'
15798 if test "$GCC" = yes; then
15799 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15800 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15802 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15803 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15807 sysv5* | sco3.2v5* | sco5v6*)
15808 # Note: We can NOT use -z defs as we might desire, because we do not
15809 # link with -lc, and that would cause any symbols used from libc to
15810 # always be unresolved, which means just about no library would
15811 # ever link correctly. If we're not using GNU ld we use -z text
15812 # though, which does catch some bad symbols but isn't as heavy-handed
15814 no_undefined_flag='${wl}-z,text'
15815 allow_undefined_flag='${wl}-z,nodefs'
15816 archive_cmds_need_lc=no
15817 hardcode_shlibpath_var=no
15818 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15819 hardcode_libdir_separator=':'
15820 link_all_deplibs=yes
15821 export_dynamic_flag_spec='${wl}-Bexport'
15822 runpath_var='LD_RUN_PATH'
15824 if test "$GCC" = yes; then
15825 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15826 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15828 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15829 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835 hardcode_libdir_flag_spec='-L$libdir'
15836 hardcode_shlibpath_var=no
15845 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15846 echo "${ECHO_T}$ld_shlibs" >&6; }
15847 test "$ld_shlibs" = no && can_build_shared=no
15850 # Do we need to explicitly link libc?
15852 case "x$archive_cmds_need_lc" in
15854 # Assume -lc should be added
15855 archive_cmds_need_lc=yes
15857 if test "$enable_shared" = yes && test "$GCC" = yes; then
15858 case $archive_cmds in
15860 # FIXME: we may have to deal with multi-command sequences.
15863 # Test whether the compiler implicitly links with -lc since on some
15864 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15865 # to ld, don't add -lc before -lgcc.
15866 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15867 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15869 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15872 (eval $ac_compile) 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } 2>conftest.err; then
15878 libobjs=conftest.$ac_objext
15880 wl=$lt_prog_compiler_wl
15881 pic_flag=$lt_prog_compiler_pic
15887 lt_save_allow_undefined_flag=$allow_undefined_flag
15888 allow_undefined_flag=
15889 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15890 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }
15895 archive_cmds_need_lc=no
15897 archive_cmds_need_lc=yes
15899 allow_undefined_flag=$lt_save_allow_undefined_flag
15901 cat conftest.err 1>&5
15904 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15905 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15912 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15913 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15914 library_names_spec=
15915 libname_spec='lib$name'
15919 postuninstall_cmds=
15923 shlibpath_overrides_runpath=unknown
15925 dynamic_linker="$host_os ld.so"
15926 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15927 if test "$GCC" = yes; then
15928 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15929 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15930 # if the path contains ";" then we assume it to be the separator
15931 # otherwise default to the standard path separator (i.e. ":") - it is
15932 # assumed that no part of a normal pathname contains ";" but that should
15933 # okay in the real world where ";" in dirpaths is itself problematic.
15934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15941 need_lib_prefix=unknown
15942 hardcode_into_libs=no
15944 # when you set need_version to no, make sure it does not cause -set_version
15945 # flags to be left without arguments
15946 need_version=unknown
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15952 shlibpath_var=LIBPATH
15954 # AIX 3 has no versioning support, so we append a major version to the name.
15955 soname_spec='${libname}${release}${shared_ext}$major'
15962 hardcode_into_libs=yes
15963 if test "$host_cpu" = ia64; then
15964 # AIX 5 supports IA64
15965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15966 shlibpath_var=LD_LIBRARY_PATH
15968 # With GCC up to 2.95.x, collect2 would create an import file
15969 # for dependence libraries. The import file would start with
15970 # the line `#! .'. This would cause the generated library to
15971 # depend on `.', always an invalid library. This was fixed in
15972 # development snapshots of GCC prior to 3.0.
15974 aix4 | aix4.[01] | aix4.[01].*)
15975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15977 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15980 can_build_shared=no
15984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15985 # soname into executable. Probably we can add versioning support to
15986 # collect2, so additional links can be useful in future.
15987 if test "$aix_use_runtimelinking" = yes; then
15988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15989 # instead of lib<name>.a to let people know that these are not
15990 # typical AIX shared libraries.
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 # We preserve .a as extension for shared libraries through AIX4.2
15994 # and later when we are not doing run time linking.
15995 library_names_spec='${libname}${release}.a $libname.a'
15996 soname_spec='${libname}${release}${shared_ext}$major'
15998 shlibpath_var=LIBPATH
16003 library_names_spec='$libname.ixlibrary $libname.a'
16004 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16005 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'
16009 library_names_spec='${libname}${shared_ext}'
16010 dynamic_linker="$host_os ld.so"
16011 shlibpath_var=LIBRARY_PATH
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16023 # the default ld.so.conf also contains /usr/contrib/lib and
16024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16025 # libtool to hard-code these into programs
16028 cygwin* | mingw* | pw32*)
16029 version_type=windows
16034 case $GCC,$host_os in
16035 yes,cygwin* | yes,mingw* | yes,pw32*)
16036 library_names_spec='$libname.dll.a'
16037 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16038 postinstall_cmds='base_file=`basename \${file}`~
16039 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16040 dldir=$destdir/`dirname \$dlpath`~
16041 test -d \$dldir || mkdir -p \$dldir~
16042 $install_prog $dir/$dlname \$dldir/$dlname~
16043 chmod a+x \$dldir/$dlname'
16044 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16045 dlpath=$dir/\$dldll~
16047 shlibpath_overrides_runpath=yes
16051 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16052 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16053 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16056 # MinGW DLLs use traditional 'lib' prefix
16057 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16059 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16060 # It is most probably a Windows format PATH printed by
16061 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16062 # path with ; separators, and with drive letters. We can handle the
16063 # drive letters (cygwin fileutils understands them), so leave them,
16064 # especially as we might pass files found there to a mingw objdump,
16065 # which wouldn't understand a cygwinified path. Ahh.
16066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16072 # pw32 DLLs use 'pw' prefix rather than 'lib'
16073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16079 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16082 dynamic_linker='Win32 ld.exe'
16083 # FIXME: first we should search . and the directory the executable is in
16087 darwin* | rhapsody*)
16088 dynamic_linker="$host_os dyld"
16089 version_type=darwin
16092 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16093 soname_spec='${libname}${release}${major}$shared_ext'
16094 shlibpath_overrides_runpath=yes
16095 shlibpath_var=DYLD_LIBRARY_PATH
16096 shrext_cmds='.dylib'
16097 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16098 if test "$GCC" = yes; then
16099 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"`
16101 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124 soname_spec='${libname}${release}${shared_ext}$major'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=no
16127 hardcode_into_libs=yes
16128 dynamic_linker='GNU ld.so'
16131 freebsd* | dragonfly*)
16132 # DragonFly does not have aout. When/if they implement a new
16133 # versioning mechanism, adjust this.
16134 if test -x /usr/bin/objformat; then
16135 objformat=`/usr/bin/objformat`
16138 freebsd[123]*) objformat=aout ;;
16139 *) objformat=elf ;;
16142 version_type=freebsd-$objformat
16143 case $version_type in
16145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16154 shlibpath_var=LD_LIBRARY_PATH
16157 shlibpath_overrides_runpath=yes
16159 freebsd3.[01]* | freebsdelf3.[01]*)
16160 shlibpath_overrides_runpath=yes
16161 hardcode_into_libs=yes
16163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16165 shlibpath_overrides_runpath=no
16166 hardcode_into_libs=yes
16168 freebsd*) # from 4.6 on
16169 shlibpath_overrides_runpath=yes
16170 hardcode_into_libs=yes
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16180 soname_spec='${libname}${release}${shared_ext}$major'
16181 shlibpath_var=LD_LIBRARY_PATH
16182 hardcode_into_libs=yes
16185 hpux9* | hpux10* | hpux11*)
16186 # Give a soname corresponding to the major version so that dld.sl refuses to
16187 # link against other versions.
16194 hardcode_into_libs=yes
16195 dynamic_linker="$host_os dld.so"
16196 shlibpath_var=LD_LIBRARY_PATH
16197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199 soname_spec='${libname}${release}${shared_ext}$major'
16200 if test "X$HPUX_IA64_MODE" = X32; then
16201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16209 hardcode_into_libs=yes
16210 dynamic_linker="$host_os dld.sl"
16211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16220 dynamic_linker="$host_os dld.sl"
16221 shlibpath_var=SHLIB_PATH
16222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16227 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16228 postinstall_cmds='chmod 555 $lib'
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16238 shlibpath_var=LD_LIBRARY_PATH
16239 shlibpath_overrides_runpath=no
16240 hardcode_into_libs=yes
16243 irix5* | irix6* | nonstopux*)
16245 nonstopux*) version_type=nonstopux ;;
16247 if test "$lt_cv_prog_gnu_ld" = yes; then
16255 soname_spec='${libname}${release}${shared_ext}$major'
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16258 irix5* | nonstopux*)
16259 libsuff= shlibsuff=
16262 case $LD in # libtool.m4 will add one of these switches to LD
16263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16264 libsuff= shlibsuff= libmagic=32-bit;;
16265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16266 libsuff=32 shlibsuff=N32 libmagic=N32;;
16267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16269 *) libsuff= shlibsuff= libmagic=never-match;;
16273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16274 shlibpath_overrides_runpath=no
16275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16277 hardcode_into_libs=yes
16280 # No shared lib support for Linux oldld, aout, or coff.
16281 linux*oldld* | linux*aout* | linux*coff*)
16285 # This must be Linux ELF.
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291 soname_spec='${libname}${release}${shared_ext}$major'
16292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16293 shlibpath_var=LD_LIBRARY_PATH
16294 shlibpath_overrides_runpath=no
16295 # This implies no fast_install, which is unacceptable.
16296 # Some rework will be needed to allow for fast_install
16297 # before this can be enabled.
16298 hardcode_into_libs=yes
16300 # Append ld.so.conf contents to the search path
16301 if test -f /etc/ld.so.conf; then
16302 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' ' '`
16303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16306 # We used to test for /lib/ld.so.1 and disable shared libraries on
16307 # powerpc, because MkLinux only supported shared libraries with the
16308 # GNU dynamic linker. Since this was broken with cross compilers,
16309 # most powerpc-linux boxes support dynamic linking these days and
16310 # people can always --disable-shared, the test was removed, and we
16311 # assume the GNU/Linux dynamic linker is in use.
16312 dynamic_linker='GNU/Linux ld.so'
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16320 soname_spec='${libname}${release}${shared_ext}$major'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 shlibpath_overrides_runpath=no
16323 hardcode_into_libs=yes
16324 dynamic_linker='GNU ld.so'
16331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16334 dynamic_linker='NetBSD (a.out) ld.so'
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 dynamic_linker='NetBSD ld.elf_so'
16340 shlibpath_var=LD_LIBRARY_PATH
16341 shlibpath_overrides_runpath=yes
16342 hardcode_into_libs=yes
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 shlibpath_overrides_runpath=yes
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 shlibpath_overrides_runpath=yes
16364 sys_lib_dlsearch_path_spec="/usr/lib"
16366 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16368 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16369 *) need_version=no ;;
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16373 shlibpath_var=LD_LIBRARY_PATH
16374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16376 openbsd2.[89] | openbsd2.[89].*)
16377 shlibpath_overrides_runpath=no
16380 shlibpath_overrides_runpath=yes
16384 shlibpath_overrides_runpath=yes
16389 libname_spec='$name'
16392 library_names_spec='$libname${shared_ext} $libname.a'
16393 dynamic_linker='OS/2 ld.exe'
16394 shlibpath_var=LIBPATH
16397 osf3* | osf4* | osf5*)
16401 soname_spec='${libname}${release}${shared_ext}$major'
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 shlibpath_var=LD_LIBRARY_PATH
16404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 shlibpath_var=LD_LIBRARY_PATH
16415 shlibpath_overrides_runpath=yes
16416 hardcode_into_libs=yes
16417 # ldd complains unless libraries are executable
16418 postinstall_cmds='chmod +x $lib'
16423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16424 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 shlibpath_overrides_runpath=yes
16427 if test "$with_gnu_ld" = yes; then
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 shlibpath_var=LD_LIBRARY_PATH
16438 case $host_vendor in
16440 shlibpath_overrides_runpath=no
16442 export_dynamic_flag_spec='${wl}-Blargedynsym'
16443 runpath_var=LD_RUN_PATH
16451 shlibpath_overrides_runpath=no
16452 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16458 if test -d /usr/nec ;then
16460 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16461 soname_spec='$libname${shared_ext}.$major'
16462 shlibpath_var=LD_LIBRARY_PATH
16466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16467 version_type=freebsd-elf
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16471 soname_spec='${libname}${release}${shared_ext}$major'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 hardcode_into_libs=yes
16474 if test "$with_gnu_ld" = yes; then
16475 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16476 shlibpath_overrides_runpath=no
16478 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16479 shlibpath_overrides_runpath=yes
16482 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16486 sys_lib_dlsearch_path_spec='/usr/lib'
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 shlibpath_var=LD_LIBRARY_PATH
16500 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16501 echo "${ECHO_T}$dynamic_linker" >&6; }
16502 test "$dynamic_linker" = no && can_build_shared=no
16504 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16505 if test "$GCC" = yes; then
16506 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16509 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16510 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16512 if test -n "$hardcode_libdir_flag_spec" || \
16513 test -n "$runpath_var" || \
16514 test "X$hardcode_automatic" = "Xyes" ; then
16516 # We can hardcode non-existant directories.
16517 if test "$hardcode_direct" != no &&
16518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16519 # have to relink, otherwise we might link with an installed library
16520 # when we should be linking with a yet-to-be-installed one
16521 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16522 test "$hardcode_minus_L" != no; then
16523 # Linking always hardcodes the temporary library directory.
16524 hardcode_action=relink
16526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16527 hardcode_action=immediate
16530 # We cannot hardcode anything, or else we can only hardcode existing
16532 hardcode_action=unsupported
16534 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16535 echo "${ECHO_T}$hardcode_action" >&6; }
16537 if test "$hardcode_action" = relink; then
16538 # Fast installation is not supported
16539 enable_fast_install=no
16540 elif test "$shlibpath_overrides_runpath" = yes ||
16541 test "$enable_shared" = no; then
16542 # Fast installation is not necessary
16543 enable_fast_install=needless
16548 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16549 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16550 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16551 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16552 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16553 { echo "$as_me:$LINENO: result: yes" >&5
16554 echo "${ECHO_T}yes" >&6; }
16556 # FIXME - insert some real tests, host_os isn't really good enough
16559 if test -n "$STRIP" ; then
16560 striplib="$STRIP -x"
16561 { echo "$as_me:$LINENO: result: yes" >&5
16562 echo "${ECHO_T}yes" >&6; }
16564 { echo "$as_me:$LINENO: result: no" >&5
16565 echo "${ECHO_T}no" >&6; }
16569 { echo "$as_me:$LINENO: result: no" >&5
16570 echo "${ECHO_T}no" >&6; }
16575 if test "x$enable_dlopen" != xyes; then
16576 enable_dlopen=unknown
16577 enable_dlopen_self=unknown
16578 enable_dlopen_self_static=unknown
16585 lt_cv_dlopen="load_add_on"
16587 lt_cv_dlopen_self=yes
16591 lt_cv_dlopen="LoadLibrary"
16596 lt_cv_dlopen="dlopen"
16601 # if libdl is installed we need to link against it
16602 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16603 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16604 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16607 ac_check_lib_save_LIBS=$LIBS
16609 cat >conftest.$ac_ext <<_ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16616 /* Override any GCC internal prototype to avoid an error.
16617 Use char because int might match the return type of a GCC
16618 builtin and then its argument prototype would still apply. */
16631 rm -f conftest.$ac_objext conftest$ac_exeext
16632 if { (ac_try="$ac_link"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_link") 2>conftest.er1
16640 grep -v '^ *+' conftest.er1 >conftest.err
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest$ac_exeext'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_cv_lib_dl_dlopen=yes
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_cv_lib_dl_dlopen=no
16673 rm -f core conftest.err conftest.$ac_objext \
16674 conftest$ac_exeext conftest.$ac_ext
16675 LIBS=$ac_check_lib_save_LIBS
16677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16678 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16679 if test $ac_cv_lib_dl_dlopen = yes; then
16680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16683 lt_cv_dlopen="dyld"
16685 lt_cv_dlopen_self=yes
16692 { echo "$as_me:$LINENO: checking for shl_load" >&5
16693 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16694 if test "${ac_cv_func_shl_load+set}" = set; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 cat >conftest.$ac_ext <<_ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h. */
16703 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16705 #define shl_load innocuous_shl_load
16707 /* System header to define __stub macros and hopefully few prototypes,
16708 which can conflict with char shl_load (); below.
16709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16710 <limits.h> exists even on freestanding compilers. */
16713 # include <limits.h>
16715 # include <assert.h>
16720 /* Override any GCC internal prototype to avoid an error.
16721 Use char because int might match the return type of a GCC
16722 builtin and then its argument prototype would still apply. */
16727 /* The GNU C library defines this for functions which it implements
16728 to always fail with ENOSYS. Some functions are actually named
16729 something starting with __ and the normal name is an alias. */
16730 #if defined __stub_shl_load || defined __stub___shl_load
16737 return shl_load ();
16742 rm -f conftest.$ac_objext conftest$ac_exeext
16743 if { (ac_try="$ac_link"
16744 case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_link") 2>conftest.er1
16751 grep -v '^ *+' conftest.er1 >conftest.err
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } &&
16756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16757 { (case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_try") 2>&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; } &&
16766 { ac_try='test -s conftest$ac_exeext'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16776 ac_cv_func_shl_load=yes
16778 echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16781 ac_cv_func_shl_load=no
16784 rm -f core conftest.err conftest.$ac_objext \
16785 conftest$ac_exeext conftest.$ac_ext
16787 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16788 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16789 if test $ac_cv_func_shl_load = yes; then
16790 lt_cv_dlopen="shl_load"
16792 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16793 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16794 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16797 ac_check_lib_save_LIBS=$LIBS
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16806 /* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
16816 return shl_load ();
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_link") 2>conftest.er1
16830 grep -v '^ *+' conftest.er1 >conftest.err
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try='test -s conftest$ac_exeext'
16846 { (case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_try") 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_cv_lib_dld_shl_load=yes
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ac_cv_lib_dld_shl_load=no
16863 rm -f core conftest.err conftest.$ac_objext \
16864 conftest$ac_exeext conftest.$ac_ext
16865 LIBS=$ac_check_lib_save_LIBS
16867 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16868 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16869 if test $ac_cv_lib_dld_shl_load = yes; then
16870 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16872 { echo "$as_me:$LINENO: checking for dlopen" >&5
16873 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16874 if test "${ac_cv_func_dlopen+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 cat >conftest.$ac_ext <<_ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16883 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16885 #define dlopen innocuous_dlopen
16887 /* System header to define __stub macros and hopefully few prototypes,
16888 which can conflict with char dlopen (); below.
16889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16890 <limits.h> exists even on freestanding compilers. */
16893 # include <limits.h>
16895 # include <assert.h>
16900 /* Override any GCC internal prototype to avoid an error.
16901 Use char because int might match the return type of a GCC
16902 builtin and then its argument prototype would still apply. */
16907 /* The GNU C library defines this for functions which it implements
16908 to always fail with ENOSYS. Some functions are actually named
16909 something starting with __ and the normal name is an alias. */
16910 #if defined __stub_dlopen || defined __stub___dlopen
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (ac_try="$ac_link"
16924 case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_link") 2>conftest.er1
16931 grep -v '^ *+' conftest.er1 >conftest.err
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937 { (case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_try") 2>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; } &&
16946 { ac_try='test -s conftest$ac_exeext'
16947 { (case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_try") 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 ac_cv_func_dlopen=yes
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16961 ac_cv_func_dlopen=no
16964 rm -f core conftest.err conftest.$ac_objext \
16965 conftest$ac_exeext conftest.$ac_ext
16967 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16968 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16969 if test $ac_cv_func_dlopen = yes; then
16970 lt_cv_dlopen="dlopen"
16972 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16973 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16974 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 ac_check_lib_save_LIBS=$LIBS
16979 cat >conftest.$ac_ext <<_ACEOF
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h. */
16986 /* Override any GCC internal prototype to avoid an error.
16987 Use char because int might match the return type of a GCC
16988 builtin and then its argument prototype would still apply. */
17001 rm -f conftest.$ac_objext conftest$ac_exeext
17002 if { (ac_try="$ac_link"
17003 case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_link") 2>conftest.er1
17010 grep -v '^ *+' conftest.er1 >conftest.err
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_try") 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 ac_cv_lib_dl_dlopen=yes
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17040 ac_cv_lib_dl_dlopen=no
17043 rm -f core conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext conftest.$ac_ext
17045 LIBS=$ac_check_lib_save_LIBS
17047 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17048 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17049 if test $ac_cv_lib_dl_dlopen = yes; then
17050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17052 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17053 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17054 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17057 ac_check_lib_save_LIBS=$LIBS
17058 LIBS="-lsvld $LIBS"
17059 cat >conftest.$ac_ext <<_ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17066 /* Override any GCC internal prototype to avoid an error.
17067 Use char because int might match the return type of a GCC
17068 builtin and then its argument prototype would still apply. */
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (ac_try="$ac_link"
17083 case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_link") 2>conftest.er1
17090 grep -v '^ *+' conftest.er1 >conftest.err
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest$ac_exeext'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 ac_cv_lib_svld_dlopen=yes
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 ac_cv_lib_svld_dlopen=no
17123 rm -f core conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
17125 LIBS=$ac_check_lib_save_LIBS
17127 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17128 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17129 if test $ac_cv_lib_svld_dlopen = yes; then
17130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17132 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17133 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17134 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 ac_check_lib_save_LIBS=$LIBS
17139 cat >conftest.$ac_ext <<_ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17146 /* Override any GCC internal prototype to avoid an error.
17147 Use char because int might match the return type of a GCC
17148 builtin and then its argument prototype would still apply. */
17156 return dld_link ();
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (ac_try="$ac_link"
17163 case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_link") 2>conftest.er1
17170 grep -v '^ *+' conftest.er1 >conftest.err
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } &&
17175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } &&
17185 { ac_try='test -s conftest$ac_exeext'
17186 { (case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_try") 2>&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
17195 ac_cv_lib_dld_dld_link=yes
17197 echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17200 ac_cv_lib_dld_dld_link=no
17203 rm -f core conftest.err conftest.$ac_objext \
17204 conftest$ac_exeext conftest.$ac_ext
17205 LIBS=$ac_check_lib_save_LIBS
17207 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17208 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17209 if test $ac_cv_lib_dld_dld_link = yes; then
17210 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17231 if test "x$lt_cv_dlopen" != xno; then
17237 case $lt_cv_dlopen in
17239 save_CPPFLAGS="$CPPFLAGS"
17240 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17242 save_LDFLAGS="$LDFLAGS"
17243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17246 LIBS="$lt_cv_dlopen_libs $LIBS"
17248 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17249 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17250 if test "${lt_cv_dlopen_self+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 if test "$cross_compiling" = yes; then :
17254 lt_cv_dlopen_self=cross
17256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17257 lt_status=$lt_dlunknown
17258 cat > conftest.$ac_ext <<EOF
17259 #line 17259 "configure"
17260 #include "confdefs.h"
17269 # define LT_DLGLOBAL RTLD_GLOBAL
17272 # define LT_DLGLOBAL DL_GLOBAL
17274 # define LT_DLGLOBAL 0
17278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17279 find out it does not work in some platform. */
17280 #ifndef LT_DLLAZY_OR_NOW
17282 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17285 # define LT_DLLAZY_OR_NOW DL_LAZY
17288 # define LT_DLLAZY_OR_NOW RTLD_NOW
17291 # define LT_DLLAZY_OR_NOW DL_NOW
17293 # define LT_DLLAZY_OR_NOW 0
17301 extern "C" void exit (int);
17304 void fnord() { int i=42;}
17307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17308 int status = $lt_dlunknown;
17312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17313 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17314 /* dlclose (self); */
17322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17323 (eval $ac_link) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17327 (./conftest; exit; ) >&5 2>/dev/null
17329 case x$lt_status in
17330 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17331 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17332 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17335 # compilation failed
17336 lt_cv_dlopen_self=no
17343 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17344 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17346 if test "x$lt_cv_dlopen_self" = xyes; then
17347 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17348 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17349 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17350 if test "${lt_cv_dlopen_self_static+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 if test "$cross_compiling" = yes; then :
17354 lt_cv_dlopen_self_static=cross
17356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17357 lt_status=$lt_dlunknown
17358 cat > conftest.$ac_ext <<EOF
17359 #line 17359 "configure"
17360 #include "confdefs.h"
17369 # define LT_DLGLOBAL RTLD_GLOBAL
17372 # define LT_DLGLOBAL DL_GLOBAL
17374 # define LT_DLGLOBAL 0
17378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17379 find out it does not work in some platform. */
17380 #ifndef LT_DLLAZY_OR_NOW
17382 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17385 # define LT_DLLAZY_OR_NOW DL_LAZY
17388 # define LT_DLLAZY_OR_NOW RTLD_NOW
17391 # define LT_DLLAZY_OR_NOW DL_NOW
17393 # define LT_DLLAZY_OR_NOW 0
17401 extern "C" void exit (int);
17404 void fnord() { int i=42;}
17407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17408 int status = $lt_dlunknown;
17412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17413 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17414 /* dlclose (self); */
17422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423 (eval $ac_link) 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17427 (./conftest; exit; ) >&5 2>/dev/null
17429 case x$lt_status in
17430 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17431 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17432 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17435 # compilation failed
17436 lt_cv_dlopen_self_static=no
17443 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17444 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17447 CPPFLAGS="$save_CPPFLAGS"
17448 LDFLAGS="$save_LDFLAGS"
17453 case $lt_cv_dlopen_self in
17454 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17455 *) enable_dlopen_self=unknown ;;
17458 case $lt_cv_dlopen_self_static in
17459 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17460 *) enable_dlopen_self_static=unknown ;;
17465 # Report which library types will actually be built
17466 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17467 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17468 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17469 echo "${ECHO_T}$can_build_shared" >&6; }
17471 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17472 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17473 test "$can_build_shared" = "no" && enable_shared=no
17475 # On AIX, shared libraries and static libraries use the same namespace, and
17476 # are all built from PIC.
17479 test "$enable_shared" = yes && enable_static=no
17480 if test -n "$RANLIB"; then
17481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17482 postinstall_cmds='$RANLIB $lib'
17487 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17488 test "$enable_shared" = yes && enable_static=no
17492 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17493 echo "${ECHO_T}$enable_shared" >&6; }
17495 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17496 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17497 # Make sure either enable_shared or enable_static is yes.
17498 test "$enable_shared" = yes || enable_static=yes
17499 { echo "$as_me:$LINENO: result: $enable_static" >&5
17500 echo "${ECHO_T}$enable_static" >&6; }
17502 # The else clause should only fire when bootstrapping the
17503 # libtool distribution, otherwise you forgot to ship ltmain.sh
17504 # with your package, and you will get complaints that there are
17505 # no rules to generate ltmain.sh.
17506 if test -f "$ltmain"; then
17507 # See if we are running on zsh, and set the options which allow our commands through
17508 # without removal of \ escapes.
17509 if test -n "${ZSH_VERSION+set}" ; then
17510 setopt NO_GLOB_SUBST
17512 # Now quote all the things that may contain metacharacters while being
17513 # careful not to overquote the AC_SUBSTed values. We take copies of the
17514 # variables and quote the copies for generation of the libtool script.
17515 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17517 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17518 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17519 deplibs_check_method reload_flag reload_cmds need_locks \
17520 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17521 lt_cv_sys_global_symbol_to_c_name_address \
17522 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17523 old_postinstall_cmds old_postuninstall_cmds \
17527 lt_prog_compiler_wl \
17528 lt_prog_compiler_pic \
17529 lt_prog_compiler_static \
17530 lt_prog_compiler_no_builtin_flag \
17531 export_dynamic_flag_spec \
17532 thread_safe_flag_spec \
17533 whole_archive_flag_spec \
17534 enable_shared_with_static_runtimes \
17536 old_archive_from_new_cmds \
17541 compiler_lib_search_path \
17543 archive_expsym_cmds \
17545 postuninstall_cmds \
17546 old_archive_from_expsyms_cmds \
17547 allow_undefined_flag \
17548 no_undefined_flag \
17549 export_symbols_cmds \
17550 hardcode_libdir_flag_spec \
17551 hardcode_libdir_flag_spec_ld \
17552 hardcode_libdir_separator \
17553 hardcode_automatic \
17555 module_expsym_cmds \
17556 lt_cv_prog_compiler_c_o \
17558 include_expsyms; do
17561 old_archive_cmds | \
17562 old_archive_from_new_cmds | \
17564 archive_expsym_cmds | \
17566 module_expsym_cmds | \
17567 old_archive_from_expsyms_cmds | \
17568 export_symbols_cmds | \
17569 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17570 postinstall_cmds | postuninstall_cmds | \
17571 old_postinstall_cmds | old_postuninstall_cmds | \
17572 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17573 # Double-quote double-evaled strings.
17574 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17577 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17583 *'\$0 --fallback-echo"')
17584 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17588 cfgfile="${ofile}T"
17589 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17591 { echo "$as_me:$LINENO: creating $ofile" >&5
17592 echo "$as_me: creating $ofile" >&6;}
17594 cat <<__EOF__ >> "$cfgfile"
17597 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17598 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17599 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17601 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17602 # Free Software Foundation, Inc.
17604 # This file is part of GNU Libtool:
17605 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17607 # This program is free software; you can redistribute it and/or modify
17608 # it under the terms of the GNU General Public License as published by
17609 # the Free Software Foundation; either version 2 of the License, or
17610 # (at your option) any later version.
17612 # This program is distributed in the hope that it will be useful, but
17613 # WITHOUT ANY WARRANTY; without even the implied warranty of
17614 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17615 # General Public License for more details.
17617 # You should have received a copy of the GNU General Public License
17618 # along with this program; if not, write to the Free Software
17619 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17621 # As a special exception to the GNU General Public License, if you
17622 # distribute this file as part of a program that contains a
17623 # configuration script generated by Autoconf, you may include it under
17624 # the same distribution terms that you use for the rest of that program.
17626 # A sed program that does not truncate output.
17629 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17630 Xsed="$SED -e 1s/^X//"
17632 # The HP-UX ksh and POSIX shell print the target directory to stdout
17633 # if CDPATH is set.
17634 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17636 # The names of the tagged configurations supported by this script.
17639 # ### BEGIN LIBTOOL CONFIG
17641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17643 # Shell to use when invoking shell scripts.
17646 # Whether or not to build shared libraries.
17647 build_libtool_libs=$enable_shared
17649 # Whether or not to build static libraries.
17650 build_old_libs=$enable_static
17652 # Whether or not to add -lc for building shared libraries.
17653 build_libtool_need_lc=$archive_cmds_need_lc
17655 # Whether or not to disallow shared libs when runtime libs are static
17656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17658 # Whether or not to optimize for fast installation.
17659 fast_install=$enable_fast_install
17662 host_alias=$host_alias
17666 # The build system.
17667 build_alias=$build_alias
17671 # An echo program that does not interpret backslashes.
17676 AR_FLAGS=$lt_AR_FLAGS
17681 # LTCC compiler flags.
17682 LTCFLAGS=$lt_LTCFLAGS
17684 # A language-specific compiler.
17687 # Is the compiler the GNU C compiler?
17693 # The linker used to build libraries.
17696 # Whether we need hard or soft links.
17699 # A BSD-compatible nm program.
17702 # A symbol stripping program
17705 # Used to examine libraries when file_magic_cmd begins "file"
17706 MAGIC_CMD=$MAGIC_CMD
17708 # Used on cygwin: DLL creation program.
17711 # Used on cygwin: object dumper.
17714 # Used on cygwin: assembler.
17717 # The name of the directory that contains temporary libtool files.
17720 # How to create reloadable object files.
17721 reload_flag=$lt_reload_flag
17722 reload_cmds=$lt_reload_cmds
17724 # How to pass a linker flag through the compiler.
17725 wl=$lt_lt_prog_compiler_wl
17727 # Object file suffix (normally "o").
17728 objext="$ac_objext"
17730 # Old archive suffix (normally "a").
17733 # Shared library suffix (normally ".so").
17734 shrext_cmds='$shrext_cmds'
17736 # Executable file suffix (normally "").
17739 # Additional compiler flags for building library objects.
17740 pic_flag=$lt_lt_prog_compiler_pic
17743 # What is the maximum length of a command?
17744 max_cmd_len=$lt_cv_sys_max_cmd_len
17746 # Does compiler simultaneously support -c and -o options?
17747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17749 # Must we lock files when doing compilation?
17750 need_locks=$lt_need_locks
17752 # Do we need the lib prefix for modules?
17753 need_lib_prefix=$need_lib_prefix
17755 # Do we need a version for libraries?
17756 need_version=$need_version
17758 # Whether dlopen is supported.
17759 dlopen_support=$enable_dlopen
17761 # Whether dlopen of programs is supported.
17762 dlopen_self=$enable_dlopen_self
17764 # Whether dlopen of statically linked programs is supported.
17765 dlopen_self_static=$enable_dlopen_self_static
17767 # Compiler flag to prevent dynamic linking.
17768 link_static_flag=$lt_lt_prog_compiler_static
17770 # Compiler flag to turn off builtin functions.
17771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17773 # Compiler flag to allow reflexive dlopens.
17774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17776 # Compiler flag to generate shared objects directly from archives.
17777 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17779 # Compiler flag to generate thread-safe objects.
17780 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17782 # Library versioning type.
17783 version_type=$version_type
17785 # Format of library name prefix.
17786 libname_spec=$lt_libname_spec
17788 # List of archive names. First name is the real one, the rest are links.
17789 # The last name is the one that the linker finds with -lNAME.
17790 library_names_spec=$lt_library_names_spec
17792 # The coded name of the library, if different from the real name.
17793 soname_spec=$lt_soname_spec
17795 # Commands used to build and install an old-style archive.
17797 old_archive_cmds=$lt_old_archive_cmds
17798 old_postinstall_cmds=$lt_old_postinstall_cmds
17799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17801 # Create an old-style archive from a shared archive.
17802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17804 # Create a temporary old-style archive to link instead of a shared archive.
17805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17807 # Commands used to build and install a shared archive.
17808 archive_cmds=$lt_archive_cmds
17809 archive_expsym_cmds=$lt_archive_expsym_cmds
17810 postinstall_cmds=$lt_postinstall_cmds
17811 postuninstall_cmds=$lt_postuninstall_cmds
17813 # Commands used to build a loadable module (assumed same as above if empty)
17814 module_cmds=$lt_module_cmds
17815 module_expsym_cmds=$lt_module_expsym_cmds
17817 # Commands to strip libraries.
17818 old_striplib=$lt_old_striplib
17819 striplib=$lt_striplib
17821 # Dependencies to place before the objects being linked to create a
17823 predep_objects=$lt_predep_objects
17825 # Dependencies to place after the objects being linked to create a
17827 postdep_objects=$lt_postdep_objects
17829 # Dependencies to place before the objects being linked to create a
17831 predeps=$lt_predeps
17833 # Dependencies to place after the objects being linked to create a
17835 postdeps=$lt_postdeps
17837 # The library search path used internally by the compiler when linking
17838 # a shared library.
17839 compiler_lib_search_path=$lt_compiler_lib_search_path
17841 # Method to check whether dependent libraries are shared objects.
17842 deplibs_check_method=$lt_deplibs_check_method
17844 # Command to use when deplibs_check_method == file_magic.
17845 file_magic_cmd=$lt_file_magic_cmd
17847 # Flag that allows shared libraries with undefined symbols to be built.
17848 allow_undefined_flag=$lt_allow_undefined_flag
17850 # Flag that forces no undefined symbols.
17851 no_undefined_flag=$lt_no_undefined_flag
17853 # Commands used to finish a libtool library installation in a directory.
17854 finish_cmds=$lt_finish_cmds
17856 # Same as above, but a single script fragment to be evaled but not shown.
17857 finish_eval=$lt_finish_eval
17859 # Take the output of nm and produce a listing of raw symbols and C names.
17860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17862 # Transform the output of nm in a proper C declaration
17863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17865 # Transform the output of nm in a C name address pair
17866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17868 # This is the shared library runtime path variable.
17869 runpath_var=$runpath_var
17871 # This is the shared library path variable.
17872 shlibpath_var=$shlibpath_var
17874 # Is shlibpath searched before the hard-coded library search path?
17875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17877 # How to hardcode a shared library path into an executable.
17878 hardcode_action=$hardcode_action
17880 # Whether we should hardcode library paths into libraries.
17881 hardcode_into_libs=$hardcode_into_libs
17883 # Flag to hardcode \$libdir into a binary during linking.
17884 # This must work even if \$libdir does not exist.
17885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17887 # If ld is used when linking, flag to hardcode \$libdir into
17888 # a binary during linking. This must work even if \$libdir does
17890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17892 # Whether we need a single -rpath flag with a separated argument.
17893 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17896 # resulting binary.
17897 hardcode_direct=$hardcode_direct
17899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17900 # resulting binary.
17901 hardcode_minus_L=$hardcode_minus_L
17903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17904 # the resulting binary.
17905 hardcode_shlibpath_var=$hardcode_shlibpath_var
17907 # Set to yes if building a shared library automatically hardcodes DIR into the library
17908 # and all subsequent libraries and executables linked against it.
17909 hardcode_automatic=$hardcode_automatic
17911 # Variables whose values should be saved in libtool wrapper scripts and
17912 # restored at relink time.
17913 variables_saved_for_relink="$variables_saved_for_relink"
17915 # Whether libtool must link a program against all its dependency libraries.
17916 link_all_deplibs=$link_all_deplibs
17918 # Compile-time system search path for libraries
17919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17921 # Run-time system search path for libraries
17922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17924 # Fix the shell variable \$srcfile for the compiler.
17925 fix_srcfile_path="$fix_srcfile_path"
17927 # Set to yes if exported symbols are required.
17928 always_export_symbols=$always_export_symbols
17930 # The commands to list exported symbols.
17931 export_symbols_cmds=$lt_export_symbols_cmds
17933 # The commands to extract the exported symbol list from a shared archive.
17934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17936 # Symbols that should not be listed in the preloaded symbols.
17937 exclude_expsyms=$lt_exclude_expsyms
17939 # Symbols that must always be exported.
17940 include_expsyms=$lt_include_expsyms
17942 # ### END LIBTOOL CONFIG
17949 cat <<\EOF >> "$cfgfile"
17951 # AIX sometimes has problems with the GCC collect2 program. For some
17952 # reason, if we set the COLLECT_NAMES environment variable, the problems
17953 # vanish in a puff of smoke.
17954 if test "X${COLLECT_NAMES+set}" != Xset; then
17956 export COLLECT_NAMES
17962 # We use sed instead of cat because bash on DJGPP gets confused if
17963 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17964 # text mode, it properly converts lines to CR/LF. This bash problem
17965 # is reportedly fixed, but why not run on old versions too?
17966 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17968 mv -f "$cfgfile" "$ofile" || \
17969 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17973 # If there is no Makefile yet, we rely on a make rule to execute
17974 # `config.status --recheck' to rerun these tests and create the
17975 # libtool script then.
17976 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17977 if test -f "$ltmain_in"; then
17978 test -f Makefile && make "$ltmain"
17984 ac_cpp='$CPP $CPPFLAGS'
17985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17992 # Check whether --with-tags was given.
17993 if test "${with_tags+set}" = set; then
17994 withval=$with_tags; tagnames="$withval"
17998 if test -f "$ltmain" && test -n "$tagnames"; then
17999 if test ! -f "${ofile}"; then
18000 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18001 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18004 if test -z "$LTCC"; then
18005 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18006 if test -z "$LTCC"; then
18007 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18008 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18010 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18011 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18014 if test -z "$LTCFLAGS"; then
18015 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18018 # Extract list of available tagged configurations in $ofile.
18019 # Note that this assumes the entire list is on one line.
18020 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18023 for tagname in $tagnames; do
18025 # Check whether tagname contains only valid characters
18026 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18028 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18029 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18030 { (exit 1); exit 1; }; }
18034 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18036 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18037 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18038 { (exit 1); exit 1; }; }
18041 # Update the list of available tags.
18042 if test -n "$tagname"; then
18043 echo appending configuration tag \"$tagname\" to $ofile
18047 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18048 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18049 (test "X$CXX" != "Xg++"))) ; then
18051 ac_cpp='$CXXCPP $CPPFLAGS'
18052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18059 archive_cmds_need_lc_CXX=no
18060 allow_undefined_flag_CXX=
18061 always_export_symbols_CXX=no
18062 archive_expsym_cmds_CXX=
18063 export_dynamic_flag_spec_CXX=
18064 hardcode_direct_CXX=no
18065 hardcode_libdir_flag_spec_CXX=
18066 hardcode_libdir_flag_spec_ld_CXX=
18067 hardcode_libdir_separator_CXX=
18068 hardcode_minus_L_CXX=no
18069 hardcode_shlibpath_var_CXX=unsupported
18070 hardcode_automatic_CXX=no
18072 module_expsym_cmds_CXX=
18073 link_all_deplibs_CXX=unknown
18074 old_archive_cmds_CXX=$old_archive_cmds
18075 no_undefined_flag_CXX=
18076 whole_archive_flag_spec_CXX=
18077 enable_shared_with_static_runtimes_CXX=no
18079 # Dependencies to place before and after the object being linked:
18080 predep_objects_CXX=
18081 postdep_objects_CXX=
18084 compiler_lib_search_path_CXX=
18086 # Source file extension for C++ test sources.
18089 # Object file extension for compiled C++ test sources.
18093 # Code to be used in simple compile tests
18094 lt_simple_compile_test_code="int some_variable = 0;\n"
18096 # Code to be used in simple link tests
18097 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18101 # If no C compiler was specified, use CC.
18104 # If no C compiler flags were specified, use CFLAGS.
18105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18107 # Allow CC to be a program name with arguments.
18111 # save warnings/boilerplate of simple test code
18112 ac_outfile=conftest.$ac_objext
18113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18115 _lt_compiler_boilerplate=`cat conftest.err`
18118 ac_outfile=conftest.$ac_objext
18119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18121 _lt_linker_boilerplate=`cat conftest.err`
18125 # Allow CC to be a program name with arguments.
18130 lt_save_with_gnu_ld=$with_gnu_ld
18131 lt_save_path_LD=$lt_cv_path_LD
18132 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18133 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18135 $as_unset lt_cv_prog_gnu_ld
18137 if test -n "${lt_cv_path_LDCXX+set}"; then
18138 lt_cv_path_LD=$lt_cv_path_LDCXX
18140 $as_unset lt_cv_path_LD
18142 test -z "${LDCXX+set}" || LD=$LDCXX
18146 for cc_temp in $compiler""; do
18148 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18149 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18154 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18157 # We don't want -fno-exception wen compiling C++ code, so set the
18158 # no_builtin_flag separately
18159 if test "$GXX" = yes; then
18160 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18162 lt_prog_compiler_no_builtin_flag_CXX=
18165 if test "$GXX" = yes; then
18166 # Set up default GNU C++ configuration
18169 # Check whether --with-gnu-ld was given.
18170 if test "${with_gnu_ld+set}" = set; then
18171 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18177 if test "$GCC" = yes; then
18178 # Check if gcc -print-prog-name=ld gives a path.
18179 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18180 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18183 # gcc leaves a trailing carriage return which upsets mingw
18184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18189 # Accept absolute paths.
18191 re_direlt='/[^/][^/]*/\.\./'
18192 # Canonicalize the pathname of ld
18193 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18194 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18195 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18197 test -z "$LD" && LD="$ac_prog"
18200 # If it fails, then pretend we aren't using GCC.
18204 # If it is relative, then search for the first ld in PATH.
18205 with_gnu_ld=unknown
18208 elif test "$with_gnu_ld" = yes; then
18209 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18210 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18212 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18213 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18215 if test "${lt_cv_path_LD+set}" = set; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18218 if test -z "$LD"; then
18219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18220 for ac_dir in $PATH; do
18222 test -z "$ac_dir" && ac_dir=.
18223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18224 lt_cv_path_LD="$ac_dir/$ac_prog"
18225 # Check to see if the program is GNU ld. I'd rather use --version,
18226 # but apparently some variants of GNU ld only accept -v.
18227 # Break only if it was the GNU/non-GNU ld that we prefer.
18228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18229 *GNU* | *'with BFD'*)
18230 test "$with_gnu_ld" != no && break
18233 test "$with_gnu_ld" != yes && break
18240 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18244 LD="$lt_cv_path_LD"
18245 if test -n "$LD"; then
18246 { echo "$as_me:$LINENO: result: $LD" >&5
18247 echo "${ECHO_T}$LD" >&6; }
18249 { echo "$as_me:$LINENO: result: no" >&5
18250 echo "${ECHO_T}no" >&6; }
18252 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18253 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18254 { (exit 1); exit 1; }; }
18255 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18256 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18257 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18261 case `$LD -v 2>&1 </dev/null` in
18262 *GNU* | *'with BFD'*)
18263 lt_cv_prog_gnu_ld=yes
18266 lt_cv_prog_gnu_ld=no
18270 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18271 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18272 with_gnu_ld=$lt_cv_prog_gnu_ld
18276 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18277 # archiving commands below assume that GNU ld is being used.
18278 if test "$with_gnu_ld" = yes; then
18279 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18280 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'
18282 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18283 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18285 # If archive_cmds runs LD, not CC, wlarc should be empty
18286 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18287 # investigate it a little bit more. (MM)
18290 # ancient GNU ld didn't support --whole-archive et. al.
18291 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18292 grep 'no-whole-archive' > /dev/null; then
18293 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18295 whole_archive_flag_spec_CXX=
18301 # A generic and very simple default shared library creation
18302 # command for GNU C++ for the case where it uses the native
18303 # linker, instead of GNU ld. If possible, this setting should
18304 # overridden to take advantage of the native linker features on
18305 # the platform it is being used on.
18306 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18309 # Commands to make compiler produce verbose output that lists
18310 # what "hidden" libraries, object files and flags are used when
18311 # linking a shared library.
18312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18320 # PORTME: fill in a description of your system's C++ link characteristics
18321 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18322 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18326 # FIXME: insert proper C++ library support
18330 if test "$host_cpu" = ia64; then
18331 # On IA64, the linker does run time linking by default, so we don't
18332 # have to do anything special.
18333 aix_use_runtimelinking=no
18334 exp_sym_flag='-Bexport'
18337 aix_use_runtimelinking=no
18339 # Test if we are trying to use run time linking or normal
18340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18341 # need to do runtime linking.
18342 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18343 for ld_flag in $LDFLAGS; do
18346 aix_use_runtimelinking=yes
18354 exp_sym_flag='-bexport'
18355 no_entry_flag='-bnoentry'
18358 # When large executables or shared objects are built, AIX ld can
18359 # have problems creating the table of contents. If linking a library
18360 # or program results in "error TOC overflow" add -mminimal-toc to
18361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18364 archive_cmds_CXX=''
18365 hardcode_direct_CXX=yes
18366 hardcode_libdir_separator_CXX=':'
18367 link_all_deplibs_CXX=yes
18369 if test "$GXX" = yes; then
18370 case $host_os in aix4.[012]|aix4.[012].*)
18371 # We only want to do this on AIX 4.2 and lower, the check
18372 # below for broken collect2 doesn't work under 4.3+
18373 collect2name=`${CC} -print-prog-name=collect2`
18374 if test -f "$collect2name" && \
18375 strings "$collect2name" | grep resolve_lib_name >/dev/null
18377 # We have reworked collect2
18378 hardcode_direct_CXX=yes
18380 # We have old collect2
18381 hardcode_direct_CXX=unsupported
18382 # It fails to find uninstalled libraries when the uninstalled
18383 # path is not listed in the libpath. Setting hardcode_minus_L
18384 # to unsupported forces relinking
18385 hardcode_minus_L_CXX=yes
18386 hardcode_libdir_flag_spec_CXX='-L$libdir'
18387 hardcode_libdir_separator_CXX=
18391 shared_flag='-shared'
18392 if test "$aix_use_runtimelinking" = yes; then
18393 shared_flag="$shared_flag "'${wl}-G'
18397 if test "$host_cpu" = ia64; then
18398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18399 # chokes on -Wl,-G. The following line is correct:
18402 if test "$aix_use_runtimelinking" = yes; then
18403 shared_flag='${wl}-G'
18405 shared_flag='${wl}-bM:SRE'
18410 # It seems that -bexpall does not export symbols beginning with
18411 # underscore (_), so it is better to generate a list of symbols to export.
18412 always_export_symbols_CXX=yes
18413 if test "$aix_use_runtimelinking" = yes; then
18414 # Warning - without using the other runtime loading flags (-brtl),
18415 # -berok will link without error, but may produce a broken library.
18416 allow_undefined_flag_CXX='-berok'
18417 # Determine the default libpath from the value encoded in an empty executable.
18418 cat >conftest.$ac_ext <<_ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_link") 2>conftest.er1
18442 grep -v '^ *+' conftest.er1 >conftest.err
18444 cat conftest.err >&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } &&
18447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; } &&
18457 { ac_try='test -s conftest$ac_exeext'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18470 # Check for a 64-bit object if we didn't find anything.
18471 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; }
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18480 rm -f core conftest.err conftest.$ac_objext \
18481 conftest$ac_exeext conftest.$ac_ext
18482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18484 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18486 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"
18488 if test "$host_cpu" = ia64; then
18489 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18490 allow_undefined_flag_CXX="-z nodefs"
18491 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"
18493 # Determine the default libpath from the value encoded in an empty executable.
18494 cat >conftest.$ac_ext <<_ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18509 rm -f conftest.$ac_objext conftest$ac_exeext
18510 if { (ac_try="$ac_link"
18511 case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_link") 2>conftest.er1
18518 grep -v '^ *+' conftest.er1 >conftest.err
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18524 { (case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_try") 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; } &&
18533 { ac_try='test -s conftest$ac_exeext'
18534 { (case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_try") 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18546 # Check for a 64-bit object if we didn't find anything.
18547 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; }
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18556 rm -f core conftest.err conftest.$ac_objext \
18557 conftest$ac_exeext conftest.$ac_ext
18558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18560 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18561 # Warning - without using the other run time loading flags,
18562 # -berok will link without error, but may produce a broken library.
18563 no_undefined_flag_CXX=' ${wl}-bernotok'
18564 allow_undefined_flag_CXX=' ${wl}-berok'
18565 # Exported symbols can be pulled into shared objects from archives
18566 whole_archive_flag_spec_CXX='$convenience'
18567 archive_cmds_need_lc_CXX=yes
18568 # This is similar to how AIX traditionally builds its shared libraries.
18569 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'
18575 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18576 allow_undefined_flag_CXX=unsupported
18577 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18578 # support --undefined. This deserves some investigation. FIXME
18579 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18586 case $cc_basename in
18588 # FIXME: insert proper C++ library support
18594 cygwin* | mingw* | pw32*)
18595 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18596 # as there is no search path for DLLs.
18597 hardcode_libdir_flag_spec_CXX='-L$libdir'
18598 allow_undefined_flag_CXX=unsupported
18599 always_export_symbols_CXX=no
18600 enable_shared_with_static_runtimes_CXX=yes
18602 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18603 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'
18604 # If the export-symbols file already is a .def file (1st line
18605 # is EXPORTS), use it as is; otherwise, prepend...
18606 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18607 cp $export_symbols $output_objdir/$soname.def;
18609 echo EXPORTS > $output_objdir/$soname.def;
18610 cat $export_symbols >> $output_objdir/$soname.def;
18612 $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'
18617 darwin* | rhapsody*)
18619 rhapsody* | darwin1.[012])
18620 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18623 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18624 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18626 case ${MACOSX_DEPLOYMENT_TARGET} in
18628 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18631 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18637 archive_cmds_need_lc_CXX=no
18638 hardcode_direct_CXX=no
18639 hardcode_automatic_CXX=yes
18640 hardcode_shlibpath_var_CXX=unsupported
18641 whole_archive_flag_spec_CXX=''
18642 link_all_deplibs_CXX=yes
18644 if test "$GXX" = yes ; then
18645 lt_int_apple_cc_single_mod=no
18646 output_verbose_link_cmd='echo'
18647 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18648 lt_int_apple_cc_single_mod=yes
18650 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18651 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18653 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'
18655 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18657 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18658 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}'
18660 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}'
18662 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}'
18664 case $cc_basename in
18666 output_verbose_link_cmd='echo'
18667 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'
18668 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18670 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}'
18671 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}'
18681 case $cc_basename in
18683 # FIXME: insert proper C++ library support
18687 # Green Hills C++ Compiler
18688 # FIXME: insert proper C++ library support
18692 # FIXME: insert proper C++ library support
18698 # C++ shared libraries reported to be fairly broken before switch to ELF
18702 archive_cmds_need_lc_CXX=no
18704 freebsd* | kfreebsd*-gnu | dragonfly*)
18705 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18712 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18713 hardcode_libdir_separator_CXX=:
18714 export_dynamic_flag_spec_CXX='${wl}-E'
18715 hardcode_direct_CXX=yes
18716 hardcode_minus_L_CXX=yes # Not in the search PATH,
18717 # but as the default
18718 # location of the library.
18720 case $cc_basename in
18722 # FIXME: insert proper C++ library support
18726 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'
18727 # Commands to make compiler produce verbose output that lists
18728 # what "hidden" libraries, object files and flags are used when
18729 # linking a shared library.
18731 # There doesn't appear to be a way to prevent this compiler from
18732 # explicitly linking system object files so we need to strip them
18733 # from the output so that they don't get included in the library
18735 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'
18738 if test "$GXX" = yes; then
18739 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'
18741 # FIXME: insert proper C++ library support
18748 if test $with_gnu_ld = no; then
18749 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18750 hardcode_libdir_separator_CXX=:
18754 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18757 export_dynamic_flag_spec_CXX='${wl}-E'
18763 hardcode_direct_CXX=no
18764 hardcode_shlibpath_var_CXX=no
18767 hardcode_direct_CXX=yes
18768 hardcode_minus_L_CXX=yes # Not in the search PATH,
18769 # but as the default
18770 # location of the library.
18774 case $cc_basename in
18776 # FIXME: insert proper C++ library support
18782 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18785 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18788 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18791 # Commands to make compiler produce verbose output that lists
18792 # what "hidden" libraries, object files and flags are used when
18793 # linking a shared library.
18795 # There doesn't appear to be a way to prevent this compiler from
18796 # explicitly linking system object files so we need to strip them
18797 # from the output so that they don't get included in the library
18799 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'
18802 if test "$GXX" = yes; then
18803 if test $with_gnu_ld = no; then
18806 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18809 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18812 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'
18817 # FIXME: insert proper C++ library support
18824 hardcode_direct_CXX=no
18825 hardcode_shlibpath_var_CXX=no
18826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18827 export_dynamic_flag_spec_CXX='${wl}-E'
18828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18829 # Instead, shared libraries are loaded at an image base (0x10000000 by
18830 # default) and relocated if they conflict, which is a slow very memory
18831 # consuming and fragmenting process. To avoid this, we pick a random,
18832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18833 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18834 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'
18835 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'
18838 case $cc_basename in
18841 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'
18843 # Archives containing C++ object files must be created using
18844 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18845 # necessary to make sure instantiated templates are included
18847 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18850 if test "$GXX" = yes; then
18851 if test "$with_gnu_ld" = no; then
18852 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'
18854 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'
18857 link_all_deplibs_CXX=yes
18860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18861 hardcode_libdir_separator_CXX=:
18864 case $cc_basename in
18866 # Kuck and Associates, Inc. (KAI) C++ Compiler
18868 # KCC will only create a shared library if the output file
18869 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18870 # to its proper name (with version) after linking.
18871 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'
18872 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'
18873 # Commands to make compiler produce verbose output that lists
18874 # what "hidden" libraries, object files and flags are used when
18875 # linking a shared library.
18877 # There doesn't appear to be a way to prevent this compiler from
18878 # explicitly linking system object files so we need to strip them
18879 # from the output so that they don't get included in the library
18881 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'
18883 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18886 # Archives containing C++ object files must be created using
18887 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18888 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18893 # version 8.0 and above of icpc choke on multiply defined symbols
18894 # if we add $predep_objects and $postdep_objects, however 7.1 and
18895 # earlier do not add the objects themselves.
18896 case `$CC -V 2>&1` in
18898 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18899 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'
18901 *) # Version 8.0 or newer
18904 ia64*) tmp_idyn=' -i_dynamic';;
18906 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18907 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'
18910 archive_cmds_need_lc_CXX=no
18911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18912 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18913 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18916 # Portland Group C++ compiler
18917 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18918 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'
18920 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18921 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18922 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'
18926 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18927 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'
18929 runpath_var=LD_RUN_PATH
18930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18931 hardcode_libdir_separator_CXX=:
18933 # Commands to make compiler produce verbose output that lists
18934 # what "hidden" libraries, object files and flags are used when
18935 # linking a shared library.
18937 # There doesn't appear to be a way to prevent this compiler from
18938 # explicitly linking system object files so we need to strip them
18939 # from the output so that they don't get included in the library
18941 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'
18946 # FIXME: insert proper C++ library support
18950 # FIXME: insert proper C++ library support
18954 case $cc_basename in
18956 # FIXME: insert proper C++ library support
18960 # FIXME: insert proper C++ library support
18966 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18967 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18969 hardcode_libdir_flag_spec_CXX='-R$libdir'
18970 hardcode_direct_CXX=yes
18971 hardcode_shlibpath_var_CXX=no
18973 # Workaround some broken pre-1.5 toolchains
18974 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18977 # C++ shared libraries are fairly broken
18981 hardcode_direct_CXX=yes
18982 hardcode_shlibpath_var_CXX=no
18983 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18984 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18985 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18986 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18987 export_dynamic_flag_spec_CXX='${wl}-E'
18988 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18990 output_verbose_link_cmd='echo'
18993 case $cc_basename in
18995 # Kuck and Associates, Inc. (KAI) C++ Compiler
18997 # KCC will only create a shared library if the output file
18998 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18999 # to its proper name (with version) after linking.
19000 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'
19002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19003 hardcode_libdir_separator_CXX=:
19005 # Archives containing C++ object files must be created using
19006 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19007 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19011 # Rational C++ 2.4.1
19012 # FIXME: insert proper C++ library support
19016 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19017 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'
19019 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19020 hardcode_libdir_separator_CXX=:
19022 # Commands to make compiler produce verbose output that lists
19023 # what "hidden" libraries, object files and flags are used when
19024 # linking a shared library.
19026 # There doesn't appear to be a way to prevent this compiler from
19027 # explicitly linking system object files so we need to strip them
19028 # from the output so that they don't get included in the library
19030 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'
19033 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19034 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19035 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'
19037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19038 hardcode_libdir_separator_CXX=:
19040 # Commands to make compiler produce verbose output that lists
19041 # what "hidden" libraries, object files and flags are used when
19042 # linking a shared library.
19043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19046 # FIXME: insert proper C++ library support
19053 case $cc_basename in
19055 # Kuck and Associates, Inc. (KAI) C++ Compiler
19057 # KCC will only create a shared library if the output file
19058 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19059 # to its proper name (with version) after linking.
19060 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'
19062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19063 hardcode_libdir_separator_CXX=:
19065 # Archives containing C++ object files must be created using
19066 # the KAI C++ compiler.
19067 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19070 # Rational C++ 2.4.1
19071 # FIXME: insert proper C++ library support
19075 allow_undefined_flag_CXX=' -expect_unresolved \*'
19076 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'
19077 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19078 echo "-hidden">> $lib.exp~
19079 $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~
19082 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19083 hardcode_libdir_separator_CXX=:
19085 # Commands to make compiler produce verbose output that lists
19086 # what "hidden" libraries, object files and flags are used when
19087 # linking a shared library.
19089 # There doesn't appear to be a way to prevent this compiler from
19090 # explicitly linking system object files so we need to strip them
19091 # from the output so that they don't get included in the library
19093 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'
19096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19098 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'
19100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19101 hardcode_libdir_separator_CXX=:
19103 # Commands to make compiler produce verbose output that lists
19104 # what "hidden" libraries, object files and flags are used when
19105 # linking a shared library.
19106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19109 # FIXME: insert proper C++ library support
19116 # FIXME: insert proper C++ library support
19120 case $cc_basename in
19123 # FIXME: insert proper C++ library support
19128 # FIXME: insert proper C++ library support
19132 # FIXME: insert proper C++ library support
19138 case $cc_basename in
19140 # Sun C++ 4.2, 5.x and Centerline C++
19141 archive_cmds_need_lc_CXX=yes
19142 no_undefined_flag_CXX=' -zdefs'
19143 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19144 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19145 $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'
19147 hardcode_libdir_flag_spec_CXX='-R$libdir'
19148 hardcode_shlibpath_var_CXX=no
19150 solaris2.[0-5] | solaris2.[0-5].*) ;;
19152 # The C++ compiler is used as linker so we must use $wl
19153 # flag to pass the commands to the underlying system
19154 # linker. We must also pass each convience library through
19155 # to the system linker between allextract/defaultextract.
19156 # The C++ compiler will combine linker options so we
19157 # cannot just pass the convience library names through
19159 # Supported since Solaris 2.6 (maybe 2.5.1?)
19160 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'
19163 link_all_deplibs_CXX=yes
19165 output_verbose_link_cmd='echo'
19167 # Archives containing C++ object files must be created using
19168 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19169 # necessary to make sure instantiated templates are included
19171 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19174 # Green Hills C++ Compiler
19175 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19177 # The C++ compiler must be used to create the archive.
19178 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19181 # GNU C++ compiler with Solaris linker
19182 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19183 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19184 if $CC --version | grep -v '^2\.7' > /dev/null; then
19185 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19186 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19187 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19189 # Commands to make compiler produce verbose output that lists
19190 # what "hidden" libraries, object files and flags are used when
19191 # linking a shared library.
19192 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19194 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19196 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19197 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19198 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19200 # Commands to make compiler produce verbose output that lists
19201 # what "hidden" libraries, object files and flags are used when
19202 # linking a shared library.
19203 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19206 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19211 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19212 no_undefined_flag_CXX='${wl}-z,text'
19213 archive_cmds_need_lc_CXX=no
19214 hardcode_shlibpath_var_CXX=no
19215 runpath_var='LD_RUN_PATH'
19217 case $cc_basename in
19219 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19220 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19223 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19224 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19228 sysv5* | sco3.2v5* | sco5v6*)
19229 # Note: We can NOT use -z defs as we might desire, because we do not
19230 # link with -lc, and that would cause any symbols used from libc to
19231 # always be unresolved, which means just about no library would
19232 # ever link correctly. If we're not using GNU ld we use -z text
19233 # though, which does catch some bad symbols but isn't as heavy-handed
19235 # For security reasons, it is highly recommended that you always
19236 # use absolute paths for naming shared libraries, and exclude the
19237 # DT_RUNPATH tag from executables and libraries. But doing so
19238 # requires that you compile everything twice, which is a pain.
19239 # So that behaviour is only enabled if SCOABSPATH is set to a
19240 # non-empty value in the environment. Most likely only useful for
19241 # creating official distributions of packages.
19242 # This is a hack until libtool officially supports absolute path
19243 # names for shared libraries.
19244 no_undefined_flag_CXX='${wl}-z,text'
19245 allow_undefined_flag_CXX='${wl}-z,nodefs'
19246 archive_cmds_need_lc_CXX=no
19247 hardcode_shlibpath_var_CXX=no
19248 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19249 hardcode_libdir_separator_CXX=':'
19250 link_all_deplibs_CXX=yes
19251 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19252 runpath_var='LD_RUN_PATH'
19254 case $cc_basename in
19256 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19257 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19260 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19261 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19266 case $cc_basename in
19268 # NonStop-UX NCC 3.20
19269 # FIXME: insert proper C++ library support
19273 # FIXME: insert proper C++ library support
19279 # FIXME: insert proper C++ library support
19283 # FIXME: insert proper C++ library support
19287 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19288 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19289 test "$ld_shlibs_CXX" = no && can_build_shared=no
19295 cat > conftest.$ac_ext <<EOF
19299 Foo (void) { a = 0; }
19305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19306 (eval $ac_compile) 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; then
19310 # Parse the compiler output and extract the necessary
19311 # objects, libraries and library flags.
19313 # Sentinel used to keep track of whether or not we are before
19314 # the conftest object file.
19315 pre_test_object_deps_done=no
19317 # The `*' in the case matches for architectures that use `case' in
19318 # $output_verbose_cmd can trigger glob expansion during the loop
19319 # eval without this substitution.
19320 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19322 for p in `eval $output_verbose_link_cmd`; do
19326 # Some compilers place space between "-{L,R}" and the path.
19327 # Remove the space.
19328 if test $p = "-L" \
19329 || test $p = "-R"; then
19336 if test "$pre_test_object_deps_done" = no; then
19339 # Internal compiler library paths should come after those
19340 # provided the user. The postdeps already come after the
19341 # user supplied libs so there is no need to process them.
19342 if test -z "$compiler_lib_search_path_CXX"; then
19343 compiler_lib_search_path_CXX="${prev}${p}"
19345 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19348 # The "-l" case would never come before the object being
19349 # linked, so don't bother handling this case.
19352 if test -z "$postdeps_CXX"; then
19353 postdeps_CXX="${prev}${p}"
19355 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19361 # This assumes that the test object file only shows up
19362 # once in the compiler output.
19363 if test "$p" = "conftest.$objext"; then
19364 pre_test_object_deps_done=yes
19368 if test "$pre_test_object_deps_done" = no; then
19369 if test -z "$predep_objects_CXX"; then
19370 predep_objects_CXX="$p"
19372 predep_objects_CXX="$predep_objects_CXX $p"
19375 if test -z "$postdep_objects_CXX"; then
19376 postdep_objects_CXX="$p"
19378 postdep_objects_CXX="$postdep_objects_CXX $p"
19383 *) ;; # Ignore the rest.
19391 echo "libtool.m4: error: problem compiling CXX test program"
19394 $rm -f confest.$objext
19396 # PORTME: override above test on systems where it is broken
19399 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19400 # hack all around it, let's just trust "g++" to DTRT.
19401 predep_objects_CXX=
19402 postdep_objects_CXX=
19407 case $cc_basename in
19409 # Adding this requires a known-good setup of shared libraries for
19410 # Sun compiler versions before 5.6, else PIC objects from an old
19411 # archive will be linked into the output, leading to subtle bugs.
19412 postdeps_CXX='-lCstd -lCrun'
19419 case " $postdeps_CXX " in
19420 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19423 lt_prog_compiler_wl_CXX=
19424 lt_prog_compiler_pic_CXX=
19425 lt_prog_compiler_static_CXX=
19427 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19428 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19430 # C++ specific cases for pic, static, wl, etc.
19431 if test "$GXX" = yes; then
19432 lt_prog_compiler_wl_CXX='-Wl,'
19433 lt_prog_compiler_static_CXX='-static'
19437 # All AIX code is PIC.
19438 if test "$host_cpu" = ia64; then
19439 # AIX 5 now supports IA64 processor
19440 lt_prog_compiler_static_CXX='-Bstatic'
19444 # FIXME: we need at least 68020 code to build shared libraries, but
19445 # adding the `-m68020' flag to GCC prevents building anything better,
19447 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19449 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19450 # PIC is the default for these OSes.
19452 mingw* | os2* | pw32*)
19453 # This hack is so that the source file can tell whether it is being
19454 # built for inclusion in a dll (and should export symbols for example).
19455 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19457 darwin* | rhapsody*)
19458 # PIC is the default on this platform
19459 # Common symbols not allowed in MH_DYLIB files
19460 lt_prog_compiler_pic_CXX='-fno-common'
19463 # DJGPP does not support shared libraries at all
19464 lt_prog_compiler_pic_CXX=
19467 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19468 # Instead, we relocate shared libraries at runtime.
19471 if test -d /usr/nec; then
19472 lt_prog_compiler_pic_CXX=-Kconform_pic
19476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19477 # not for PA HP-UX.
19482 lt_prog_compiler_pic_CXX='-fPIC'
19487 lt_prog_compiler_pic_CXX='-fPIC'
19493 # All AIX code is PIC.
19494 if test "$host_cpu" = ia64; then
19495 # AIX 5 now supports IA64 processor
19496 lt_prog_compiler_static_CXX='-Bstatic'
19498 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19502 case $cc_basename in
19504 # Green Hills C++ Compiler
19505 # _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"
19510 # PIC is the default on this platform
19511 # Common symbols not allowed in MH_DYLIB files
19512 case $cc_basename in
19514 lt_prog_compiler_pic_CXX='-qnocommon'
19515 lt_prog_compiler_wl_CXX='-Wl,'
19520 case $cc_basename in
19522 lt_prog_compiler_pic_CXX='-KPIC'
19525 # Green Hills C++ Compiler
19526 lt_prog_compiler_pic_CXX='-pic'
19532 freebsd* | kfreebsd*-gnu | dragonfly*)
19533 # FreeBSD uses GNU C++
19535 hpux9* | hpux10* | hpux11*)
19536 case $cc_basename in
19538 lt_prog_compiler_wl_CXX='-Wl,'
19539 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19540 if test "$host_cpu" != ia64; then
19541 lt_prog_compiler_pic_CXX='+Z'
19545 lt_prog_compiler_wl_CXX='-Wl,'
19546 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19552 lt_prog_compiler_pic_CXX='+Z'
19561 # This is c89, which is MS Visual C++ (no shared libs)
19562 # Anyone wants to do a port?
19564 irix5* | irix6* | nonstopux*)
19565 case $cc_basename in
19567 lt_prog_compiler_wl_CXX='-Wl,'
19568 lt_prog_compiler_static_CXX='-non_shared'
19569 # CC pic flag -KPIC is the default.
19576 case $cc_basename in
19579 lt_prog_compiler_wl_CXX='--backend -Wl,'
19580 lt_prog_compiler_pic_CXX='-fPIC'
19584 lt_prog_compiler_wl_CXX='-Wl,'
19585 lt_prog_compiler_pic_CXX='-KPIC'
19586 lt_prog_compiler_static_CXX='-static'
19589 # Portland Group C++ compiler.
19590 lt_prog_compiler_wl_CXX='-Wl,'
19591 lt_prog_compiler_pic_CXX='-fpic'
19592 lt_prog_compiler_static_CXX='-Bstatic'
19596 # Make sure the PIC flag is empty. It appears that all Alpha
19597 # Linux and Compaq Tru64 Unix objects are PIC.
19598 lt_prog_compiler_pic_CXX=
19599 lt_prog_compiler_static_CXX='-non_shared'
19610 case $cc_basename in
19612 lt_prog_compiler_pic_CXX='-W c,exportall'
19620 osf3* | osf4* | osf5*)
19621 case $cc_basename in
19623 lt_prog_compiler_wl_CXX='--backend -Wl,'
19626 # Rational C++ 2.4.1
19627 lt_prog_compiler_pic_CXX='-pic'
19630 # Digital/Compaq C++
19631 lt_prog_compiler_wl_CXX='-Wl,'
19632 # Make sure the PIC flag is empty. It appears that all Alpha
19633 # Linux and Compaq Tru64 Unix objects are PIC.
19634 lt_prog_compiler_pic_CXX=
19635 lt_prog_compiler_static_CXX='-non_shared'
19644 case $cc_basename in
19646 # Sun C++ 4.2, 5.x and Centerline C++
19647 lt_prog_compiler_pic_CXX='-KPIC'
19648 lt_prog_compiler_static_CXX='-Bstatic'
19649 lt_prog_compiler_wl_CXX='-Qoption ld '
19652 # Green Hills C++ Compiler
19653 lt_prog_compiler_pic_CXX='-PIC'
19660 case $cc_basename in
19663 lt_prog_compiler_pic_CXX='-pic'
19664 lt_prog_compiler_static_CXX='-Bstatic'
19668 lt_prog_compiler_pic_CXX='-pic'
19675 case $cc_basename in
19677 # NonStop-UX NCC 3.20
19678 lt_prog_compiler_pic_CXX='-KPIC'
19684 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19685 case $cc_basename in
19687 lt_prog_compiler_wl_CXX='-Wl,'
19688 lt_prog_compiler_pic_CXX='-KPIC'
19689 lt_prog_compiler_static_CXX='-Bstatic'
19696 lt_prog_compiler_can_build_shared_CXX=no
19701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19702 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19705 # Check to make sure the PIC flag actually works.
19707 if test -n "$lt_prog_compiler_pic_CXX"; then
19709 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19711 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19714 lt_prog_compiler_pic_works_CXX=no
19715 ac_outfile=conftest.$ac_objext
19716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19717 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19718 # Insert the option either (1) after the last *FLAGS variable, or
19719 # (2) before a word containing "conftest.", or (3) at the end.
19720 # Note that $ac_compile itself does not contain backslashes and begins
19721 # with a dollar sign (not a hyphen), so the echo should work correctly.
19722 # The option is referenced via a variable to avoid confusing sed.
19723 lt_compile=`echo "$ac_compile" | $SED \
19724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19726 -e 's:$: $lt_compiler_flag:'`
19727 (eval echo "\"\$as_me:19727: $lt_compile\"" >&5)
19728 (eval "$lt_compile" 2>conftest.err)
19730 cat conftest.err >&5
19731 echo "$as_me:19731: \$? = $ac_status" >&5
19732 if (exit $ac_status) && test -s "$ac_outfile"; then
19733 # The compiler can only warn and ignore the option if not recognized
19734 # So say no if there are warnings other than the usual output.
19735 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19738 lt_prog_compiler_pic_works_CXX=yes
19744 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19745 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19747 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19748 case $lt_prog_compiler_pic_CXX in
19750 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19753 lt_prog_compiler_pic_CXX=
19754 lt_prog_compiler_can_build_shared_CXX=no
19759 # For platforms which do not support PIC, -DPIC is meaningless:
19761 lt_prog_compiler_pic_CXX=
19764 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19769 # Check to make sure the static flag actually works.
19771 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19772 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19773 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19774 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 lt_prog_compiler_static_works_CXX=no
19778 save_LDFLAGS="$LDFLAGS"
19779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19780 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19782 # The linker can only warn and ignore the option if not recognized
19783 # So say no if there are warnings
19784 if test -s conftest.err; then
19785 # Append any errors to the config.log.
19786 cat conftest.err 1>&5
19787 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19789 if diff conftest.exp conftest.er2 >/dev/null; then
19790 lt_prog_compiler_static_works_CXX=yes
19793 lt_prog_compiler_static_works_CXX=yes
19797 LDFLAGS="$save_LDFLAGS"
19800 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19801 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19803 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19806 lt_prog_compiler_static_CXX=
19810 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19811 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19812 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 lt_cv_prog_compiler_c_o_CXX=no
19816 $rm -r conftest 2>/dev/null
19820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19822 lt_compiler_flag="-o out/conftest2.$ac_objext"
19823 # Insert the option either (1) after the last *FLAGS variable, or
19824 # (2) before a word containing "conftest.", or (3) at the end.
19825 # Note that $ac_compile itself does not contain backslashes and begins
19826 # with a dollar sign (not a hyphen), so the echo should work correctly.
19827 lt_compile=`echo "$ac_compile" | $SED \
19828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19830 -e 's:$: $lt_compiler_flag:'`
19831 (eval echo "\"\$as_me:19831: $lt_compile\"" >&5)
19832 (eval "$lt_compile" 2>out/conftest.err)
19834 cat out/conftest.err >&5
19835 echo "$as_me:19835: \$? = $ac_status" >&5
19836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19838 # The compiler can only warn and ignore the option if not recognized
19839 # So say no if there are warnings
19840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19843 lt_cv_prog_compiler_c_o_CXX=yes
19848 # SGI C++ compiler will create directory out/ii_files/ for
19849 # template instantiation
19850 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19851 $rm out/* && rmdir out
19857 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19858 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19861 hard_links="nottested"
19862 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19863 # do not overwrite the value of need_locks provided by the user
19864 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19865 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19870 ln conftest.a conftest.b 2>&5 || hard_links=no
19871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19872 { echo "$as_me:$LINENO: result: $hard_links" >&5
19873 echo "${ECHO_T}$hard_links" >&6; }
19874 if test "$hard_links" = no; then
19875 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19876 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19883 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19884 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19886 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19889 # If we're using GNU nm, then we don't want the "-C" option.
19890 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19891 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19892 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'
19894 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'
19898 export_symbols_cmds_CXX="$ltdll_cmds"
19901 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'
19904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19908 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19909 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19910 test "$ld_shlibs_CXX" = no && can_build_shared=no
19913 # Do we need to explicitly link libc?
19915 case "x$archive_cmds_need_lc_CXX" in
19917 # Assume -lc should be added
19918 archive_cmds_need_lc_CXX=yes
19920 if test "$enable_shared" = yes && test "$GCC" = yes; then
19921 case $archive_cmds_CXX in
19923 # FIXME: we may have to deal with multi-command sequences.
19926 # Test whether the compiler implicitly links with -lc since on some
19927 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19928 # to ld, don't add -lc before -lgcc.
19929 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19930 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19935 (eval $ac_compile) 2>&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } 2>conftest.err; then
19941 libobjs=conftest.$ac_objext
19943 wl=$lt_prog_compiler_wl_CXX
19944 pic_flag=$lt_prog_compiler_pic_CXX
19950 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19951 allow_undefined_flag_CXX=
19952 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19953 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }
19958 archive_cmds_need_lc_CXX=no
19960 archive_cmds_need_lc_CXX=yes
19962 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19964 cat conftest.err 1>&5
19967 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19968 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19975 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19976 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19977 library_names_spec=
19978 libname_spec='lib$name'
19982 postuninstall_cmds=
19986 shlibpath_overrides_runpath=unknown
19988 dynamic_linker="$host_os ld.so"
19989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19990 if test "$GCC" = yes; then
19991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19992 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19993 # if the path contains ";" then we assume it to be the separator
19994 # otherwise default to the standard path separator (i.e. ":") - it is
19995 # assumed that no part of a normal pathname contains ";" but that should
19996 # okay in the real world where ";" in dirpaths is itself problematic.
19997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20004 need_lib_prefix=unknown
20005 hardcode_into_libs=no
20007 # when you set need_version to no, make sure it does not cause -set_version
20008 # flags to be left without arguments
20009 need_version=unknown
20014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20015 shlibpath_var=LIBPATH
20017 # AIX 3 has no versioning support, so we append a major version to the name.
20018 soname_spec='${libname}${release}${shared_ext}$major'
20025 hardcode_into_libs=yes
20026 if test "$host_cpu" = ia64; then
20027 # AIX 5 supports IA64
20028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20029 shlibpath_var=LD_LIBRARY_PATH
20031 # With GCC up to 2.95.x, collect2 would create an import file
20032 # for dependence libraries. The import file would start with
20033 # the line `#! .'. This would cause the generated library to
20034 # depend on `.', always an invalid library. This was fixed in
20035 # development snapshots of GCC prior to 3.0.
20037 aix4 | aix4.[01] | aix4.[01].*)
20038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20040 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20043 can_build_shared=no
20047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20048 # soname into executable. Probably we can add versioning support to
20049 # collect2, so additional links can be useful in future.
20050 if test "$aix_use_runtimelinking" = yes; then
20051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20052 # instead of lib<name>.a to let people know that these are not
20053 # typical AIX shared libraries.
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20056 # We preserve .a as extension for shared libraries through AIX4.2
20057 # and later when we are not doing run time linking.
20058 library_names_spec='${libname}${release}.a $libname.a'
20059 soname_spec='${libname}${release}${shared_ext}$major'
20061 shlibpath_var=LIBPATH
20066 library_names_spec='$libname.ixlibrary $libname.a'
20067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20068 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'
20072 library_names_spec='${libname}${shared_ext}'
20073 dynamic_linker="$host_os ld.so"
20074 shlibpath_var=LIBRARY_PATH
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20083 shlibpath_var=LD_LIBRARY_PATH
20084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20086 # the default ld.so.conf also contains /usr/contrib/lib and
20087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20088 # libtool to hard-code these into programs
20091 cygwin* | mingw* | pw32*)
20092 version_type=windows
20097 case $GCC,$host_os in
20098 yes,cygwin* | yes,mingw* | yes,pw32*)
20099 library_names_spec='$libname.dll.a'
20100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20101 postinstall_cmds='base_file=`basename \${file}`~
20102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20103 dldir=$destdir/`dirname \$dlpath`~
20104 test -d \$dldir || mkdir -p \$dldir~
20105 $install_prog $dir/$dlname \$dldir/$dlname~
20106 chmod a+x \$dldir/$dlname'
20107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20108 dlpath=$dir/\$dldll~
20110 shlibpath_overrides_runpath=yes
20114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20119 # MinGW DLLs use traditional 'lib' prefix
20120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20122 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20123 # It is most probably a Windows format PATH printed by
20124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20125 # path with ; separators, and with drive letters. We can handle the
20126 # drive letters (cygwin fileutils understands them), so leave them,
20127 # especially as we might pass files found there to a mingw objdump,
20128 # which wouldn't understand a cygwinified path. Ahh.
20129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20135 # pw32 DLLs use 'pw' prefix rather than 'lib'
20136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20145 dynamic_linker='Win32 ld.exe'
20146 # FIXME: first we should search . and the directory the executable is in
20150 darwin* | rhapsody*)
20151 dynamic_linker="$host_os dyld"
20152 version_type=darwin
20155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20156 soname_spec='${libname}${release}${major}$shared_ext'
20157 shlibpath_overrides_runpath=yes
20158 shlibpath_var=DYLD_LIBRARY_PATH
20159 shrext_cmds='.dylib'
20160 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20161 if test "$GCC" = yes; then
20162 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"`
20164 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20187 soname_spec='${libname}${release}${shared_ext}$major'
20188 shlibpath_var=LD_LIBRARY_PATH
20189 shlibpath_overrides_runpath=no
20190 hardcode_into_libs=yes
20191 dynamic_linker='GNU ld.so'
20194 freebsd* | dragonfly*)
20195 # DragonFly does not have aout. When/if they implement a new
20196 # versioning mechanism, adjust this.
20197 if test -x /usr/bin/objformat; then
20198 objformat=`/usr/bin/objformat`
20201 freebsd[123]*) objformat=aout ;;
20202 *) objformat=elf ;;
20205 version_type=freebsd-$objformat
20206 case $version_type in
20208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20217 shlibpath_var=LD_LIBRARY_PATH
20220 shlibpath_overrides_runpath=yes
20222 freebsd3.[01]* | freebsdelf3.[01]*)
20223 shlibpath_overrides_runpath=yes
20224 hardcode_into_libs=yes
20226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20228 shlibpath_overrides_runpath=no
20229 hardcode_into_libs=yes
20231 freebsd*) # from 4.6 on
20232 shlibpath_overrides_runpath=yes
20233 hardcode_into_libs=yes
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20243 soname_spec='${libname}${release}${shared_ext}$major'
20244 shlibpath_var=LD_LIBRARY_PATH
20245 hardcode_into_libs=yes
20248 hpux9* | hpux10* | hpux11*)
20249 # Give a soname corresponding to the major version so that dld.sl refuses to
20250 # link against other versions.
20257 hardcode_into_libs=yes
20258 dynamic_linker="$host_os dld.so"
20259 shlibpath_var=LD_LIBRARY_PATH
20260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20263 if test "X$HPUX_IA64_MODE" = X32; then
20264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20272 hardcode_into_libs=yes
20273 dynamic_linker="$host_os dld.sl"
20274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20277 soname_spec='${libname}${release}${shared_ext}$major'
20278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20283 dynamic_linker="$host_os dld.sl"
20284 shlibpath_var=SHLIB_PATH
20285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20287 soname_spec='${libname}${release}${shared_ext}$major'
20290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20291 postinstall_cmds='chmod 555 $lib'
20298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20299 soname_spec='${libname}${release}${shared_ext}$major'
20300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20301 shlibpath_var=LD_LIBRARY_PATH
20302 shlibpath_overrides_runpath=no
20303 hardcode_into_libs=yes
20306 irix5* | irix6* | nonstopux*)
20308 nonstopux*) version_type=nonstopux ;;
20310 if test "$lt_cv_prog_gnu_ld" = yes; then
20318 soname_spec='${libname}${release}${shared_ext}$major'
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20321 irix5* | nonstopux*)
20322 libsuff= shlibsuff=
20325 case $LD in # libtool.m4 will add one of these switches to LD
20326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20327 libsuff= shlibsuff= libmagic=32-bit;;
20328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20329 libsuff=32 shlibsuff=N32 libmagic=N32;;
20330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20332 *) libsuff= shlibsuff= libmagic=never-match;;
20336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20337 shlibpath_overrides_runpath=no
20338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20340 hardcode_into_libs=yes
20343 # No shared lib support for Linux oldld, aout, or coff.
20344 linux*oldld* | linux*aout* | linux*coff*)
20348 # This must be Linux ELF.
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 soname_spec='${libname}${release}${shared_ext}$major'
20355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 shlibpath_overrides_runpath=no
20358 # This implies no fast_install, which is unacceptable.
20359 # Some rework will be needed to allow for fast_install
20360 # before this can be enabled.
20361 hardcode_into_libs=yes
20363 # Append ld.so.conf contents to the search path
20364 if test -f /etc/ld.so.conf; then
20365 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' ' '`
20366 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20369 # We used to test for /lib/ld.so.1 and disable shared libraries on
20370 # powerpc, because MkLinux only supported shared libraries with the
20371 # GNU dynamic linker. Since this was broken with cross compilers,
20372 # most powerpc-linux boxes support dynamic linking these days and
20373 # people can always --disable-shared, the test was removed, and we
20374 # assume the GNU/Linux dynamic linker is in use.
20375 dynamic_linker='GNU/Linux ld.so'
20382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20383 soname_spec='${libname}${release}${shared_ext}$major'
20384 shlibpath_var=LD_LIBRARY_PATH
20385 shlibpath_overrides_runpath=no
20386 hardcode_into_libs=yes
20387 dynamic_linker='GNU ld.so'
20394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20397 dynamic_linker='NetBSD (a.out) ld.so'
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 dynamic_linker='NetBSD ld.elf_so'
20403 shlibpath_var=LD_LIBRARY_PATH
20404 shlibpath_overrides_runpath=yes
20405 hardcode_into_libs=yes
20410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 shlibpath_overrides_runpath=yes
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 shlibpath_overrides_runpath=yes
20427 sys_lib_dlsearch_path_spec="/usr/lib"
20429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20432 *) need_version=no ;;
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20436 shlibpath_var=LD_LIBRARY_PATH
20437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20439 openbsd2.[89] | openbsd2.[89].*)
20440 shlibpath_overrides_runpath=no
20443 shlibpath_overrides_runpath=yes
20447 shlibpath_overrides_runpath=yes
20452 libname_spec='$name'
20455 library_names_spec='$libname${shared_ext} $libname.a'
20456 dynamic_linker='OS/2 ld.exe'
20457 shlibpath_var=LIBPATH
20460 osf3* | osf4* | osf5*)
20464 soname_spec='${libname}${release}${shared_ext}$major'
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466 shlibpath_var=LD_LIBRARY_PATH
20467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20476 soname_spec='${libname}${release}${shared_ext}$major'
20477 shlibpath_var=LD_LIBRARY_PATH
20478 shlibpath_overrides_runpath=yes
20479 hardcode_into_libs=yes
20480 # ldd complains unless libraries are executable
20481 postinstall_cmds='chmod +x $lib'
20486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20487 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20488 shlibpath_var=LD_LIBRARY_PATH
20489 shlibpath_overrides_runpath=yes
20490 if test "$with_gnu_ld" = yes; then
20498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499 soname_spec='${libname}${release}${shared_ext}$major'
20500 shlibpath_var=LD_LIBRARY_PATH
20501 case $host_vendor in
20503 shlibpath_overrides_runpath=no
20505 export_dynamic_flag_spec='${wl}-Blargedynsym'
20506 runpath_var=LD_RUN_PATH
20514 shlibpath_overrides_runpath=no
20515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20521 if test -d /usr/nec ;then
20523 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20524 soname_spec='$libname${shared_ext}.$major'
20525 shlibpath_var=LD_LIBRARY_PATH
20529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20530 version_type=freebsd-elf
20533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20534 soname_spec='${libname}${release}${shared_ext}$major'
20535 shlibpath_var=LD_LIBRARY_PATH
20536 hardcode_into_libs=yes
20537 if test "$with_gnu_ld" = yes; then
20538 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20539 shlibpath_overrides_runpath=no
20541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20542 shlibpath_overrides_runpath=yes
20545 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20549 sys_lib_dlsearch_path_spec='/usr/lib'
20554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20555 soname_spec='${libname}${release}${shared_ext}$major'
20556 shlibpath_var=LD_LIBRARY_PATH
20563 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20564 echo "${ECHO_T}$dynamic_linker" >&6; }
20565 test "$dynamic_linker" = no && can_build_shared=no
20567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20568 if test "$GCC" = yes; then
20569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20572 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20574 hardcode_action_CXX=
20575 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20576 test -n "$runpath_var_CXX" || \
20577 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20579 # We can hardcode non-existant directories.
20580 if test "$hardcode_direct_CXX" != no &&
20581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20582 # have to relink, otherwise we might link with an installed library
20583 # when we should be linking with a yet-to-be-installed one
20584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20585 test "$hardcode_minus_L_CXX" != no; then
20586 # Linking always hardcodes the temporary library directory.
20587 hardcode_action_CXX=relink
20589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20590 hardcode_action_CXX=immediate
20593 # We cannot hardcode anything, or else we can only hardcode existing
20595 hardcode_action_CXX=unsupported
20597 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20598 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20600 if test "$hardcode_action_CXX" = relink; then
20601 # Fast installation is not supported
20602 enable_fast_install=no
20603 elif test "$shlibpath_overrides_runpath" = yes ||
20604 test "$enable_shared" = no; then
20605 # Fast installation is not necessary
20606 enable_fast_install=needless
20610 # The else clause should only fire when bootstrapping the
20611 # libtool distribution, otherwise you forgot to ship ltmain.sh
20612 # with your package, and you will get complaints that there are
20613 # no rules to generate ltmain.sh.
20614 if test -f "$ltmain"; then
20615 # See if we are running on zsh, and set the options which allow our commands through
20616 # without removal of \ escapes.
20617 if test -n "${ZSH_VERSION+set}" ; then
20618 setopt NO_GLOB_SUBST
20620 # Now quote all the things that may contain metacharacters while being
20621 # careful not to overquote the AC_SUBSTed values. We take copies of the
20622 # variables and quote the copies for generation of the libtool script.
20623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20627 deplibs_check_method reload_flag reload_cmds need_locks \
20628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20629 lt_cv_sys_global_symbol_to_c_name_address \
20630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20631 old_postinstall_cmds old_postuninstall_cmds \
20635 lt_prog_compiler_wl_CXX \
20636 lt_prog_compiler_pic_CXX \
20637 lt_prog_compiler_static_CXX \
20638 lt_prog_compiler_no_builtin_flag_CXX \
20639 export_dynamic_flag_spec_CXX \
20640 thread_safe_flag_spec_CXX \
20641 whole_archive_flag_spec_CXX \
20642 enable_shared_with_static_runtimes_CXX \
20643 old_archive_cmds_CXX \
20644 old_archive_from_new_cmds_CXX \
20645 predep_objects_CXX \
20646 postdep_objects_CXX \
20649 compiler_lib_search_path_CXX \
20651 archive_expsym_cmds_CXX \
20652 postinstall_cmds_CXX \
20653 postuninstall_cmds_CXX \
20654 old_archive_from_expsyms_cmds_CXX \
20655 allow_undefined_flag_CXX \
20656 no_undefined_flag_CXX \
20657 export_symbols_cmds_CXX \
20658 hardcode_libdir_flag_spec_CXX \
20659 hardcode_libdir_flag_spec_ld_CXX \
20660 hardcode_libdir_separator_CXX \
20661 hardcode_automatic_CXX \
20663 module_expsym_cmds_CXX \
20664 lt_cv_prog_compiler_c_o_CXX \
20665 exclude_expsyms_CXX \
20666 include_expsyms_CXX; do
20669 old_archive_cmds_CXX | \
20670 old_archive_from_new_cmds_CXX | \
20671 archive_cmds_CXX | \
20672 archive_expsym_cmds_CXX | \
20673 module_cmds_CXX | \
20674 module_expsym_cmds_CXX | \
20675 old_archive_from_expsyms_cmds_CXX | \
20676 export_symbols_cmds_CXX | \
20677 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20678 postinstall_cmds | postuninstall_cmds | \
20679 old_postinstall_cmds | old_postuninstall_cmds | \
20680 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20681 # Double-quote double-evaled strings.
20682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20691 *'\$0 --fallback-echo"')
20692 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20698 cat <<__EOF__ >> "$cfgfile"
20699 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20703 # Shell to use when invoking shell scripts.
20706 # Whether or not to build shared libraries.
20707 build_libtool_libs=$enable_shared
20709 # Whether or not to build static libraries.
20710 build_old_libs=$enable_static
20712 # Whether or not to add -lc for building shared libraries.
20713 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20715 # Whether or not to disallow shared libs when runtime libs are static
20716 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20718 # Whether or not to optimize for fast installation.
20719 fast_install=$enable_fast_install
20722 host_alias=$host_alias
20726 # The build system.
20727 build_alias=$build_alias
20731 # An echo program that does not interpret backslashes.
20736 AR_FLAGS=$lt_AR_FLAGS
20741 # LTCC compiler flags.
20742 LTCFLAGS=$lt_LTCFLAGS
20744 # A language-specific compiler.
20745 CC=$lt_compiler_CXX
20747 # Is the compiler the GNU C compiler?
20753 # The linker used to build libraries.
20756 # Whether we need hard or soft links.
20759 # A BSD-compatible nm program.
20762 # A symbol stripping program
20765 # Used to examine libraries when file_magic_cmd begins "file"
20766 MAGIC_CMD=$MAGIC_CMD
20768 # Used on cygwin: DLL creation program.
20771 # Used on cygwin: object dumper.
20774 # Used on cygwin: assembler.
20777 # The name of the directory that contains temporary libtool files.
20780 # How to create reloadable object files.
20781 reload_flag=$lt_reload_flag
20782 reload_cmds=$lt_reload_cmds
20784 # How to pass a linker flag through the compiler.
20785 wl=$lt_lt_prog_compiler_wl_CXX
20787 # Object file suffix (normally "o").
20788 objext="$ac_objext"
20790 # Old archive suffix (normally "a").
20793 # Shared library suffix (normally ".so").
20794 shrext_cmds='$shrext_cmds'
20796 # Executable file suffix (normally "").
20799 # Additional compiler flags for building library objects.
20800 pic_flag=$lt_lt_prog_compiler_pic_CXX
20803 # What is the maximum length of a command?
20804 max_cmd_len=$lt_cv_sys_max_cmd_len
20806 # Does compiler simultaneously support -c and -o options?
20807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20809 # Must we lock files when doing compilation?
20810 need_locks=$lt_need_locks
20812 # Do we need the lib prefix for modules?
20813 need_lib_prefix=$need_lib_prefix
20815 # Do we need a version for libraries?
20816 need_version=$need_version
20818 # Whether dlopen is supported.
20819 dlopen_support=$enable_dlopen
20821 # Whether dlopen of programs is supported.
20822 dlopen_self=$enable_dlopen_self
20824 # Whether dlopen of statically linked programs is supported.
20825 dlopen_self_static=$enable_dlopen_self_static
20827 # Compiler flag to prevent dynamic linking.
20828 link_static_flag=$lt_lt_prog_compiler_static_CXX
20830 # Compiler flag to turn off builtin functions.
20831 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20833 # Compiler flag to allow reflexive dlopens.
20834 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20836 # Compiler flag to generate shared objects directly from archives.
20837 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20839 # Compiler flag to generate thread-safe objects.
20840 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20842 # Library versioning type.
20843 version_type=$version_type
20845 # Format of library name prefix.
20846 libname_spec=$lt_libname_spec
20848 # List of archive names. First name is the real one, the rest are links.
20849 # The last name is the one that the linker finds with -lNAME.
20850 library_names_spec=$lt_library_names_spec
20852 # The coded name of the library, if different from the real name.
20853 soname_spec=$lt_soname_spec
20855 # Commands used to build and install an old-style archive.
20857 old_archive_cmds=$lt_old_archive_cmds_CXX
20858 old_postinstall_cmds=$lt_old_postinstall_cmds
20859 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20861 # Create an old-style archive from a shared archive.
20862 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20864 # Create a temporary old-style archive to link instead of a shared archive.
20865 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20867 # Commands used to build and install a shared archive.
20868 archive_cmds=$lt_archive_cmds_CXX
20869 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20870 postinstall_cmds=$lt_postinstall_cmds
20871 postuninstall_cmds=$lt_postuninstall_cmds
20873 # Commands used to build a loadable module (assumed same as above if empty)
20874 module_cmds=$lt_module_cmds_CXX
20875 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20877 # Commands to strip libraries.
20878 old_striplib=$lt_old_striplib
20879 striplib=$lt_striplib
20881 # Dependencies to place before the objects being linked to create a
20883 predep_objects=$lt_predep_objects_CXX
20885 # Dependencies to place after the objects being linked to create a
20887 postdep_objects=$lt_postdep_objects_CXX
20889 # Dependencies to place before the objects being linked to create a
20891 predeps=$lt_predeps_CXX
20893 # Dependencies to place after the objects being linked to create a
20895 postdeps=$lt_postdeps_CXX
20897 # The library search path used internally by the compiler when linking
20898 # a shared library.
20899 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20901 # Method to check whether dependent libraries are shared objects.
20902 deplibs_check_method=$lt_deplibs_check_method
20904 # Command to use when deplibs_check_method == file_magic.
20905 file_magic_cmd=$lt_file_magic_cmd
20907 # Flag that allows shared libraries with undefined symbols to be built.
20908 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20910 # Flag that forces no undefined symbols.
20911 no_undefined_flag=$lt_no_undefined_flag_CXX
20913 # Commands used to finish a libtool library installation in a directory.
20914 finish_cmds=$lt_finish_cmds
20916 # Same as above, but a single script fragment to be evaled but not shown.
20917 finish_eval=$lt_finish_eval
20919 # Take the output of nm and produce a listing of raw symbols and C names.
20920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20922 # Transform the output of nm in a proper C declaration
20923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20925 # Transform the output of nm in a C name address pair
20926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20928 # This is the shared library runtime path variable.
20929 runpath_var=$runpath_var
20931 # This is the shared library path variable.
20932 shlibpath_var=$shlibpath_var
20934 # Is shlibpath searched before the hard-coded library search path?
20935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20937 # How to hardcode a shared library path into an executable.
20938 hardcode_action=$hardcode_action_CXX
20940 # Whether we should hardcode library paths into libraries.
20941 hardcode_into_libs=$hardcode_into_libs
20943 # Flag to hardcode \$libdir into a binary during linking.
20944 # This must work even if \$libdir does not exist.
20945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20947 # If ld is used when linking, flag to hardcode \$libdir into
20948 # a binary during linking. This must work even if \$libdir does
20950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20952 # Whether we need a single -rpath flag with a separated argument.
20953 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20955 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20956 # resulting binary.
20957 hardcode_direct=$hardcode_direct_CXX
20959 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20960 # resulting binary.
20961 hardcode_minus_L=$hardcode_minus_L_CXX
20963 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20964 # the resulting binary.
20965 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20967 # Set to yes if building a shared library automatically hardcodes DIR into the library
20968 # and all subsequent libraries and executables linked against it.
20969 hardcode_automatic=$hardcode_automatic_CXX
20971 # Variables whose values should be saved in libtool wrapper scripts and
20972 # restored at relink time.
20973 variables_saved_for_relink="$variables_saved_for_relink"
20975 # Whether libtool must link a program against all its dependency libraries.
20976 link_all_deplibs=$link_all_deplibs_CXX
20978 # Compile-time system search path for libraries
20979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20981 # Run-time system search path for libraries
20982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20984 # Fix the shell variable \$srcfile for the compiler.
20985 fix_srcfile_path="$fix_srcfile_path_CXX"
20987 # Set to yes if exported symbols are required.
20988 always_export_symbols=$always_export_symbols_CXX
20990 # The commands to list exported symbols.
20991 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20993 # The commands to extract the exported symbol list from a shared archive.
20994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20996 # Symbols that should not be listed in the preloaded symbols.
20997 exclude_expsyms=$lt_exclude_expsyms_CXX
20999 # Symbols that must always be exported.
21000 include_expsyms=$lt_include_expsyms_CXX
21002 # ### END LIBTOOL TAG CONFIG: $tagname
21008 # If there is no Makefile yet, we rely on a make rule to execute
21009 # `config.status --recheck' to rerun these tests and create the
21010 # libtool script then.
21011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21012 if test -f "$ltmain_in"; then
21013 test -f Makefile && make "$ltmain"
21019 ac_cpp='$CPP $CPPFLAGS'
21020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21028 with_gnu_ldcxx=$with_gnu_ld
21029 with_gnu_ld=$lt_save_with_gnu_ld
21030 lt_cv_path_LDCXX=$lt_cv_path_LD
21031 lt_cv_path_LD=$lt_save_path_LD
21032 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21033 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21041 if test -n "$F77" && test "X$F77" != "Xno"; then
21044 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21045 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21049 archive_cmds_need_lc_F77=no
21050 allow_undefined_flag_F77=
21051 always_export_symbols_F77=no
21052 archive_expsym_cmds_F77=
21053 export_dynamic_flag_spec_F77=
21054 hardcode_direct_F77=no
21055 hardcode_libdir_flag_spec_F77=
21056 hardcode_libdir_flag_spec_ld_F77=
21057 hardcode_libdir_separator_F77=
21058 hardcode_minus_L_F77=no
21059 hardcode_automatic_F77=no
21061 module_expsym_cmds_F77=
21062 link_all_deplibs_F77=unknown
21063 old_archive_cmds_F77=$old_archive_cmds
21064 no_undefined_flag_F77=
21065 whole_archive_flag_spec_F77=
21066 enable_shared_with_static_runtimes_F77=no
21068 # Source file extension for f77 test sources.
21071 # Object file extension for compiled f77 test sources.
21075 # Code to be used in simple compile tests
21076 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21078 # Code to be used in simple link tests
21079 lt_simple_link_test_code=" program t\n end\n"
21081 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21083 # If no C compiler was specified, use CC.
21086 # If no C compiler flags were specified, use CFLAGS.
21087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21089 # Allow CC to be a program name with arguments.
21093 # save warnings/boilerplate of simple test code
21094 ac_outfile=conftest.$ac_objext
21095 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21097 _lt_compiler_boilerplate=`cat conftest.err`
21100 ac_outfile=conftest.$ac_objext
21101 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21103 _lt_linker_boilerplate=`cat conftest.err`
21107 # Allow CC to be a program name with arguments.
21112 for cc_temp in $compiler""; do
21114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21120 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21123 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21124 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21125 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21126 echo "${ECHO_T}$can_build_shared" >&6; }
21128 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21129 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21130 test "$can_build_shared" = "no" && enable_shared=no
21132 # On AIX, shared libraries and static libraries use the same namespace, and
21133 # are all built from PIC.
21136 test "$enable_shared" = yes && enable_static=no
21137 if test -n "$RANLIB"; then
21138 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21139 postinstall_cmds='$RANLIB $lib'
21143 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21144 test "$enable_shared" = yes && enable_static=no
21148 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21149 echo "${ECHO_T}$enable_shared" >&6; }
21151 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21152 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21153 # Make sure either enable_shared or enable_static is yes.
21154 test "$enable_shared" = yes || enable_static=yes
21155 { echo "$as_me:$LINENO: result: $enable_static" >&5
21156 echo "${ECHO_T}$enable_static" >&6; }
21161 lt_prog_compiler_wl_F77=
21162 lt_prog_compiler_pic_F77=
21163 lt_prog_compiler_static_F77=
21165 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21166 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21168 if test "$GCC" = yes; then
21169 lt_prog_compiler_wl_F77='-Wl,'
21170 lt_prog_compiler_static_F77='-static'
21174 # All AIX code is PIC.
21175 if test "$host_cpu" = ia64; then
21176 # AIX 5 now supports IA64 processor
21177 lt_prog_compiler_static_F77='-Bstatic'
21182 # FIXME: we need at least 68020 code to build shared libraries, but
21183 # adding the `-m68020' flag to GCC prevents building anything better,
21185 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21188 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21189 # PIC is the default for these OSes.
21192 mingw* | pw32* | os2*)
21193 # This hack is so that the source file can tell whether it is being
21194 # built for inclusion in a dll (and should export symbols for example).
21195 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21198 darwin* | rhapsody*)
21199 # PIC is the default on this platform
21200 # Common symbols not allowed in MH_DYLIB files
21201 lt_prog_compiler_pic_F77='-fno-common'
21205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21206 # Instead, we relocate shared libraries at runtime.
21210 # Just because we use GCC doesn't mean we suddenly get shared libraries
21211 # on systems that don't support them.
21212 lt_prog_compiler_can_build_shared_F77=no
21217 if test -d /usr/nec; then
21218 lt_prog_compiler_pic_F77=-Kconform_pic
21223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21224 # not for PA HP-UX.
21230 lt_prog_compiler_pic_F77='-fPIC'
21236 lt_prog_compiler_pic_F77='-fPIC'
21240 # PORTME Check for flag to pass linker flags through the system compiler.
21243 lt_prog_compiler_wl_F77='-Wl,'
21244 if test "$host_cpu" = ia64; then
21245 # AIX 5 now supports IA64 processor
21246 lt_prog_compiler_static_F77='-Bstatic'
21248 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21252 # PIC is the default on this platform
21253 # Common symbols not allowed in MH_DYLIB files
21254 case $cc_basename in
21256 lt_prog_compiler_pic_F77='-qnocommon'
21257 lt_prog_compiler_wl_F77='-Wl,'
21262 mingw* | pw32* | os2*)
21263 # This hack is so that the source file can tell whether it is being
21264 # built for inclusion in a dll (and should export symbols for example).
21265 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21268 hpux9* | hpux10* | hpux11*)
21269 lt_prog_compiler_wl_F77='-Wl,'
21270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21271 # not for PA HP-UX.
21277 lt_prog_compiler_pic_F77='+Z'
21280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21281 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21284 irix5* | irix6* | nonstopux*)
21285 lt_prog_compiler_wl_F77='-Wl,'
21286 # PIC (with -KPIC) is the default.
21287 lt_prog_compiler_static_F77='-non_shared'
21291 lt_prog_compiler_pic_F77='-KPIC'
21292 lt_prog_compiler_static_F77='-Bstatic'
21296 case $cc_basename in
21298 lt_prog_compiler_wl_F77='-Wl,'
21299 lt_prog_compiler_pic_F77='-KPIC'
21300 lt_prog_compiler_static_F77='-static'
21302 pgcc* | pgf77* | pgf90* | pgf95*)
21303 # Portland Group compilers (*not* the Pentium gcc compiler,
21304 # which looks to be a dead project)
21305 lt_prog_compiler_wl_F77='-Wl,'
21306 lt_prog_compiler_pic_F77='-fpic'
21307 lt_prog_compiler_static_F77='-Bstatic'
21310 lt_prog_compiler_wl_F77='-Wl,'
21311 # All Alpha code is PIC.
21312 lt_prog_compiler_static_F77='-non_shared'
21317 osf3* | osf4* | osf5*)
21318 lt_prog_compiler_wl_F77='-Wl,'
21319 # All OSF/1 code is PIC.
21320 lt_prog_compiler_static_F77='-non_shared'
21324 lt_prog_compiler_pic_F77='-KPIC'
21325 lt_prog_compiler_static_F77='-Bstatic'
21326 case $cc_basename in
21327 f77* | f90* | f95*)
21328 lt_prog_compiler_wl_F77='-Qoption ld ';;
21330 lt_prog_compiler_wl_F77='-Wl,';;
21335 lt_prog_compiler_wl_F77='-Qoption ld '
21336 lt_prog_compiler_pic_F77='-PIC'
21337 lt_prog_compiler_static_F77='-Bstatic'
21340 sysv4 | sysv4.2uw2* | sysv4.3*)
21341 lt_prog_compiler_wl_F77='-Wl,'
21342 lt_prog_compiler_pic_F77='-KPIC'
21343 lt_prog_compiler_static_F77='-Bstatic'
21347 if test -d /usr/nec ;then
21348 lt_prog_compiler_pic_F77='-Kconform_pic'
21349 lt_prog_compiler_static_F77='-Bstatic'
21353 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21354 lt_prog_compiler_wl_F77='-Wl,'
21355 lt_prog_compiler_pic_F77='-KPIC'
21356 lt_prog_compiler_static_F77='-Bstatic'
21360 lt_prog_compiler_wl_F77='-Wl,'
21361 lt_prog_compiler_can_build_shared_F77=no
21365 lt_prog_compiler_pic_F77='-pic'
21366 lt_prog_compiler_static_F77='-Bstatic'
21370 lt_prog_compiler_can_build_shared_F77=no
21375 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21376 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21379 # Check to make sure the PIC flag actually works.
21381 if test -n "$lt_prog_compiler_pic_F77"; then
21383 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21384 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21385 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 lt_prog_compiler_pic_works_F77=no
21389 ac_outfile=conftest.$ac_objext
21390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21391 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21392 # Insert the option either (1) after the last *FLAGS variable, or
21393 # (2) before a word containing "conftest.", or (3) at the end.
21394 # Note that $ac_compile itself does not contain backslashes and begins
21395 # with a dollar sign (not a hyphen), so the echo should work correctly.
21396 # The option is referenced via a variable to avoid confusing sed.
21397 lt_compile=`echo "$ac_compile" | $SED \
21398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21400 -e 's:$: $lt_compiler_flag:'`
21401 (eval echo "\"\$as_me:21401: $lt_compile\"" >&5)
21402 (eval "$lt_compile" 2>conftest.err)
21404 cat conftest.err >&5
21405 echo "$as_me:21405: \$? = $ac_status" >&5
21406 if (exit $ac_status) && test -s "$ac_outfile"; then
21407 # The compiler can only warn and ignore the option if not recognized
21408 # So say no if there are warnings other than the usual output.
21409 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21412 lt_prog_compiler_pic_works_F77=yes
21418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21419 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21421 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21422 case $lt_prog_compiler_pic_F77 in
21424 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21427 lt_prog_compiler_pic_F77=
21428 lt_prog_compiler_can_build_shared_F77=no
21433 # For platforms which do not support PIC, -DPIC is meaningless:
21435 lt_prog_compiler_pic_F77=
21438 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21443 # Check to make sure the static flag actually works.
21445 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21446 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21447 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21448 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 lt_prog_compiler_static_works_F77=no
21452 save_LDFLAGS="$LDFLAGS"
21453 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21454 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21455 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21456 # The linker can only warn and ignore the option if not recognized
21457 # So say no if there are warnings
21458 if test -s conftest.err; then
21459 # Append any errors to the config.log.
21460 cat conftest.err 1>&5
21461 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21463 if diff conftest.exp conftest.er2 >/dev/null; then
21464 lt_prog_compiler_static_works_F77=yes
21467 lt_prog_compiler_static_works_F77=yes
21471 LDFLAGS="$save_LDFLAGS"
21474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21475 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21477 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21480 lt_prog_compiler_static_F77=
21484 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21485 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21486 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21487 echo $ECHO_N "(cached) $ECHO_C" >&6
21489 lt_cv_prog_compiler_c_o_F77=no
21490 $rm -r conftest 2>/dev/null
21494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21496 lt_compiler_flag="-o out/conftest2.$ac_objext"
21497 # Insert the option either (1) after the last *FLAGS variable, or
21498 # (2) before a word containing "conftest.", or (3) at the end.
21499 # Note that $ac_compile itself does not contain backslashes and begins
21500 # with a dollar sign (not a hyphen), so the echo should work correctly.
21501 lt_compile=`echo "$ac_compile" | $SED \
21502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21504 -e 's:$: $lt_compiler_flag:'`
21505 (eval echo "\"\$as_me:21505: $lt_compile\"" >&5)
21506 (eval "$lt_compile" 2>out/conftest.err)
21508 cat out/conftest.err >&5
21509 echo "$as_me:21509: \$? = $ac_status" >&5
21510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21512 # The compiler can only warn and ignore the option if not recognized
21513 # So say no if there are warnings
21514 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21517 lt_cv_prog_compiler_c_o_F77=yes
21522 # SGI C++ compiler will create directory out/ii_files/ for
21523 # template instantiation
21524 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21525 $rm out/* && rmdir out
21531 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21532 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21535 hard_links="nottested"
21536 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21537 # do not overwrite the value of need_locks provided by the user
21538 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21539 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21544 ln conftest.a conftest.b 2>&5 || hard_links=no
21545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21546 { echo "$as_me:$LINENO: result: $hard_links" >&5
21547 echo "${ECHO_T}$hard_links" >&6; }
21548 if test "$hard_links" = no; then
21549 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21550 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21557 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21558 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21561 allow_undefined_flag_F77=
21562 enable_shared_with_static_runtimes_F77=no
21564 archive_expsym_cmds_F77=
21565 old_archive_From_new_cmds_F77=
21566 old_archive_from_expsyms_cmds_F77=
21567 export_dynamic_flag_spec_F77=
21568 whole_archive_flag_spec_F77=
21569 thread_safe_flag_spec_F77=
21570 hardcode_libdir_flag_spec_F77=
21571 hardcode_libdir_flag_spec_ld_F77=
21572 hardcode_libdir_separator_F77=
21573 hardcode_direct_F77=no
21574 hardcode_minus_L_F77=no
21575 hardcode_shlibpath_var_F77=unsupported
21576 link_all_deplibs_F77=unknown
21577 hardcode_automatic_F77=no
21579 module_expsym_cmds_F77=
21580 always_export_symbols_F77=no
21581 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21582 # include_expsyms should be a list of space-separated symbols to be *always*
21583 # included in the symbol list
21584 include_expsyms_F77=
21585 # exclude_expsyms can be an extended regexp of symbols to exclude
21586 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21587 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21588 # as well as any symbol that contains `d'.
21589 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21590 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21591 # platforms (ab)use it in PIC code, but their linkers get confused if
21592 # the symbol is explicitly referenced. Since portable code cannot
21593 # rely on this symbol name, it's probably fine to never include it in
21594 # preloaded symbol tables.
21595 extract_expsyms_cmds=
21596 # Just being paranoid about ensuring that cc_basename is set.
21597 for cc_temp in $compiler""; do
21599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21605 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21608 cygwin* | mingw* | pw32*)
21609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21610 # When not using gcc, we currently assume that we are using
21611 # Microsoft Visual C++.
21612 if test "$GCC" != yes; then
21617 # we just hope/assume this is gcc and not c89 (= MSVC++)
21626 if test "$with_gnu_ld" = yes; then
21627 # If archive_cmds runs LD, not CC, wlarc should be empty
21630 # Set some defaults for GNU ld with shared library support. These
21631 # are reset later if shared libraries are not supported. Putting them
21632 # here allows them to be overridden if necessary.
21633 runpath_var=LD_RUN_PATH
21634 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21635 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21636 # ancient GNU ld didn't support --whole-archive et. al.
21637 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21638 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21640 whole_archive_flag_spec_F77=
21642 supports_anon_versioning=no
21643 case `$LD -v 2>/dev/null` in
21644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21647 *\ 2.11.*) ;; # other 2.11 versions
21648 *) supports_anon_versioning=yes ;;
21651 # See if GNU ld supports shared libraries.
21653 aix3* | aix4* | aix5*)
21654 # On AIX/PPC, the GNU linker is very broken
21655 if test "$host_cpu" != ia64; then
21659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21660 *** to be unable to reliably create shared libraries on AIX.
21661 *** Therefore, libtool is disabling shared libraries support. If you
21662 *** really care for shared libraries, you may want to modify your PATH
21663 *** so that a non-GNU linker is found, and then restart.
21670 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)'
21671 hardcode_libdir_flag_spec_F77='-L$libdir'
21672 hardcode_minus_L_F77=yes
21674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21675 # that the semantics of dynamic libraries on AmigaOS, at least up
21676 # to version 4, is to share data among multiple programs linked
21677 # with the same dynamic library. Since this doesn't match the
21678 # behavior of shared libraries on other platforms, we can't use
21684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21685 allow_undefined_flag_F77=unsupported
21686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21687 # support --undefined. This deserves some investigation. FIXME
21688 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21694 cygwin* | mingw* | pw32*)
21695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21696 # as there is no search path for DLLs.
21697 hardcode_libdir_flag_spec_F77='-L$libdir'
21698 allow_undefined_flag_F77=unsupported
21699 always_export_symbols_F77=no
21700 enable_shared_with_static_runtimes_F77=yes
21701 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21705 # If the export-symbols file already is a .def file (1st line
21706 # is EXPORTS), use it as is; otherwise, prepend...
21707 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21708 cp $export_symbols $output_objdir/$soname.def;
21710 echo EXPORTS > $output_objdir/$soname.def;
21711 cat $export_symbols >> $output_objdir/$soname.def;
21713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21720 hardcode_direct_F77=no
21721 hardcode_shlibpath_var_F77=no
21722 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21723 export_dynamic_flag_spec_F77='${wl}-E'
21724 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21725 # Instead, shared libraries are loaded at an image base (0x10000000 by
21726 # default) and relocated if they conflict, which is a slow very memory
21727 # consuming and fragmenting process. To avoid this, we pick a random,
21728 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21729 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21730 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'
21731 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'
21735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21737 case $cc_basename,$host_cpu in
21738 pgcc*) # Portland Group C compiler
21739 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'
21740 tmp_addflag=' $pic_flag'
21742 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21743 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'
21744 tmp_addflag=' $pic_flag -Mnomain' ;;
21745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21746 tmp_addflag=' -i_dynamic' ;;
21747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21748 tmp_addflag=' -i_dynamic -nofor_main' ;;
21749 ifc* | ifort*) # Intel Fortran compiler
21750 tmp_addflag=' -nofor_main' ;;
21752 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21754 if test $supports_anon_versioning = yes; then
21755 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21757 $echo "local: *; };" >> $output_objdir/$libname.ver~
21758 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21767 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21770 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21771 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21776 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21781 *** create shared libraries on Solaris systems. Therefore, libtool
21782 *** is disabling shared libraries support. We urge you to upgrade GNU
21783 *** binutils to release 2.9.1 or newer. Another option is to modify
21784 *** your PATH or compiler configuration so that the native linker is
21785 *** used, and then restart.
21788 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21789 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21790 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21797 case `$LD -v 2>&1` in
21798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21803 *** reliably create shared libraries on SCO systems. Therefore, libtool
21804 *** is disabling shared libraries support. We urge you to upgrade GNU
21805 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21806 *** your PATH or compiler configuration so that the native linker is
21807 *** used, and then restart.
21812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21813 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21814 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21815 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21824 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21826 hardcode_direct_F77=yes
21827 hardcode_shlibpath_var_F77=no
21831 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21832 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21833 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21840 if test "$ld_shlibs_F77" = no; then
21842 hardcode_libdir_flag_spec_F77=
21843 export_dynamic_flag_spec_F77=
21844 whole_archive_flag_spec_F77=
21847 # PORTME fill in a description of your system's linker (not GNU ld)
21850 allow_undefined_flag_F77=unsupported
21851 always_export_symbols_F77=yes
21852 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'
21853 # Note: this linker hardcodes the directories in LIBPATH if there
21854 # are no directories specified by -L.
21855 hardcode_minus_L_F77=yes
21856 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21857 # Neither direct hardcoding nor static linking is supported with a
21859 hardcode_direct_F77=unsupported
21864 if test "$host_cpu" = ia64; then
21865 # On IA64, the linker does run time linking by default, so we don't
21866 # have to do anything special.
21867 aix_use_runtimelinking=no
21868 exp_sym_flag='-Bexport'
21871 # If we're using GNU nm, then we don't want the "-C" option.
21872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21873 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21874 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'
21876 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'
21878 aix_use_runtimelinking=no
21880 # Test if we are trying to use run time linking or normal
21881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21882 # need to do runtime linking.
21883 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21884 for ld_flag in $LDFLAGS; do
21885 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21886 aix_use_runtimelinking=yes
21893 exp_sym_flag='-bexport'
21894 no_entry_flag='-bnoentry'
21897 # When large executables or shared objects are built, AIX ld can
21898 # have problems creating the table of contents. If linking a library
21899 # or program results in "error TOC overflow" add -mminimal-toc to
21900 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21901 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21903 archive_cmds_F77=''
21904 hardcode_direct_F77=yes
21905 hardcode_libdir_separator_F77=':'
21906 link_all_deplibs_F77=yes
21908 if test "$GCC" = yes; then
21909 case $host_os in aix4.[012]|aix4.[012].*)
21910 # We only want to do this on AIX 4.2 and lower, the check
21911 # below for broken collect2 doesn't work under 4.3+
21912 collect2name=`${CC} -print-prog-name=collect2`
21913 if test -f "$collect2name" && \
21914 strings "$collect2name" | grep resolve_lib_name >/dev/null
21916 # We have reworked collect2
21917 hardcode_direct_F77=yes
21919 # We have old collect2
21920 hardcode_direct_F77=unsupported
21921 # It fails to find uninstalled libraries when the uninstalled
21922 # path is not listed in the libpath. Setting hardcode_minus_L
21923 # to unsupported forces relinking
21924 hardcode_minus_L_F77=yes
21925 hardcode_libdir_flag_spec_F77='-L$libdir'
21926 hardcode_libdir_separator_F77=
21930 shared_flag='-shared'
21931 if test "$aix_use_runtimelinking" = yes; then
21932 shared_flag="$shared_flag "'${wl}-G'
21936 if test "$host_cpu" = ia64; then
21937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21938 # chokes on -Wl,-G. The following line is correct:
21941 if test "$aix_use_runtimelinking" = yes; then
21942 shared_flag='${wl}-G'
21944 shared_flag='${wl}-bM:SRE'
21949 # It seems that -bexpall does not export symbols beginning with
21950 # underscore (_), so it is better to generate a list of symbols to export.
21951 always_export_symbols_F77=yes
21952 if test "$aix_use_runtimelinking" = yes; then
21953 # Warning - without using the other runtime loading flags (-brtl),
21954 # -berok will link without error, but may produce a broken library.
21955 allow_undefined_flag_F77='-berok'
21956 # Determine the default libpath from the value encoded in an empty executable.
21957 cat >conftest.$ac_ext <<_ACEOF
21962 rm -f conftest.$ac_objext conftest$ac_exeext
21963 if { (ac_try="$ac_link"
21964 case "(($ac_try" in
21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969 (eval "$ac_link") 2>conftest.er1
21971 grep -v '^ *+' conftest.er1 >conftest.err
21973 cat conftest.err >&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } &&
21976 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21977 { (case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982 (eval "$ac_try") 2>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; } &&
21986 { ac_try='test -s conftest$ac_exeext'
21987 { (case "(($ac_try" in
21988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989 *) ac_try_echo=$ac_try;;
21991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992 (eval "$ac_try") 2>&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
21997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21999 # Check for a 64-bit object if we didn't find anything.
22000 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; }
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22009 rm -f core conftest.err conftest.$ac_objext \
22010 conftest$ac_exeext conftest.$ac_ext
22011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22013 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22014 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"
22016 if test "$host_cpu" = ia64; then
22017 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22018 allow_undefined_flag_F77="-z nodefs"
22019 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"
22021 # Determine the default libpath from the value encoded in an empty executable.
22022 cat >conftest.$ac_ext <<_ACEOF
22027 rm -f conftest.$ac_objext conftest$ac_exeext
22028 if { (ac_try="$ac_link"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_link") 2>conftest.er1
22036 grep -v '^ *+' conftest.er1 >conftest.err
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
22041 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22042 { (case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_try") 2>&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; } &&
22051 { ac_try='test -s conftest$ac_exeext'
22052 { (case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057 (eval "$ac_try") 2>&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
22062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22064 # Check for a 64-bit object if we didn't find anything.
22065 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; }
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22074 rm -f core conftest.err conftest.$ac_objext \
22075 conftest$ac_exeext conftest.$ac_ext
22076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22078 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22079 # Warning - without using the other run time loading flags,
22080 # -berok will link without error, but may produce a broken library.
22081 no_undefined_flag_F77=' ${wl}-bernotok'
22082 allow_undefined_flag_F77=' ${wl}-berok'
22083 # Exported symbols can be pulled into shared objects from archives
22084 whole_archive_flag_spec_F77='$convenience'
22085 archive_cmds_need_lc_F77=yes
22086 # This is similar to how AIX traditionally builds its shared libraries.
22087 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'
22093 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)'
22094 hardcode_libdir_flag_spec_F77='-L$libdir'
22095 hardcode_minus_L_F77=yes
22096 # see comment about different semantics on the GNU ld section
22101 export_dynamic_flag_spec_F77=-rdynamic
22104 cygwin* | mingw* | pw32*)
22105 # When not using gcc, we currently assume that we are using
22106 # Microsoft Visual C++.
22107 # hardcode_libdir_flag_spec is actually meaningless, as there is
22108 # no search path for DLLs.
22109 hardcode_libdir_flag_spec_F77=' '
22110 allow_undefined_flag_F77=unsupported
22111 # Tell ltmain to make .lib files, not .a files.
22113 # Tell ltmain to make .dll files, not .so files.
22115 # FIXME: Setting linknames here is a bad hack.
22116 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22117 # The linker will automatically build a .lib file if we build a DLL.
22118 old_archive_From_new_cmds_F77='true'
22119 # FIXME: Should let the user specify the lib program.
22120 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22121 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22122 enable_shared_with_static_runtimes_F77=yes
22125 darwin* | rhapsody*)
22127 rhapsody* | darwin1.[012])
22128 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22131 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22132 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22134 case ${MACOSX_DEPLOYMENT_TARGET} in
22136 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22139 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22145 archive_cmds_need_lc_F77=no
22146 hardcode_direct_F77=no
22147 hardcode_automatic_F77=yes
22148 hardcode_shlibpath_var_F77=unsupported
22149 whole_archive_flag_spec_F77=''
22150 link_all_deplibs_F77=yes
22151 if test "$GCC" = yes ; then
22152 output_verbose_link_cmd='echo'
22153 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22154 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22155 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22156 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}'
22157 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}'
22159 case $cc_basename in
22161 output_verbose_link_cmd='echo'
22162 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22163 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22164 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22165 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}'
22166 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}'
22176 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22177 hardcode_libdir_flag_spec_F77='-L$libdir'
22178 hardcode_shlibpath_var_F77=no
22185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22186 # support. Future versions do this automatically, but an explicit c++rt0.o
22187 # does not break anything, and helps significantly (at the cost of a little
22190 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22191 hardcode_libdir_flag_spec_F77='-R$libdir'
22192 hardcode_direct_F77=yes
22193 hardcode_shlibpath_var_F77=no
22196 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22198 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22199 hardcode_direct_F77=yes
22200 hardcode_minus_L_F77=yes
22201 hardcode_shlibpath_var_F77=no
22204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22205 freebsd* | kfreebsd*-gnu | dragonfly*)
22206 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22207 hardcode_libdir_flag_spec_F77='-R$libdir'
22208 hardcode_direct_F77=yes
22209 hardcode_shlibpath_var_F77=no
22213 if test "$GCC" = yes; then
22214 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'
22216 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'
22218 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22219 hardcode_libdir_separator_F77=:
22220 hardcode_direct_F77=yes
22222 # hardcode_minus_L: Not really in the search PATH,
22223 # but as the default location of the library.
22224 hardcode_minus_L_F77=yes
22225 export_dynamic_flag_spec_F77='${wl}-E'
22229 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22230 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22232 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22234 if test "$with_gnu_ld" = no; then
22235 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22236 hardcode_libdir_separator_F77=:
22238 hardcode_direct_F77=yes
22239 export_dynamic_flag_spec_F77='${wl}-E'
22241 # hardcode_minus_L: Not really in the search PATH,
22242 # but as the default location of the library.
22243 hardcode_minus_L_F77=yes
22248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22251 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22254 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22257 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22263 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22266 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22269 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22273 if test "$with_gnu_ld" = no; then
22274 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22275 hardcode_libdir_separator_F77=:
22279 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22280 hardcode_direct_F77=no
22281 hardcode_shlibpath_var_F77=no
22284 hardcode_direct_F77=yes
22285 export_dynamic_flag_spec_F77='${wl}-E'
22287 # hardcode_minus_L: Not really in the search PATH,
22288 # but as the default location of the library.
22289 hardcode_minus_L_F77=yes
22295 irix5* | irix6* | nonstopux*)
22296 if test "$GCC" = yes; then
22297 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'
22299 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'
22300 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22302 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22303 hardcode_libdir_separator_F77=:
22304 link_all_deplibs_F77=yes
22308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22309 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22311 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22313 hardcode_libdir_flag_spec_F77='-R$libdir'
22314 hardcode_direct_F77=yes
22315 hardcode_shlibpath_var_F77=no
22319 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22320 hardcode_direct_F77=yes
22321 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22322 hardcode_libdir_separator_F77=:
22323 hardcode_shlibpath_var_F77=no
22327 hardcode_direct_F77=yes
22328 hardcode_shlibpath_var_F77=no
22329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22330 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22331 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22332 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22333 export_dynamic_flag_spec_F77='${wl}-E'
22336 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22337 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22338 hardcode_libdir_flag_spec_F77='-R$libdir'
22341 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22342 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22349 hardcode_libdir_flag_spec_F77='-L$libdir'
22350 hardcode_minus_L_F77=yes
22351 allow_undefined_flag_F77=unsupported
22352 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'
22353 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22357 if test "$GCC" = yes; then
22358 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22359 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'
22361 allow_undefined_flag_F77=' -expect_unresolved \*'
22362 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'
22364 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22365 hardcode_libdir_separator_F77=:
22368 osf4* | osf5*) # as osf3* with the addition of -msym flag
22369 if test "$GCC" = yes; then
22370 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22371 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'
22372 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22374 allow_undefined_flag_F77=' -expect_unresolved \*'
22375 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'
22376 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~
22377 $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'
22379 # Both c and cxx compiler support -rpath directly
22380 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22382 hardcode_libdir_separator_F77=:
22386 no_undefined_flag_F77=' -z text'
22387 if test "$GCC" = yes; then
22389 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22390 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22391 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22394 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22395 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22398 hardcode_libdir_flag_spec_F77='-R$libdir'
22399 hardcode_shlibpath_var_F77=no
22401 solaris2.[0-5] | solaris2.[0-5].*) ;;
22403 # The compiler driver will combine linker options so we
22404 # cannot just pass the convience library names through
22405 # without $wl, iff we do not link with $LD.
22406 # Luckily, gcc supports the same syntax we need for Sun Studio.
22407 # Supported since Solaris 2.6 (maybe 2.5.1?)
22410 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22412 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' ;;
22415 link_all_deplibs_F77=yes
22419 if test "x$host_vendor" = xsequent; then
22420 # Use $CC to link under sequent, because it throws in some extra .o
22421 # files that make .init and .fini sections work.
22422 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22424 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22426 hardcode_libdir_flag_spec_F77='-L$libdir'
22427 hardcode_direct_F77=yes
22428 hardcode_minus_L_F77=yes
22429 hardcode_shlibpath_var_F77=no
22433 case $host_vendor in
22435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22436 hardcode_direct_F77=yes # is this really true???
22439 ## LD is ld it makes a PLAMLIB
22440 ## CC just makes a GrossModule.
22441 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22442 reload_cmds_F77='$CC -r -o $output$reload_objs'
22443 hardcode_direct_F77=no
22446 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22447 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22450 runpath_var='LD_RUN_PATH'
22451 hardcode_shlibpath_var_F77=no
22455 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22456 hardcode_shlibpath_var_F77=no
22457 export_dynamic_flag_spec_F77='-Bexport'
22461 if test -d /usr/nec; then
22462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22463 hardcode_shlibpath_var_F77=no
22464 runpath_var=LD_RUN_PATH
22465 hardcode_runpath_var=yes
22470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22471 no_undefined_flag_F77='${wl}-z,text'
22472 archive_cmds_need_lc_F77=no
22473 hardcode_shlibpath_var_F77=no
22474 runpath_var='LD_RUN_PATH'
22476 if test "$GCC" = yes; then
22477 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22478 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22480 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22481 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22485 sysv5* | sco3.2v5* | sco5v6*)
22486 # Note: We can NOT use -z defs as we might desire, because we do not
22487 # link with -lc, and that would cause any symbols used from libc to
22488 # always be unresolved, which means just about no library would
22489 # ever link correctly. If we're not using GNU ld we use -z text
22490 # though, which does catch some bad symbols but isn't as heavy-handed
22492 no_undefined_flag_F77='${wl}-z,text'
22493 allow_undefined_flag_F77='${wl}-z,nodefs'
22494 archive_cmds_need_lc_F77=no
22495 hardcode_shlibpath_var_F77=no
22496 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22497 hardcode_libdir_separator_F77=':'
22498 link_all_deplibs_F77=yes
22499 export_dynamic_flag_spec_F77='${wl}-Bexport'
22500 runpath_var='LD_RUN_PATH'
22502 if test "$GCC" = yes; then
22503 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22504 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22506 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22507 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22513 hardcode_libdir_flag_spec_F77='-L$libdir'
22514 hardcode_shlibpath_var_F77=no
22523 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22524 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22525 test "$ld_shlibs_F77" = no && can_build_shared=no
22528 # Do we need to explicitly link libc?
22530 case "x$archive_cmds_need_lc_F77" in
22532 # Assume -lc should be added
22533 archive_cmds_need_lc_F77=yes
22535 if test "$enable_shared" = yes && test "$GCC" = yes; then
22536 case $archive_cmds_F77 in
22538 # FIXME: we may have to deal with multi-command sequences.
22541 # Test whether the compiler implicitly links with -lc since on some
22542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22543 # to ld, don't add -lc before -lgcc.
22544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22550 (eval $ac_compile) 2>&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } 2>conftest.err; then
22556 libobjs=conftest.$ac_objext
22558 wl=$lt_prog_compiler_wl_F77
22559 pic_flag=$lt_prog_compiler_pic_F77
22565 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22566 allow_undefined_flag_F77=
22567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22568 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }
22573 archive_cmds_need_lc_F77=no
22575 archive_cmds_need_lc_F77=yes
22577 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22579 cat conftest.err 1>&5
22582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22583 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22592 library_names_spec=
22593 libname_spec='lib$name'
22597 postuninstall_cmds=
22601 shlibpath_overrides_runpath=unknown
22603 dynamic_linker="$host_os ld.so"
22604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22605 if test "$GCC" = yes; then
22606 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22607 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22608 # if the path contains ";" then we assume it to be the separator
22609 # otherwise default to the standard path separator (i.e. ":") - it is
22610 # assumed that no part of a normal pathname contains ";" but that should
22611 # okay in the real world where ";" in dirpaths is itself problematic.
22612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22617 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22619 need_lib_prefix=unknown
22620 hardcode_into_libs=no
22622 # when you set need_version to no, make sure it does not cause -set_version
22623 # flags to be left without arguments
22624 need_version=unknown
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22630 shlibpath_var=LIBPATH
22632 # AIX 3 has no versioning support, so we append a major version to the name.
22633 soname_spec='${libname}${release}${shared_ext}$major'
22640 hardcode_into_libs=yes
22641 if test "$host_cpu" = ia64; then
22642 # AIX 5 supports IA64
22643 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22644 shlibpath_var=LD_LIBRARY_PATH
22646 # With GCC up to 2.95.x, collect2 would create an import file
22647 # for dependence libraries. The import file would start with
22648 # the line `#! .'. This would cause the generated library to
22649 # depend on `.', always an invalid library. This was fixed in
22650 # development snapshots of GCC prior to 3.0.
22652 aix4 | aix4.[01] | aix4.[01].*)
22653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22655 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22658 can_build_shared=no
22662 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22663 # soname into executable. Probably we can add versioning support to
22664 # collect2, so additional links can be useful in future.
22665 if test "$aix_use_runtimelinking" = yes; then
22666 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22667 # instead of lib<name>.a to let people know that these are not
22668 # typical AIX shared libraries.
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671 # We preserve .a as extension for shared libraries through AIX4.2
22672 # and later when we are not doing run time linking.
22673 library_names_spec='${libname}${release}.a $libname.a'
22674 soname_spec='${libname}${release}${shared_ext}$major'
22676 shlibpath_var=LIBPATH
22681 library_names_spec='$libname.ixlibrary $libname.a'
22682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22683 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'
22687 library_names_spec='${libname}${shared_ext}'
22688 dynamic_linker="$host_os ld.so"
22689 shlibpath_var=LIBRARY_PATH
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22698 shlibpath_var=LD_LIBRARY_PATH
22699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22701 # the default ld.so.conf also contains /usr/contrib/lib and
22702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22703 # libtool to hard-code these into programs
22706 cygwin* | mingw* | pw32*)
22707 version_type=windows
22712 case $GCC,$host_os in
22713 yes,cygwin* | yes,mingw* | yes,pw32*)
22714 library_names_spec='$libname.dll.a'
22715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22716 postinstall_cmds='base_file=`basename \${file}`~
22717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22718 dldir=$destdir/`dirname \$dlpath`~
22719 test -d \$dldir || mkdir -p \$dldir~
22720 $install_prog $dir/$dlname \$dldir/$dlname~
22721 chmod a+x \$dldir/$dlname'
22722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22723 dlpath=$dir/\$dldll~
22725 shlibpath_overrides_runpath=yes
22729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22730 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22731 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22734 # MinGW DLLs use traditional 'lib' prefix
22735 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22736 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22737 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22738 # It is most probably a Windows format PATH printed by
22739 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22740 # path with ; separators, and with drive letters. We can handle the
22741 # drive letters (cygwin fileutils understands them), so leave them,
22742 # especially as we might pass files found there to a mingw objdump,
22743 # which wouldn't understand a cygwinified path. Ahh.
22744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22750 # pw32 DLLs use 'pw' prefix rather than 'lib'
22751 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22757 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22760 dynamic_linker='Win32 ld.exe'
22761 # FIXME: first we should search . and the directory the executable is in
22765 darwin* | rhapsody*)
22766 dynamic_linker="$host_os dyld"
22767 version_type=darwin
22770 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22771 soname_spec='${libname}${release}${major}$shared_ext'
22772 shlibpath_overrides_runpath=yes
22773 shlibpath_var=DYLD_LIBRARY_PATH
22774 shrext_cmds='.dylib'
22775 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22776 if test "$GCC" = yes; then
22777 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"`
22779 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22802 soname_spec='${libname}${release}${shared_ext}$major'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=no
22805 hardcode_into_libs=yes
22806 dynamic_linker='GNU ld.so'
22809 freebsd* | dragonfly*)
22810 # DragonFly does not have aout. When/if they implement a new
22811 # versioning mechanism, adjust this.
22812 if test -x /usr/bin/objformat; then
22813 objformat=`/usr/bin/objformat`
22816 freebsd[123]*) objformat=aout ;;
22817 *) objformat=elf ;;
22820 version_type=freebsd-$objformat
22821 case $version_type in
22823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22832 shlibpath_var=LD_LIBRARY_PATH
22835 shlibpath_overrides_runpath=yes
22837 freebsd3.[01]* | freebsdelf3.[01]*)
22838 shlibpath_overrides_runpath=yes
22839 hardcode_into_libs=yes
22841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22843 shlibpath_overrides_runpath=no
22844 hardcode_into_libs=yes
22846 freebsd*) # from 4.6 on
22847 shlibpath_overrides_runpath=yes
22848 hardcode_into_libs=yes
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22858 soname_spec='${libname}${release}${shared_ext}$major'
22859 shlibpath_var=LD_LIBRARY_PATH
22860 hardcode_into_libs=yes
22863 hpux9* | hpux10* | hpux11*)
22864 # Give a soname corresponding to the major version so that dld.sl refuses to
22865 # link against other versions.
22872 hardcode_into_libs=yes
22873 dynamic_linker="$host_os dld.so"
22874 shlibpath_var=LD_LIBRARY_PATH
22875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877 soname_spec='${libname}${release}${shared_ext}$major'
22878 if test "X$HPUX_IA64_MODE" = X32; then
22879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22887 hardcode_into_libs=yes
22888 dynamic_linker="$host_os dld.sl"
22889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22892 soname_spec='${libname}${release}${shared_ext}$major'
22893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22898 dynamic_linker="$host_os dld.sl"
22899 shlibpath_var=SHLIB_PATH
22900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22902 soname_spec='${libname}${release}${shared_ext}$major'
22905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22906 postinstall_cmds='chmod 555 $lib'
22913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22914 soname_spec='${libname}${release}${shared_ext}$major'
22915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22916 shlibpath_var=LD_LIBRARY_PATH
22917 shlibpath_overrides_runpath=no
22918 hardcode_into_libs=yes
22921 irix5* | irix6* | nonstopux*)
22923 nonstopux*) version_type=nonstopux ;;
22925 if test "$lt_cv_prog_gnu_ld" = yes; then
22933 soname_spec='${libname}${release}${shared_ext}$major'
22934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22936 irix5* | nonstopux*)
22937 libsuff= shlibsuff=
22940 case $LD in # libtool.m4 will add one of these switches to LD
22941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22942 libsuff= shlibsuff= libmagic=32-bit;;
22943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22944 libsuff=32 shlibsuff=N32 libmagic=N32;;
22945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22947 *) libsuff= shlibsuff= libmagic=never-match;;
22951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22952 shlibpath_overrides_runpath=no
22953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22955 hardcode_into_libs=yes
22958 # No shared lib support for Linux oldld, aout, or coff.
22959 linux*oldld* | linux*aout* | linux*coff*)
22963 # This must be Linux ELF.
22968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969 soname_spec='${libname}${release}${shared_ext}$major'
22970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22971 shlibpath_var=LD_LIBRARY_PATH
22972 shlibpath_overrides_runpath=no
22973 # This implies no fast_install, which is unacceptable.
22974 # Some rework will be needed to allow for fast_install
22975 # before this can be enabled.
22976 hardcode_into_libs=yes
22978 # Append ld.so.conf contents to the search path
22979 if test -f /etc/ld.so.conf; then
22980 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' ' '`
22981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22984 # We used to test for /lib/ld.so.1 and disable shared libraries on
22985 # powerpc, because MkLinux only supported shared libraries with the
22986 # GNU dynamic linker. Since this was broken with cross compilers,
22987 # most powerpc-linux boxes support dynamic linking these days and
22988 # people can always --disable-shared, the test was removed, and we
22989 # assume the GNU/Linux dynamic linker is in use.
22990 dynamic_linker='GNU/Linux ld.so'
22997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22998 soname_spec='${libname}${release}${shared_ext}$major'
22999 shlibpath_var=LD_LIBRARY_PATH
23000 shlibpath_overrides_runpath=no
23001 hardcode_into_libs=yes
23002 dynamic_linker='GNU ld.so'
23009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23012 dynamic_linker='NetBSD (a.out) ld.so'
23014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23015 soname_spec='${libname}${release}${shared_ext}$major'
23016 dynamic_linker='NetBSD ld.elf_so'
23018 shlibpath_var=LD_LIBRARY_PATH
23019 shlibpath_overrides_runpath=yes
23020 hardcode_into_libs=yes
23025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23026 shlibpath_var=LD_LIBRARY_PATH
23027 shlibpath_overrides_runpath=yes
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035 soname_spec='${libname}${release}${shared_ext}$major'
23036 shlibpath_var=LD_LIBRARY_PATH
23037 shlibpath_overrides_runpath=yes
23042 sys_lib_dlsearch_path_spec="/usr/lib"
23044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23046 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23047 *) need_version=no ;;
23049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23051 shlibpath_var=LD_LIBRARY_PATH
23052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23054 openbsd2.[89] | openbsd2.[89].*)
23055 shlibpath_overrides_runpath=no
23058 shlibpath_overrides_runpath=yes
23062 shlibpath_overrides_runpath=yes
23067 libname_spec='$name'
23070 library_names_spec='$libname${shared_ext} $libname.a'
23071 dynamic_linker='OS/2 ld.exe'
23072 shlibpath_var=LIBPATH
23075 osf3* | osf4* | osf5*)
23079 soname_spec='${libname}${release}${shared_ext}$major'
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23081 shlibpath_var=LD_LIBRARY_PATH
23082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23091 soname_spec='${libname}${release}${shared_ext}$major'
23092 shlibpath_var=LD_LIBRARY_PATH
23093 shlibpath_overrides_runpath=yes
23094 hardcode_into_libs=yes
23095 # ldd complains unless libraries are executable
23096 postinstall_cmds='chmod +x $lib'
23101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23102 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23103 shlibpath_var=LD_LIBRARY_PATH
23104 shlibpath_overrides_runpath=yes
23105 if test "$with_gnu_ld" = yes; then
23113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23114 soname_spec='${libname}${release}${shared_ext}$major'
23115 shlibpath_var=LD_LIBRARY_PATH
23116 case $host_vendor in
23118 shlibpath_overrides_runpath=no
23120 export_dynamic_flag_spec='${wl}-Blargedynsym'
23121 runpath_var=LD_RUN_PATH
23129 shlibpath_overrides_runpath=no
23130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23136 if test -d /usr/nec ;then
23138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23139 soname_spec='$libname${shared_ext}.$major'
23140 shlibpath_var=LD_LIBRARY_PATH
23144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23145 version_type=freebsd-elf
23148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23149 soname_spec='${libname}${release}${shared_ext}$major'
23150 shlibpath_var=LD_LIBRARY_PATH
23151 hardcode_into_libs=yes
23152 if test "$with_gnu_ld" = yes; then
23153 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23154 shlibpath_overrides_runpath=no
23156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23157 shlibpath_overrides_runpath=yes
23160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23164 sys_lib_dlsearch_path_spec='/usr/lib'
23169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23170 soname_spec='${libname}${release}${shared_ext}$major'
23171 shlibpath_var=LD_LIBRARY_PATH
23178 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23179 echo "${ECHO_T}$dynamic_linker" >&6; }
23180 test "$dynamic_linker" = no && can_build_shared=no
23182 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23183 if test "$GCC" = yes; then
23184 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23187 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23188 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23189 hardcode_action_F77=
23190 if test -n "$hardcode_libdir_flag_spec_F77" || \
23191 test -n "$runpath_var_F77" || \
23192 test "X$hardcode_automatic_F77" = "Xyes" ; then
23194 # We can hardcode non-existant directories.
23195 if test "$hardcode_direct_F77" != no &&
23196 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23197 # have to relink, otherwise we might link with an installed library
23198 # when we should be linking with a yet-to-be-installed one
23199 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23200 test "$hardcode_minus_L_F77" != no; then
23201 # Linking always hardcodes the temporary library directory.
23202 hardcode_action_F77=relink
23204 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23205 hardcode_action_F77=immediate
23208 # We cannot hardcode anything, or else we can only hardcode existing
23210 hardcode_action_F77=unsupported
23212 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23213 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23215 if test "$hardcode_action_F77" = relink; then
23216 # Fast installation is not supported
23217 enable_fast_install=no
23218 elif test "$shlibpath_overrides_runpath" = yes ||
23219 test "$enable_shared" = no; then
23220 # Fast installation is not necessary
23221 enable_fast_install=needless
23225 # The else clause should only fire when bootstrapping the
23226 # libtool distribution, otherwise you forgot to ship ltmain.sh
23227 # with your package, and you will get complaints that there are
23228 # no rules to generate ltmain.sh.
23229 if test -f "$ltmain"; then
23230 # See if we are running on zsh, and set the options which allow our commands through
23231 # without removal of \ escapes.
23232 if test -n "${ZSH_VERSION+set}" ; then
23233 setopt NO_GLOB_SUBST
23235 # Now quote all the things that may contain metacharacters while being
23236 # careful not to overquote the AC_SUBSTed values. We take copies of the
23237 # variables and quote the copies for generation of the libtool script.
23238 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23240 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23241 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23242 deplibs_check_method reload_flag reload_cmds need_locks \
23243 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23244 lt_cv_sys_global_symbol_to_c_name_address \
23245 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23246 old_postinstall_cmds old_postuninstall_cmds \
23250 lt_prog_compiler_wl_F77 \
23251 lt_prog_compiler_pic_F77 \
23252 lt_prog_compiler_static_F77 \
23253 lt_prog_compiler_no_builtin_flag_F77 \
23254 export_dynamic_flag_spec_F77 \
23255 thread_safe_flag_spec_F77 \
23256 whole_archive_flag_spec_F77 \
23257 enable_shared_with_static_runtimes_F77 \
23258 old_archive_cmds_F77 \
23259 old_archive_from_new_cmds_F77 \
23260 predep_objects_F77 \
23261 postdep_objects_F77 \
23264 compiler_lib_search_path_F77 \
23266 archive_expsym_cmds_F77 \
23267 postinstall_cmds_F77 \
23268 postuninstall_cmds_F77 \
23269 old_archive_from_expsyms_cmds_F77 \
23270 allow_undefined_flag_F77 \
23271 no_undefined_flag_F77 \
23272 export_symbols_cmds_F77 \
23273 hardcode_libdir_flag_spec_F77 \
23274 hardcode_libdir_flag_spec_ld_F77 \
23275 hardcode_libdir_separator_F77 \
23276 hardcode_automatic_F77 \
23278 module_expsym_cmds_F77 \
23279 lt_cv_prog_compiler_c_o_F77 \
23280 exclude_expsyms_F77 \
23281 include_expsyms_F77; do
23284 old_archive_cmds_F77 | \
23285 old_archive_from_new_cmds_F77 | \
23286 archive_cmds_F77 | \
23287 archive_expsym_cmds_F77 | \
23288 module_cmds_F77 | \
23289 module_expsym_cmds_F77 | \
23290 old_archive_from_expsyms_cmds_F77 | \
23291 export_symbols_cmds_F77 | \
23292 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23293 postinstall_cmds | postuninstall_cmds | \
23294 old_postinstall_cmds | old_postuninstall_cmds | \
23295 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23296 # Double-quote double-evaled strings.
23297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23306 *'\$0 --fallback-echo"')
23307 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23313 cat <<__EOF__ >> "$cfgfile"
23314 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23318 # Shell to use when invoking shell scripts.
23321 # Whether or not to build shared libraries.
23322 build_libtool_libs=$enable_shared
23324 # Whether or not to build static libraries.
23325 build_old_libs=$enable_static
23327 # Whether or not to add -lc for building shared libraries.
23328 build_libtool_need_lc=$archive_cmds_need_lc_F77
23330 # Whether or not to disallow shared libs when runtime libs are static
23331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23333 # Whether or not to optimize for fast installation.
23334 fast_install=$enable_fast_install
23337 host_alias=$host_alias
23341 # The build system.
23342 build_alias=$build_alias
23346 # An echo program that does not interpret backslashes.
23351 AR_FLAGS=$lt_AR_FLAGS
23356 # LTCC compiler flags.
23357 LTCFLAGS=$lt_LTCFLAGS
23359 # A language-specific compiler.
23360 CC=$lt_compiler_F77
23362 # Is the compiler the GNU C compiler?
23368 # The linker used to build libraries.
23371 # Whether we need hard or soft links.
23374 # A BSD-compatible nm program.
23377 # A symbol stripping program
23380 # Used to examine libraries when file_magic_cmd begins "file"
23381 MAGIC_CMD=$MAGIC_CMD
23383 # Used on cygwin: DLL creation program.
23386 # Used on cygwin: object dumper.
23389 # Used on cygwin: assembler.
23392 # The name of the directory that contains temporary libtool files.
23395 # How to create reloadable object files.
23396 reload_flag=$lt_reload_flag
23397 reload_cmds=$lt_reload_cmds
23399 # How to pass a linker flag through the compiler.
23400 wl=$lt_lt_prog_compiler_wl_F77
23402 # Object file suffix (normally "o").
23403 objext="$ac_objext"
23405 # Old archive suffix (normally "a").
23408 # Shared library suffix (normally ".so").
23409 shrext_cmds='$shrext_cmds'
23411 # Executable file suffix (normally "").
23414 # Additional compiler flags for building library objects.
23415 pic_flag=$lt_lt_prog_compiler_pic_F77
23418 # What is the maximum length of a command?
23419 max_cmd_len=$lt_cv_sys_max_cmd_len
23421 # Does compiler simultaneously support -c and -o options?
23422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23424 # Must we lock files when doing compilation?
23425 need_locks=$lt_need_locks
23427 # Do we need the lib prefix for modules?
23428 need_lib_prefix=$need_lib_prefix
23430 # Do we need a version for libraries?
23431 need_version=$need_version
23433 # Whether dlopen is supported.
23434 dlopen_support=$enable_dlopen
23436 # Whether dlopen of programs is supported.
23437 dlopen_self=$enable_dlopen_self
23439 # Whether dlopen of statically linked programs is supported.
23440 dlopen_self_static=$enable_dlopen_self_static
23442 # Compiler flag to prevent dynamic linking.
23443 link_static_flag=$lt_lt_prog_compiler_static_F77
23445 # Compiler flag to turn off builtin functions.
23446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23448 # Compiler flag to allow reflexive dlopens.
23449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23451 # Compiler flag to generate shared objects directly from archives.
23452 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23454 # Compiler flag to generate thread-safe objects.
23455 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23457 # Library versioning type.
23458 version_type=$version_type
23460 # Format of library name prefix.
23461 libname_spec=$lt_libname_spec
23463 # List of archive names. First name is the real one, the rest are links.
23464 # The last name is the one that the linker finds with -lNAME.
23465 library_names_spec=$lt_library_names_spec
23467 # The coded name of the library, if different from the real name.
23468 soname_spec=$lt_soname_spec
23470 # Commands used to build and install an old-style archive.
23472 old_archive_cmds=$lt_old_archive_cmds_F77
23473 old_postinstall_cmds=$lt_old_postinstall_cmds
23474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23476 # Create an old-style archive from a shared archive.
23477 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23479 # Create a temporary old-style archive to link instead of a shared archive.
23480 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23482 # Commands used to build and install a shared archive.
23483 archive_cmds=$lt_archive_cmds_F77
23484 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23485 postinstall_cmds=$lt_postinstall_cmds
23486 postuninstall_cmds=$lt_postuninstall_cmds
23488 # Commands used to build a loadable module (assumed same as above if empty)
23489 module_cmds=$lt_module_cmds_F77
23490 module_expsym_cmds=$lt_module_expsym_cmds_F77
23492 # Commands to strip libraries.
23493 old_striplib=$lt_old_striplib
23494 striplib=$lt_striplib
23496 # Dependencies to place before the objects being linked to create a
23498 predep_objects=$lt_predep_objects_F77
23500 # Dependencies to place after the objects being linked to create a
23502 postdep_objects=$lt_postdep_objects_F77
23504 # Dependencies to place before the objects being linked to create a
23506 predeps=$lt_predeps_F77
23508 # Dependencies to place after the objects being linked to create a
23510 postdeps=$lt_postdeps_F77
23512 # The library search path used internally by the compiler when linking
23513 # a shared library.
23514 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23516 # Method to check whether dependent libraries are shared objects.
23517 deplibs_check_method=$lt_deplibs_check_method
23519 # Command to use when deplibs_check_method == file_magic.
23520 file_magic_cmd=$lt_file_magic_cmd
23522 # Flag that allows shared libraries with undefined symbols to be built.
23523 allow_undefined_flag=$lt_allow_undefined_flag_F77
23525 # Flag that forces no undefined symbols.
23526 no_undefined_flag=$lt_no_undefined_flag_F77
23528 # Commands used to finish a libtool library installation in a directory.
23529 finish_cmds=$lt_finish_cmds
23531 # Same as above, but a single script fragment to be evaled but not shown.
23532 finish_eval=$lt_finish_eval
23534 # Take the output of nm and produce a listing of raw symbols and C names.
23535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23537 # Transform the output of nm in a proper C declaration
23538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23540 # Transform the output of nm in a C name address pair
23541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23543 # This is the shared library runtime path variable.
23544 runpath_var=$runpath_var
23546 # This is the shared library path variable.
23547 shlibpath_var=$shlibpath_var
23549 # Is shlibpath searched before the hard-coded library search path?
23550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23552 # How to hardcode a shared library path into an executable.
23553 hardcode_action=$hardcode_action_F77
23555 # Whether we should hardcode library paths into libraries.
23556 hardcode_into_libs=$hardcode_into_libs
23558 # Flag to hardcode \$libdir into a binary during linking.
23559 # This must work even if \$libdir does not exist.
23560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23562 # If ld is used when linking, flag to hardcode \$libdir into
23563 # a binary during linking. This must work even if \$libdir does
23565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23567 # Whether we need a single -rpath flag with a separated argument.
23568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23570 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23571 # resulting binary.
23572 hardcode_direct=$hardcode_direct_F77
23574 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23575 # resulting binary.
23576 hardcode_minus_L=$hardcode_minus_L_F77
23578 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23579 # the resulting binary.
23580 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23582 # Set to yes if building a shared library automatically hardcodes DIR into the library
23583 # and all subsequent libraries and executables linked against it.
23584 hardcode_automatic=$hardcode_automatic_F77
23586 # Variables whose values should be saved in libtool wrapper scripts and
23587 # restored at relink time.
23588 variables_saved_for_relink="$variables_saved_for_relink"
23590 # Whether libtool must link a program against all its dependency libraries.
23591 link_all_deplibs=$link_all_deplibs_F77
23593 # Compile-time system search path for libraries
23594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23596 # Run-time system search path for libraries
23597 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23599 # Fix the shell variable \$srcfile for the compiler.
23600 fix_srcfile_path="$fix_srcfile_path_F77"
23602 # Set to yes if exported symbols are required.
23603 always_export_symbols=$always_export_symbols_F77
23605 # The commands to list exported symbols.
23606 export_symbols_cmds=$lt_export_symbols_cmds_F77
23608 # The commands to extract the exported symbol list from a shared archive.
23609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23611 # Symbols that should not be listed in the preloaded symbols.
23612 exclude_expsyms=$lt_exclude_expsyms_F77
23614 # Symbols that must always be exported.
23615 include_expsyms=$lt_include_expsyms_F77
23617 # ### END LIBTOOL TAG CONFIG: $tagname
23623 # If there is no Makefile yet, we rely on a make rule to execute
23624 # `config.status --recheck' to rerun these tests and create the
23625 # libtool script then.
23626 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23627 if test -f "$ltmain_in"; then
23628 test -f Makefile && make "$ltmain"
23634 ac_cpp='$CPP $CPPFLAGS'
23635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23647 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23649 ac_cpp='$CPP $CPPFLAGS'
23650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23655 # Source file extension for Java test sources.
23658 # Object file extension for compiled Java test sources.
23662 # Code to be used in simple compile tests
23663 lt_simple_compile_test_code="class foo {}\n"
23665 # Code to be used in simple link tests
23666 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23668 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23670 # If no C compiler was specified, use CC.
23673 # If no C compiler flags were specified, use CFLAGS.
23674 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23676 # Allow CC to be a program name with arguments.
23680 # save warnings/boilerplate of simple test code
23681 ac_outfile=conftest.$ac_objext
23682 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23683 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23684 _lt_compiler_boilerplate=`cat conftest.err`
23687 ac_outfile=conftest.$ac_objext
23688 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23689 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23690 _lt_linker_boilerplate=`cat conftest.err`
23694 # Allow CC to be a program name with arguments.
23699 for cc_temp in $compiler""; do
23701 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23702 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23707 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23710 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23711 archive_cmds_need_lc_GCJ=no
23713 old_archive_cmds_GCJ=$old_archive_cmds
23716 lt_prog_compiler_no_builtin_flag_GCJ=
23718 if test "$GCC" = yes; then
23719 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23722 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23723 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23724 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23727 lt_cv_prog_compiler_rtti_exceptions=no
23728 ac_outfile=conftest.$ac_objext
23729 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23730 lt_compiler_flag="-fno-rtti -fno-exceptions"
23731 # Insert the option either (1) after the last *FLAGS variable, or
23732 # (2) before a word containing "conftest.", or (3) at the end.
23733 # Note that $ac_compile itself does not contain backslashes and begins
23734 # with a dollar sign (not a hyphen), so the echo should work correctly.
23735 # The option is referenced via a variable to avoid confusing sed.
23736 lt_compile=`echo "$ac_compile" | $SED \
23737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23739 -e 's:$: $lt_compiler_flag:'`
23740 (eval echo "\"\$as_me:23740: $lt_compile\"" >&5)
23741 (eval "$lt_compile" 2>conftest.err)
23743 cat conftest.err >&5
23744 echo "$as_me:23744: \$? = $ac_status" >&5
23745 if (exit $ac_status) && test -s "$ac_outfile"; then
23746 # The compiler can only warn and ignore the option if not recognized
23747 # So say no if there are warnings other than the usual output.
23748 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23750 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23751 lt_cv_prog_compiler_rtti_exceptions=yes
23757 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23758 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23760 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23761 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23768 lt_prog_compiler_wl_GCJ=
23769 lt_prog_compiler_pic_GCJ=
23770 lt_prog_compiler_static_GCJ=
23772 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23773 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23775 if test "$GCC" = yes; then
23776 lt_prog_compiler_wl_GCJ='-Wl,'
23777 lt_prog_compiler_static_GCJ='-static'
23781 # All AIX code is PIC.
23782 if test "$host_cpu" = ia64; then
23783 # AIX 5 now supports IA64 processor
23784 lt_prog_compiler_static_GCJ='-Bstatic'
23789 # FIXME: we need at least 68020 code to build shared libraries, but
23790 # adding the `-m68020' flag to GCC prevents building anything better,
23792 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23795 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23796 # PIC is the default for these OSes.
23799 mingw* | pw32* | os2*)
23800 # This hack is so that the source file can tell whether it is being
23801 # built for inclusion in a dll (and should export symbols for example).
23802 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23805 darwin* | rhapsody*)
23806 # PIC is the default on this platform
23807 # Common symbols not allowed in MH_DYLIB files
23808 lt_prog_compiler_pic_GCJ='-fno-common'
23812 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23813 # Instead, we relocate shared libraries at runtime.
23817 # Just because we use GCC doesn't mean we suddenly get shared libraries
23818 # on systems that don't support them.
23819 lt_prog_compiler_can_build_shared_GCJ=no
23824 if test -d /usr/nec; then
23825 lt_prog_compiler_pic_GCJ=-Kconform_pic
23830 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23831 # not for PA HP-UX.
23837 lt_prog_compiler_pic_GCJ='-fPIC'
23843 lt_prog_compiler_pic_GCJ='-fPIC'
23847 # PORTME Check for flag to pass linker flags through the system compiler.
23850 lt_prog_compiler_wl_GCJ='-Wl,'
23851 if test "$host_cpu" = ia64; then
23852 # AIX 5 now supports IA64 processor
23853 lt_prog_compiler_static_GCJ='-Bstatic'
23855 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23859 # PIC is the default on this platform
23860 # Common symbols not allowed in MH_DYLIB files
23861 case $cc_basename in
23863 lt_prog_compiler_pic_GCJ='-qnocommon'
23864 lt_prog_compiler_wl_GCJ='-Wl,'
23869 mingw* | pw32* | os2*)
23870 # This hack is so that the source file can tell whether it is being
23871 # built for inclusion in a dll (and should export symbols for example).
23872 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23875 hpux9* | hpux10* | hpux11*)
23876 lt_prog_compiler_wl_GCJ='-Wl,'
23877 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23878 # not for PA HP-UX.
23884 lt_prog_compiler_pic_GCJ='+Z'
23887 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23888 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23891 irix5* | irix6* | nonstopux*)
23892 lt_prog_compiler_wl_GCJ='-Wl,'
23893 # PIC (with -KPIC) is the default.
23894 lt_prog_compiler_static_GCJ='-non_shared'
23898 lt_prog_compiler_pic_GCJ='-KPIC'
23899 lt_prog_compiler_static_GCJ='-Bstatic'
23903 case $cc_basename in
23905 lt_prog_compiler_wl_GCJ='-Wl,'
23906 lt_prog_compiler_pic_GCJ='-KPIC'
23907 lt_prog_compiler_static_GCJ='-static'
23909 pgcc* | pgf77* | pgf90* | pgf95*)
23910 # Portland Group compilers (*not* the Pentium gcc compiler,
23911 # which looks to be a dead project)
23912 lt_prog_compiler_wl_GCJ='-Wl,'
23913 lt_prog_compiler_pic_GCJ='-fpic'
23914 lt_prog_compiler_static_GCJ='-Bstatic'
23917 lt_prog_compiler_wl_GCJ='-Wl,'
23918 # All Alpha code is PIC.
23919 lt_prog_compiler_static_GCJ='-non_shared'
23924 osf3* | osf4* | osf5*)
23925 lt_prog_compiler_wl_GCJ='-Wl,'
23926 # All OSF/1 code is PIC.
23927 lt_prog_compiler_static_GCJ='-non_shared'
23931 lt_prog_compiler_pic_GCJ='-KPIC'
23932 lt_prog_compiler_static_GCJ='-Bstatic'
23933 case $cc_basename in
23934 f77* | f90* | f95*)
23935 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23937 lt_prog_compiler_wl_GCJ='-Wl,';;
23942 lt_prog_compiler_wl_GCJ='-Qoption ld '
23943 lt_prog_compiler_pic_GCJ='-PIC'
23944 lt_prog_compiler_static_GCJ='-Bstatic'
23947 sysv4 | sysv4.2uw2* | sysv4.3*)
23948 lt_prog_compiler_wl_GCJ='-Wl,'
23949 lt_prog_compiler_pic_GCJ='-KPIC'
23950 lt_prog_compiler_static_GCJ='-Bstatic'
23954 if test -d /usr/nec ;then
23955 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23956 lt_prog_compiler_static_GCJ='-Bstatic'
23960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23961 lt_prog_compiler_wl_GCJ='-Wl,'
23962 lt_prog_compiler_pic_GCJ='-KPIC'
23963 lt_prog_compiler_static_GCJ='-Bstatic'
23967 lt_prog_compiler_wl_GCJ='-Wl,'
23968 lt_prog_compiler_can_build_shared_GCJ=no
23972 lt_prog_compiler_pic_GCJ='-pic'
23973 lt_prog_compiler_static_GCJ='-Bstatic'
23977 lt_prog_compiler_can_build_shared_GCJ=no
23982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23983 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23986 # Check to make sure the PIC flag actually works.
23988 if test -n "$lt_prog_compiler_pic_GCJ"; then
23990 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23991 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23992 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23993 echo $ECHO_N "(cached) $ECHO_C" >&6
23995 lt_prog_compiler_pic_works_GCJ=no
23996 ac_outfile=conftest.$ac_objext
23997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23998 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23999 # Insert the option either (1) after the last *FLAGS variable, or
24000 # (2) before a word containing "conftest.", or (3) at the end.
24001 # Note that $ac_compile itself does not contain backslashes and begins
24002 # with a dollar sign (not a hyphen), so the echo should work correctly.
24003 # The option is referenced via a variable to avoid confusing sed.
24004 lt_compile=`echo "$ac_compile" | $SED \
24005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24007 -e 's:$: $lt_compiler_flag:'`
24008 (eval echo "\"\$as_me:24008: $lt_compile\"" >&5)
24009 (eval "$lt_compile" 2>conftest.err)
24011 cat conftest.err >&5
24012 echo "$as_me:24012: \$? = $ac_status" >&5
24013 if (exit $ac_status) && test -s "$ac_outfile"; then
24014 # The compiler can only warn and ignore the option if not recognized
24015 # So say no if there are warnings other than the usual output.
24016 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24018 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24019 lt_prog_compiler_pic_works_GCJ=yes
24025 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24026 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24028 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24029 case $lt_prog_compiler_pic_GCJ in
24031 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24034 lt_prog_compiler_pic_GCJ=
24035 lt_prog_compiler_can_build_shared_GCJ=no
24040 # For platforms which do not support PIC, -DPIC is meaningless:
24042 lt_prog_compiler_pic_GCJ=
24045 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24050 # Check to make sure the static flag actually works.
24052 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24053 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24054 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24055 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24058 lt_prog_compiler_static_works_GCJ=no
24059 save_LDFLAGS="$LDFLAGS"
24060 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24061 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24063 # The linker can only warn and ignore the option if not recognized
24064 # So say no if there are warnings
24065 if test -s conftest.err; then
24066 # Append any errors to the config.log.
24067 cat conftest.err 1>&5
24068 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24070 if diff conftest.exp conftest.er2 >/dev/null; then
24071 lt_prog_compiler_static_works_GCJ=yes
24074 lt_prog_compiler_static_works_GCJ=yes
24078 LDFLAGS="$save_LDFLAGS"
24081 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24082 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24084 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24087 lt_prog_compiler_static_GCJ=
24091 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24092 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24093 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24096 lt_cv_prog_compiler_c_o_GCJ=no
24097 $rm -r conftest 2>/dev/null
24101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24103 lt_compiler_flag="-o out/conftest2.$ac_objext"
24104 # Insert the option either (1) after the last *FLAGS variable, or
24105 # (2) before a word containing "conftest.", or (3) at the end.
24106 # Note that $ac_compile itself does not contain backslashes and begins
24107 # with a dollar sign (not a hyphen), so the echo should work correctly.
24108 lt_compile=`echo "$ac_compile" | $SED \
24109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24111 -e 's:$: $lt_compiler_flag:'`
24112 (eval echo "\"\$as_me:24112: $lt_compile\"" >&5)
24113 (eval "$lt_compile" 2>out/conftest.err)
24115 cat out/conftest.err >&5
24116 echo "$as_me:24116: \$? = $ac_status" >&5
24117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24119 # The compiler can only warn and ignore the option if not recognized
24120 # So say no if there are warnings
24121 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24124 lt_cv_prog_compiler_c_o_GCJ=yes
24129 # SGI C++ compiler will create directory out/ii_files/ for
24130 # template instantiation
24131 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24132 $rm out/* && rmdir out
24138 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24139 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24142 hard_links="nottested"
24143 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24144 # do not overwrite the value of need_locks provided by the user
24145 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24146 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24151 ln conftest.a conftest.b 2>&5 || hard_links=no
24152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24153 { echo "$as_me:$LINENO: result: $hard_links" >&5
24154 echo "${ECHO_T}$hard_links" >&6; }
24155 if test "$hard_links" = no; then
24156 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24157 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24164 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24165 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24168 allow_undefined_flag_GCJ=
24169 enable_shared_with_static_runtimes_GCJ=no
24171 archive_expsym_cmds_GCJ=
24172 old_archive_From_new_cmds_GCJ=
24173 old_archive_from_expsyms_cmds_GCJ=
24174 export_dynamic_flag_spec_GCJ=
24175 whole_archive_flag_spec_GCJ=
24176 thread_safe_flag_spec_GCJ=
24177 hardcode_libdir_flag_spec_GCJ=
24178 hardcode_libdir_flag_spec_ld_GCJ=
24179 hardcode_libdir_separator_GCJ=
24180 hardcode_direct_GCJ=no
24181 hardcode_minus_L_GCJ=no
24182 hardcode_shlibpath_var_GCJ=unsupported
24183 link_all_deplibs_GCJ=unknown
24184 hardcode_automatic_GCJ=no
24186 module_expsym_cmds_GCJ=
24187 always_export_symbols_GCJ=no
24188 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24189 # include_expsyms should be a list of space-separated symbols to be *always*
24190 # included in the symbol list
24191 include_expsyms_GCJ=
24192 # exclude_expsyms can be an extended regexp of symbols to exclude
24193 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24194 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24195 # as well as any symbol that contains `d'.
24196 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24197 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24198 # platforms (ab)use it in PIC code, but their linkers get confused if
24199 # the symbol is explicitly referenced. Since portable code cannot
24200 # rely on this symbol name, it's probably fine to never include it in
24201 # preloaded symbol tables.
24202 extract_expsyms_cmds=
24203 # Just being paranoid about ensuring that cc_basename is set.
24204 for cc_temp in $compiler""; do
24206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24212 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24215 cygwin* | mingw* | pw32*)
24216 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24217 # When not using gcc, we currently assume that we are using
24218 # Microsoft Visual C++.
24219 if test "$GCC" != yes; then
24224 # we just hope/assume this is gcc and not c89 (= MSVC++)
24233 if test "$with_gnu_ld" = yes; then
24234 # If archive_cmds runs LD, not CC, wlarc should be empty
24237 # Set some defaults for GNU ld with shared library support. These
24238 # are reset later if shared libraries are not supported. Putting them
24239 # here allows them to be overridden if necessary.
24240 runpath_var=LD_RUN_PATH
24241 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24242 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24243 # ancient GNU ld didn't support --whole-archive et. al.
24244 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24245 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24247 whole_archive_flag_spec_GCJ=
24249 supports_anon_versioning=no
24250 case `$LD -v 2>/dev/null` in
24251 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24252 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24253 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24254 *\ 2.11.*) ;; # other 2.11 versions
24255 *) supports_anon_versioning=yes ;;
24258 # See if GNU ld supports shared libraries.
24260 aix3* | aix4* | aix5*)
24261 # On AIX/PPC, the GNU linker is very broken
24262 if test "$host_cpu" != ia64; then
24266 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24267 *** to be unable to reliably create shared libraries on AIX.
24268 *** Therefore, libtool is disabling shared libraries support. If you
24269 *** really care for shared libraries, you may want to modify your PATH
24270 *** so that a non-GNU linker is found, and then restart.
24277 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)'
24278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24279 hardcode_minus_L_GCJ=yes
24281 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24282 # that the semantics of dynamic libraries on AmigaOS, at least up
24283 # to version 4, is to share data among multiple programs linked
24284 # with the same dynamic library. Since this doesn't match the
24285 # behavior of shared libraries on other platforms, we can't use
24291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24292 allow_undefined_flag_GCJ=unsupported
24293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24294 # support --undefined. This deserves some investigation. FIXME
24295 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24301 cygwin* | mingw* | pw32*)
24302 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24303 # as there is no search path for DLLs.
24304 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24305 allow_undefined_flag_GCJ=unsupported
24306 always_export_symbols_GCJ=no
24307 enable_shared_with_static_runtimes_GCJ=yes
24308 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24310 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24311 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24312 # If the export-symbols file already is a .def file (1st line
24313 # is EXPORTS), use it as is; otherwise, prepend...
24314 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24315 cp $export_symbols $output_objdir/$soname.def;
24317 echo EXPORTS > $output_objdir/$soname.def;
24318 cat $export_symbols >> $output_objdir/$soname.def;
24320 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24327 hardcode_direct_GCJ=no
24328 hardcode_shlibpath_var_GCJ=no
24329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24330 export_dynamic_flag_spec_GCJ='${wl}-E'
24331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24332 # Instead, shared libraries are loaded at an image base (0x10000000 by
24333 # default) and relocated if they conflict, which is a slow very memory
24334 # consuming and fragmenting process. To avoid this, we pick a random,
24335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24337 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'
24338 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'
24342 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24344 case $cc_basename,$host_cpu in
24345 pgcc*) # Portland Group C compiler
24346 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'
24347 tmp_addflag=' $pic_flag'
24349 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24350 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'
24351 tmp_addflag=' $pic_flag -Mnomain' ;;
24352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24353 tmp_addflag=' -i_dynamic' ;;
24354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24355 tmp_addflag=' -i_dynamic -nofor_main' ;;
24356 ifc* | ifort*) # Intel Fortran compiler
24357 tmp_addflag=' -nofor_main' ;;
24359 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24361 if test $supports_anon_versioning = yes; then
24362 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24363 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24364 $echo "local: *; };" >> $output_objdir/$libname.ver~
24365 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24374 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24377 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24378 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24383 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24387 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24388 *** create shared libraries on Solaris systems. Therefore, libtool
24389 *** is disabling shared libraries support. We urge you to upgrade GNU
24390 *** binutils to release 2.9.1 or newer. Another option is to modify
24391 *** your PATH or compiler configuration so that the native linker is
24392 *** used, and then restart.
24395 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24396 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24397 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24404 case `$LD -v 2>&1` in
24405 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24409 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24410 *** reliably create shared libraries on SCO systems. Therefore, libtool
24411 *** is disabling shared libraries support. We urge you to upgrade GNU
24412 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24413 *** your PATH or compiler configuration so that the native linker is
24414 *** used, and then restart.
24419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24420 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24421 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24422 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24431 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24433 hardcode_direct_GCJ=yes
24434 hardcode_shlibpath_var_GCJ=no
24438 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24439 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24440 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24447 if test "$ld_shlibs_GCJ" = no; then
24449 hardcode_libdir_flag_spec_GCJ=
24450 export_dynamic_flag_spec_GCJ=
24451 whole_archive_flag_spec_GCJ=
24454 # PORTME fill in a description of your system's linker (not GNU ld)
24457 allow_undefined_flag_GCJ=unsupported
24458 always_export_symbols_GCJ=yes
24459 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'
24460 # Note: this linker hardcodes the directories in LIBPATH if there
24461 # are no directories specified by -L.
24462 hardcode_minus_L_GCJ=yes
24463 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24464 # Neither direct hardcoding nor static linking is supported with a
24466 hardcode_direct_GCJ=unsupported
24471 if test "$host_cpu" = ia64; then
24472 # On IA64, the linker does run time linking by default, so we don't
24473 # have to do anything special.
24474 aix_use_runtimelinking=no
24475 exp_sym_flag='-Bexport'
24478 # If we're using GNU nm, then we don't want the "-C" option.
24479 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24480 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24481 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'
24483 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'
24485 aix_use_runtimelinking=no
24487 # Test if we are trying to use run time linking or normal
24488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24489 # need to do runtime linking.
24490 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24491 for ld_flag in $LDFLAGS; do
24492 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24493 aix_use_runtimelinking=yes
24500 exp_sym_flag='-bexport'
24501 no_entry_flag='-bnoentry'
24504 # When large executables or shared objects are built, AIX ld can
24505 # have problems creating the table of contents. If linking a library
24506 # or program results in "error TOC overflow" add -mminimal-toc to
24507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24510 archive_cmds_GCJ=''
24511 hardcode_direct_GCJ=yes
24512 hardcode_libdir_separator_GCJ=':'
24513 link_all_deplibs_GCJ=yes
24515 if test "$GCC" = yes; then
24516 case $host_os in aix4.[012]|aix4.[012].*)
24517 # We only want to do this on AIX 4.2 and lower, the check
24518 # below for broken collect2 doesn't work under 4.3+
24519 collect2name=`${CC} -print-prog-name=collect2`
24520 if test -f "$collect2name" && \
24521 strings "$collect2name" | grep resolve_lib_name >/dev/null
24523 # We have reworked collect2
24524 hardcode_direct_GCJ=yes
24526 # We have old collect2
24527 hardcode_direct_GCJ=unsupported
24528 # It fails to find uninstalled libraries when the uninstalled
24529 # path is not listed in the libpath. Setting hardcode_minus_L
24530 # to unsupported forces relinking
24531 hardcode_minus_L_GCJ=yes
24532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24533 hardcode_libdir_separator_GCJ=
24537 shared_flag='-shared'
24538 if test "$aix_use_runtimelinking" = yes; then
24539 shared_flag="$shared_flag "'${wl}-G'
24543 if test "$host_cpu" = ia64; then
24544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24545 # chokes on -Wl,-G. The following line is correct:
24548 if test "$aix_use_runtimelinking" = yes; then
24549 shared_flag='${wl}-G'
24551 shared_flag='${wl}-bM:SRE'
24556 # It seems that -bexpall does not export symbols beginning with
24557 # underscore (_), so it is better to generate a list of symbols to export.
24558 always_export_symbols_GCJ=yes
24559 if test "$aix_use_runtimelinking" = yes; then
24560 # Warning - without using the other runtime loading flags (-brtl),
24561 # -berok will link without error, but may produce a broken library.
24562 allow_undefined_flag_GCJ='-berok'
24563 # Determine the default libpath from the value encoded in an empty executable.
24564 cat >conftest.$ac_ext <<_ACEOF
24567 cat confdefs.h >>conftest.$ac_ext
24568 cat >>conftest.$ac_ext <<_ACEOF
24569 /* end confdefs.h. */
24579 rm -f conftest.$ac_objext conftest$ac_exeext
24580 if { (ac_try="$ac_link"
24581 case "(($ac_try" in
24582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583 *) ac_try_echo=$ac_try;;
24585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24586 (eval "$ac_link") 2>conftest.er1
24588 grep -v '^ *+' conftest.er1 >conftest.err
24590 cat conftest.err >&5
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); } &&
24593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24594 { (case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_try") 2>&5
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; } &&
24603 { ac_try='test -s conftest$ac_exeext'
24604 { (case "(($ac_try" in
24605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24606 *) ac_try_echo=$ac_try;;
24608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24609 (eval "$ac_try") 2>&5
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; }; then
24614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24616 # Check for a 64-bit object if we didn't find anything.
24617 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; }
24620 echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24626 rm -f core conftest.err conftest.$ac_objext \
24627 conftest$ac_exeext conftest.$ac_ext
24628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24630 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24631 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"
24633 if test "$host_cpu" = ia64; then
24634 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24635 allow_undefined_flag_GCJ="-z nodefs"
24636 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"
24638 # Determine the default libpath from the value encoded in an empty executable.
24639 cat >conftest.$ac_ext <<_ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24654 rm -f conftest.$ac_objext conftest$ac_exeext
24655 if { (ac_try="$ac_link"
24656 case "(($ac_try" in
24657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658 *) ac_try_echo=$ac_try;;
24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661 (eval "$ac_link") 2>conftest.er1
24663 grep -v '^ *+' conftest.er1 >conftest.err
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); } &&
24668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24669 { (case "(($ac_try" in
24670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671 *) ac_try_echo=$ac_try;;
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674 (eval "$ac_try") 2>&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; } &&
24678 { ac_try='test -s conftest$ac_exeext'
24679 { (case "(($ac_try" in
24680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681 *) ac_try_echo=$ac_try;;
24683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24684 (eval "$ac_try") 2>&5
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; }; then
24689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24691 # Check for a 64-bit object if we didn't find anything.
24692 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; }
24695 echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24701 rm -f core conftest.err conftest.$ac_objext \
24702 conftest$ac_exeext conftest.$ac_ext
24703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24705 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24706 # Warning - without using the other run time loading flags,
24707 # -berok will link without error, but may produce a broken library.
24708 no_undefined_flag_GCJ=' ${wl}-bernotok'
24709 allow_undefined_flag_GCJ=' ${wl}-berok'
24710 # Exported symbols can be pulled into shared objects from archives
24711 whole_archive_flag_spec_GCJ='$convenience'
24712 archive_cmds_need_lc_GCJ=yes
24713 # This is similar to how AIX traditionally builds its shared libraries.
24714 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'
24720 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)'
24721 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24722 hardcode_minus_L_GCJ=yes
24723 # see comment about different semantics on the GNU ld section
24728 export_dynamic_flag_spec_GCJ=-rdynamic
24731 cygwin* | mingw* | pw32*)
24732 # When not using gcc, we currently assume that we are using
24733 # Microsoft Visual C++.
24734 # hardcode_libdir_flag_spec is actually meaningless, as there is
24735 # no search path for DLLs.
24736 hardcode_libdir_flag_spec_GCJ=' '
24737 allow_undefined_flag_GCJ=unsupported
24738 # Tell ltmain to make .lib files, not .a files.
24740 # Tell ltmain to make .dll files, not .so files.
24742 # FIXME: Setting linknames here is a bad hack.
24743 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24744 # The linker will automatically build a .lib file if we build a DLL.
24745 old_archive_From_new_cmds_GCJ='true'
24746 # FIXME: Should let the user specify the lib program.
24747 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24748 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24749 enable_shared_with_static_runtimes_GCJ=yes
24752 darwin* | rhapsody*)
24754 rhapsody* | darwin1.[012])
24755 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24758 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24759 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24761 case ${MACOSX_DEPLOYMENT_TARGET} in
24763 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24766 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24772 archive_cmds_need_lc_GCJ=no
24773 hardcode_direct_GCJ=no
24774 hardcode_automatic_GCJ=yes
24775 hardcode_shlibpath_var_GCJ=unsupported
24776 whole_archive_flag_spec_GCJ=''
24777 link_all_deplibs_GCJ=yes
24778 if test "$GCC" = yes ; then
24779 output_verbose_link_cmd='echo'
24780 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24781 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24782 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24783 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}'
24784 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}'
24786 case $cc_basename in
24788 output_verbose_link_cmd='echo'
24789 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24790 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24791 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24792 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}'
24793 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}'
24803 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24804 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24805 hardcode_shlibpath_var_GCJ=no
24812 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24813 # support. Future versions do this automatically, but an explicit c++rt0.o
24814 # does not break anything, and helps significantly (at the cost of a little
24817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24818 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24819 hardcode_direct_GCJ=yes
24820 hardcode_shlibpath_var_GCJ=no
24823 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24825 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24826 hardcode_direct_GCJ=yes
24827 hardcode_minus_L_GCJ=yes
24828 hardcode_shlibpath_var_GCJ=no
24831 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24832 freebsd* | kfreebsd*-gnu | dragonfly*)
24833 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24834 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24835 hardcode_direct_GCJ=yes
24836 hardcode_shlibpath_var_GCJ=no
24840 if test "$GCC" = yes; then
24841 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'
24843 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'
24845 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24846 hardcode_libdir_separator_GCJ=:
24847 hardcode_direct_GCJ=yes
24849 # hardcode_minus_L: Not really in the search PATH,
24850 # but as the default location of the library.
24851 hardcode_minus_L_GCJ=yes
24852 export_dynamic_flag_spec_GCJ='${wl}-E'
24856 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24857 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24859 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24861 if test "$with_gnu_ld" = no; then
24862 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24863 hardcode_libdir_separator_GCJ=:
24865 hardcode_direct_GCJ=yes
24866 export_dynamic_flag_spec_GCJ='${wl}-E'
24868 # hardcode_minus_L: Not really in the search PATH,
24869 # but as the default location of the library.
24870 hardcode_minus_L_GCJ=yes
24875 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24878 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24881 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24884 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24890 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24893 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24896 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24900 if test "$with_gnu_ld" = no; then
24901 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24902 hardcode_libdir_separator_GCJ=:
24906 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24907 hardcode_direct_GCJ=no
24908 hardcode_shlibpath_var_GCJ=no
24911 hardcode_direct_GCJ=yes
24912 export_dynamic_flag_spec_GCJ='${wl}-E'
24914 # hardcode_minus_L: Not really in the search PATH,
24915 # but as the default location of the library.
24916 hardcode_minus_L_GCJ=yes
24922 irix5* | irix6* | nonstopux*)
24923 if test "$GCC" = yes; then
24924 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'
24926 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'
24927 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24929 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24930 hardcode_libdir_separator_GCJ=:
24931 link_all_deplibs_GCJ=yes
24935 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24936 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24938 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24941 hardcode_direct_GCJ=yes
24942 hardcode_shlibpath_var_GCJ=no
24946 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24947 hardcode_direct_GCJ=yes
24948 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24949 hardcode_libdir_separator_GCJ=:
24950 hardcode_shlibpath_var_GCJ=no
24954 hardcode_direct_GCJ=yes
24955 hardcode_shlibpath_var_GCJ=no
24956 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24957 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24958 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24960 export_dynamic_flag_spec_GCJ='${wl}-E'
24963 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24964 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24965 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24968 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24969 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24976 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24977 hardcode_minus_L_GCJ=yes
24978 allow_undefined_flag_GCJ=unsupported
24979 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'
24980 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24984 if test "$GCC" = yes; then
24985 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24986 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'
24988 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24989 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'
24991 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24992 hardcode_libdir_separator_GCJ=:
24995 osf4* | osf5*) # as osf3* with the addition of -msym flag
24996 if test "$GCC" = yes; then
24997 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24998 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'
24999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25001 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25002 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'
25003 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~
25004 $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'
25006 # Both c and cxx compiler support -rpath directly
25007 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25009 hardcode_libdir_separator_GCJ=:
25013 no_undefined_flag_GCJ=' -z text'
25014 if test "$GCC" = yes; then
25016 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25017 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25018 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25021 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25022 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25026 hardcode_shlibpath_var_GCJ=no
25028 solaris2.[0-5] | solaris2.[0-5].*) ;;
25030 # The compiler driver will combine linker options so we
25031 # cannot just pass the convience library names through
25032 # without $wl, iff we do not link with $LD.
25033 # Luckily, gcc supports the same syntax we need for Sun Studio.
25034 # Supported since Solaris 2.6 (maybe 2.5.1?)
25037 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25039 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' ;;
25042 link_all_deplibs_GCJ=yes
25046 if test "x$host_vendor" = xsequent; then
25047 # Use $CC to link under sequent, because it throws in some extra .o
25048 # files that make .init and .fini sections work.
25049 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25051 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25054 hardcode_direct_GCJ=yes
25055 hardcode_minus_L_GCJ=yes
25056 hardcode_shlibpath_var_GCJ=no
25060 case $host_vendor in
25062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25063 hardcode_direct_GCJ=yes # is this really true???
25066 ## LD is ld it makes a PLAMLIB
25067 ## CC just makes a GrossModule.
25068 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25069 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25070 hardcode_direct_GCJ=no
25073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25074 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25077 runpath_var='LD_RUN_PATH'
25078 hardcode_shlibpath_var_GCJ=no
25082 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25083 hardcode_shlibpath_var_GCJ=no
25084 export_dynamic_flag_spec_GCJ='-Bexport'
25088 if test -d /usr/nec; then
25089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25090 hardcode_shlibpath_var_GCJ=no
25091 runpath_var=LD_RUN_PATH
25092 hardcode_runpath_var=yes
25097 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25098 no_undefined_flag_GCJ='${wl}-z,text'
25099 archive_cmds_need_lc_GCJ=no
25100 hardcode_shlibpath_var_GCJ=no
25101 runpath_var='LD_RUN_PATH'
25103 if test "$GCC" = yes; then
25104 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25105 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25107 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25108 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25112 sysv5* | sco3.2v5* | sco5v6*)
25113 # Note: We can NOT use -z defs as we might desire, because we do not
25114 # link with -lc, and that would cause any symbols used from libc to
25115 # always be unresolved, which means just about no library would
25116 # ever link correctly. If we're not using GNU ld we use -z text
25117 # though, which does catch some bad symbols but isn't as heavy-handed
25119 no_undefined_flag_GCJ='${wl}-z,text'
25120 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25121 archive_cmds_need_lc_GCJ=no
25122 hardcode_shlibpath_var_GCJ=no
25123 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25124 hardcode_libdir_separator_GCJ=':'
25125 link_all_deplibs_GCJ=yes
25126 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25127 runpath_var='LD_RUN_PATH'
25129 if test "$GCC" = yes; then
25130 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25131 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25133 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25134 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25141 hardcode_shlibpath_var_GCJ=no
25150 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25151 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25152 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25155 # Do we need to explicitly link libc?
25157 case "x$archive_cmds_need_lc_GCJ" in
25159 # Assume -lc should be added
25160 archive_cmds_need_lc_GCJ=yes
25162 if test "$enable_shared" = yes && test "$GCC" = yes; then
25163 case $archive_cmds_GCJ in
25165 # FIXME: we may have to deal with multi-command sequences.
25168 # Test whether the compiler implicitly links with -lc since on some
25169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25170 # to ld, don't add -lc before -lgcc.
25171 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25172 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25177 (eval $ac_compile) 2>&5
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } 2>conftest.err; then
25183 libobjs=conftest.$ac_objext
25185 wl=$lt_prog_compiler_wl_GCJ
25186 pic_flag=$lt_prog_compiler_pic_GCJ
25192 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25193 allow_undefined_flag_GCJ=
25194 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25195 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }
25200 archive_cmds_need_lc_GCJ=no
25202 archive_cmds_need_lc_GCJ=yes
25204 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25206 cat conftest.err 1>&5
25209 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25210 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25217 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25218 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25219 library_names_spec=
25220 libname_spec='lib$name'
25224 postuninstall_cmds=
25228 shlibpath_overrides_runpath=unknown
25230 dynamic_linker="$host_os ld.so"
25231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25232 if test "$GCC" = yes; then
25233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25234 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25235 # if the path contains ";" then we assume it to be the separator
25236 # otherwise default to the standard path separator (i.e. ":") - it is
25237 # assumed that no part of a normal pathname contains ";" but that should
25238 # okay in the real world where ";" in dirpaths is itself problematic.
25239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25246 need_lib_prefix=unknown
25247 hardcode_into_libs=no
25249 # when you set need_version to no, make sure it does not cause -set_version
25250 # flags to be left without arguments
25251 need_version=unknown
25256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25257 shlibpath_var=LIBPATH
25259 # AIX 3 has no versioning support, so we append a major version to the name.
25260 soname_spec='${libname}${release}${shared_ext}$major'
25267 hardcode_into_libs=yes
25268 if test "$host_cpu" = ia64; then
25269 # AIX 5 supports IA64
25270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25271 shlibpath_var=LD_LIBRARY_PATH
25273 # With GCC up to 2.95.x, collect2 would create an import file
25274 # for dependence libraries. The import file would start with
25275 # the line `#! .'. This would cause the generated library to
25276 # depend on `.', always an invalid library. This was fixed in
25277 # development snapshots of GCC prior to 3.0.
25279 aix4 | aix4.[01] | aix4.[01].*)
25280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25285 can_build_shared=no
25289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25290 # soname into executable. Probably we can add versioning support to
25291 # collect2, so additional links can be useful in future.
25292 if test "$aix_use_runtimelinking" = yes; then
25293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25294 # instead of lib<name>.a to let people know that these are not
25295 # typical AIX shared libraries.
25296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25298 # We preserve .a as extension for shared libraries through AIX4.2
25299 # and later when we are not doing run time linking.
25300 library_names_spec='${libname}${release}.a $libname.a'
25301 soname_spec='${libname}${release}${shared_ext}$major'
25303 shlibpath_var=LIBPATH
25308 library_names_spec='$libname.ixlibrary $libname.a'
25309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25310 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'
25314 library_names_spec='${libname}${shared_ext}'
25315 dynamic_linker="$host_os ld.so"
25316 shlibpath_var=LIBRARY_PATH
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25325 shlibpath_var=LD_LIBRARY_PATH
25326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25328 # the default ld.so.conf also contains /usr/contrib/lib and
25329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25330 # libtool to hard-code these into programs
25333 cygwin* | mingw* | pw32*)
25334 version_type=windows
25339 case $GCC,$host_os in
25340 yes,cygwin* | yes,mingw* | yes,pw32*)
25341 library_names_spec='$libname.dll.a'
25342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25343 postinstall_cmds='base_file=`basename \${file}`~
25344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25345 dldir=$destdir/`dirname \$dlpath`~
25346 test -d \$dldir || mkdir -p \$dldir~
25347 $install_prog $dir/$dlname \$dldir/$dlname~
25348 chmod a+x \$dldir/$dlname'
25349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25350 dlpath=$dir/\$dldll~
25352 shlibpath_overrides_runpath=yes
25356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25361 # MinGW DLLs use traditional 'lib' prefix
25362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25365 # It is most probably a Windows format PATH printed by
25366 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25367 # path with ; separators, and with drive letters. We can handle the
25368 # drive letters (cygwin fileutils understands them), so leave them,
25369 # especially as we might pass files found there to a mingw objdump,
25370 # which wouldn't understand a cygwinified path. Ahh.
25371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25377 # pw32 DLLs use 'pw' prefix rather than 'lib'
25378 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25387 dynamic_linker='Win32 ld.exe'
25388 # FIXME: first we should search . and the directory the executable is in
25392 darwin* | rhapsody*)
25393 dynamic_linker="$host_os dyld"
25394 version_type=darwin
25397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25398 soname_spec='${libname}${release}${major}$shared_ext'
25399 shlibpath_overrides_runpath=yes
25400 shlibpath_var=DYLD_LIBRARY_PATH
25401 shrext_cmds='.dylib'
25402 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25403 if test "$GCC" = yes; then
25404 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"`
25406 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
25428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25429 soname_spec='${libname}${release}${shared_ext}$major'
25430 shlibpath_var=LD_LIBRARY_PATH
25431 shlibpath_overrides_runpath=no
25432 hardcode_into_libs=yes
25433 dynamic_linker='GNU ld.so'
25436 freebsd* | dragonfly*)
25437 # DragonFly does not have aout. When/if they implement a new
25438 # versioning mechanism, adjust this.
25439 if test -x /usr/bin/objformat; then
25440 objformat=`/usr/bin/objformat`
25443 freebsd[123]*) objformat=aout ;;
25444 *) objformat=elf ;;
25447 version_type=freebsd-$objformat
25448 case $version_type in
25450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25459 shlibpath_var=LD_LIBRARY_PATH
25462 shlibpath_overrides_runpath=yes
25464 freebsd3.[01]* | freebsdelf3.[01]*)
25465 shlibpath_overrides_runpath=yes
25466 hardcode_into_libs=yes
25468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25470 shlibpath_overrides_runpath=no
25471 hardcode_into_libs=yes
25473 freebsd*) # from 4.6 on
25474 shlibpath_overrides_runpath=yes
25475 hardcode_into_libs=yes
25484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25485 soname_spec='${libname}${release}${shared_ext}$major'
25486 shlibpath_var=LD_LIBRARY_PATH
25487 hardcode_into_libs=yes
25490 hpux9* | hpux10* | hpux11*)
25491 # Give a soname corresponding to the major version so that dld.sl refuses to
25492 # link against other versions.
25499 hardcode_into_libs=yes
25500 dynamic_linker="$host_os dld.so"
25501 shlibpath_var=LD_LIBRARY_PATH
25502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504 soname_spec='${libname}${release}${shared_ext}$major'
25505 if test "X$HPUX_IA64_MODE" = X32; then
25506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25508 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25514 hardcode_into_libs=yes
25515 dynamic_linker="$host_os dld.sl"
25516 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25519 soname_spec='${libname}${release}${shared_ext}$major'
25520 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25525 dynamic_linker="$host_os dld.sl"
25526 shlibpath_var=SHLIB_PATH
25527 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25529 soname_spec='${libname}${release}${shared_ext}$major'
25532 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25533 postinstall_cmds='chmod 555 $lib'
25540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25541 soname_spec='${libname}${release}${shared_ext}$major'
25542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25543 shlibpath_var=LD_LIBRARY_PATH
25544 shlibpath_overrides_runpath=no
25545 hardcode_into_libs=yes
25548 irix5* | irix6* | nonstopux*)
25550 nonstopux*) version_type=nonstopux ;;
25552 if test "$lt_cv_prog_gnu_ld" = yes; then
25560 soname_spec='${libname}${release}${shared_ext}$major'
25561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25563 irix5* | nonstopux*)
25564 libsuff= shlibsuff=
25567 case $LD in # libtool.m4 will add one of these switches to LD
25568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25569 libsuff= shlibsuff= libmagic=32-bit;;
25570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25571 libsuff=32 shlibsuff=N32 libmagic=N32;;
25572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25574 *) libsuff= shlibsuff= libmagic=never-match;;
25578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25579 shlibpath_overrides_runpath=no
25580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25582 hardcode_into_libs=yes
25585 # No shared lib support for Linux oldld, aout, or coff.
25586 linux*oldld* | linux*aout* | linux*coff*)
25590 # This must be Linux ELF.
25595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596 soname_spec='${libname}${release}${shared_ext}$major'
25597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25598 shlibpath_var=LD_LIBRARY_PATH
25599 shlibpath_overrides_runpath=no
25600 # This implies no fast_install, which is unacceptable.
25601 # Some rework will be needed to allow for fast_install
25602 # before this can be enabled.
25603 hardcode_into_libs=yes
25605 # Append ld.so.conf contents to the search path
25606 if test -f /etc/ld.so.conf; then
25607 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' ' '`
25608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25611 # We used to test for /lib/ld.so.1 and disable shared libraries on
25612 # powerpc, because MkLinux only supported shared libraries with the
25613 # GNU dynamic linker. Since this was broken with cross compilers,
25614 # most powerpc-linux boxes support dynamic linking these days and
25615 # people can always --disable-shared, the test was removed, and we
25616 # assume the GNU/Linux dynamic linker is in use.
25617 dynamic_linker='GNU/Linux ld.so'
25624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25625 soname_spec='${libname}${release}${shared_ext}$major'
25626 shlibpath_var=LD_LIBRARY_PATH
25627 shlibpath_overrides_runpath=no
25628 hardcode_into_libs=yes
25629 dynamic_linker='GNU ld.so'
25636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25639 dynamic_linker='NetBSD (a.out) ld.so'
25641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25642 soname_spec='${libname}${release}${shared_ext}$major'
25643 dynamic_linker='NetBSD ld.elf_so'
25645 shlibpath_var=LD_LIBRARY_PATH
25646 shlibpath_overrides_runpath=yes
25647 hardcode_into_libs=yes
25652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25653 shlibpath_var=LD_LIBRARY_PATH
25654 shlibpath_overrides_runpath=yes
25661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25662 soname_spec='${libname}${release}${shared_ext}$major'
25663 shlibpath_var=LD_LIBRARY_PATH
25664 shlibpath_overrides_runpath=yes
25669 sys_lib_dlsearch_path_spec="/usr/lib"
25671 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25673 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25674 *) need_version=no ;;
25676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25678 shlibpath_var=LD_LIBRARY_PATH
25679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25681 openbsd2.[89] | openbsd2.[89].*)
25682 shlibpath_overrides_runpath=no
25685 shlibpath_overrides_runpath=yes
25689 shlibpath_overrides_runpath=yes
25694 libname_spec='$name'
25697 library_names_spec='$libname${shared_ext} $libname.a'
25698 dynamic_linker='OS/2 ld.exe'
25699 shlibpath_var=LIBPATH
25702 osf3* | osf4* | osf5*)
25706 soname_spec='${libname}${release}${shared_ext}$major'
25707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25708 shlibpath_var=LD_LIBRARY_PATH
25709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25710 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25718 soname_spec='${libname}${release}${shared_ext}$major'
25719 shlibpath_var=LD_LIBRARY_PATH
25720 shlibpath_overrides_runpath=yes
25721 hardcode_into_libs=yes
25722 # ldd complains unless libraries are executable
25723 postinstall_cmds='chmod +x $lib'
25728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25730 shlibpath_var=LD_LIBRARY_PATH
25731 shlibpath_overrides_runpath=yes
25732 if test "$with_gnu_ld" = yes; then
25740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25741 soname_spec='${libname}${release}${shared_ext}$major'
25742 shlibpath_var=LD_LIBRARY_PATH
25743 case $host_vendor in
25745 shlibpath_overrides_runpath=no
25747 export_dynamic_flag_spec='${wl}-Blargedynsym'
25748 runpath_var=LD_RUN_PATH
25756 shlibpath_overrides_runpath=no
25757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25763 if test -d /usr/nec ;then
25765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25766 soname_spec='$libname${shared_ext}.$major'
25767 shlibpath_var=LD_LIBRARY_PATH
25771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25772 version_type=freebsd-elf
25775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25776 soname_spec='${libname}${release}${shared_ext}$major'
25777 shlibpath_var=LD_LIBRARY_PATH
25778 hardcode_into_libs=yes
25779 if test "$with_gnu_ld" = yes; then
25780 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25781 shlibpath_overrides_runpath=no
25783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25784 shlibpath_overrides_runpath=yes
25787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25791 sys_lib_dlsearch_path_spec='/usr/lib'
25796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25797 soname_spec='${libname}${release}${shared_ext}$major'
25798 shlibpath_var=LD_LIBRARY_PATH
25805 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25806 echo "${ECHO_T}$dynamic_linker" >&6; }
25807 test "$dynamic_linker" = no && can_build_shared=no
25809 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25810 if test "$GCC" = yes; then
25811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25814 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25815 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25816 hardcode_action_GCJ=
25817 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25818 test -n "$runpath_var_GCJ" || \
25819 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25821 # We can hardcode non-existant directories.
25822 if test "$hardcode_direct_GCJ" != no &&
25823 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25824 # have to relink, otherwise we might link with an installed library
25825 # when we should be linking with a yet-to-be-installed one
25826 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25827 test "$hardcode_minus_L_GCJ" != no; then
25828 # Linking always hardcodes the temporary library directory.
25829 hardcode_action_GCJ=relink
25831 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25832 hardcode_action_GCJ=immediate
25835 # We cannot hardcode anything, or else we can only hardcode existing
25837 hardcode_action_GCJ=unsupported
25839 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25840 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25842 if test "$hardcode_action_GCJ" = relink; then
25843 # Fast installation is not supported
25844 enable_fast_install=no
25845 elif test "$shlibpath_overrides_runpath" = yes ||
25846 test "$enable_shared" = no; then
25847 # Fast installation is not necessary
25848 enable_fast_install=needless
25852 # The else clause should only fire when bootstrapping the
25853 # libtool distribution, otherwise you forgot to ship ltmain.sh
25854 # with your package, and you will get complaints that there are
25855 # no rules to generate ltmain.sh.
25856 if test -f "$ltmain"; then
25857 # See if we are running on zsh, and set the options which allow our commands through
25858 # without removal of \ escapes.
25859 if test -n "${ZSH_VERSION+set}" ; then
25860 setopt NO_GLOB_SUBST
25862 # Now quote all the things that may contain metacharacters while being
25863 # careful not to overquote the AC_SUBSTed values. We take copies of the
25864 # variables and quote the copies for generation of the libtool script.
25865 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25867 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25868 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25869 deplibs_check_method reload_flag reload_cmds need_locks \
25870 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25871 lt_cv_sys_global_symbol_to_c_name_address \
25872 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25873 old_postinstall_cmds old_postuninstall_cmds \
25877 lt_prog_compiler_wl_GCJ \
25878 lt_prog_compiler_pic_GCJ \
25879 lt_prog_compiler_static_GCJ \
25880 lt_prog_compiler_no_builtin_flag_GCJ \
25881 export_dynamic_flag_spec_GCJ \
25882 thread_safe_flag_spec_GCJ \
25883 whole_archive_flag_spec_GCJ \
25884 enable_shared_with_static_runtimes_GCJ \
25885 old_archive_cmds_GCJ \
25886 old_archive_from_new_cmds_GCJ \
25887 predep_objects_GCJ \
25888 postdep_objects_GCJ \
25891 compiler_lib_search_path_GCJ \
25893 archive_expsym_cmds_GCJ \
25894 postinstall_cmds_GCJ \
25895 postuninstall_cmds_GCJ \
25896 old_archive_from_expsyms_cmds_GCJ \
25897 allow_undefined_flag_GCJ \
25898 no_undefined_flag_GCJ \
25899 export_symbols_cmds_GCJ \
25900 hardcode_libdir_flag_spec_GCJ \
25901 hardcode_libdir_flag_spec_ld_GCJ \
25902 hardcode_libdir_separator_GCJ \
25903 hardcode_automatic_GCJ \
25905 module_expsym_cmds_GCJ \
25906 lt_cv_prog_compiler_c_o_GCJ \
25907 exclude_expsyms_GCJ \
25908 include_expsyms_GCJ; do
25911 old_archive_cmds_GCJ | \
25912 old_archive_from_new_cmds_GCJ | \
25913 archive_cmds_GCJ | \
25914 archive_expsym_cmds_GCJ | \
25915 module_cmds_GCJ | \
25916 module_expsym_cmds_GCJ | \
25917 old_archive_from_expsyms_cmds_GCJ | \
25918 export_symbols_cmds_GCJ | \
25919 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25920 postinstall_cmds | postuninstall_cmds | \
25921 old_postinstall_cmds | old_postuninstall_cmds | \
25922 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25923 # Double-quote double-evaled strings.
25924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25933 *'\$0 --fallback-echo"')
25934 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25940 cat <<__EOF__ >> "$cfgfile"
25941 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25943 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25945 # Shell to use when invoking shell scripts.
25948 # Whether or not to build shared libraries.
25949 build_libtool_libs=$enable_shared
25951 # Whether or not to build static libraries.
25952 build_old_libs=$enable_static
25954 # Whether or not to add -lc for building shared libraries.
25955 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25957 # Whether or not to disallow shared libs when runtime libs are static
25958 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25960 # Whether or not to optimize for fast installation.
25961 fast_install=$enable_fast_install
25964 host_alias=$host_alias
25968 # The build system.
25969 build_alias=$build_alias
25973 # An echo program that does not interpret backslashes.
25978 AR_FLAGS=$lt_AR_FLAGS
25983 # LTCC compiler flags.
25984 LTCFLAGS=$lt_LTCFLAGS
25986 # A language-specific compiler.
25987 CC=$lt_compiler_GCJ
25989 # Is the compiler the GNU C compiler?
25995 # The linker used to build libraries.
25998 # Whether we need hard or soft links.
26001 # A BSD-compatible nm program.
26004 # A symbol stripping program
26007 # Used to examine libraries when file_magic_cmd begins "file"
26008 MAGIC_CMD=$MAGIC_CMD
26010 # Used on cygwin: DLL creation program.
26013 # Used on cygwin: object dumper.
26016 # Used on cygwin: assembler.
26019 # The name of the directory that contains temporary libtool files.
26022 # How to create reloadable object files.
26023 reload_flag=$lt_reload_flag
26024 reload_cmds=$lt_reload_cmds
26026 # How to pass a linker flag through the compiler.
26027 wl=$lt_lt_prog_compiler_wl_GCJ
26029 # Object file suffix (normally "o").
26030 objext="$ac_objext"
26032 # Old archive suffix (normally "a").
26035 # Shared library suffix (normally ".so").
26036 shrext_cmds='$shrext_cmds'
26038 # Executable file suffix (normally "").
26041 # Additional compiler flags for building library objects.
26042 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26045 # What is the maximum length of a command?
26046 max_cmd_len=$lt_cv_sys_max_cmd_len
26048 # Does compiler simultaneously support -c and -o options?
26049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26051 # Must we lock files when doing compilation?
26052 need_locks=$lt_need_locks
26054 # Do we need the lib prefix for modules?
26055 need_lib_prefix=$need_lib_prefix
26057 # Do we need a version for libraries?
26058 need_version=$need_version
26060 # Whether dlopen is supported.
26061 dlopen_support=$enable_dlopen
26063 # Whether dlopen of programs is supported.
26064 dlopen_self=$enable_dlopen_self
26066 # Whether dlopen of statically linked programs is supported.
26067 dlopen_self_static=$enable_dlopen_self_static
26069 # Compiler flag to prevent dynamic linking.
26070 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26072 # Compiler flag to turn off builtin functions.
26073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26075 # Compiler flag to allow reflexive dlopens.
26076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26078 # Compiler flag to generate shared objects directly from archives.
26079 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26081 # Compiler flag to generate thread-safe objects.
26082 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26084 # Library versioning type.
26085 version_type=$version_type
26087 # Format of library name prefix.
26088 libname_spec=$lt_libname_spec
26090 # List of archive names. First name is the real one, the rest are links.
26091 # The last name is the one that the linker finds with -lNAME.
26092 library_names_spec=$lt_library_names_spec
26094 # The coded name of the library, if different from the real name.
26095 soname_spec=$lt_soname_spec
26097 # Commands used to build and install an old-style archive.
26099 old_archive_cmds=$lt_old_archive_cmds_GCJ
26100 old_postinstall_cmds=$lt_old_postinstall_cmds
26101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26103 # Create an old-style archive from a shared archive.
26104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26106 # Create a temporary old-style archive to link instead of a shared archive.
26107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26109 # Commands used to build and install a shared archive.
26110 archive_cmds=$lt_archive_cmds_GCJ
26111 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26112 postinstall_cmds=$lt_postinstall_cmds
26113 postuninstall_cmds=$lt_postuninstall_cmds
26115 # Commands used to build a loadable module (assumed same as above if empty)
26116 module_cmds=$lt_module_cmds_GCJ
26117 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26119 # Commands to strip libraries.
26120 old_striplib=$lt_old_striplib
26121 striplib=$lt_striplib
26123 # Dependencies to place before the objects being linked to create a
26125 predep_objects=$lt_predep_objects_GCJ
26127 # Dependencies to place after the objects being linked to create a
26129 postdep_objects=$lt_postdep_objects_GCJ
26131 # Dependencies to place before the objects being linked to create a
26133 predeps=$lt_predeps_GCJ
26135 # Dependencies to place after the objects being linked to create a
26137 postdeps=$lt_postdeps_GCJ
26139 # The library search path used internally by the compiler when linking
26140 # a shared library.
26141 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26143 # Method to check whether dependent libraries are shared objects.
26144 deplibs_check_method=$lt_deplibs_check_method
26146 # Command to use when deplibs_check_method == file_magic.
26147 file_magic_cmd=$lt_file_magic_cmd
26149 # Flag that allows shared libraries with undefined symbols to be built.
26150 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26152 # Flag that forces no undefined symbols.
26153 no_undefined_flag=$lt_no_undefined_flag_GCJ
26155 # Commands used to finish a libtool library installation in a directory.
26156 finish_cmds=$lt_finish_cmds
26158 # Same as above, but a single script fragment to be evaled but not shown.
26159 finish_eval=$lt_finish_eval
26161 # Take the output of nm and produce a listing of raw symbols and C names.
26162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26164 # Transform the output of nm in a proper C declaration
26165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26167 # Transform the output of nm in a C name address pair
26168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26170 # This is the shared library runtime path variable.
26171 runpath_var=$runpath_var
26173 # This is the shared library path variable.
26174 shlibpath_var=$shlibpath_var
26176 # Is shlibpath searched before the hard-coded library search path?
26177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26179 # How to hardcode a shared library path into an executable.
26180 hardcode_action=$hardcode_action_GCJ
26182 # Whether we should hardcode library paths into libraries.
26183 hardcode_into_libs=$hardcode_into_libs
26185 # Flag to hardcode \$libdir into a binary during linking.
26186 # This must work even if \$libdir does not exist.
26187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26189 # If ld is used when linking, flag to hardcode \$libdir into
26190 # a binary during linking. This must work even if \$libdir does
26192 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26194 # Whether we need a single -rpath flag with a separated argument.
26195 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26197 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26198 # resulting binary.
26199 hardcode_direct=$hardcode_direct_GCJ
26201 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26202 # resulting binary.
26203 hardcode_minus_L=$hardcode_minus_L_GCJ
26205 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26206 # the resulting binary.
26207 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26209 # Set to yes if building a shared library automatically hardcodes DIR into the library
26210 # and all subsequent libraries and executables linked against it.
26211 hardcode_automatic=$hardcode_automatic_GCJ
26213 # Variables whose values should be saved in libtool wrapper scripts and
26214 # restored at relink time.
26215 variables_saved_for_relink="$variables_saved_for_relink"
26217 # Whether libtool must link a program against all its dependency libraries.
26218 link_all_deplibs=$link_all_deplibs_GCJ
26220 # Compile-time system search path for libraries
26221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26223 # Run-time system search path for libraries
26224 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26226 # Fix the shell variable \$srcfile for the compiler.
26227 fix_srcfile_path="$fix_srcfile_path_GCJ"
26229 # Set to yes if exported symbols are required.
26230 always_export_symbols=$always_export_symbols_GCJ
26232 # The commands to list exported symbols.
26233 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26235 # The commands to extract the exported symbol list from a shared archive.
26236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26238 # Symbols that should not be listed in the preloaded symbols.
26239 exclude_expsyms=$lt_exclude_expsyms_GCJ
26241 # Symbols that must always be exported.
26242 include_expsyms=$lt_include_expsyms_GCJ
26244 # ### END LIBTOOL TAG CONFIG: $tagname
26250 # If there is no Makefile yet, we rely on a make rule to execute
26251 # `config.status --recheck' to rerun these tests and create the
26252 # libtool script then.
26253 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26254 if test -f "$ltmain_in"; then
26255 test -f Makefile && make "$ltmain"
26261 ac_cpp='$CPP $CPPFLAGS'
26262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26275 ac_cpp='$CPP $CPPFLAGS'
26276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26281 # Source file extension for RC test sources.
26284 # Object file extension for compiled RC test sources.
26288 # Code to be used in simple compile tests
26289 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26291 # Code to be used in simple link tests
26292 lt_simple_link_test_code="$lt_simple_compile_test_code"
26294 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26296 # If no C compiler was specified, use CC.
26299 # If no C compiler flags were specified, use CFLAGS.
26300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26302 # Allow CC to be a program name with arguments.
26306 # save warnings/boilerplate of simple test code
26307 ac_outfile=conftest.$ac_objext
26308 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26309 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26310 _lt_compiler_boilerplate=`cat conftest.err`
26313 ac_outfile=conftest.$ac_objext
26314 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26315 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26316 _lt_linker_boilerplate=`cat conftest.err`
26320 # Allow CC to be a program name with arguments.
26325 for cc_temp in $compiler""; do
26327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26335 lt_cv_prog_compiler_c_o_RC=yes
26337 # The else clause should only fire when bootstrapping the
26338 # libtool distribution, otherwise you forgot to ship ltmain.sh
26339 # with your package, and you will get complaints that there are
26340 # no rules to generate ltmain.sh.
26341 if test -f "$ltmain"; then
26342 # See if we are running on zsh, and set the options which allow our commands through
26343 # without removal of \ escapes.
26344 if test -n "${ZSH_VERSION+set}" ; then
26345 setopt NO_GLOB_SUBST
26347 # Now quote all the things that may contain metacharacters while being
26348 # careful not to overquote the AC_SUBSTed values. We take copies of the
26349 # variables and quote the copies for generation of the libtool script.
26350 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26352 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26353 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26354 deplibs_check_method reload_flag reload_cmds need_locks \
26355 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26356 lt_cv_sys_global_symbol_to_c_name_address \
26357 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26358 old_postinstall_cmds old_postuninstall_cmds \
26362 lt_prog_compiler_wl_RC \
26363 lt_prog_compiler_pic_RC \
26364 lt_prog_compiler_static_RC \
26365 lt_prog_compiler_no_builtin_flag_RC \
26366 export_dynamic_flag_spec_RC \
26367 thread_safe_flag_spec_RC \
26368 whole_archive_flag_spec_RC \
26369 enable_shared_with_static_runtimes_RC \
26370 old_archive_cmds_RC \
26371 old_archive_from_new_cmds_RC \
26372 predep_objects_RC \
26373 postdep_objects_RC \
26376 compiler_lib_search_path_RC \
26378 archive_expsym_cmds_RC \
26379 postinstall_cmds_RC \
26380 postuninstall_cmds_RC \
26381 old_archive_from_expsyms_cmds_RC \
26382 allow_undefined_flag_RC \
26383 no_undefined_flag_RC \
26384 export_symbols_cmds_RC \
26385 hardcode_libdir_flag_spec_RC \
26386 hardcode_libdir_flag_spec_ld_RC \
26387 hardcode_libdir_separator_RC \
26388 hardcode_automatic_RC \
26390 module_expsym_cmds_RC \
26391 lt_cv_prog_compiler_c_o_RC \
26392 exclude_expsyms_RC \
26393 include_expsyms_RC; do
26396 old_archive_cmds_RC | \
26397 old_archive_from_new_cmds_RC | \
26398 archive_cmds_RC | \
26399 archive_expsym_cmds_RC | \
26401 module_expsym_cmds_RC | \
26402 old_archive_from_expsyms_cmds_RC | \
26403 export_symbols_cmds_RC | \
26404 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26405 postinstall_cmds | postuninstall_cmds | \
26406 old_postinstall_cmds | old_postuninstall_cmds | \
26407 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26408 # Double-quote double-evaled strings.
26409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26418 *'\$0 --fallback-echo"')
26419 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26425 cat <<__EOF__ >> "$cfgfile"
26426 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26428 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26430 # Shell to use when invoking shell scripts.
26433 # Whether or not to build shared libraries.
26434 build_libtool_libs=$enable_shared
26436 # Whether or not to build static libraries.
26437 build_old_libs=$enable_static
26439 # Whether or not to add -lc for building shared libraries.
26440 build_libtool_need_lc=$archive_cmds_need_lc_RC
26442 # Whether or not to disallow shared libs when runtime libs are static
26443 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26445 # Whether or not to optimize for fast installation.
26446 fast_install=$enable_fast_install
26449 host_alias=$host_alias
26453 # The build system.
26454 build_alias=$build_alias
26458 # An echo program that does not interpret backslashes.
26463 AR_FLAGS=$lt_AR_FLAGS
26468 # LTCC compiler flags.
26469 LTCFLAGS=$lt_LTCFLAGS
26471 # A language-specific compiler.
26474 # Is the compiler the GNU C compiler?
26480 # The linker used to build libraries.
26483 # Whether we need hard or soft links.
26486 # A BSD-compatible nm program.
26489 # A symbol stripping program
26492 # Used to examine libraries when file_magic_cmd begins "file"
26493 MAGIC_CMD=$MAGIC_CMD
26495 # Used on cygwin: DLL creation program.
26498 # Used on cygwin: object dumper.
26501 # Used on cygwin: assembler.
26504 # The name of the directory that contains temporary libtool files.
26507 # How to create reloadable object files.
26508 reload_flag=$lt_reload_flag
26509 reload_cmds=$lt_reload_cmds
26511 # How to pass a linker flag through the compiler.
26512 wl=$lt_lt_prog_compiler_wl_RC
26514 # Object file suffix (normally "o").
26515 objext="$ac_objext"
26517 # Old archive suffix (normally "a").
26520 # Shared library suffix (normally ".so").
26521 shrext_cmds='$shrext_cmds'
26523 # Executable file suffix (normally "").
26526 # Additional compiler flags for building library objects.
26527 pic_flag=$lt_lt_prog_compiler_pic_RC
26530 # What is the maximum length of a command?
26531 max_cmd_len=$lt_cv_sys_max_cmd_len
26533 # Does compiler simultaneously support -c and -o options?
26534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26536 # Must we lock files when doing compilation?
26537 need_locks=$lt_need_locks
26539 # Do we need the lib prefix for modules?
26540 need_lib_prefix=$need_lib_prefix
26542 # Do we need a version for libraries?
26543 need_version=$need_version
26545 # Whether dlopen is supported.
26546 dlopen_support=$enable_dlopen
26548 # Whether dlopen of programs is supported.
26549 dlopen_self=$enable_dlopen_self
26551 # Whether dlopen of statically linked programs is supported.
26552 dlopen_self_static=$enable_dlopen_self_static
26554 # Compiler flag to prevent dynamic linking.
26555 link_static_flag=$lt_lt_prog_compiler_static_RC
26557 # Compiler flag to turn off builtin functions.
26558 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26560 # Compiler flag to allow reflexive dlopens.
26561 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26563 # Compiler flag to generate shared objects directly from archives.
26564 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26566 # Compiler flag to generate thread-safe objects.
26567 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26569 # Library versioning type.
26570 version_type=$version_type
26572 # Format of library name prefix.
26573 libname_spec=$lt_libname_spec
26575 # List of archive names. First name is the real one, the rest are links.
26576 # The last name is the one that the linker finds with -lNAME.
26577 library_names_spec=$lt_library_names_spec
26579 # The coded name of the library, if different from the real name.
26580 soname_spec=$lt_soname_spec
26582 # Commands used to build and install an old-style archive.
26584 old_archive_cmds=$lt_old_archive_cmds_RC
26585 old_postinstall_cmds=$lt_old_postinstall_cmds
26586 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26588 # Create an old-style archive from a shared archive.
26589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26591 # Create a temporary old-style archive to link instead of a shared archive.
26592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26594 # Commands used to build and install a shared archive.
26595 archive_cmds=$lt_archive_cmds_RC
26596 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26597 postinstall_cmds=$lt_postinstall_cmds
26598 postuninstall_cmds=$lt_postuninstall_cmds
26600 # Commands used to build a loadable module (assumed same as above if empty)
26601 module_cmds=$lt_module_cmds_RC
26602 module_expsym_cmds=$lt_module_expsym_cmds_RC
26604 # Commands to strip libraries.
26605 old_striplib=$lt_old_striplib
26606 striplib=$lt_striplib
26608 # Dependencies to place before the objects being linked to create a
26610 predep_objects=$lt_predep_objects_RC
26612 # Dependencies to place after the objects being linked to create a
26614 postdep_objects=$lt_postdep_objects_RC
26616 # Dependencies to place before the objects being linked to create a
26618 predeps=$lt_predeps_RC
26620 # Dependencies to place after the objects being linked to create a
26622 postdeps=$lt_postdeps_RC
26624 # The library search path used internally by the compiler when linking
26625 # a shared library.
26626 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26628 # Method to check whether dependent libraries are shared objects.
26629 deplibs_check_method=$lt_deplibs_check_method
26631 # Command to use when deplibs_check_method == file_magic.
26632 file_magic_cmd=$lt_file_magic_cmd
26634 # Flag that allows shared libraries with undefined symbols to be built.
26635 allow_undefined_flag=$lt_allow_undefined_flag_RC
26637 # Flag that forces no undefined symbols.
26638 no_undefined_flag=$lt_no_undefined_flag_RC
26640 # Commands used to finish a libtool library installation in a directory.
26641 finish_cmds=$lt_finish_cmds
26643 # Same as above, but a single script fragment to be evaled but not shown.
26644 finish_eval=$lt_finish_eval
26646 # Take the output of nm and produce a listing of raw symbols and C names.
26647 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26649 # Transform the output of nm in a proper C declaration
26650 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26652 # Transform the output of nm in a C name address pair
26653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26655 # This is the shared library runtime path variable.
26656 runpath_var=$runpath_var
26658 # This is the shared library path variable.
26659 shlibpath_var=$shlibpath_var
26661 # Is shlibpath searched before the hard-coded library search path?
26662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26664 # How to hardcode a shared library path into an executable.
26665 hardcode_action=$hardcode_action_RC
26667 # Whether we should hardcode library paths into libraries.
26668 hardcode_into_libs=$hardcode_into_libs
26670 # Flag to hardcode \$libdir into a binary during linking.
26671 # This must work even if \$libdir does not exist.
26672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26674 # If ld is used when linking, flag to hardcode \$libdir into
26675 # a binary during linking. This must work even if \$libdir does
26677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26679 # Whether we need a single -rpath flag with a separated argument.
26680 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26682 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26683 # resulting binary.
26684 hardcode_direct=$hardcode_direct_RC
26686 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26687 # resulting binary.
26688 hardcode_minus_L=$hardcode_minus_L_RC
26690 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26691 # the resulting binary.
26692 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26694 # Set to yes if building a shared library automatically hardcodes DIR into the library
26695 # and all subsequent libraries and executables linked against it.
26696 hardcode_automatic=$hardcode_automatic_RC
26698 # Variables whose values should be saved in libtool wrapper scripts and
26699 # restored at relink time.
26700 variables_saved_for_relink="$variables_saved_for_relink"
26702 # Whether libtool must link a program against all its dependency libraries.
26703 link_all_deplibs=$link_all_deplibs_RC
26705 # Compile-time system search path for libraries
26706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26708 # Run-time system search path for libraries
26709 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26711 # Fix the shell variable \$srcfile for the compiler.
26712 fix_srcfile_path="$fix_srcfile_path_RC"
26714 # Set to yes if exported symbols are required.
26715 always_export_symbols=$always_export_symbols_RC
26717 # The commands to list exported symbols.
26718 export_symbols_cmds=$lt_export_symbols_cmds_RC
26720 # The commands to extract the exported symbol list from a shared archive.
26721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26723 # Symbols that should not be listed in the preloaded symbols.
26724 exclude_expsyms=$lt_exclude_expsyms_RC
26726 # Symbols that must always be exported.
26727 include_expsyms=$lt_include_expsyms_RC
26729 # ### END LIBTOOL TAG CONFIG: $tagname
26735 # If there is no Makefile yet, we rely on a make rule to execute
26736 # `config.status --recheck' to rerun these tests and create the
26737 # libtool script then.
26738 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26739 if test -f "$ltmain_in"; then
26740 test -f Makefile && make "$ltmain"
26746 ac_cpp='$CPP $CPPFLAGS'
26747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26756 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26757 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26758 { (exit 1); exit 1; }; }
26762 # Append the new tag name to the list of available tags.
26763 if test -n "$tagname" ; then
26764 available_tags="$available_tags $tagname"
26770 # Now substitute the updated list of available tags.
26771 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26772 mv "${ofile}T" "$ofile"
26776 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26777 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26778 { (exit 1); exit 1; }; }
26784 # This can be used to rebuild libtool when needed
26785 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26787 # Always use our own libtool.
26788 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26790 # Prevent multiple expansion
26812 if test "$lt_cv_dlopen_self" = "yes" ; then
26814 cat >>confdefs.h <<\_ACEOF
26815 #define CAN_DLOPEN_SELF 1
26821 if test "$WITH_LLVMGCCDIR" = "default" ; then
26822 LLVMGCC="llvm-gcc${EXEEXT}"
26823 LLVMGXX="llvm-g++${EXEEXT}"
26824 LLVMGCCCOMMAND="$LLVMGCC"
26825 LLVMGXXCOMMAND="$LLVMGXX"
26826 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26828 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26830 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26831 set dummy $LLVMGCC; ac_word=$2
26832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26834 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26835 echo $ECHO_N "(cached) $ECHO_C" >&6
26839 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26843 for as_dir in $PATH
26846 test -z "$as_dir" && as_dir=.
26847 for ac_exec_ext in '' $ac_executable_extensions; do
26848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26849 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26860 LLVMGCC=$ac_cv_path_LLVMGCC
26861 if test -n "$LLVMGCC"; then
26862 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26863 echo "${ECHO_T}$LLVMGCC" >&6; }
26865 { echo "$as_me:$LINENO: result: no" >&5
26866 echo "${ECHO_T}no" >&6; }
26870 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26871 set dummy $LLVMGXX; ac_word=$2
26872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26874 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26875 echo $ECHO_N "(cached) $ECHO_C" >&6
26879 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26883 for as_dir in $PATH
26886 test -z "$as_dir" && as_dir=.
26887 for ac_exec_ext in '' $ac_executable_extensions; do
26888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26889 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26900 LLVMGXX=$ac_cv_path_LLVMGXX
26901 if test -n "$LLVMGXX"; then
26902 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26903 echo "${ECHO_T}$LLVMGXX" >&6; }
26905 { echo "$as_me:$LINENO: result: no" >&5
26906 echo "${ECHO_T}no" >&6; }
26911 if test -z "$LLVMGCC"; then
26912 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26913 LLVMGCCCOMMAND="$LLVMGCC"
26915 if test -z "$LLVMGXX"; then
26916 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26917 LLVMGXXCOMMAND="$LLVMGXX"
26924 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26926 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26931 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26932 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26945 if test "$GCC" != "yes" && test "$ICC" != "yes"
26947 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26948 echo "$as_me: error: gcc|icc required but not found" >&2;}
26949 { (exit 1); exit 1; }; }
26952 if test "$GXX" != "yes" && test "$IXX" != "yes"
26954 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26955 echo "$as_me: error: g++|icc required but not found" >&2;}
26956 { (exit 1); exit 1; }; }
26959 if test "$GCC" = "yes"
26961 cat >conftest.$ac_ext <<_ACEOF
26962 #if !defined(__GNUC__) || __GNUC__ < 3
26963 #error Unsupported GCC version
26967 rm -f conftest.$ac_objext
26968 if { (ac_try="$ac_compile"
26969 case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_compile") 2>conftest.er1
26976 grep -v '^ *+' conftest.er1 >conftest.err
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
26981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26982 { (case "(($ac_try" in
26983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984 *) ac_try_echo=$ac_try;;
26986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987 (eval "$ac_try") 2>&5
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; } &&
26991 { ac_try='test -s conftest.$ac_objext'
26992 { (case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997 (eval "$ac_try") 2>&5
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; }; then
27003 echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27006 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27007 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27008 { (exit 1); exit 1; }; }
27011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27014 if test -z "$llvm_cv_gnu_make_command"
27016 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27017 echo "$as_me: error: GNU Make required but not found" >&2;}
27018 { (exit 1); exit 1; }; }
27021 { echo "$as_me:$LINENO: result: ok" >&5
27022 echo "${ECHO_T}ok" >&6; }
27026 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27027 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27028 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27029 echo $ECHO_N "(cached) $ECHO_C" >&6
27031 ac_check_lib_save_LIBS=$LIBS
27033 cat >conftest.$ac_ext <<_ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h. */
27040 /* Override any GCC internal prototype to avoid an error.
27041 Use char because int might match the return type of a GCC
27042 builtin and then its argument prototype would still apply. */
27050 return elf_begin ();
27055 rm -f conftest.$ac_objext conftest$ac_exeext
27056 if { (ac_try="$ac_link"
27057 case "(($ac_try" in
27058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059 *) ac_try_echo=$ac_try;;
27061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27062 (eval "$ac_link") 2>conftest.er1
27064 grep -v '^ *+' conftest.er1 >conftest.err
27066 cat conftest.err >&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } &&
27069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27070 { (case "(($ac_try" in
27071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072 *) ac_try_echo=$ac_try;;
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075 (eval "$ac_try") 2>&5
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); }; } &&
27079 { ac_try='test -s conftest$ac_exeext'
27080 { (case "(($ac_try" in
27081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082 *) ac_try_echo=$ac_try;;
27084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085 (eval "$ac_try") 2>&5
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; }; then
27089 ac_cv_lib_elf_elf_begin=yes
27091 echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27094 ac_cv_lib_elf_elf_begin=no
27097 rm -f core conftest.err conftest.$ac_objext \
27098 conftest$ac_exeext conftest.$ac_ext
27099 LIBS=$ac_check_lib_save_LIBS
27101 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27102 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27103 if test $ac_cv_lib_elf_elf_begin = yes; then
27104 cat >>confdefs.h <<_ACEOF
27105 #define HAVE_LIBELF 1
27113 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27114 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27115 if test "${ac_cv_lib_m_sin+set}" = set; then
27116 echo $ECHO_N "(cached) $ECHO_C" >&6
27118 ac_check_lib_save_LIBS=$LIBS
27120 cat >conftest.$ac_ext <<_ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h. */
27127 /* Override any GCC internal prototype to avoid an error.
27128 Use char because int might match the return type of a GCC
27129 builtin and then its argument prototype would still apply. */
27142 rm -f conftest.$ac_objext conftest$ac_exeext
27143 if { (ac_try="$ac_link"
27144 case "(($ac_try" in
27145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27146 *) ac_try_echo=$ac_try;;
27148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27149 (eval "$ac_link") 2>conftest.er1
27151 grep -v '^ *+' conftest.er1 >conftest.err
27153 cat conftest.err >&5
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); } &&
27156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27157 { (case "(($ac_try" in
27158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27159 *) ac_try_echo=$ac_try;;
27161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27162 (eval "$ac_try") 2>&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); }; } &&
27166 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27176 ac_cv_lib_m_sin=yes
27178 echo "$as_me: failed program was:" >&5
27179 sed 's/^/| /' conftest.$ac_ext >&5
27184 rm -f core conftest.err conftest.$ac_objext \
27185 conftest$ac_exeext conftest.$ac_ext
27186 LIBS=$ac_check_lib_save_LIBS
27188 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27189 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27190 if test $ac_cv_lib_m_sin = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192 #define HAVE_LIBM 1
27199 if test "$llvm_cv_os_type" = "MingW" ; then
27201 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27202 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27203 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27206 ac_check_lib_save_LIBS=$LIBS
27207 LIBS="-limagehlp $LIBS"
27208 cat >conftest.$ac_ext <<_ACEOF
27211 cat confdefs.h >>conftest.$ac_ext
27212 cat >>conftest.$ac_ext <<_ACEOF
27213 /* end confdefs.h. */
27224 rm -f conftest.$ac_objext conftest$ac_exeext
27225 if { (ac_try="$ac_link"
27226 case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231 (eval "$ac_link") 2>conftest.er1
27233 grep -v '^ *+' conftest.er1 >conftest.err
27235 cat conftest.err >&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); } &&
27238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27239 { (case "(($ac_try" in
27240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_try") 2>&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } &&
27248 { ac_try='test -s conftest$ac_exeext'
27249 { (case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_try") 2>&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; }; then
27258 ac_cv_lib_imagehlp_main=yes
27260 echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27263 ac_cv_lib_imagehlp_main=no
27266 rm -f core conftest.err conftest.$ac_objext \
27267 conftest$ac_exeext conftest.$ac_ext
27268 LIBS=$ac_check_lib_save_LIBS
27270 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27271 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27272 if test $ac_cv_lib_imagehlp_main = yes; then
27273 cat >>confdefs.h <<_ACEOF
27274 #define HAVE_LIBIMAGEHLP 1
27277 LIBS="-limagehlp $LIBS"
27282 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27283 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27284 if test "${ac_cv_lib_psapi_main+set}" = set; then
27285 echo $ECHO_N "(cached) $ECHO_C" >&6
27287 ac_check_lib_save_LIBS=$LIBS
27288 LIBS="-lpsapi $LIBS"
27289 cat >conftest.$ac_ext <<_ACEOF
27292 cat confdefs.h >>conftest.$ac_ext
27293 cat >>conftest.$ac_ext <<_ACEOF
27294 /* end confdefs.h. */
27305 rm -f conftest.$ac_objext conftest$ac_exeext
27306 if { (ac_try="$ac_link"
27307 case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_link") 2>conftest.er1
27314 grep -v '^ *+' conftest.er1 >conftest.err
27316 cat conftest.err >&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); } &&
27319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27320 { (case "(($ac_try" in
27321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322 *) ac_try_echo=$ac_try;;
27324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325 (eval "$ac_try") 2>&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); }; } &&
27329 { ac_try='test -s conftest$ac_exeext'
27330 { (case "(($ac_try" in
27331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27332 *) ac_try_echo=$ac_try;;
27334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27335 (eval "$ac_try") 2>&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
27339 ac_cv_lib_psapi_main=yes
27341 echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27344 ac_cv_lib_psapi_main=no
27347 rm -f core conftest.err conftest.$ac_objext \
27348 conftest$ac_exeext conftest.$ac_ext
27349 LIBS=$ac_check_lib_save_LIBS
27351 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27352 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27353 if test $ac_cv_lib_psapi_main = yes; then
27354 cat >>confdefs.h <<_ACEOF
27355 #define HAVE_LIBPSAPI 1
27358 LIBS="-lpsapi $LIBS"
27364 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27365 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27366 if test "${ac_cv_search_dlopen+set}" = set; then
27367 echo $ECHO_N "(cached) $ECHO_C" >&6
27369 ac_func_search_save_LIBS=$LIBS
27370 cat >conftest.$ac_ext <<_ACEOF
27373 cat confdefs.h >>conftest.$ac_ext
27374 cat >>conftest.$ac_ext <<_ACEOF
27375 /* end confdefs.h. */
27377 /* Override any GCC internal prototype to avoid an error.
27378 Use char because int might match the return type of a GCC
27379 builtin and then its argument prototype would still apply. */
27392 for ac_lib in '' dl; do
27393 if test -z "$ac_lib"; then
27394 ac_res="none required"
27397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27399 rm -f conftest.$ac_objext conftest$ac_exeext
27400 if { (ac_try="$ac_link"
27401 case "(($ac_try" in
27402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403 *) ac_try_echo=$ac_try;;
27405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406 (eval "$ac_link") 2>conftest.er1
27408 grep -v '^ *+' conftest.er1 >conftest.err
27410 cat conftest.err >&5
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); } &&
27413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27414 { (case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_try") 2>&5
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; } &&
27423 { ac_try='test -s conftest$ac_exeext'
27424 { (case "(($ac_try" in
27425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426 *) ac_try_echo=$ac_try;;
27428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429 (eval "$ac_try") 2>&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); }; }; then
27433 ac_cv_search_dlopen=$ac_res
27435 echo "$as_me: failed program was:" >&5
27436 sed 's/^/| /' conftest.$ac_ext >&5
27441 rm -f core conftest.err conftest.$ac_objext \
27443 if test "${ac_cv_search_dlopen+set}" = set; then
27447 if test "${ac_cv_search_dlopen+set}" = set; then
27450 ac_cv_search_dlopen=no
27452 rm conftest.$ac_ext
27453 LIBS=$ac_func_search_save_LIBS
27455 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27456 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27457 ac_res=$ac_cv_search_dlopen
27458 if test "$ac_res" != no; then
27459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27461 cat >>confdefs.h <<\_ACEOF
27462 #define HAVE_DLOPEN 1
27466 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27467 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27471 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27472 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27473 if test "${ac_cv_search_ffi_call+set}" = set; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27476 ac_func_search_save_LIBS=$LIBS
27477 cat >conftest.$ac_ext <<_ACEOF
27480 cat confdefs.h >>conftest.$ac_ext
27481 cat >>conftest.$ac_ext <<_ACEOF
27482 /* end confdefs.h. */
27484 /* Override any GCC internal prototype to avoid an error.
27485 Use char because int might match the return type of a GCC
27486 builtin and then its argument prototype would still apply. */
27494 return ffi_call ();
27499 for ac_lib in '' ffi; do
27500 if test -z "$ac_lib"; then
27501 ac_res="none required"
27504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27506 rm -f conftest.$ac_objext conftest$ac_exeext
27507 if { (ac_try="$ac_link"
27508 case "(($ac_try" in
27509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510 *) ac_try_echo=$ac_try;;
27512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513 (eval "$ac_link") 2>conftest.er1
27515 grep -v '^ *+' conftest.er1 >conftest.err
27517 cat conftest.err >&5
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); } &&
27520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27521 { (case "(($ac_try" in
27522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27523 *) ac_try_echo=$ac_try;;
27525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27526 (eval "$ac_try") 2>&5
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); }; } &&
27530 { ac_try='test -s conftest$ac_exeext'
27531 { (case "(($ac_try" in
27532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533 *) ac_try_echo=$ac_try;;
27535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27536 (eval "$ac_try") 2>&5
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); }; }; then
27540 ac_cv_search_ffi_call=$ac_res
27542 echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27548 rm -f core conftest.err conftest.$ac_objext \
27550 if test "${ac_cv_search_ffi_call+set}" = set; then
27554 if test "${ac_cv_search_ffi_call+set}" = set; then
27557 ac_cv_search_ffi_call=no
27559 rm conftest.$ac_ext
27560 LIBS=$ac_func_search_save_LIBS
27562 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27563 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27564 ac_res=$ac_cv_search_ffi_call
27565 if test "$ac_res" != no; then
27566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27568 cat >>confdefs.h <<\_ACEOF
27569 #define HAVE_FFI_CALL 1
27573 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27574 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27578 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27579 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27580 if test "${ac_cv_search_mallinfo+set}" = set; then
27581 echo $ECHO_N "(cached) $ECHO_C" >&6
27583 ac_func_search_save_LIBS=$LIBS
27584 cat >conftest.$ac_ext <<_ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h. */
27591 /* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
27601 return mallinfo ();
27606 for ac_lib in '' malloc; do
27607 if test -z "$ac_lib"; then
27608 ac_res="none required"
27611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27613 rm -f conftest.$ac_objext conftest$ac_exeext
27614 if { (ac_try="$ac_link"
27615 case "(($ac_try" in
27616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617 *) ac_try_echo=$ac_try;;
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_link") 2>conftest.er1
27622 grep -v '^ *+' conftest.er1 >conftest.err
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } &&
27627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27628 { (case "(($ac_try" in
27629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27630 *) ac_try_echo=$ac_try;;
27632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27633 (eval "$ac_try") 2>&5
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); }; } &&
27637 { ac_try='test -s conftest$ac_exeext'
27638 { (case "(($ac_try" in
27639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_try") 2>&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); }; }; then
27647 ac_cv_search_mallinfo=$ac_res
27649 echo "$as_me: failed program was:" >&5
27650 sed 's/^/| /' conftest.$ac_ext >&5
27655 rm -f core conftest.err conftest.$ac_objext \
27657 if test "${ac_cv_search_mallinfo+set}" = set; then
27661 if test "${ac_cv_search_mallinfo+set}" = set; then
27664 ac_cv_search_mallinfo=no
27666 rm conftest.$ac_ext
27667 LIBS=$ac_func_search_save_LIBS
27669 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27670 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27671 ac_res=$ac_cv_search_mallinfo
27672 if test "$ac_res" != no; then
27673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27675 cat >>confdefs.h <<\_ACEOF
27676 #define HAVE_MALLINFO 1
27682 if test "$ENABLE_THREADS" -eq 1 ; then
27684 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27685 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27686 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27689 ac_check_lib_save_LIBS=$LIBS
27690 LIBS="-lpthread $LIBS"
27691 cat >conftest.$ac_ext <<_ACEOF
27694 cat confdefs.h >>conftest.$ac_ext
27695 cat >>conftest.$ac_ext <<_ACEOF
27696 /* end confdefs.h. */
27698 /* Override any GCC internal prototype to avoid an error.
27699 Use char because int might match the return type of a GCC
27700 builtin and then its argument prototype would still apply. */
27704 char pthread_mutex_init ();
27708 return pthread_mutex_init ();
27713 rm -f conftest.$ac_objext conftest$ac_exeext
27714 if { (ac_try="$ac_link"
27715 case "(($ac_try" in
27716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717 *) ac_try_echo=$ac_try;;
27719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27720 (eval "$ac_link") 2>conftest.er1
27722 grep -v '^ *+' conftest.er1 >conftest.err
27724 cat conftest.err >&5
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); } &&
27727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27728 { (case "(($ac_try" in
27729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27730 *) ac_try_echo=$ac_try;;
27732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27733 (eval "$ac_try") 2>&5
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; } &&
27737 { ac_try='test -s conftest$ac_exeext'
27738 { (case "(($ac_try" in
27739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740 *) ac_try_echo=$ac_try;;
27742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27743 (eval "$ac_try") 2>&5
27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); }; }; then
27747 ac_cv_lib_pthread_pthread_mutex_init=yes
27749 echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27752 ac_cv_lib_pthread_pthread_mutex_init=no
27755 rm -f core conftest.err conftest.$ac_objext \
27756 conftest$ac_exeext conftest.$ac_ext
27757 LIBS=$ac_check_lib_save_LIBS
27759 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27760 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27761 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27762 cat >>confdefs.h <<_ACEOF
27763 #define HAVE_LIBPTHREAD 1
27766 LIBS="-lpthread $LIBS"
27770 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27771 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27772 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27775 ac_func_search_save_LIBS=$LIBS
27776 cat >conftest.$ac_ext <<_ACEOF
27779 cat confdefs.h >>conftest.$ac_ext
27780 cat >>conftest.$ac_ext <<_ACEOF
27781 /* end confdefs.h. */
27783 /* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27789 char pthread_mutex_lock ();
27793 return pthread_mutex_lock ();
27798 for ac_lib in '' pthread; do
27799 if test -z "$ac_lib"; then
27800 ac_res="none required"
27803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27805 rm -f conftest.$ac_objext conftest$ac_exeext
27806 if { (ac_try="$ac_link"
27807 case "(($ac_try" in
27808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812 (eval "$ac_link") 2>conftest.er1
27814 grep -v '^ *+' conftest.er1 >conftest.err
27816 cat conftest.err >&5
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); } &&
27819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27820 { (case "(($ac_try" in
27821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822 *) ac_try_echo=$ac_try;;
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825 (eval "$ac_try") 2>&5
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); }; } &&
27829 { ac_try='test -s conftest$ac_exeext'
27830 { (case "(($ac_try" in
27831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27832 *) ac_try_echo=$ac_try;;
27834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27835 (eval "$ac_try") 2>&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; }; then
27839 ac_cv_search_pthread_mutex_lock=$ac_res
27841 echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27847 rm -f core conftest.err conftest.$ac_objext \
27849 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27853 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27856 ac_cv_search_pthread_mutex_lock=no
27858 rm conftest.$ac_ext
27859 LIBS=$ac_func_search_save_LIBS
27861 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27862 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27863 ac_res=$ac_cv_search_pthread_mutex_lock
27864 if test "$ac_res" != no; then
27865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27867 cat >>confdefs.h <<\_ACEOF
27868 #define HAVE_PTHREAD_MUTEX_LOCK 1
27876 # Check whether --with-udis86 was given.
27877 if test "${with_udis86+set}" = set; then
27878 withval=$with_udis86;
27883 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27886 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27887 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27888 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27891 ac_check_lib_save_LIBS=$LIBS
27892 LIBS="-ludis86 $LIBS"
27893 cat >conftest.$ac_ext <<_ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h. */
27900 /* Override any GCC internal prototype to avoid an error.
27901 Use char because int might match the return type of a GCC
27902 builtin and then its argument prototype would still apply. */
27915 rm -f conftest.$ac_objext conftest$ac_exeext
27916 if { (ac_try="$ac_link"
27917 case "(($ac_try" in
27918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27919 *) ac_try_echo=$ac_try;;
27921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27922 (eval "$ac_link") 2>conftest.er1
27924 grep -v '^ *+' conftest.er1 >conftest.err
27926 cat conftest.err >&5
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928 (exit $ac_status); } &&
27929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27930 { (case "(($ac_try" in
27931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932 *) ac_try_echo=$ac_try;;
27934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935 (eval "$ac_try") 2>&5
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); }; } &&
27939 { ac_try='test -s conftest$ac_exeext'
27940 { (case "(($ac_try" in
27941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27942 *) ac_try_echo=$ac_try;;
27944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27945 (eval "$ac_try") 2>&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); }; }; then
27949 ac_cv_lib_udis86_ud_init=yes
27951 echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27954 ac_cv_lib_udis86_ud_init=no
27957 rm -f core conftest.err conftest.$ac_objext \
27958 conftest$ac_exeext conftest.$ac_ext
27959 LIBS=$ac_check_lib_save_LIBS
27961 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27962 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27963 if test $ac_cv_lib_udis86_ud_init = yes; then
27964 cat >>confdefs.h <<_ACEOF
27965 #define HAVE_LIBUDIS86 1
27968 LIBS="-ludis86 $LIBS"
27972 echo "Error! You need to have libudis86 around."
27984 cat >>confdefs.h <<_ACEOF
27985 #define USE_UDIS86 $USE_UDIS86
27995 ac_header_dirent=no
27996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27997 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27998 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28001 echo $ECHO_N "(cached) $ECHO_C" >&6
28003 cat >conftest.$ac_ext <<_ACEOF
28006 cat confdefs.h >>conftest.$ac_ext
28007 cat >>conftest.$ac_ext <<_ACEOF
28008 /* end confdefs.h. */
28009 #include <sys/types.h>
28021 rm -f conftest.$ac_objext
28022 if { (ac_try="$ac_compile"
28023 case "(($ac_try" in
28024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025 *) ac_try_echo=$ac_try;;
28027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28028 (eval "$ac_compile") 2>conftest.er1
28030 grep -v '^ *+' conftest.er1 >conftest.err
28032 cat conftest.err >&5
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); } &&
28035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28036 { (case "(($ac_try" in
28037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038 *) ac_try_echo=$ac_try;;
28040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041 (eval "$ac_try") 2>&5
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; } &&
28045 { ac_try='test -s conftest.$ac_objext'
28046 { (case "(($ac_try" in
28047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048 *) ac_try_echo=$ac_try;;
28050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051 (eval "$ac_try") 2>&5
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054 (exit $ac_status); }; }; then
28055 eval "$as_ac_Header=yes"
28057 echo "$as_me: failed program was:" >&5
28058 sed 's/^/| /' conftest.$ac_ext >&5
28060 eval "$as_ac_Header=no"
28063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28065 ac_res=`eval echo '${'$as_ac_Header'}'`
28066 { echo "$as_me:$LINENO: result: $ac_res" >&5
28067 echo "${ECHO_T}$ac_res" >&6; }
28068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28069 cat >>confdefs.h <<_ACEOF
28070 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28073 ac_header_dirent=$ac_hdr; break
28077 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28078 if test $ac_header_dirent = dirent.h; then
28079 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28080 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28081 if test "${ac_cv_search_opendir+set}" = set; then
28082 echo $ECHO_N "(cached) $ECHO_C" >&6
28084 ac_func_search_save_LIBS=$LIBS
28085 cat >conftest.$ac_ext <<_ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h. */
28092 /* Override any GCC internal prototype to avoid an error.
28093 Use char because int might match the return type of a GCC
28094 builtin and then its argument prototype would still apply. */
28107 for ac_lib in '' dir; do
28108 if test -z "$ac_lib"; then
28109 ac_res="none required"
28112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28114 rm -f conftest.$ac_objext conftest$ac_exeext
28115 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28123 grep -v '^ *+' conftest.er1 >conftest.err
28125 cat conftest.err >&5
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); } &&
28128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28129 { (case "(($ac_try" in
28130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131 *) ac_try_echo=$ac_try;;
28133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134 (eval "$ac_try") 2>&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; } &&
28138 { ac_try='test -s conftest$ac_exeext'
28139 { (case "(($ac_try" in
28140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144 (eval "$ac_try") 2>&5
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; }; then
28148 ac_cv_search_opendir=$ac_res
28150 echo "$as_me: failed program was:" >&5
28151 sed 's/^/| /' conftest.$ac_ext >&5
28156 rm -f core conftest.err conftest.$ac_objext \
28158 if test "${ac_cv_search_opendir+set}" = set; then
28162 if test "${ac_cv_search_opendir+set}" = set; then
28165 ac_cv_search_opendir=no
28167 rm conftest.$ac_ext
28168 LIBS=$ac_func_search_save_LIBS
28170 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28171 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28172 ac_res=$ac_cv_search_opendir
28173 if test "$ac_res" != no; then
28174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28179 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28180 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28181 if test "${ac_cv_search_opendir+set}" = set; then
28182 echo $ECHO_N "(cached) $ECHO_C" >&6
28184 ac_func_search_save_LIBS=$LIBS
28185 cat >conftest.$ac_ext <<_ACEOF
28188 cat confdefs.h >>conftest.$ac_ext
28189 cat >>conftest.$ac_ext <<_ACEOF
28190 /* end confdefs.h. */
28192 /* Override any GCC internal prototype to avoid an error.
28193 Use char because int might match the return type of a GCC
28194 builtin and then its argument prototype would still apply. */
28207 for ac_lib in '' x; do
28208 if test -z "$ac_lib"; then
28209 ac_res="none required"
28212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28214 rm -f conftest.$ac_objext conftest$ac_exeext
28215 if { (ac_try="$ac_link"
28216 case "(($ac_try" in
28217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218 *) ac_try_echo=$ac_try;;
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221 (eval "$ac_link") 2>conftest.er1
28223 grep -v '^ *+' conftest.er1 >conftest.err
28225 cat conftest.err >&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } &&
28228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28229 { (case "(($ac_try" in
28230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231 *) ac_try_echo=$ac_try;;
28233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234 (eval "$ac_try") 2>&5
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); }; } &&
28238 { ac_try='test -s conftest$ac_exeext'
28239 { (case "(($ac_try" in
28240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241 *) ac_try_echo=$ac_try;;
28243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244 (eval "$ac_try") 2>&5
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); }; }; then
28248 ac_cv_search_opendir=$ac_res
28250 echo "$as_me: failed program was:" >&5
28251 sed 's/^/| /' conftest.$ac_ext >&5
28256 rm -f core conftest.err conftest.$ac_objext \
28258 if test "${ac_cv_search_opendir+set}" = set; then
28262 if test "${ac_cv_search_opendir+set}" = set; then
28265 ac_cv_search_opendir=no
28267 rm conftest.$ac_ext
28268 LIBS=$ac_func_search_save_LIBS
28270 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28271 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28272 ac_res=$ac_cv_search_opendir
28273 if test "$ac_res" != no; then
28274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28280 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28281 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28282 if test "${ac_cv_header_mmap_anon+set}" = set; then
28283 echo $ECHO_N "(cached) $ECHO_C" >&6
28286 ac_cpp='$CPP $CPPFLAGS'
28287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28291 cat >conftest.$ac_ext <<_ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h. */
28297 #include <sys/mman.h>
28298 #include <unistd.h>
28303 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28308 rm -f conftest.$ac_objext
28309 if { (ac_try="$ac_compile"
28310 case "(($ac_try" in
28311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_compile") 2>conftest.er1
28317 grep -v '^ *+' conftest.er1 >conftest.err
28319 cat conftest.err >&5
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); } &&
28322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28323 { (case "(($ac_try" in
28324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28325 *) ac_try_echo=$ac_try;;
28327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328 (eval "$ac_try") 2>&5
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); }; } &&
28332 { ac_try='test -s conftest.$ac_objext'
28333 { (case "(($ac_try" in
28334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28335 *) ac_try_echo=$ac_try;;
28337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28338 (eval "$ac_try") 2>&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; }; then
28342 ac_cv_header_mmap_anon=yes
28344 echo "$as_me: failed program was:" >&5
28345 sed 's/^/| /' conftest.$ac_ext >&5
28347 ac_cv_header_mmap_anon=no
28350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28352 ac_cpp='$CPP $CPPFLAGS'
28353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28359 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28360 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28361 if test "$ac_cv_header_mmap_anon" = yes; then
28363 cat >>confdefs.h <<\_ACEOF
28364 #define HAVE_MMAP_ANONYMOUS 1
28369 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28370 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28371 if test "${ac_cv_header_stat_broken+set}" = set; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28374 cat >conftest.$ac_ext <<_ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h. */
28380 #include <sys/types.h>
28381 #include <sys/stat.h>
28383 #if defined S_ISBLK && defined S_IFDIR
28384 # if S_ISBLK (S_IFDIR)
28389 #if defined S_ISBLK && defined S_IFCHR
28390 # if S_ISBLK (S_IFCHR)
28395 #if defined S_ISLNK && defined S_IFREG
28396 # if S_ISLNK (S_IFREG)
28401 #if defined S_ISSOCK && defined S_IFREG
28402 # if S_ISSOCK (S_IFREG)
28408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28409 $EGREP "You lose" >/dev/null 2>&1; then
28410 ac_cv_header_stat_broken=yes
28412 ac_cv_header_stat_broken=no
28417 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28418 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28419 if test $ac_cv_header_stat_broken = yes; then
28421 cat >>confdefs.h <<\_ACEOF
28422 #define STAT_MACROS_BROKEN 1
28427 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28428 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28429 if test "${ac_cv_header_stdc+set}" = set; then
28430 echo $ECHO_N "(cached) $ECHO_C" >&6
28432 cat >conftest.$ac_ext <<_ACEOF
28435 cat confdefs.h >>conftest.$ac_ext
28436 cat >>conftest.$ac_ext <<_ACEOF
28437 /* end confdefs.h. */
28438 #include <stdlib.h>
28439 #include <stdarg.h>
28440 #include <string.h>
28451 rm -f conftest.$ac_objext
28452 if { (ac_try="$ac_compile"
28453 case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_compile") 2>conftest.er1
28460 grep -v '^ *+' conftest.er1 >conftest.err
28462 cat conftest.err >&5
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); } &&
28465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28466 { (case "(($ac_try" in
28467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28468 *) ac_try_echo=$ac_try;;
28470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28471 (eval "$ac_try") 2>&5
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; } &&
28475 { ac_try='test -s conftest.$ac_objext'
28476 { (case "(($ac_try" in
28477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478 *) ac_try_echo=$ac_try;;
28480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481 (eval "$ac_try") 2>&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); }; }; then
28485 ac_cv_header_stdc=yes
28487 echo "$as_me: failed program was:" >&5
28488 sed 's/^/| /' conftest.$ac_ext >&5
28490 ac_cv_header_stdc=no
28493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28495 if test $ac_cv_header_stdc = yes; then
28496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28497 cat >conftest.$ac_ext <<_ACEOF
28500 cat confdefs.h >>conftest.$ac_ext
28501 cat >>conftest.$ac_ext <<_ACEOF
28502 /* end confdefs.h. */
28503 #include <string.h>
28506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28507 $EGREP "memchr" >/dev/null 2>&1; then
28510 ac_cv_header_stdc=no
28516 if test $ac_cv_header_stdc = yes; then
28517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28518 cat >conftest.$ac_ext <<_ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h. */
28524 #include <stdlib.h>
28527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28528 $EGREP "free" >/dev/null 2>&1; then
28531 ac_cv_header_stdc=no
28537 if test $ac_cv_header_stdc = yes; then
28538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28539 if test "$cross_compiling" = yes; then
28542 cat >conftest.$ac_ext <<_ACEOF
28545 cat confdefs.h >>conftest.$ac_ext
28546 cat >>conftest.$ac_ext <<_ACEOF
28547 /* end confdefs.h. */
28549 #include <stdlib.h>
28550 #if ((' ' & 0x0FF) == 0x020)
28551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28554 # define ISLOWER(c) \
28555 (('a' <= (c) && (c) <= 'i') \
28556 || ('j' <= (c) && (c) <= 'r') \
28557 || ('s' <= (c) && (c) <= 'z'))
28558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28566 for (i = 0; i < 256; i++)
28567 if (XOR (islower (i), ISLOWER (i))
28568 || toupper (i) != TOUPPER (i))
28573 rm -f conftest$ac_exeext
28574 if { (ac_try="$ac_link"
28575 case "(($ac_try" in
28576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28577 *) ac_try_echo=$ac_try;;
28579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28580 (eval "$ac_link") 2>&5
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28584 { (case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_try") 2>&5
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; }; then
28595 echo "$as_me: program exited with status $ac_status" >&5
28596 echo "$as_me: failed program was:" >&5
28597 sed 's/^/| /' conftest.$ac_ext >&5
28599 ( exit $ac_status )
28600 ac_cv_header_stdc=no
28602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28608 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28609 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28610 if test $ac_cv_header_stdc = yes; then
28612 cat >>confdefs.h <<\_ACEOF
28613 #define STDC_HEADERS 1
28618 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28619 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28620 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28621 echo $ECHO_N "(cached) $ECHO_C" >&6
28623 cat >conftest.$ac_ext <<_ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h. */
28629 #include <sys/types.h>
28630 #include <sys/wait.h>
28631 #ifndef WEXITSTATUS
28632 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28635 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28643 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28648 rm -f conftest.$ac_objext
28649 if { (ac_try="$ac_compile"
28650 case "(($ac_try" in
28651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652 *) ac_try_echo=$ac_try;;
28654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28655 (eval "$ac_compile") 2>conftest.er1
28657 grep -v '^ *+' conftest.er1 >conftest.err
28659 cat conftest.err >&5
28660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661 (exit $ac_status); } &&
28662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28663 { (case "(($ac_try" in
28664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665 *) ac_try_echo=$ac_try;;
28667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668 (eval "$ac_try") 2>&5
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; } &&
28672 { ac_try='test -s conftest.$ac_objext'
28673 { (case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678 (eval "$ac_try") 2>&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28682 ac_cv_header_sys_wait_h=yes
28684 echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28687 ac_cv_header_sys_wait_h=no
28690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28692 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28693 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28694 if test $ac_cv_header_sys_wait_h = yes; then
28696 cat >>confdefs.h <<\_ACEOF
28697 #define HAVE_SYS_WAIT_H 1
28702 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28703 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28704 if test "${ac_cv_header_time+set}" = set; then
28705 echo $ECHO_N "(cached) $ECHO_C" >&6
28707 cat >conftest.$ac_ext <<_ACEOF
28710 cat confdefs.h >>conftest.$ac_ext
28711 cat >>conftest.$ac_ext <<_ACEOF
28712 /* end confdefs.h. */
28713 #include <sys/types.h>
28714 #include <sys/time.h>
28720 if ((struct tm *) 0)
28726 rm -f conftest.$ac_objext
28727 if { (ac_try="$ac_compile"
28728 case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_compile") 2>conftest.er1
28735 grep -v '^ *+' conftest.er1 >conftest.err
28737 cat conftest.err >&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); } &&
28740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28741 { (case "(($ac_try" in
28742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28743 *) ac_try_echo=$ac_try;;
28745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28746 (eval "$ac_try") 2>&5
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; } &&
28750 { ac_try='test -s conftest.$ac_objext'
28751 { (case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_try") 2>&5
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; }; then
28760 ac_cv_header_time=yes
28762 echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.$ac_ext >&5
28765 ac_cv_header_time=no
28768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28770 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28771 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28772 if test $ac_cv_header_time = yes; then
28774 cat >>confdefs.h <<\_ACEOF
28775 #define TIME_WITH_SYS_TIME 1
28787 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28794 echo $ECHO_N "(cached) $ECHO_C" >&6
28796 ac_res=`eval echo '${'$as_ac_Header'}'`
28797 { echo "$as_me:$LINENO: result: $ac_res" >&5
28798 echo "${ECHO_T}$ac_res" >&6; }
28800 # Is the header compilable?
28801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28803 cat >conftest.$ac_ext <<_ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h. */
28809 $ac_includes_default
28810 #include <$ac_header>
28812 rm -f conftest.$ac_objext
28813 if { (ac_try="$ac_compile"
28814 case "(($ac_try" in
28815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816 *) ac_try_echo=$ac_try;;
28818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819 (eval "$ac_compile") 2>conftest.er1
28821 grep -v '^ *+' conftest.er1 >conftest.err
28823 cat conftest.err >&5
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); } &&
28826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28827 { (case "(($ac_try" in
28828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28829 *) ac_try_echo=$ac_try;;
28831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832 (eval "$ac_try") 2>&5
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); }; } &&
28836 { ac_try='test -s conftest.$ac_objext'
28837 { (case "(($ac_try" in
28838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28839 *) ac_try_echo=$ac_try;;
28841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28842 (eval "$ac_try") 2>&5
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); }; }; then
28846 ac_header_compiler=yes
28848 echo "$as_me: failed program was:" >&5
28849 sed 's/^/| /' conftest.$ac_ext >&5
28851 ac_header_compiler=no
28854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28856 echo "${ECHO_T}$ac_header_compiler" >&6; }
28858 # Is the header present?
28859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28861 cat >conftest.$ac_ext <<_ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h. */
28867 #include <$ac_header>
28869 if { (ac_try="$ac_cpp conftest.$ac_ext"
28870 case "(($ac_try" in
28871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872 *) ac_try_echo=$ac_try;;
28874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28877 grep -v '^ *+' conftest.er1 >conftest.err
28879 cat conftest.err >&5
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); } >/dev/null; then
28882 if test -s conftest.err; then
28883 ac_cpp_err=$ac_c_preproc_warn_flag
28884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28891 if test -z "$ac_cpp_err"; then
28892 ac_header_preproc=yes
28894 echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28897 ac_header_preproc=no
28900 rm -f conftest.err conftest.$ac_ext
28901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28902 echo "${ECHO_T}$ac_header_preproc" >&6; }
28904 # So? What about this header?
28905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28911 ac_header_preproc=yes
28914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28927 ## ----------------------------------- ##
28928 ## Report this to llvmbugs@cs.uiuc.edu ##
28929 ## ----------------------------------- ##
28931 ) | sed "s/^/$as_me: WARNING: /" >&2
28934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28937 echo $ECHO_N "(cached) $ECHO_C" >&6
28939 eval "$as_ac_Header=\$ac_header_preproc"
28941 ac_res=`eval echo '${'$as_ac_Header'}'`
28942 { echo "$as_me:$LINENO: result: $ac_res" >&5
28943 echo "${ECHO_T}$ac_res" >&6; }
28946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28947 cat >>confdefs.h <<_ACEOF
28948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28961 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
28963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28968 echo $ECHO_N "(cached) $ECHO_C" >&6
28970 ac_res=`eval echo '${'$as_ac_Header'}'`
28971 { echo "$as_me:$LINENO: result: $ac_res" >&5
28972 echo "${ECHO_T}$ac_res" >&6; }
28974 # Is the header compilable?
28975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28977 cat >conftest.$ac_ext <<_ACEOF
28980 cat confdefs.h >>conftest.$ac_ext
28981 cat >>conftest.$ac_ext <<_ACEOF
28982 /* end confdefs.h. */
28983 $ac_includes_default
28984 #include <$ac_header>
28986 rm -f conftest.$ac_objext
28987 if { (ac_try="$ac_compile"
28988 case "(($ac_try" in
28989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28990 *) ac_try_echo=$ac_try;;
28992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28993 (eval "$ac_compile") 2>conftest.er1
28995 grep -v '^ *+' conftest.er1 >conftest.err
28997 cat conftest.err >&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); } &&
29000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29001 { (case "(($ac_try" in
29002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003 *) ac_try_echo=$ac_try;;
29005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29006 (eval "$ac_try") 2>&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); }; } &&
29010 { ac_try='test -s conftest.$ac_objext'
29011 { (case "(($ac_try" in
29012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29013 *) ac_try_echo=$ac_try;;
29015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29016 (eval "$ac_try") 2>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; }; then
29020 ac_header_compiler=yes
29022 echo "$as_me: failed program was:" >&5
29023 sed 's/^/| /' conftest.$ac_ext >&5
29025 ac_header_compiler=no
29028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29030 echo "${ECHO_T}$ac_header_compiler" >&6; }
29032 # Is the header present?
29033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29035 cat >conftest.$ac_ext <<_ACEOF
29038 cat confdefs.h >>conftest.$ac_ext
29039 cat >>conftest.$ac_ext <<_ACEOF
29040 /* end confdefs.h. */
29041 #include <$ac_header>
29043 if { (ac_try="$ac_cpp conftest.$ac_ext"
29044 case "(($ac_try" in
29045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29046 *) ac_try_echo=$ac_try;;
29048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29051 grep -v '^ *+' conftest.er1 >conftest.err
29053 cat conftest.err >&5
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); } >/dev/null; then
29056 if test -s conftest.err; then
29057 ac_cpp_err=$ac_c_preproc_warn_flag
29058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29065 if test -z "$ac_cpp_err"; then
29066 ac_header_preproc=yes
29068 echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29071 ac_header_preproc=no
29074 rm -f conftest.err conftest.$ac_ext
29075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29076 echo "${ECHO_T}$ac_header_preproc" >&6; }
29078 # So? What about this header?
29079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29085 ac_header_preproc=yes
29088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29101 ## ----------------------------------- ##
29102 ## Report this to llvmbugs@cs.uiuc.edu ##
29103 ## ----------------------------------- ##
29105 ) | sed "s/^/$as_me: WARNING: /" >&2
29108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29113 eval "$as_ac_Header=\$ac_header_preproc"
29115 ac_res=`eval echo '${'$as_ac_Header'}'`
29116 { echo "$as_me:$LINENO: result: $ac_res" >&5
29117 echo "${ECHO_T}$ac_res" >&6; }
29120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29121 cat >>confdefs.h <<_ACEOF
29122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29131 for ac_header in utime.h windows.h
29133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29138 echo $ECHO_N "(cached) $ECHO_C" >&6
29140 ac_res=`eval echo '${'$as_ac_Header'}'`
29141 { echo "$as_me:$LINENO: result: $ac_res" >&5
29142 echo "${ECHO_T}$ac_res" >&6; }
29144 # Is the header compilable?
29145 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29147 cat >conftest.$ac_ext <<_ACEOF
29150 cat confdefs.h >>conftest.$ac_ext
29151 cat >>conftest.$ac_ext <<_ACEOF
29152 /* end confdefs.h. */
29153 $ac_includes_default
29154 #include <$ac_header>
29156 rm -f conftest.$ac_objext
29157 if { (ac_try="$ac_compile"
29158 case "(($ac_try" in
29159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160 *) ac_try_echo=$ac_try;;
29162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29163 (eval "$ac_compile") 2>conftest.er1
29165 grep -v '^ *+' conftest.er1 >conftest.err
29167 cat conftest.err >&5
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); } &&
29170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29171 { (case "(($ac_try" in
29172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173 *) ac_try_echo=$ac_try;;
29175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176 (eval "$ac_try") 2>&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; } &&
29180 { ac_try='test -s conftest.$ac_objext'
29181 { (case "(($ac_try" in
29182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29183 *) ac_try_echo=$ac_try;;
29185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29186 (eval "$ac_try") 2>&5
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); }; }; then
29190 ac_header_compiler=yes
29192 echo "$as_me: failed program was:" >&5
29193 sed 's/^/| /' conftest.$ac_ext >&5
29195 ac_header_compiler=no
29198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29200 echo "${ECHO_T}$ac_header_compiler" >&6; }
29202 # Is the header present?
29203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29205 cat >conftest.$ac_ext <<_ACEOF
29208 cat confdefs.h >>conftest.$ac_ext
29209 cat >>conftest.$ac_ext <<_ACEOF
29210 /* end confdefs.h. */
29211 #include <$ac_header>
29213 if { (ac_try="$ac_cpp conftest.$ac_ext"
29214 case "(($ac_try" in
29215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29216 *) ac_try_echo=$ac_try;;
29218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29221 grep -v '^ *+' conftest.er1 >conftest.err
29223 cat conftest.err >&5
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); } >/dev/null; then
29226 if test -s conftest.err; then
29227 ac_cpp_err=$ac_c_preproc_warn_flag
29228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29235 if test -z "$ac_cpp_err"; then
29236 ac_header_preproc=yes
29238 echo "$as_me: failed program was:" >&5
29239 sed 's/^/| /' conftest.$ac_ext >&5
29241 ac_header_preproc=no
29244 rm -f conftest.err conftest.$ac_ext
29245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29246 echo "${ECHO_T}$ac_header_preproc" >&6; }
29248 # So? What about this header?
29249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29255 ac_header_preproc=yes
29258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29271 ## ----------------------------------- ##
29272 ## Report this to llvmbugs@cs.uiuc.edu ##
29273 ## ----------------------------------- ##
29275 ) | sed "s/^/$as_me: WARNING: /" >&2
29278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29281 echo $ECHO_N "(cached) $ECHO_C" >&6
29283 eval "$as_ac_Header=\$ac_header_preproc"
29285 ac_res=`eval echo '${'$as_ac_Header'}'`
29286 { echo "$as_me:$LINENO: result: $ac_res" >&5
29287 echo "${ECHO_T}$ac_res" >&6; }
29290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29291 cat >>confdefs.h <<_ACEOF
29292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29303 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29310 echo $ECHO_N "(cached) $ECHO_C" >&6
29312 ac_res=`eval echo '${'$as_ac_Header'}'`
29313 { echo "$as_me:$LINENO: result: $ac_res" >&5
29314 echo "${ECHO_T}$ac_res" >&6; }
29316 # Is the header compilable?
29317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29319 cat >conftest.$ac_ext <<_ACEOF
29322 cat confdefs.h >>conftest.$ac_ext
29323 cat >>conftest.$ac_ext <<_ACEOF
29324 /* end confdefs.h. */
29325 $ac_includes_default
29326 #include <$ac_header>
29328 rm -f conftest.$ac_objext
29329 if { (ac_try="$ac_compile"
29330 case "(($ac_try" in
29331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332 *) ac_try_echo=$ac_try;;
29334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335 (eval "$ac_compile") 2>conftest.er1
29337 grep -v '^ *+' conftest.er1 >conftest.err
29339 cat conftest.err >&5
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); } &&
29342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29343 { (case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_try") 2>&5
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); }; } &&
29352 { ac_try='test -s conftest.$ac_objext'
29353 { (case "(($ac_try" in
29354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355 *) ac_try_echo=$ac_try;;
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358 (eval "$ac_try") 2>&5
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; }; then
29362 ac_header_compiler=yes
29364 echo "$as_me: failed program was:" >&5
29365 sed 's/^/| /' conftest.$ac_ext >&5
29367 ac_header_compiler=no
29370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29372 echo "${ECHO_T}$ac_header_compiler" >&6; }
29374 # Is the header present?
29375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29377 cat >conftest.$ac_ext <<_ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29383 #include <$ac_header>
29385 if { (ac_try="$ac_cpp conftest.$ac_ext"
29386 case "(($ac_try" in
29387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388 *) ac_try_echo=$ac_try;;
29390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29393 grep -v '^ *+' conftest.er1 >conftest.err
29395 cat conftest.err >&5
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); } >/dev/null; then
29398 if test -s conftest.err; then
29399 ac_cpp_err=$ac_c_preproc_warn_flag
29400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29407 if test -z "$ac_cpp_err"; then
29408 ac_header_preproc=yes
29410 echo "$as_me: failed program was:" >&5
29411 sed 's/^/| /' conftest.$ac_ext >&5
29413 ac_header_preproc=no
29416 rm -f conftest.err conftest.$ac_ext
29417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29418 echo "${ECHO_T}$ac_header_preproc" >&6; }
29420 # So? What about this header?
29421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29427 ac_header_preproc=yes
29430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29443 ## ----------------------------------- ##
29444 ## Report this to llvmbugs@cs.uiuc.edu ##
29445 ## ----------------------------------- ##
29447 ) | sed "s/^/$as_me: WARNING: /" >&2
29450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29453 echo $ECHO_N "(cached) $ECHO_C" >&6
29455 eval "$as_ac_Header=\$ac_header_preproc"
29457 ac_res=`eval echo '${'$as_ac_Header'}'`
29458 { echo "$as_me:$LINENO: result: $ac_res" >&5
29459 echo "${ECHO_T}$ac_res" >&6; }
29462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29463 cat >>confdefs.h <<_ACEOF
29464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29475 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29482 echo $ECHO_N "(cached) $ECHO_C" >&6
29484 ac_res=`eval echo '${'$as_ac_Header'}'`
29485 { echo "$as_me:$LINENO: result: $ac_res" >&5
29486 echo "${ECHO_T}$ac_res" >&6; }
29488 # Is the header compilable?
29489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29491 cat >conftest.$ac_ext <<_ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h. */
29497 $ac_includes_default
29498 #include <$ac_header>
29500 rm -f conftest.$ac_objext
29501 if { (ac_try="$ac_compile"
29502 case "(($ac_try" in
29503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504 *) ac_try_echo=$ac_try;;
29506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29507 (eval "$ac_compile") 2>conftest.er1
29509 grep -v '^ *+' conftest.er1 >conftest.err
29511 cat conftest.err >&5
29512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513 (exit $ac_status); } &&
29514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29515 { (case "(($ac_try" in
29516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517 *) ac_try_echo=$ac_try;;
29519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520 (eval "$ac_try") 2>&5
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); }; } &&
29524 { ac_try='test -s conftest.$ac_objext'
29525 { (case "(($ac_try" in
29526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530 (eval "$ac_try") 2>&5
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); }; }; then
29534 ac_header_compiler=yes
29536 echo "$as_me: failed program was:" >&5
29537 sed 's/^/| /' conftest.$ac_ext >&5
29539 ac_header_compiler=no
29542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29544 echo "${ECHO_T}$ac_header_compiler" >&6; }
29546 # Is the header present?
29547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29549 cat >conftest.$ac_ext <<_ACEOF
29552 cat confdefs.h >>conftest.$ac_ext
29553 cat >>conftest.$ac_ext <<_ACEOF
29554 /* end confdefs.h. */
29555 #include <$ac_header>
29557 if { (ac_try="$ac_cpp conftest.$ac_ext"
29558 case "(($ac_try" in
29559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29560 *) ac_try_echo=$ac_try;;
29562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29565 grep -v '^ *+' conftest.er1 >conftest.err
29567 cat conftest.err >&5
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); } >/dev/null; then
29570 if test -s conftest.err; then
29571 ac_cpp_err=$ac_c_preproc_warn_flag
29572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29579 if test -z "$ac_cpp_err"; then
29580 ac_header_preproc=yes
29582 echo "$as_me: failed program was:" >&5
29583 sed 's/^/| /' conftest.$ac_ext >&5
29585 ac_header_preproc=no
29588 rm -f conftest.err conftest.$ac_ext
29589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29590 echo "${ECHO_T}$ac_header_preproc" >&6; }
29592 # So? What about this header?
29593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29599 ac_header_preproc=yes
29602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29615 ## ----------------------------------- ##
29616 ## Report this to llvmbugs@cs.uiuc.edu ##
29617 ## ----------------------------------- ##
29619 ) | sed "s/^/$as_me: WARNING: /" >&2
29622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29625 echo $ECHO_N "(cached) $ECHO_C" >&6
29627 eval "$as_ac_Header=\$ac_header_preproc"
29629 ac_res=`eval echo '${'$as_ac_Header'}'`
29630 { echo "$as_me:$LINENO: result: $ac_res" >&5
29631 echo "${ECHO_T}$ac_res" >&6; }
29634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29635 cat >>confdefs.h <<_ACEOF
29636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29643 if test "$ENABLE_THREADS" -eq 1 ; then
29645 for ac_header in pthread.h
29647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29652 echo $ECHO_N "(cached) $ECHO_C" >&6
29654 ac_res=`eval echo '${'$as_ac_Header'}'`
29655 { echo "$as_me:$LINENO: result: $ac_res" >&5
29656 echo "${ECHO_T}$ac_res" >&6; }
29658 # Is the header compilable?
29659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29661 cat >conftest.$ac_ext <<_ACEOF
29664 cat confdefs.h >>conftest.$ac_ext
29665 cat >>conftest.$ac_ext <<_ACEOF
29666 /* end confdefs.h. */
29667 $ac_includes_default
29668 #include <$ac_header>
29670 rm -f conftest.$ac_objext
29671 if { (ac_try="$ac_compile"
29672 case "(($ac_try" in
29673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674 *) ac_try_echo=$ac_try;;
29676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677 (eval "$ac_compile") 2>conftest.er1
29679 grep -v '^ *+' conftest.er1 >conftest.err
29681 cat conftest.err >&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); } &&
29684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29685 { (case "(($ac_try" in
29686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687 *) ac_try_echo=$ac_try;;
29689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690 (eval "$ac_try") 2>&5
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; } &&
29694 { ac_try='test -s conftest.$ac_objext'
29695 { (case "(($ac_try" in
29696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697 *) ac_try_echo=$ac_try;;
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_try") 2>&5
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; }; then
29704 ac_header_compiler=yes
29706 echo "$as_me: failed program was:" >&5
29707 sed 's/^/| /' conftest.$ac_ext >&5
29709 ac_header_compiler=no
29712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29714 echo "${ECHO_T}$ac_header_compiler" >&6; }
29716 # Is the header present?
29717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29719 cat >conftest.$ac_ext <<_ACEOF
29722 cat confdefs.h >>conftest.$ac_ext
29723 cat >>conftest.$ac_ext <<_ACEOF
29724 /* end confdefs.h. */
29725 #include <$ac_header>
29727 if { (ac_try="$ac_cpp conftest.$ac_ext"
29728 case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29735 grep -v '^ *+' conftest.er1 >conftest.err
29737 cat conftest.err >&5
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); } >/dev/null; then
29740 if test -s conftest.err; then
29741 ac_cpp_err=$ac_c_preproc_warn_flag
29742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29749 if test -z "$ac_cpp_err"; then
29750 ac_header_preproc=yes
29752 echo "$as_me: failed program was:" >&5
29753 sed 's/^/| /' conftest.$ac_ext >&5
29755 ac_header_preproc=no
29758 rm -f conftest.err conftest.$ac_ext
29759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29760 echo "${ECHO_T}$ac_header_preproc" >&6; }
29762 # So? What about this header?
29763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29769 ac_header_preproc=yes
29772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29785 ## ----------------------------------- ##
29786 ## Report this to llvmbugs@cs.uiuc.edu ##
29787 ## ----------------------------------- ##
29789 ) | sed "s/^/$as_me: WARNING: /" >&2
29792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29795 echo $ECHO_N "(cached) $ECHO_C" >&6
29797 eval "$as_ac_Header=\$ac_header_preproc"
29799 ac_res=`eval echo '${'$as_ac_Header'}'`
29800 { echo "$as_me:$LINENO: result: $ac_res" >&5
29801 echo "${ECHO_T}$ac_res" >&6; }
29804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29805 cat >>confdefs.h <<_ACEOF
29806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29824 for ac_header in ffi.h ffi/ffi.h
29826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29831 echo $ECHO_N "(cached) $ECHO_C" >&6
29833 ac_res=`eval echo '${'$as_ac_Header'}'`
29834 { echo "$as_me:$LINENO: result: $ac_res" >&5
29835 echo "${ECHO_T}$ac_res" >&6; }
29837 # Is the header compilable?
29838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29840 cat >conftest.$ac_ext <<_ACEOF
29843 cat confdefs.h >>conftest.$ac_ext
29844 cat >>conftest.$ac_ext <<_ACEOF
29845 /* end confdefs.h. */
29846 $ac_includes_default
29847 #include <$ac_header>
29849 rm -f conftest.$ac_objext
29850 if { (ac_try="$ac_compile"
29851 case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_compile") 2>conftest.er1
29858 grep -v '^ *+' conftest.er1 >conftest.err
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); } &&
29863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29864 { (case "(($ac_try" in
29865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866 *) ac_try_echo=$ac_try;;
29868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869 (eval "$ac_try") 2>&5
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); }; } &&
29873 { ac_try='test -s conftest.$ac_objext'
29874 { (case "(($ac_try" in
29875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876 *) ac_try_echo=$ac_try;;
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879 (eval "$ac_try") 2>&5
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); }; }; then
29883 ac_header_compiler=yes
29885 echo "$as_me: failed program was:" >&5
29886 sed 's/^/| /' conftest.$ac_ext >&5
29888 ac_header_compiler=no
29891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29893 echo "${ECHO_T}$ac_header_compiler" >&6; }
29895 # Is the header present?
29896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29898 cat >conftest.$ac_ext <<_ACEOF
29901 cat confdefs.h >>conftest.$ac_ext
29902 cat >>conftest.$ac_ext <<_ACEOF
29903 /* end confdefs.h. */
29904 #include <$ac_header>
29906 if { (ac_try="$ac_cpp conftest.$ac_ext"
29907 case "(($ac_try" in
29908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909 *) ac_try_echo=$ac_try;;
29911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29914 grep -v '^ *+' conftest.er1 >conftest.err
29916 cat conftest.err >&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); } >/dev/null; then
29919 if test -s conftest.err; then
29920 ac_cpp_err=$ac_c_preproc_warn_flag
29921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29928 if test -z "$ac_cpp_err"; then
29929 ac_header_preproc=yes
29931 echo "$as_me: failed program was:" >&5
29932 sed 's/^/| /' conftest.$ac_ext >&5
29934 ac_header_preproc=no
29937 rm -f conftest.err conftest.$ac_ext
29938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29939 echo "${ECHO_T}$ac_header_preproc" >&6; }
29941 # So? What about this header?
29942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29948 ac_header_preproc=yes
29951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29964 ## ----------------------------------- ##
29965 ## Report this to llvmbugs@cs.uiuc.edu ##
29966 ## ----------------------------------- ##
29968 ) | sed "s/^/$as_me: WARNING: /" >&2
29971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29974 echo $ECHO_N "(cached) $ECHO_C" >&6
29976 eval "$as_ac_Header=\$ac_header_preproc"
29978 ac_res=`eval echo '${'$as_ac_Header'}'`
29979 { echo "$as_me:$LINENO: result: $ac_res" >&5
29980 echo "${ECHO_T}$ac_res" >&6; }
29983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29984 cat >>confdefs.h <<_ACEOF
29985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29995 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29996 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29997 if test "${ac_cv_huge_val_sanity+set}" = set; then
29998 echo $ECHO_N "(cached) $ECHO_C" >&6
30002 ac_cpp='$CXXCPP $CPPFLAGS'
30003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30008 if test "$cross_compiling" = yes; then
30009 ac_cv_huge_val_sanity=yes
30011 cat >conftest.$ac_ext <<_ACEOF
30014 cat confdefs.h >>conftest.$ac_ext
30015 cat >>conftest.$ac_ext <<_ACEOF
30016 /* end confdefs.h. */
30021 double x = HUGE_VAL; return x != x;
30026 rm -f 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>&5
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30037 { (case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_try") 2>&5
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; }; then
30046 ac_cv_huge_val_sanity=yes
30048 echo "$as_me: program exited with status $ac_status" >&5
30049 echo "$as_me: failed program was:" >&5
30050 sed 's/^/| /' conftest.$ac_ext >&5
30052 ( exit $ac_status )
30053 ac_cv_huge_val_sanity=no
30055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30060 ac_cpp='$CPP $CPPFLAGS'
30061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30067 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30068 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30069 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30072 { echo "$as_me:$LINENO: checking for pid_t" >&5
30073 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30074 if test "${ac_cv_type_pid_t+set}" = set; then
30075 echo $ECHO_N "(cached) $ECHO_C" >&6
30077 cat >conftest.$ac_ext <<_ACEOF
30080 cat confdefs.h >>conftest.$ac_ext
30081 cat >>conftest.$ac_ext <<_ACEOF
30082 /* end confdefs.h. */
30083 $ac_includes_default
30084 typedef pid_t ac__type_new_;
30088 if ((ac__type_new_ *) 0)
30090 if (sizeof (ac__type_new_))
30096 rm -f conftest.$ac_objext
30097 if { (ac_try="$ac_compile"
30098 case "(($ac_try" in
30099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30100 *) ac_try_echo=$ac_try;;
30102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30103 (eval "$ac_compile") 2>conftest.er1
30105 grep -v '^ *+' conftest.er1 >conftest.err
30107 cat conftest.err >&5
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); } &&
30110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30111 { (case "(($ac_try" in
30112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113 *) ac_try_echo=$ac_try;;
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116 (eval "$ac_try") 2>&5
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; } &&
30120 { ac_try='test -s conftest.$ac_objext'
30121 { (case "(($ac_try" in
30122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123 *) ac_try_echo=$ac_try;;
30125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30126 (eval "$ac_try") 2>&5
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); }; }; then
30130 ac_cv_type_pid_t=yes
30132 echo "$as_me: failed program was:" >&5
30133 sed 's/^/| /' conftest.$ac_ext >&5
30135 ac_cv_type_pid_t=no
30138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30140 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30141 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30142 if test $ac_cv_type_pid_t = yes; then
30146 cat >>confdefs.h <<_ACEOF
30152 { echo "$as_me:$LINENO: checking for size_t" >&5
30153 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30154 if test "${ac_cv_type_size_t+set}" = set; then
30155 echo $ECHO_N "(cached) $ECHO_C" >&6
30157 cat >conftest.$ac_ext <<_ACEOF
30160 cat confdefs.h >>conftest.$ac_ext
30161 cat >>conftest.$ac_ext <<_ACEOF
30162 /* end confdefs.h. */
30163 $ac_includes_default
30164 typedef size_t ac__type_new_;
30168 if ((ac__type_new_ *) 0)
30170 if (sizeof (ac__type_new_))
30176 rm -f conftest.$ac_objext
30177 if { (ac_try="$ac_compile"
30178 case "(($ac_try" in
30179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30180 *) ac_try_echo=$ac_try;;
30182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30183 (eval "$ac_compile") 2>conftest.er1
30185 grep -v '^ *+' conftest.er1 >conftest.err
30187 cat conftest.err >&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); } &&
30190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30191 { (case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_try") 2>&5
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; } &&
30200 { ac_try='test -s conftest.$ac_objext'
30201 { (case "(($ac_try" in
30202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203 *) ac_try_echo=$ac_try;;
30205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206 (eval "$ac_try") 2>&5
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; }; then
30210 ac_cv_type_size_t=yes
30212 echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30215 ac_cv_type_size_t=no
30218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30220 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30221 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30222 if test $ac_cv_type_size_t = yes; then
30226 cat >>confdefs.h <<_ACEOF
30227 #define size_t unsigned int
30232 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30233 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30234 if test "${ac_cv_type_signal+set}" = set; then
30235 echo $ECHO_N "(cached) $ECHO_C" >&6
30237 cat >conftest.$ac_ext <<_ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h. */
30243 #include <sys/types.h>
30244 #include <signal.h>
30249 return *(signal (0, 0)) (0) == 1;
30254 rm -f conftest.$ac_objext
30255 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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 ac_cv_type_signal=int
30290 echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30293 ac_cv_type_signal=void
30296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30298 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30299 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30301 cat >>confdefs.h <<_ACEOF
30302 #define RETSIGTYPE $ac_cv_type_signal
30306 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30307 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30308 if test "${ac_cv_struct_tm+set}" = set; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30311 cat >conftest.$ac_ext <<_ACEOF
30314 cat confdefs.h >>conftest.$ac_ext
30315 cat >>conftest.$ac_ext <<_ACEOF
30316 /* end confdefs.h. */
30317 #include <sys/types.h>
30323 struct tm *tp; tp->tm_sec;
30328 rm -f conftest.$ac_objext
30329 if { (ac_try="$ac_compile"
30330 case "(($ac_try" in
30331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30332 *) ac_try_echo=$ac_try;;
30334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30335 (eval "$ac_compile") 2>conftest.er1
30337 grep -v '^ *+' conftest.er1 >conftest.err
30339 cat conftest.err >&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); } &&
30342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30343 { (case "(($ac_try" in
30344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345 *) ac_try_echo=$ac_try;;
30347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348 (eval "$ac_try") 2>&5
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); }; } &&
30352 { ac_try='test -s conftest.$ac_objext'
30353 { (case "(($ac_try" in
30354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355 *) ac_try_echo=$ac_try;;
30357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358 (eval "$ac_try") 2>&5
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); }; }; then
30362 ac_cv_struct_tm=time.h
30364 echo "$as_me: failed program was:" >&5
30365 sed 's/^/| /' conftest.$ac_ext >&5
30367 ac_cv_struct_tm=sys/time.h
30370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30372 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30373 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30374 if test $ac_cv_struct_tm = sys/time.h; then
30376 cat >>confdefs.h <<\_ACEOF
30377 #define TM_IN_SYS_TIME 1
30382 { echo "$as_me:$LINENO: checking for int64_t" >&5
30383 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30384 if test "${ac_cv_type_int64_t+set}" = set; then
30385 echo $ECHO_N "(cached) $ECHO_C" >&6
30387 cat >conftest.$ac_ext <<_ACEOF
30390 cat confdefs.h >>conftest.$ac_ext
30391 cat >>conftest.$ac_ext <<_ACEOF
30392 /* end confdefs.h. */
30393 $ac_includes_default
30394 typedef int64_t ac__type_new_;
30398 if ((ac__type_new_ *) 0)
30400 if (sizeof (ac__type_new_))
30406 rm -f conftest.$ac_objext
30407 if { (ac_try="$ac_compile"
30408 case "(($ac_try" in
30409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413 (eval "$ac_compile") 2>conftest.er1
30415 grep -v '^ *+' conftest.er1 >conftest.err
30417 cat conftest.err >&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); } &&
30420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30421 { (case "(($ac_try" in
30422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423 *) ac_try_echo=$ac_try;;
30425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426 (eval "$ac_try") 2>&5
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; } &&
30430 { ac_try='test -s conftest.$ac_objext'
30431 { (case "(($ac_try" in
30432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30433 *) ac_try_echo=$ac_try;;
30435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30436 (eval "$ac_try") 2>&5
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
30440 ac_cv_type_int64_t=yes
30442 echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30445 ac_cv_type_int64_t=no
30448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30450 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30451 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30452 if test $ac_cv_type_int64_t = yes; then
30454 cat >>confdefs.h <<_ACEOF
30455 #define HAVE_INT64_T 1
30460 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30461 echo "$as_me: error: Type int64_t required but not found" >&2;}
30462 { (exit 1); exit 1; }; }
30465 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30466 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30467 if test "${ac_cv_type_uint64_t+set}" = set; then
30468 echo $ECHO_N "(cached) $ECHO_C" >&6
30470 cat >conftest.$ac_ext <<_ACEOF
30473 cat confdefs.h >>conftest.$ac_ext
30474 cat >>conftest.$ac_ext <<_ACEOF
30475 /* end confdefs.h. */
30476 $ac_includes_default
30477 typedef uint64_t ac__type_new_;
30481 if ((ac__type_new_ *) 0)
30483 if (sizeof (ac__type_new_))
30489 rm -f conftest.$ac_objext
30490 if { (ac_try="$ac_compile"
30491 case "(($ac_try" in
30492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493 *) ac_try_echo=$ac_try;;
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496 (eval "$ac_compile") 2>conftest.er1
30498 grep -v '^ *+' conftest.er1 >conftest.err
30500 cat conftest.err >&5
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); } &&
30503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30504 { (case "(($ac_try" in
30505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30506 *) ac_try_echo=$ac_try;;
30508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30509 (eval "$ac_try") 2>&5
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); }; } &&
30513 { ac_try='test -s conftest.$ac_objext'
30514 { (case "(($ac_try" in
30515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30516 *) ac_try_echo=$ac_try;;
30518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30519 (eval "$ac_try") 2>&5
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); }; }; then
30523 ac_cv_type_uint64_t=yes
30525 echo "$as_me: failed program was:" >&5
30526 sed 's/^/| /' conftest.$ac_ext >&5
30528 ac_cv_type_uint64_t=no
30531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30533 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30534 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30535 if test $ac_cv_type_uint64_t = yes; then
30537 cat >>confdefs.h <<_ACEOF
30538 #define HAVE_UINT64_T 1
30543 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30544 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30545 if test "${ac_cv_type_u_int64_t+set}" = set; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30548 cat >conftest.$ac_ext <<_ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h. */
30554 $ac_includes_default
30555 typedef u_int64_t ac__type_new_;
30559 if ((ac__type_new_ *) 0)
30561 if (sizeof (ac__type_new_))
30567 rm -f conftest.$ac_objext
30568 if { (ac_try="$ac_compile"
30569 case "(($ac_try" in
30570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571 *) ac_try_echo=$ac_try;;
30573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574 (eval "$ac_compile") 2>conftest.er1
30576 grep -v '^ *+' conftest.er1 >conftest.err
30578 cat conftest.err >&5
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); } &&
30581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30582 { (case "(($ac_try" in
30583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584 *) ac_try_echo=$ac_try;;
30586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587 (eval "$ac_try") 2>&5
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); }; } &&
30591 { ac_try='test -s conftest.$ac_objext'
30592 { (case "(($ac_try" in
30593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594 *) ac_try_echo=$ac_try;;
30596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597 (eval "$ac_try") 2>&5
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); }; }; then
30601 ac_cv_type_u_int64_t=yes
30603 echo "$as_me: failed program was:" >&5
30604 sed 's/^/| /' conftest.$ac_ext >&5
30606 ac_cv_type_u_int64_t=no
30609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30611 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30612 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30613 if test $ac_cv_type_u_int64_t = yes; then
30615 cat >>confdefs.h <<_ACEOF
30616 #define HAVE_U_INT64_T 1
30621 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30622 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30623 { (exit 1); exit 1; }; }
30637 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30643 echo $ECHO_N "(cached) $ECHO_C" >&6
30645 cat >conftest.$ac_ext <<_ACEOF
30648 cat confdefs.h >>conftest.$ac_ext
30649 cat >>conftest.$ac_ext <<_ACEOF
30650 /* end confdefs.h. */
30651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30653 #define $ac_func innocuous_$ac_func
30655 /* System header to define __stub macros and hopefully few prototypes,
30656 which can conflict with char $ac_func (); below.
30657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30658 <limits.h> exists even on freestanding compilers. */
30661 # include <limits.h>
30663 # include <assert.h>
30668 /* Override any GCC internal prototype to avoid an error.
30669 Use char because int might match the return type of a GCC
30670 builtin and then its argument prototype would still apply. */
30675 /* The GNU C library defines this for functions which it implements
30676 to always fail with ENOSYS. Some functions are actually named
30677 something starting with __ and the normal name is an alias. */
30678 #if defined __stub_$ac_func || defined __stub___$ac_func
30685 return $ac_func ();
30690 rm -f conftest.$ac_objext conftest$ac_exeext
30691 if { (ac_try="$ac_link"
30692 case "(($ac_try" in
30693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30694 *) ac_try_echo=$ac_try;;
30696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30697 (eval "$ac_link") 2>conftest.er1
30699 grep -v '^ *+' conftest.er1 >conftest.err
30701 cat conftest.err >&5
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); } &&
30704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30705 { (case "(($ac_try" in
30706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30707 *) ac_try_echo=$ac_try;;
30709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30710 (eval "$ac_try") 2>&5
30712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713 (exit $ac_status); }; } &&
30714 { ac_try='test -s conftest$ac_exeext'
30715 { (case "(($ac_try" in
30716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717 *) ac_try_echo=$ac_try;;
30719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720 (eval "$ac_try") 2>&5
30722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723 (exit $ac_status); }; }; then
30724 eval "$as_ac_var=yes"
30726 echo "$as_me: failed program was:" >&5
30727 sed 's/^/| /' conftest.$ac_ext >&5
30729 eval "$as_ac_var=no"
30732 rm -f core conftest.err conftest.$ac_objext \
30733 conftest$ac_exeext conftest.$ac_ext
30735 ac_res=`eval echo '${'$as_ac_var'}'`
30736 { echo "$as_me:$LINENO: result: $ac_res" >&5
30737 echo "${ECHO_T}$ac_res" >&6; }
30738 if test `eval echo '${'$as_ac_var'}'` = yes; then
30739 cat >>confdefs.h <<_ACEOF
30740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30750 for ac_func in powf fmodf strtof round
30752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30756 echo $ECHO_N "(cached) $ECHO_C" >&6
30758 cat >conftest.$ac_ext <<_ACEOF
30761 cat confdefs.h >>conftest.$ac_ext
30762 cat >>conftest.$ac_ext <<_ACEOF
30763 /* end confdefs.h. */
30764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30766 #define $ac_func innocuous_$ac_func
30768 /* System header to define __stub macros and hopefully few prototypes,
30769 which can conflict with char $ac_func (); below.
30770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30771 <limits.h> exists even on freestanding compilers. */
30774 # include <limits.h>
30776 # include <assert.h>
30781 /* Override any GCC internal prototype to avoid an error.
30782 Use char because int might match the return type of a GCC
30783 builtin and then its argument prototype would still apply. */
30788 /* The GNU C library defines this for functions which it implements
30789 to always fail with ENOSYS. Some functions are actually named
30790 something starting with __ and the normal name is an alias. */
30791 #if defined __stub_$ac_func || defined __stub___$ac_func
30798 return $ac_func ();
30803 rm -f conftest.$ac_objext conftest$ac_exeext
30804 if { (ac_try="$ac_link"
30805 case "(($ac_try" in
30806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807 *) ac_try_echo=$ac_try;;
30809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810 (eval "$ac_link") 2>conftest.er1
30812 grep -v '^ *+' conftest.er1 >conftest.err
30814 cat conftest.err >&5
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); } &&
30817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30818 { (case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_try") 2>&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; } &&
30827 { ac_try='test -s conftest$ac_exeext'
30828 { (case "(($ac_try" in
30829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830 *) ac_try_echo=$ac_try;;
30832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833 (eval "$ac_try") 2>&5
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); }; }; then
30837 eval "$as_ac_var=yes"
30839 echo "$as_me: failed program was:" >&5
30840 sed 's/^/| /' conftest.$ac_ext >&5
30842 eval "$as_ac_var=no"
30845 rm -f core conftest.err conftest.$ac_objext \
30846 conftest$ac_exeext conftest.$ac_ext
30848 ac_res=`eval echo '${'$as_ac_var'}'`
30849 { echo "$as_me:$LINENO: result: $ac_res" >&5
30850 echo "${ECHO_T}$ac_res" >&6; }
30851 if test `eval echo '${'$as_ac_var'}'` = yes; then
30852 cat >>confdefs.h <<_ACEOF
30853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30864 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30870 echo $ECHO_N "(cached) $ECHO_C" >&6
30872 cat >conftest.$ac_ext <<_ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h. */
30878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30880 #define $ac_func innocuous_$ac_func
30882 /* System header to define __stub macros and hopefully few prototypes,
30883 which can conflict with char $ac_func (); below.
30884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30885 <limits.h> exists even on freestanding compilers. */
30888 # include <limits.h>
30890 # include <assert.h>
30895 /* Override any GCC internal prototype to avoid an error.
30896 Use char because int might match the return type of a GCC
30897 builtin and then its argument prototype would still apply. */
30902 /* The GNU C library defines this for functions which it implements
30903 to always fail with ENOSYS. Some functions are actually named
30904 something starting with __ and the normal name is an alias. */
30905 #if defined __stub_$ac_func || defined __stub___$ac_func
30912 return $ac_func ();
30917 rm -f conftest.$ac_objext conftest$ac_exeext
30918 if { (ac_try="$ac_link"
30919 case "(($ac_try" in
30920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30921 *) ac_try_echo=$ac_try;;
30923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30924 (eval "$ac_link") 2>conftest.er1
30926 grep -v '^ *+' conftest.er1 >conftest.err
30928 cat conftest.err >&5
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); } &&
30931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30932 { (case "(($ac_try" in
30933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30934 *) ac_try_echo=$ac_try;;
30936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30937 (eval "$ac_try") 2>&5
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); }; } &&
30941 { ac_try='test -s conftest$ac_exeext'
30942 { (case "(($ac_try" in
30943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944 *) ac_try_echo=$ac_try;;
30946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947 (eval "$ac_try") 2>&5
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); }; }; then
30951 eval "$as_ac_var=yes"
30953 echo "$as_me: failed program was:" >&5
30954 sed 's/^/| /' conftest.$ac_ext >&5
30956 eval "$as_ac_var=no"
30959 rm -f core conftest.err conftest.$ac_objext \
30960 conftest$ac_exeext conftest.$ac_ext
30962 ac_res=`eval echo '${'$as_ac_var'}'`
30963 { echo "$as_me:$LINENO: result: $ac_res" >&5
30964 echo "${ECHO_T}$ac_res" >&6; }
30965 if test `eval echo '${'$as_ac_var'}'` = yes; then
30966 cat >>confdefs.h <<_ACEOF
30967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30976 for ac_func in isatty mkdtemp mkstemp
30978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30982 echo $ECHO_N "(cached) $ECHO_C" >&6
30984 cat >conftest.$ac_ext <<_ACEOF
30987 cat confdefs.h >>conftest.$ac_ext
30988 cat >>conftest.$ac_ext <<_ACEOF
30989 /* end confdefs.h. */
30990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30992 #define $ac_func innocuous_$ac_func
30994 /* System header to define __stub macros and hopefully few prototypes,
30995 which can conflict with char $ac_func (); below.
30996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30997 <limits.h> exists even on freestanding compilers. */
31000 # include <limits.h>
31002 # include <assert.h>
31007 /* Override any GCC internal prototype to avoid an error.
31008 Use char because int might match the return type of a GCC
31009 builtin and then its argument prototype would still apply. */
31014 /* The GNU C library defines this for functions which it implements
31015 to always fail with ENOSYS. Some functions are actually named
31016 something starting with __ and the normal name is an alias. */
31017 #if defined __stub_$ac_func || defined __stub___$ac_func
31024 return $ac_func ();
31029 rm -f conftest.$ac_objext conftest$ac_exeext
31030 if { (ac_try="$ac_link"
31031 case "(($ac_try" in
31032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033 *) ac_try_echo=$ac_try;;
31035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036 (eval "$ac_link") 2>conftest.er1
31038 grep -v '^ *+' conftest.er1 >conftest.err
31040 cat conftest.err >&5
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); } &&
31043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31044 { (case "(($ac_try" in
31045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046 *) ac_try_echo=$ac_try;;
31048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049 (eval "$ac_try") 2>&5
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); }; } &&
31053 { ac_try='test -s conftest$ac_exeext'
31054 { (case "(($ac_try" in
31055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056 *) ac_try_echo=$ac_try;;
31058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059 (eval "$ac_try") 2>&5
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; }; then
31063 eval "$as_ac_var=yes"
31065 echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31068 eval "$as_ac_var=no"
31071 rm -f core conftest.err conftest.$ac_objext \
31072 conftest$ac_exeext conftest.$ac_ext
31074 ac_res=`eval echo '${'$as_ac_var'}'`
31075 { echo "$as_me:$LINENO: result: $ac_res" >&5
31076 echo "${ECHO_T}$ac_res" >&6; }
31077 if test `eval echo '${'$as_ac_var'}'` = yes; then
31078 cat >>confdefs.h <<_ACEOF
31079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31092 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31098 echo $ECHO_N "(cached) $ECHO_C" >&6
31100 cat >conftest.$ac_ext <<_ACEOF
31103 cat confdefs.h >>conftest.$ac_ext
31104 cat >>conftest.$ac_ext <<_ACEOF
31105 /* end confdefs.h. */
31106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31108 #define $ac_func innocuous_$ac_func
31110 /* System header to define __stub macros and hopefully few prototypes,
31111 which can conflict with char $ac_func (); below.
31112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31113 <limits.h> exists even on freestanding compilers. */
31116 # include <limits.h>
31118 # include <assert.h>
31123 /* Override any GCC internal prototype to avoid an error.
31124 Use char because int might match the return type of a GCC
31125 builtin and then its argument prototype would still apply. */
31130 /* The GNU C library defines this for functions which it implements
31131 to always fail with ENOSYS. Some functions are actually named
31132 something starting with __ and the normal name is an alias. */
31133 #if defined __stub_$ac_func || defined __stub___$ac_func
31140 return $ac_func ();
31145 rm -f conftest.$ac_objext conftest$ac_exeext
31146 if { (ac_try="$ac_link"
31147 case "(($ac_try" in
31148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149 *) ac_try_echo=$ac_try;;
31151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152 (eval "$ac_link") 2>conftest.er1
31154 grep -v '^ *+' conftest.er1 >conftest.err
31156 cat conftest.err >&5
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); } &&
31159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31160 { (case "(($ac_try" in
31161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162 *) ac_try_echo=$ac_try;;
31164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165 (eval "$ac_try") 2>&5
31167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168 (exit $ac_status); }; } &&
31169 { ac_try='test -s conftest$ac_exeext'
31170 { (case "(($ac_try" in
31171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31172 *) ac_try_echo=$ac_try;;
31174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31175 (eval "$ac_try") 2>&5
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); }; }; then
31179 eval "$as_ac_var=yes"
31181 echo "$as_me: failed program was:" >&5
31182 sed 's/^/| /' conftest.$ac_ext >&5
31184 eval "$as_ac_var=no"
31187 rm -f core conftest.err conftest.$ac_objext \
31188 conftest$ac_exeext conftest.$ac_ext
31190 ac_res=`eval echo '${'$as_ac_var'}'`
31191 { echo "$as_me:$LINENO: result: $ac_res" >&5
31192 echo "${ECHO_T}$ac_res" >&6; }
31193 if test `eval echo '${'$as_ac_var'}'` = yes; then
31194 cat >>confdefs.h <<_ACEOF
31195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31205 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31211 echo $ECHO_N "(cached) $ECHO_C" >&6
31213 cat >conftest.$ac_ext <<_ACEOF
31216 cat confdefs.h >>conftest.$ac_ext
31217 cat >>conftest.$ac_ext <<_ACEOF
31218 /* end confdefs.h. */
31219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31221 #define $ac_func innocuous_$ac_func
31223 /* System header to define __stub macros and hopefully few prototypes,
31224 which can conflict with char $ac_func (); below.
31225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31226 <limits.h> exists even on freestanding compilers. */
31229 # include <limits.h>
31231 # include <assert.h>
31236 /* Override any GCC internal prototype to avoid an error.
31237 Use char because int might match the return type of a GCC
31238 builtin and then its argument prototype would still apply. */
31243 /* The GNU C library defines this for functions which it implements
31244 to always fail with ENOSYS. Some functions are actually named
31245 something starting with __ and the normal name is an alias. */
31246 #if defined __stub_$ac_func || defined __stub___$ac_func
31253 return $ac_func ();
31258 rm -f conftest.$ac_objext conftest$ac_exeext
31259 if { (ac_try="$ac_link"
31260 case "(($ac_try" in
31261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31262 *) ac_try_echo=$ac_try;;
31264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31265 (eval "$ac_link") 2>conftest.er1
31267 grep -v '^ *+' conftest.er1 >conftest.err
31269 cat conftest.err >&5
31270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31271 (exit $ac_status); } &&
31272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31273 { (case "(($ac_try" in
31274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275 *) ac_try_echo=$ac_try;;
31277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278 (eval "$ac_try") 2>&5
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 (exit $ac_status); }; } &&
31282 { ac_try='test -s conftest$ac_exeext'
31283 { (case "(($ac_try" in
31284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285 *) ac_try_echo=$ac_try;;
31287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288 (eval "$ac_try") 2>&5
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); }; }; then
31292 eval "$as_ac_var=yes"
31294 echo "$as_me: failed program was:" >&5
31295 sed 's/^/| /' conftest.$ac_ext >&5
31297 eval "$as_ac_var=no"
31300 rm -f core conftest.err conftest.$ac_objext \
31301 conftest$ac_exeext conftest.$ac_ext
31303 ac_res=`eval echo '${'$as_ac_var'}'`
31304 { echo "$as_me:$LINENO: result: $ac_res" >&5
31305 echo "${ECHO_T}$ac_res" >&6; }
31306 if test `eval echo '${'$as_ac_var'}'` = yes; then
31307 cat >>confdefs.h <<_ACEOF
31308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31318 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31324 echo $ECHO_N "(cached) $ECHO_C" >&6
31326 cat >conftest.$ac_ext <<_ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h. */
31332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31334 #define $ac_func innocuous_$ac_func
31336 /* System header to define __stub macros and hopefully few prototypes,
31337 which can conflict with char $ac_func (); below.
31338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31339 <limits.h> exists even on freestanding compilers. */
31342 # include <limits.h>
31344 # include <assert.h>
31349 /* Override any GCC internal prototype to avoid an error.
31350 Use char because int might match the return type of a GCC
31351 builtin and then its argument prototype would still apply. */
31356 /* The GNU C library defines this for functions which it implements
31357 to always fail with ENOSYS. Some functions are actually named
31358 something starting with __ and the normal name is an alias. */
31359 #if defined __stub_$ac_func || defined __stub___$ac_func
31366 return $ac_func ();
31371 rm -f conftest.$ac_objext conftest$ac_exeext
31372 if { (ac_try="$ac_link"
31373 case "(($ac_try" in
31374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375 *) ac_try_echo=$ac_try;;
31377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31378 (eval "$ac_link") 2>conftest.er1
31380 grep -v '^ *+' conftest.er1 >conftest.err
31382 cat conftest.err >&5
31383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384 (exit $ac_status); } &&
31385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31386 { (case "(($ac_try" in
31387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31388 *) ac_try_echo=$ac_try;;
31390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31391 (eval "$ac_try") 2>&5
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); }; } &&
31395 { ac_try='test -s conftest$ac_exeext'
31396 { (case "(($ac_try" in
31397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398 *) ac_try_echo=$ac_try;;
31400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401 (eval "$ac_try") 2>&5
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; }; then
31405 eval "$as_ac_var=yes"
31407 echo "$as_me: failed program was:" >&5
31408 sed 's/^/| /' conftest.$ac_ext >&5
31410 eval "$as_ac_var=no"
31413 rm -f core conftest.err conftest.$ac_objext \
31414 conftest$ac_exeext conftest.$ac_ext
31416 ac_res=`eval echo '${'$as_ac_var'}'`
31417 { echo "$as_me:$LINENO: result: $ac_res" >&5
31418 echo "${ECHO_T}$ac_res" >&6; }
31419 if test `eval echo '${'$as_ac_var'}'` = yes; then
31420 cat >>confdefs.h <<_ACEOF
31421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31427 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31428 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31429 if test "${llvm_cv_c_printf_a+set}" = set; then
31430 echo $ECHO_N "(cached) $ECHO_C" >&6
31433 ac_cpp='$CPP $CPPFLAGS'
31434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31438 if test "$cross_compiling" = yes; then
31439 llvmac_cv_c_printf_a=no
31441 cat >conftest.$ac_ext <<_ACEOF
31445 cat confdefs.h >>conftest.$ac_ext
31446 cat >>conftest.$ac_ext <<_ACEOF
31447 /* end confdefs.h. */
31450 #include <stdlib.h>
31456 volatile double A, B;
31460 sprintf(Buffer, "%a", A);
31464 if (A != 0x1.999999999999ap-4)
31471 rm -f conftest$ac_exeext
31472 if { (ac_try="$ac_link"
31473 case "(($ac_try" in
31474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31475 *) ac_try_echo=$ac_try;;
31477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31478 (eval "$ac_link") 2>&5
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31482 { (case "(($ac_try" in
31483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484 *) ac_try_echo=$ac_try;;
31486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487 (eval "$ac_try") 2>&5
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; }; then
31491 llvm_cv_c_printf_a=yes
31493 echo "$as_me: program exited with status $ac_status" >&5
31494 echo "$as_me: failed program was:" >&5
31495 sed 's/^/| /' conftest.$ac_ext >&5
31497 ( exit $ac_status )
31498 llvmac_cv_c_printf_a=no
31500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31505 ac_cpp='$CPP $CPPFLAGS'
31506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31511 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31512 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31513 if test "$llvm_cv_c_printf_a" = "yes"; then
31515 cat >>confdefs.h <<\_ACEOF
31516 #define HAVE_PRINTF_A 1
31521 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31522 # for constant arguments. Useless!
31523 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31524 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31525 if test "${ac_cv_working_alloca_h+set}" = set; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31528 cat >conftest.$ac_ext <<_ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h. */
31534 #include <alloca.h>
31538 char *p = (char *) alloca (2 * sizeof (int));
31544 rm -f conftest.$ac_objext conftest$ac_exeext
31545 if { (ac_try="$ac_link"
31546 case "(($ac_try" in
31547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31548 *) ac_try_echo=$ac_try;;
31550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31551 (eval "$ac_link") 2>conftest.er1
31553 grep -v '^ *+' conftest.er1 >conftest.err
31555 cat conftest.err >&5
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); } &&
31558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31559 { (case "(($ac_try" in
31560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564 (eval "$ac_try") 2>&5
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; } &&
31568 { ac_try='test -s conftest$ac_exeext'
31569 { (case "(($ac_try" in
31570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571 *) ac_try_echo=$ac_try;;
31573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574 (eval "$ac_try") 2>&5
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; }; then
31578 ac_cv_working_alloca_h=yes
31580 echo "$as_me: failed program was:" >&5
31581 sed 's/^/| /' conftest.$ac_ext >&5
31583 ac_cv_working_alloca_h=no
31586 rm -f core conftest.err conftest.$ac_objext \
31587 conftest$ac_exeext conftest.$ac_ext
31589 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31590 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31591 if test $ac_cv_working_alloca_h = yes; then
31593 cat >>confdefs.h <<\_ACEOF
31594 #define HAVE_ALLOCA_H 1
31599 { echo "$as_me:$LINENO: checking for alloca" >&5
31600 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31601 if test "${ac_cv_func_alloca_works+set}" = set; then
31602 echo $ECHO_N "(cached) $ECHO_C" >&6
31604 cat >conftest.$ac_ext <<_ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h. */
31611 # define alloca __builtin_alloca
31614 # include <malloc.h>
31615 # define alloca _alloca
31618 # include <alloca.h>
31623 # ifndef alloca /* predefined by HP cc +Olibcalls */
31634 char *p = (char *) alloca (1);
31640 rm -f conftest.$ac_objext conftest$ac_exeext
31641 if { (ac_try="$ac_link"
31642 case "(($ac_try" in
31643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644 *) ac_try_echo=$ac_try;;
31646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647 (eval "$ac_link") 2>conftest.er1
31649 grep -v '^ *+' conftest.er1 >conftest.err
31651 cat conftest.err >&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); } &&
31654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31655 { (case "(($ac_try" in
31656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657 *) ac_try_echo=$ac_try;;
31659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660 (eval "$ac_try") 2>&5
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); }; } &&
31664 { ac_try='test -s conftest$ac_exeext'
31665 { (case "(($ac_try" in
31666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31667 *) ac_try_echo=$ac_try;;
31669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31670 (eval "$ac_try") 2>&5
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; }; then
31674 ac_cv_func_alloca_works=yes
31676 echo "$as_me: failed program was:" >&5
31677 sed 's/^/| /' conftest.$ac_ext >&5
31679 ac_cv_func_alloca_works=no
31682 rm -f core conftest.err conftest.$ac_objext \
31683 conftest$ac_exeext conftest.$ac_ext
31685 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31686 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31688 if test $ac_cv_func_alloca_works = yes; then
31690 cat >>confdefs.h <<\_ACEOF
31691 #define HAVE_ALLOCA 1
31695 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31696 # that cause trouble. Some versions do not even contain alloca or
31697 # contain a buggy version. If you still want to use their alloca,
31698 # use ar to extract alloca.o from them instead of compiling alloca.c.
31700 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31702 cat >>confdefs.h <<\_ACEOF
31707 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31708 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31709 if test "${ac_cv_os_cray+set}" = set; then
31710 echo $ECHO_N "(cached) $ECHO_C" >&6
31712 cat >conftest.$ac_ext <<_ACEOF
31715 cat confdefs.h >>conftest.$ac_ext
31716 cat >>conftest.$ac_ext <<_ACEOF
31717 /* end confdefs.h. */
31718 #if defined CRAY && ! defined CRAY2
31725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31726 $EGREP "webecray" >/dev/null 2>&1; then
31734 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31735 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31736 if test $ac_cv_os_cray = yes; then
31737 for ac_func in _getb67 GETB67 getb67; do
31738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31742 echo $ECHO_N "(cached) $ECHO_C" >&6
31744 cat >conftest.$ac_ext <<_ACEOF
31747 cat confdefs.h >>conftest.$ac_ext
31748 cat >>conftest.$ac_ext <<_ACEOF
31749 /* end confdefs.h. */
31750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31752 #define $ac_func innocuous_$ac_func
31754 /* System header to define __stub macros and hopefully few prototypes,
31755 which can conflict with char $ac_func (); below.
31756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31757 <limits.h> exists even on freestanding compilers. */
31760 # include <limits.h>
31762 # include <assert.h>
31767 /* Override any GCC internal prototype to avoid an error.
31768 Use char because int might match the return type of a GCC
31769 builtin and then its argument prototype would still apply. */
31774 /* The GNU C library defines this for functions which it implements
31775 to always fail with ENOSYS. Some functions are actually named
31776 something starting with __ and the normal name is an alias. */
31777 #if defined __stub_$ac_func || defined __stub___$ac_func
31784 return $ac_func ();
31789 rm -f conftest.$ac_objext conftest$ac_exeext
31790 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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 eval "$as_ac_var=yes"
31825 echo "$as_me: failed program was:" >&5
31826 sed 's/^/| /' conftest.$ac_ext >&5
31828 eval "$as_ac_var=no"
31831 rm -f core conftest.err conftest.$ac_objext \
31832 conftest$ac_exeext conftest.$ac_ext
31834 ac_res=`eval echo '${'$as_ac_var'}'`
31835 { echo "$as_me:$LINENO: result: $ac_res" >&5
31836 echo "${ECHO_T}$ac_res" >&6; }
31837 if test `eval echo '${'$as_ac_var'}'` = yes; then
31839 cat >>confdefs.h <<_ACEOF
31840 #define CRAY_STACKSEG_END $ac_func
31849 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31850 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31851 if test "${ac_cv_c_stack_direction+set}" = set; then
31852 echo $ECHO_N "(cached) $ECHO_C" >&6
31854 if test "$cross_compiling" = yes; then
31855 ac_cv_c_stack_direction=0
31857 cat >conftest.$ac_ext <<_ACEOF
31860 cat confdefs.h >>conftest.$ac_ext
31861 cat >>conftest.$ac_ext <<_ACEOF
31862 /* end confdefs.h. */
31863 $ac_includes_default
31865 find_stack_direction ()
31867 static char *addr = 0;
31872 return find_stack_direction ();
31875 return (&dummy > addr) ? 1 : -1;
31881 return find_stack_direction () < 0;
31884 rm -f conftest$ac_exeext
31885 if { (ac_try="$ac_link"
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_link") 2>&5
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31895 { (case "(($ac_try" in
31896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897 *) ac_try_echo=$ac_try;;
31899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900 (eval "$ac_try") 2>&5
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); }; }; then
31904 ac_cv_c_stack_direction=1
31906 echo "$as_me: program exited with status $ac_status" >&5
31907 echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.$ac_ext >&5
31910 ( exit $ac_status )
31911 ac_cv_c_stack_direction=-1
31913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31918 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31919 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31921 cat >>confdefs.h <<_ACEOF
31922 #define STACK_DIRECTION $ac_cv_c_stack_direction
31929 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31930 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31931 if test "${ac_cv_func_rand48+set}" = set; then
31932 echo $ECHO_N "(cached) $ECHO_C" >&6
31935 ac_cpp='$CXXCPP $CPPFLAGS'
31936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31940 cat >conftest.$ac_ext <<_ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h. */
31946 #include <stdlib.h>
31950 srand48(0);lrand48();drand48();
31955 rm -f conftest.$ac_objext
31956 if { (ac_try="$ac_compile"
31957 case "(($ac_try" in
31958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959 *) ac_try_echo=$ac_try;;
31961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31962 (eval "$ac_compile") 2>conftest.er1
31964 grep -v '^ *+' conftest.er1 >conftest.err
31966 cat conftest.err >&5
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); } &&
31969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31970 { (case "(($ac_try" in
31971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31972 *) ac_try_echo=$ac_try;;
31974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31975 (eval "$ac_try") 2>&5
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; } &&
31979 { ac_try='test -s conftest.$ac_objext'
31980 { (case "(($ac_try" in
31981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982 *) ac_try_echo=$ac_try;;
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985 (eval "$ac_try") 2>&5
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); }; }; then
31989 ac_cv_func_rand48=yes
31991 echo "$as_me: failed program was:" >&5
31992 sed 's/^/| /' conftest.$ac_ext >&5
31994 ac_cv_func_rand48=no
31997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31999 ac_cpp='$CPP $CPPFLAGS'
32000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32005 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32006 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32008 if test "$ac_cv_func_rand48" = "yes" ; then
32010 cat >>confdefs.h <<\_ACEOF
32011 #define HAVE_RAND48 1
32017 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32018 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32019 if test "${ac_cv_cxx_namespaces+set}" = set; then
32020 echo $ECHO_N "(cached) $ECHO_C" >&6
32023 ac_cpp='$CXXCPP $CPPFLAGS'
32024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32028 cat >conftest.$ac_ext <<_ACEOF
32031 cat confdefs.h >>conftest.$ac_ext
32032 cat >>conftest.$ac_ext <<_ACEOF
32033 /* end confdefs.h. */
32034 namespace Outer { namespace Inner { int i = 0; }}
32038 using namespace Outer::Inner; return i;
32043 rm -f conftest.$ac_objext
32044 if { (ac_try="$ac_compile"
32045 case "(($ac_try" in
32046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047 *) ac_try_echo=$ac_try;;
32049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050 (eval "$ac_compile") 2>conftest.er1
32052 grep -v '^ *+' conftest.er1 >conftest.err
32054 cat conftest.err >&5
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); } &&
32057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32058 { (case "(($ac_try" in
32059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32060 *) ac_try_echo=$ac_try;;
32062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32063 (eval "$ac_try") 2>&5
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); }; } &&
32067 { ac_try='test -s conftest.$ac_objext'
32068 { (case "(($ac_try" in
32069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070 *) ac_try_echo=$ac_try;;
32072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073 (eval "$ac_try") 2>&5
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); }; }; then
32077 ac_cv_cxx_namespaces=yes
32079 echo "$as_me: failed program was:" >&5
32080 sed 's/^/| /' conftest.$ac_ext >&5
32082 ac_cv_cxx_namespaces=no
32085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32087 ac_cpp='$CPP $CPPFLAGS'
32088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32094 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32095 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32096 if test "$ac_cv_cxx_namespaces" = yes; then
32098 cat >>confdefs.h <<\_ACEOF
32099 #define HAVE_NAMESPACES
32104 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32105 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32106 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32107 echo $ECHO_N "(cached) $ECHO_C" >&6
32111 ac_cpp='$CXXCPP $CPPFLAGS'
32112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32116 cat >conftest.$ac_ext <<_ACEOF
32119 cat confdefs.h >>conftest.$ac_ext
32120 cat >>conftest.$ac_ext <<_ACEOF
32121 /* end confdefs.h. */
32122 #include <iterator>
32123 #ifdef HAVE_NAMESPACES
32124 using namespace std;
32129 iterator<int,int,int> t; return 0;
32134 rm -f conftest.$ac_objext
32135 if { (ac_try="$ac_compile"
32136 case "(($ac_try" in
32137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138 *) ac_try_echo=$ac_try;;
32140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141 (eval "$ac_compile") 2>conftest.er1
32143 grep -v '^ *+' conftest.er1 >conftest.err
32145 cat conftest.err >&5
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147 (exit $ac_status); } &&
32148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; } &&
32158 { ac_try='test -s conftest.$ac_objext'
32159 { (case "(($ac_try" in
32160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164 (eval "$ac_try") 2>&5
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; }; then
32168 ac_cv_cxx_have_std_iterator=yes
32170 echo "$as_me: failed program was:" >&5
32171 sed 's/^/| /' conftest.$ac_ext >&5
32173 ac_cv_cxx_have_std_iterator=no
32176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32178 ac_cpp='$CPP $CPPFLAGS'
32179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32185 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32186 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32187 if test "$ac_cv_cxx_have_std_iterator" = yes
32190 cat >>confdefs.h <<\_ACEOF
32191 #define HAVE_STD_ITERATOR 1
32196 cat >>confdefs.h <<\_ACEOF
32197 #define HAVE_STD_ITERATOR 0
32202 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32203 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32204 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32205 echo $ECHO_N "(cached) $ECHO_C" >&6
32209 ac_cpp='$CXXCPP $CPPFLAGS'
32210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32214 cat >conftest.$ac_ext <<_ACEOF
32217 cat confdefs.h >>conftest.$ac_ext
32218 cat >>conftest.$ac_ext <<_ACEOF
32219 /* end confdefs.h. */
32220 #include <iterator>
32221 #ifdef HAVE_NAMESPACES
32222 using namespace std;
32227 bidirectional_iterator<int,int> t; return 0;
32232 rm -f conftest.$ac_objext
32233 if { (ac_try="$ac_compile"
32234 case "(($ac_try" in
32235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32236 *) ac_try_echo=$ac_try;;
32238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32239 (eval "$ac_compile") 2>conftest.er1
32241 grep -v '^ *+' conftest.er1 >conftest.err
32243 cat conftest.err >&5
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); } &&
32246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32247 { (case "(($ac_try" in
32248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32249 *) ac_try_echo=$ac_try;;
32251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32252 (eval "$ac_try") 2>&5
32254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32255 (exit $ac_status); }; } &&
32256 { ac_try='test -s conftest.$ac_objext'
32257 { (case "(($ac_try" in
32258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32259 *) ac_try_echo=$ac_try;;
32261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32262 (eval "$ac_try") 2>&5
32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); }; }; then
32266 ac_cv_cxx_have_bi_iterator=yes
32268 echo "$as_me: failed program was:" >&5
32269 sed 's/^/| /' conftest.$ac_ext >&5
32271 ac_cv_cxx_have_bi_iterator=no
32274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32276 ac_cpp='$CPP $CPPFLAGS'
32277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32283 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32284 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32285 if test "$ac_cv_cxx_have_bi_iterator" = yes
32288 cat >>confdefs.h <<\_ACEOF
32289 #define HAVE_BI_ITERATOR 1
32294 cat >>confdefs.h <<\_ACEOF
32295 #define HAVE_BI_ITERATOR 0
32300 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32301 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32302 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32303 echo $ECHO_N "(cached) $ECHO_C" >&6
32307 ac_cpp='$CXXCPP $CPPFLAGS'
32308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32312 cat >conftest.$ac_ext <<_ACEOF
32315 cat confdefs.h >>conftest.$ac_ext
32316 cat >>conftest.$ac_ext <<_ACEOF
32317 /* end confdefs.h. */
32318 #include <iterator>
32319 #ifdef HAVE_NAMESPACES
32320 using namespace std;
32325 forward_iterator<int,int> t; return 0;
32330 rm -f conftest.$ac_objext
32331 if { (ac_try="$ac_compile"
32332 case "(($ac_try" in
32333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32334 *) ac_try_echo=$ac_try;;
32336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32337 (eval "$ac_compile") 2>conftest.er1
32339 grep -v '^ *+' conftest.er1 >conftest.err
32341 cat conftest.err >&5
32342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); } &&
32344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32345 { (case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_try") 2>&5
32352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353 (exit $ac_status); }; } &&
32354 { ac_try='test -s conftest.$ac_objext'
32355 { (case "(($ac_try" in
32356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357 *) ac_try_echo=$ac_try;;
32359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32360 (eval "$ac_try") 2>&5
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); }; }; then
32364 ac_cv_cxx_have_fwd_iterator=yes
32366 echo "$as_me: failed program was:" >&5
32367 sed 's/^/| /' conftest.$ac_ext >&5
32369 ac_cv_cxx_have_fwd_iterator=no
32372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32374 ac_cpp='$CPP $CPPFLAGS'
32375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32381 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32382 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32383 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32386 cat >>confdefs.h <<\_ACEOF
32387 #define HAVE_FWD_ITERATOR 1
32392 cat >>confdefs.h <<\_ACEOF
32393 #define HAVE_FWD_ITERATOR 0
32399 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32400 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32401 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32405 ac_cpp='$CXXCPP $CPPFLAGS'
32406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32410 cat >conftest.$ac_ext <<_ACEOF
32413 cat confdefs.h >>conftest.$ac_ext
32414 cat >>conftest.$ac_ext <<_ACEOF
32415 /* end confdefs.h. */
32425 rm -f conftest.$ac_objext
32426 if { (ac_try="$ac_compile"
32427 case "(($ac_try" in
32428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32429 *) ac_try_echo=$ac_try;;
32431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32432 (eval "$ac_compile") 2>conftest.er1
32434 grep -v '^ *+' conftest.er1 >conftest.err
32436 cat conftest.err >&5
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); } &&
32439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32440 { (case "(($ac_try" in
32441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442 *) ac_try_echo=$ac_try;;
32444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445 (eval "$ac_try") 2>&5
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; } &&
32449 { ac_try='test -s conftest.$ac_objext'
32450 { (case "(($ac_try" in
32451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452 *) ac_try_echo=$ac_try;;
32454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455 (eval "$ac_try") 2>&5
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; }; then
32459 ac_cv_func_isnan_in_math_h=yes
32461 echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32464 ac_cv_func_isnan_in_math_h=no
32467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32469 ac_cpp='$CPP $CPPFLAGS'
32470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32475 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32476 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32479 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32481 cat >>confdefs.h <<\_ACEOF
32482 #define HAVE_ISNAN_IN_MATH_H 1
32487 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32488 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32489 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32490 echo $ECHO_N "(cached) $ECHO_C" >&6
32493 ac_cpp='$CXXCPP $CPPFLAGS'
32494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32498 cat >conftest.$ac_ext <<_ACEOF
32501 cat confdefs.h >>conftest.$ac_ext
32502 cat >>conftest.$ac_ext <<_ACEOF
32503 /* end confdefs.h. */
32513 rm -f conftest.$ac_objext
32514 if { (ac_try="$ac_compile"
32515 case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_compile") 2>conftest.er1
32522 grep -v '^ *+' conftest.er1 >conftest.err
32524 cat conftest.err >&5
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); } &&
32527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32528 { (case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_try") 2>&5
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; } &&
32537 { ac_try='test -s conftest.$ac_objext'
32538 { (case "(($ac_try" in
32539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540 *) ac_try_echo=$ac_try;;
32542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543 (eval "$ac_try") 2>&5
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
32547 ac_cv_func_isnan_in_cmath=yes
32549 echo "$as_me: failed program was:" >&5
32550 sed 's/^/| /' conftest.$ac_ext >&5
32552 ac_cv_func_isnan_in_cmath=no
32555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32557 ac_cpp='$CPP $CPPFLAGS'
32558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32563 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32564 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32566 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32568 cat >>confdefs.h <<\_ACEOF
32569 #define HAVE_ISNAN_IN_CMATH 1
32574 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32575 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32576 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32577 echo $ECHO_N "(cached) $ECHO_C" >&6
32580 ac_cpp='$CXXCPP $CPPFLAGS'
32581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32585 cat >conftest.$ac_ext <<_ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h. */
32595 float f; std::isnan(f);
32600 rm -f conftest.$ac_objext
32601 if { (ac_try="$ac_compile"
32602 case "(($ac_try" in
32603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32604 *) ac_try_echo=$ac_try;;
32606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32607 (eval "$ac_compile") 2>conftest.er1
32609 grep -v '^ *+' conftest.er1 >conftest.err
32611 cat conftest.err >&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); } &&
32614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; } &&
32624 { ac_try='test -s conftest.$ac_objext'
32625 { (case "(($ac_try" in
32626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32627 *) ac_try_echo=$ac_try;;
32629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32630 (eval "$ac_try") 2>&5
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); }; }; then
32634 ac_cv_func_std_isnan_in_cmath=yes
32636 echo "$as_me: failed program was:" >&5
32637 sed 's/^/| /' conftest.$ac_ext >&5
32639 ac_cv_func_std_isnan_in_cmath=no
32642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32644 ac_cpp='$CPP $CPPFLAGS'
32645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32650 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32651 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32653 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32655 cat >>confdefs.h <<\_ACEOF
32656 #define HAVE_STD_ISNAN_IN_CMATH 1
32662 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32663 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32664 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32665 echo $ECHO_N "(cached) $ECHO_C" >&6
32668 ac_cpp='$CXXCPP $CPPFLAGS'
32669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32673 cat >conftest.$ac_ext <<_ACEOF
32676 cat confdefs.h >>conftest.$ac_ext
32677 cat >>conftest.$ac_ext <<_ACEOF
32678 /* end confdefs.h. */
32688 rm -f conftest.$ac_objext
32689 if { (ac_try="$ac_compile"
32690 case "(($ac_try" in
32691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692 *) ac_try_echo=$ac_try;;
32694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695 (eval "$ac_compile") 2>conftest.er1
32697 grep -v '^ *+' conftest.er1 >conftest.err
32699 cat conftest.err >&5
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); } &&
32702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; } &&
32712 { ac_try='test -s conftest.$ac_objext'
32713 { (case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718 (eval "$ac_try") 2>&5
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); }; }; then
32722 ac_cv_func_isinf_in_math_h=yes
32724 echo "$as_me: failed program was:" >&5
32725 sed 's/^/| /' conftest.$ac_ext >&5
32727 ac_cv_func_isinf_in_math_h=no
32730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32732 ac_cpp='$CPP $CPPFLAGS'
32733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32738 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32739 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32741 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32743 cat >>confdefs.h <<\_ACEOF
32744 #define HAVE_ISINF_IN_MATH_H 1
32749 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32750 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32751 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32752 echo $ECHO_N "(cached) $ECHO_C" >&6
32755 ac_cpp='$CXXCPP $CPPFLAGS'
32756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32760 cat >conftest.$ac_ext <<_ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h. */
32775 rm -f conftest.$ac_objext
32776 if { (ac_try="$ac_compile"
32777 case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_compile") 2>conftest.er1
32784 grep -v '^ *+' conftest.er1 >conftest.err
32786 cat conftest.err >&5
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); } &&
32789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest.$ac_objext'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
32809 ac_cv_func_isinf_in_cmath=yes
32811 echo "$as_me: failed program was:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32814 ac_cv_func_isinf_in_cmath=no
32817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32819 ac_cpp='$CPP $CPPFLAGS'
32820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32825 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32826 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32828 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32830 cat >>confdefs.h <<\_ACEOF
32831 #define HAVE_ISINF_IN_CMATH 1
32836 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32837 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32838 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32839 echo $ECHO_N "(cached) $ECHO_C" >&6
32842 ac_cpp='$CXXCPP $CPPFLAGS'
32843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32847 cat >conftest.$ac_ext <<_ACEOF
32850 cat confdefs.h >>conftest.$ac_ext
32851 cat >>conftest.$ac_ext <<_ACEOF
32852 /* end confdefs.h. */
32857 float f; std::isinf(f)}
32862 rm -f conftest.$ac_objext
32863 if { (ac_try="$ac_compile"
32864 case "(($ac_try" in
32865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32866 *) ac_try_echo=$ac_try;;
32868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32869 (eval "$ac_compile") 2>conftest.er1
32871 grep -v '^ *+' conftest.er1 >conftest.err
32873 cat conftest.err >&5
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); } &&
32876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32877 { (case "(($ac_try" in
32878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879 *) ac_try_echo=$ac_try;;
32881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32882 (eval "$ac_try") 2>&5
32884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885 (exit $ac_status); }; } &&
32886 { ac_try='test -s conftest.$ac_objext'
32887 { (case "(($ac_try" in
32888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32889 *) ac_try_echo=$ac_try;;
32891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32892 (eval "$ac_try") 2>&5
32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895 (exit $ac_status); }; }; then
32896 ac_cv_func_std_isinf_in_cmath=yes
32898 echo "$as_me: failed program was:" >&5
32899 sed 's/^/| /' conftest.$ac_ext >&5
32901 ac_cv_func_std_isinf_in_cmath=no
32904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32906 ac_cpp='$CPP $CPPFLAGS'
32907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32912 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32913 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32915 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32917 cat >>confdefs.h <<\_ACEOF
32918 #define HAVE_STD_ISINF_IN_CMATH 1
32923 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32924 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32925 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32926 echo $ECHO_N "(cached) $ECHO_C" >&6
32929 ac_cpp='$CXXCPP $CPPFLAGS'
32930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32934 cat >conftest.$ac_ext <<_ACEOF
32937 cat confdefs.h >>conftest.$ac_ext
32938 cat >>conftest.$ac_ext <<_ACEOF
32939 /* end confdefs.h. */
32940 #include <ieeefp.h>
32944 float f; finite(f);
32949 rm -f conftest.$ac_objext
32950 if { (ac_try="$ac_compile"
32951 case "(($ac_try" in
32952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32953 *) ac_try_echo=$ac_try;;
32955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32956 (eval "$ac_compile") 2>conftest.er1
32958 grep -v '^ *+' conftest.er1 >conftest.err
32960 cat conftest.err >&5
32961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32962 (exit $ac_status); } &&
32963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32964 { (case "(($ac_try" in
32965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32966 *) ac_try_echo=$ac_try;;
32968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32969 (eval "$ac_try") 2>&5
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); }; } &&
32973 { ac_try='test -s conftest.$ac_objext'
32974 { (case "(($ac_try" in
32975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976 *) ac_try_echo=$ac_try;;
32978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979 (eval "$ac_try") 2>&5
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; }; then
32983 ac_cv_func_finite_in_ieeefp_h=yes
32985 echo "$as_me: failed program was:" >&5
32986 sed 's/^/| /' conftest.$ac_ext >&5
32988 ac_cv_func_finite_in_ieeefp_h=no
32991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32993 ac_cpp='$CPP $CPPFLAGS'
32994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32999 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33000 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33002 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33004 cat >>confdefs.h <<\_ACEOF
33005 #define HAVE_FINITE_IN_IEEEFP_H 1
33012 if test "$llvm_cv_platform_type" = "Unix" ; then
33015 for ac_header in stdlib.h unistd.h
33017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33022 echo $ECHO_N "(cached) $ECHO_C" >&6
33024 ac_res=`eval echo '${'$as_ac_Header'}'`
33025 { echo "$as_me:$LINENO: result: $ac_res" >&5
33026 echo "${ECHO_T}$ac_res" >&6; }
33028 # Is the header compilable?
33029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33031 cat >conftest.$ac_ext <<_ACEOF
33034 cat confdefs.h >>conftest.$ac_ext
33035 cat >>conftest.$ac_ext <<_ACEOF
33036 /* end confdefs.h. */
33037 $ac_includes_default
33038 #include <$ac_header>
33040 rm -f conftest.$ac_objext
33041 if { (ac_try="$ac_compile"
33042 case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_compile") 2>conftest.er1
33049 grep -v '^ *+' conftest.er1 >conftest.err
33051 cat conftest.err >&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); } &&
33054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33055 { (case "(($ac_try" in
33056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33057 *) ac_try_echo=$ac_try;;
33059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33060 (eval "$ac_try") 2>&5
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; } &&
33064 { ac_try='test -s conftest.$ac_objext'
33065 { (case "(($ac_try" in
33066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067 *) ac_try_echo=$ac_try;;
33069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33070 (eval "$ac_try") 2>&5
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); }; }; then
33074 ac_header_compiler=yes
33076 echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33079 ac_header_compiler=no
33082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33084 echo "${ECHO_T}$ac_header_compiler" >&6; }
33086 # Is the header present?
33087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33089 cat >conftest.$ac_ext <<_ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h. */
33095 #include <$ac_header>
33097 if { (ac_try="$ac_cpp conftest.$ac_ext"
33098 case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33105 grep -v '^ *+' conftest.er1 >conftest.err
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } >/dev/null; then
33110 if test -s conftest.err; then
33111 ac_cpp_err=$ac_c_preproc_warn_flag
33112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33119 if test -z "$ac_cpp_err"; then
33120 ac_header_preproc=yes
33122 echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33125 ac_header_preproc=no
33128 rm -f conftest.err conftest.$ac_ext
33129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33130 echo "${ECHO_T}$ac_header_preproc" >&6; }
33132 # So? What about this header?
33133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33139 ac_header_preproc=yes
33142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33155 ## ----------------------------------- ##
33156 ## Report this to llvmbugs@cs.uiuc.edu ##
33157 ## ----------------------------------- ##
33159 ) | sed "s/^/$as_me: WARNING: /" >&2
33162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33165 echo $ECHO_N "(cached) $ECHO_C" >&6
33167 eval "$as_ac_Header=\$ac_header_preproc"
33169 ac_res=`eval echo '${'$as_ac_Header'}'`
33170 { echo "$as_me:$LINENO: result: $ac_res" >&5
33171 echo "${ECHO_T}$ac_res" >&6; }
33174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33175 cat >>confdefs.h <<_ACEOF
33176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33184 for ac_func in getpagesize
33186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33190 echo $ECHO_N "(cached) $ECHO_C" >&6
33192 cat >conftest.$ac_ext <<_ACEOF
33195 cat confdefs.h >>conftest.$ac_ext
33196 cat >>conftest.$ac_ext <<_ACEOF
33197 /* end confdefs.h. */
33198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33200 #define $ac_func innocuous_$ac_func
33202 /* System header to define __stub macros and hopefully few prototypes,
33203 which can conflict with char $ac_func (); below.
33204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33205 <limits.h> exists even on freestanding compilers. */
33208 # include <limits.h>
33210 # include <assert.h>
33215 /* Override any GCC internal prototype to avoid an error.
33216 Use char because int might match the return type of a GCC
33217 builtin and then its argument prototype would still apply. */
33222 /* The GNU C library defines this for functions which it implements
33223 to always fail with ENOSYS. Some functions are actually named
33224 something starting with __ and the normal name is an alias. */
33225 #if defined __stub_$ac_func || defined __stub___$ac_func
33232 return $ac_func ();
33237 rm -f conftest.$ac_objext conftest$ac_exeext
33238 if { (ac_try="$ac_link"
33239 case "(($ac_try" in
33240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241 *) ac_try_echo=$ac_try;;
33243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244 (eval "$ac_link") 2>conftest.er1
33246 grep -v '^ *+' conftest.er1 >conftest.err
33248 cat conftest.err >&5
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); } &&
33251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33252 { (case "(($ac_try" in
33253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33254 *) ac_try_echo=$ac_try;;
33256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33257 (eval "$ac_try") 2>&5
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); }; } &&
33261 { ac_try='test -s conftest$ac_exeext'
33262 { (case "(($ac_try" in
33263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264 *) ac_try_echo=$ac_try;;
33266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267 (eval "$ac_try") 2>&5
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); }; }; then
33271 eval "$as_ac_var=yes"
33273 echo "$as_me: failed program was:" >&5
33274 sed 's/^/| /' conftest.$ac_ext >&5
33276 eval "$as_ac_var=no"
33279 rm -f core conftest.err conftest.$ac_objext \
33280 conftest$ac_exeext conftest.$ac_ext
33282 ac_res=`eval echo '${'$as_ac_var'}'`
33283 { echo "$as_me:$LINENO: result: $ac_res" >&5
33284 echo "${ECHO_T}$ac_res" >&6; }
33285 if test `eval echo '${'$as_ac_var'}'` = yes; then
33286 cat >>confdefs.h <<_ACEOF
33287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33293 { echo "$as_me:$LINENO: checking for working mmap" >&5
33294 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33295 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33296 echo $ECHO_N "(cached) $ECHO_C" >&6
33298 if test "$cross_compiling" = yes; then
33299 ac_cv_func_mmap_fixed_mapped=no
33301 cat >conftest.$ac_ext <<_ACEOF
33304 cat confdefs.h >>conftest.$ac_ext
33305 cat >>conftest.$ac_ext <<_ACEOF
33306 /* end confdefs.h. */
33307 $ac_includes_default
33308 /* malloc might have been renamed as rpl_malloc. */
33311 /* Thanks to Mike Haertel and Jim Avera for this test.
33312 Here is a matrix of mmap possibilities:
33313 mmap private not fixed
33314 mmap private fixed at somewhere currently unmapped
33315 mmap private fixed at somewhere already mapped
33316 mmap shared not fixed
33317 mmap shared fixed at somewhere currently unmapped
33318 mmap shared fixed at somewhere already mapped
33319 For private mappings, we should verify that changes cannot be read()
33320 back from the file, nor mmap's back from the file at a different
33321 address. (There have been systems where private was not correctly
33322 implemented like the infamous i386 svr4.0, and systems where the
33323 VM page cache was not coherent with the file system buffer cache
33324 like early versions of FreeBSD and possibly contemporary NetBSD.)
33325 For shared mappings, we should conversely verify that changes get
33326 propagated back to all the places they're supposed to be.
33328 Grep wants private fixed already mapped.
33329 The main things grep needs to know about mmap are:
33330 * does it exist and is it safe to write into the mmap'd area
33331 * how to use it (BSD variants) */
33334 #include <sys/mman.h>
33336 #if !STDC_HEADERS && !HAVE_STDLIB_H
33340 /* This mess was copied from the GNU getpagesize.h. */
33341 #if !HAVE_GETPAGESIZE
33342 /* Assume that all systems that can run configure have sys/param.h. */
33343 # if !HAVE_SYS_PARAM_H
33344 # define HAVE_SYS_PARAM_H 1
33347 # ifdef _SC_PAGESIZE
33348 # define getpagesize() sysconf(_SC_PAGESIZE)
33349 # else /* no _SC_PAGESIZE */
33350 # if HAVE_SYS_PARAM_H
33351 # include <sys/param.h>
33352 # ifdef EXEC_PAGESIZE
33353 # define getpagesize() EXEC_PAGESIZE
33354 # else /* no EXEC_PAGESIZE */
33356 # define getpagesize() NBPG * CLSIZE
33359 # endif /* no CLSIZE */
33360 # else /* no NBPG */
33362 # define getpagesize() NBPC
33363 # else /* no NBPC */
33365 # define getpagesize() PAGESIZE
33366 # endif /* PAGESIZE */
33367 # endif /* no NBPC */
33368 # endif /* no NBPG */
33369 # endif /* no EXEC_PAGESIZE */
33370 # else /* no HAVE_SYS_PARAM_H */
33371 # define getpagesize() 8192 /* punt totally */
33372 # endif /* no HAVE_SYS_PARAM_H */
33373 # endif /* no _SC_PAGESIZE */
33375 #endif /* no HAVE_GETPAGESIZE */
33380 char *data, *data2, *data3;
33384 pagesize = getpagesize ();
33386 /* First, make a file with some known garbage in it. */
33387 data = (char *) malloc (pagesize);
33390 for (i = 0; i < pagesize; ++i)
33391 *(data + i) = rand ();
33393 fd = creat ("conftest.mmap", 0600);
33396 if (write (fd, data, pagesize) != pagesize)
33400 /* Next, try to mmap the file at a fixed address which already has
33401 something else allocated at it. If we can, also make sure that
33402 we see the same garbage. */
33403 fd = open ("conftest.mmap", O_RDWR);
33406 data2 = (char *) malloc (2 * pagesize);
33409 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33410 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33411 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33413 for (i = 0; i < pagesize; ++i)
33414 if (*(data + i) != *(data2 + i))
33417 /* Finally, make sure that changes to the mapped area do not
33418 percolate back to the file as seen by read(). (This is a bug on
33419 some variants of i386 svr4.0.) */
33420 for (i = 0; i < pagesize; ++i)
33421 *(data2 + i) = *(data2 + i) + 1;
33422 data3 = (char *) malloc (pagesize);
33425 if (read (fd, data3, pagesize) != pagesize)
33427 for (i = 0; i < pagesize; ++i)
33428 if (*(data + i) != *(data3 + i))
33434 rm -f conftest$ac_exeext
33435 if { (ac_try="$ac_link"
33436 case "(($ac_try" in
33437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438 *) ac_try_echo=$ac_try;;
33440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441 (eval "$ac_link") 2>&5
33443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33445 { (case "(($ac_try" in
33446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447 *) ac_try_echo=$ac_try;;
33449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450 (eval "$ac_try") 2>&5
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); }; }; then
33454 ac_cv_func_mmap_fixed_mapped=yes
33456 echo "$as_me: program exited with status $ac_status" >&5
33457 echo "$as_me: failed program was:" >&5
33458 sed 's/^/| /' conftest.$ac_ext >&5
33460 ( exit $ac_status )
33461 ac_cv_func_mmap_fixed_mapped=no
33463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33468 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33469 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33470 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33472 cat >>confdefs.h <<\_ACEOF
33473 #define HAVE_MMAP 1
33477 rm -f conftest.mmap
33479 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33480 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33481 if test "${ac_cv_func_mmap_file+set}" = set; then
33482 echo $ECHO_N "(cached) $ECHO_C" >&6
33485 ac_cpp='$CPP $CPPFLAGS'
33486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33490 if test "$cross_compiling" = yes; then
33491 ac_cv_func_mmap_file=no
33493 cat >conftest.$ac_ext <<_ACEOF
33497 cat confdefs.h >>conftest.$ac_ext
33498 cat >>conftest.$ac_ext <<_ACEOF
33499 /* end confdefs.h. */
33501 #include <sys/types.h>
33502 #include <sys/mman.h>
33510 fd = creat ("foo",0777);
33511 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33513 return (fd != (int) MAP_FAILED);
33518 rm -f conftest$ac_exeext
33519 if { (ac_try="$ac_link"
33520 case "(($ac_try" in
33521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33522 *) ac_try_echo=$ac_try;;
33524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33525 (eval "$ac_link") 2>&5
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33529 { (case "(($ac_try" in
33530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33531 *) ac_try_echo=$ac_try;;
33533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33534 (eval "$ac_try") 2>&5
33536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); }; }; then
33538 ac_cv_func_mmap_file=yes
33540 echo "$as_me: program exited with status $ac_status" >&5
33541 echo "$as_me: failed program was:" >&5
33542 sed 's/^/| /' conftest.$ac_ext >&5
33544 ( exit $ac_status )
33545 ac_cv_func_mmap_file=no
33547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33552 ac_cpp='$CPP $CPPFLAGS'
33553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33559 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33560 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33561 if test "$ac_cv_func_mmap_file" = yes; then
33563 cat >>confdefs.h <<\_ACEOF
33564 #define HAVE_MMAP_FILE
33571 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33572 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33573 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33574 echo $ECHO_N "(cached) $ECHO_C" >&6
33576 if test "$llvm_cv_os_type" = "Interix" ; then
33577 ac_cv_need_dev_zero_for_mmap=yes
33579 ac_cv_need_dev_zero_for_mmap=no
33583 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33584 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33585 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33587 cat >>confdefs.h <<\_ACEOF
33588 #define NEED_DEV_ZERO_FOR_MMAP 1
33593 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33595 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33596 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33598 if test "$ac_cv_func_mmap_file" = "no"
33600 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33601 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33605 if test "$ENABLE_THREADS" -eq 1 ; then
33606 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
33607 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
33608 cat >conftest.$ac_ext <<_ACEOF
33611 cat confdefs.h >>conftest.$ac_ext
33612 cat >>conftest.$ac_ext <<_ACEOF
33613 /* end confdefs.h. */
33615 volatile unsigned long val = 1;
33616 __sync_synchronize();
33617 __sync_val_compare_and_swap(&val, 1, 0);
33622 rm -f conftest.$ac_objext conftest$ac_exeext
33623 if { (ac_try="$ac_link"
33624 case "(($ac_try" in
33625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33626 *) ac_try_echo=$ac_try;;
33628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33629 (eval "$ac_link") 2>conftest.er1
33631 grep -v '^ *+' conftest.er1 >conftest.err
33633 cat conftest.err >&5
33634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635 (exit $ac_status); } &&
33636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33637 { (case "(($ac_try" in
33638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33639 *) ac_try_echo=$ac_try;;
33641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33642 (eval "$ac_try") 2>&5
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); }; } &&
33646 { ac_try='test -s conftest$ac_exeext'
33647 { (case "(($ac_try" in
33648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33649 *) ac_try_echo=$ac_try;;
33651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33652 (eval "$ac_try") 2>&5
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); }; }; then
33656 { echo "$as_me:$LINENO: result: yes" >&5
33657 echo "${ECHO_T}yes" >&6; }
33659 echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33662 { echo "$as_me:$LINENO: result: no" >&5
33663 echo "${ECHO_T}no" >&6; }
33666 { echo "$as_me:$LINENO: WARNING: Threading support disabled because atomic builtins are missing" >&5
33667 echo "$as_me: WARNING: Threading support disabled because atomic builtins are missing" >&2;}
33670 rm -f core conftest.err conftest.$ac_objext \
33671 conftest$ac_exeext conftest.$ac_ext
33675 cat >>confdefs.h <<_ACEOF
33676 #define ENABLE_THREADS $ENABLE_THREADS
33682 for ac_func in __dso_handle
33684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33688 echo $ECHO_N "(cached) $ECHO_C" >&6
33690 cat >conftest.$ac_ext <<_ACEOF
33693 cat confdefs.h >>conftest.$ac_ext
33694 cat >>conftest.$ac_ext <<_ACEOF
33695 /* end confdefs.h. */
33696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33698 #define $ac_func innocuous_$ac_func
33700 /* System header to define __stub macros and hopefully few prototypes,
33701 which can conflict with char $ac_func (); below.
33702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33703 <limits.h> exists even on freestanding compilers. */
33706 # include <limits.h>
33708 # include <assert.h>
33713 /* Override any GCC internal prototype to avoid an error.
33714 Use char because int might match the return type of a GCC
33715 builtin and then its argument prototype would still apply. */
33720 /* The GNU C library defines this for functions which it implements
33721 to always fail with ENOSYS. Some functions are actually named
33722 something starting with __ and the normal name is an alias. */
33723 #if defined __stub_$ac_func || defined __stub___$ac_func
33730 return $ac_func ();
33735 rm -f conftest.$ac_objext conftest$ac_exeext
33736 if { (ac_try="$ac_link"
33737 case "(($ac_try" in
33738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739 *) ac_try_echo=$ac_try;;
33741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742 (eval "$ac_link") 2>conftest.er1
33744 grep -v '^ *+' conftest.er1 >conftest.err
33746 cat conftest.err >&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); } &&
33749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33750 { (case "(($ac_try" in
33751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752 *) ac_try_echo=$ac_try;;
33754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755 (eval "$ac_try") 2>&5
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; } &&
33759 { ac_try='test -s conftest$ac_exeext'
33760 { (case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_try") 2>&5
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); }; }; then
33769 eval "$as_ac_var=yes"
33771 echo "$as_me: failed program was:" >&5
33772 sed 's/^/| /' conftest.$ac_ext >&5
33774 eval "$as_ac_var=no"
33777 rm -f core conftest.err conftest.$ac_objext \
33778 conftest$ac_exeext conftest.$ac_ext
33780 ac_res=`eval echo '${'$as_ac_var'}'`
33781 { echo "$as_me:$LINENO: result: $ac_res" >&5
33782 echo "${ECHO_T}$ac_res" >&6; }
33783 if test `eval echo '${'$as_ac_var'}'` = yes; then
33784 cat >>confdefs.h <<_ACEOF
33785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33792 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33793 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33794 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33795 echo $ECHO_N "(cached) $ECHO_C" >&6
33797 llvm_cv_llvmgcc_sanity="no"
33798 if test -x "$LLVMGCC" ; then
33799 cp /dev/null conftest.c
33800 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33801 grep 'target datalayout =' > /dev/null 2>&1
33802 if test $? -eq 0 ; then
33803 llvm_cv_llvmgcc_sanity="yes"
33808 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33809 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33811 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33812 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33813 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33814 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33815 LLVMCC1=$llvmcc1path
33817 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33818 LLVMCC1PLUS=$llvmcc1pluspath
33820 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33821 LLVMGCCDIR=$llvmgccdir
33823 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33824 LLVMGCCLIBEXEC=$llvmgcclibexec
33826 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33827 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33828 LLVMGCC_VERSION=$llvmgccversion
33830 LLVMGCC_MAJVERS=$llvmgccmajvers
33832 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33833 LLVMGCC_LANGS=$llvmgcclangs
33835 { echo "$as_me:$LINENO: result: ok" >&5
33836 echo "${ECHO_T}ok" >&6; }
33839 SHLIBEXT=$libltdl_cv_shlibext
33842 # Translate the various configuration directories and other basic
33843 # information into substitutions that will end up in Makefile.config.in
33844 # that these configured values can be used by the makefiles
33845 if test "${prefix}" = "NONE" ; then
33846 prefix="/usr/local"
33848 eval LLVM_PREFIX="${prefix}";
33849 eval LLVM_BINDIR="${prefix}/bin";
33850 eval LLVM_LIBDIR="${prefix}/lib";
33851 eval LLVM_DATADIR="${prefix}/share/llvm";
33852 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33853 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33854 eval LLVM_INCLUDEDIR="${prefix}/include";
33855 eval LLVM_INFODIR="${prefix}/info";
33856 eval LLVM_MANDIR="${prefix}/man";
33857 LLVM_CONFIGTIME=`date`
33869 # Place the various directores into the config.h file as #defines so that we
33870 # can know about the installation paths within LLVM.
33872 cat >>confdefs.h <<_ACEOF
33873 #define LLVM_PREFIX "$LLVM_PREFIX"
33877 cat >>confdefs.h <<_ACEOF
33878 #define LLVM_BINDIR "$LLVM_BINDIR"
33882 cat >>confdefs.h <<_ACEOF
33883 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33887 cat >>confdefs.h <<_ACEOF
33888 #define LLVM_DATADIR "$LLVM_DATADIR"
33892 cat >>confdefs.h <<_ACEOF
33893 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33897 cat >>confdefs.h <<_ACEOF
33898 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33902 cat >>confdefs.h <<_ACEOF
33903 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33907 cat >>confdefs.h <<_ACEOF
33908 #define LLVM_INFODIR "$LLVM_INFODIR"
33912 cat >>confdefs.h <<_ACEOF
33913 #define LLVM_MANDIR "$LLVM_MANDIR"
33917 cat >>confdefs.h <<_ACEOF
33918 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33922 cat >>confdefs.h <<_ACEOF
33923 #define LLVM_HOSTTRIPLE "$host"
33927 # Determine which bindings to build.
33928 if test "$BINDINGS_TO_BUILD" = auto ; then
33929 BINDINGS_TO_BUILD=""
33930 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33931 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33934 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33937 # This isn't really configurey, but it avoids having to repeat the list in
33942 # Do any work necessary to ensure that bindings have what they need.
33943 binding_prereqs_failed=0
33944 for a_binding in $BINDINGS_TO_BUILD ; do
33945 case "$a_binding" in
33947 if test "x$OCAMLC" = x ; then
33948 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33949 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33950 binding_prereqs_failed=1
33952 if test "x$OCAMLDEP" = x ; then
33953 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33954 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33955 binding_prereqs_failed=1
33957 if test "x$OCAMLOPT" = x ; then
33958 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33959 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33961 if test "x$with_ocaml_libdir" != xauto ; then
33962 OCAML_LIBDIR=$with_ocaml_libdir
33965 ocaml_stdlib="`"$OCAMLC" -where`"
33966 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33968 # ocaml stdlib is beneath our prefix; use stdlib
33969 OCAML_LIBDIR=$ocaml_stdlib
33972 # ocaml stdlib is outside our prefix; use libdir/ocaml
33973 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33980 if test "$binding_prereqs_failed" = 1 ; then
33981 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33982 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33983 { (exit 1); exit 1; }; }
33986 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33987 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33988 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33989 echo $ECHO_N "(cached) $ECHO_C" >&6
33992 ac_cpp='$CXXCPP $CPPFLAGS'
33993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33997 oldcxxflags="$CXXFLAGS"
33998 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33999 cat >conftest.$ac_ext <<_ACEOF
34002 cat confdefs.h >>conftest.$ac_ext
34003 cat >>conftest.$ac_ext <<_ACEOF
34004 /* end confdefs.h. */
34014 rm -f conftest.$ac_objext
34015 if { (ac_try="$ac_compile"
34016 case "(($ac_try" in
34017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018 *) ac_try_echo=$ac_try;;
34020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021 (eval "$ac_compile") 2>conftest.er1
34023 grep -v '^ *+' conftest.er1 >conftest.err
34025 cat conftest.err >&5
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); } &&
34028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34029 { (case "(($ac_try" in
34030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34031 *) ac_try_echo=$ac_try;;
34033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34034 (eval "$ac_try") 2>&5
34036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037 (exit $ac_status); }; } &&
34038 { ac_try='test -s conftest.$ac_objext'
34039 { (case "(($ac_try" in
34040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34041 *) ac_try_echo=$ac_try;;
34043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34044 (eval "$ac_try") 2>&5
34046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047 (exit $ac_status); }; }; then
34048 llvm_cv_cxx_visibility_inlines_hidden=yes
34050 echo "$as_me: failed program was:" >&5
34051 sed 's/^/| /' conftest.$ac_ext >&5
34053 llvm_cv_cxx_visibility_inlines_hidden=no
34056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34057 CXXFLAGS="$oldcxxflags"
34059 ac_cpp='$CPP $CPPFLAGS'
34060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34066 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34067 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34068 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34069 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34072 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34077 if test "$llvm_cv_link_use_r" = "yes" ; then
34084 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34085 RDYNAMIC="-Wl,-export-dynamic"
34092 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34094 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34096 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34099 ac_config_files="$ac_config_files Makefile.config"
34102 ac_config_files="$ac_config_files llvm.spec"
34105 ac_config_files="$ac_config_files docs/doxygen.cfg"
34108 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34111 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34114 ac_config_commands="$ac_config_commands setup"
34116 ac_config_commands="$ac_config_commands Makefile"
34119 ac_config_commands="$ac_config_commands Makefile.common"
34122 ac_config_commands="$ac_config_commands examples/Makefile"
34125 ac_config_commands="$ac_config_commands lib/Makefile"
34128 ac_config_commands="$ac_config_commands runtime/Makefile"
34131 ac_config_commands="$ac_config_commands test/Makefile"
34134 ac_config_commands="$ac_config_commands test/Makefile.tests"
34137 ac_config_commands="$ac_config_commands unittests/Makefile"
34140 ac_config_commands="$ac_config_commands tools/Makefile"
34143 ac_config_commands="$ac_config_commands utils/Makefile"
34146 ac_config_commands="$ac_config_commands projects/Makefile"
34149 ac_config_commands="$ac_config_commands bindings/Makefile"
34152 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34156 cat >confcache <<\_ACEOF
34157 # This file is a shell script that caches the results of configure
34158 # tests run on this system so they can be shared between configure
34159 # scripts and configure runs, see configure's option --config-cache.
34160 # It is not useful on other systems. If it contains results you don't
34161 # want to keep, you may remove or edit it.
34163 # config.status only pays attention to the cache file if you give it
34164 # the --recheck option to rerun configure.
34166 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34167 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34168 # following values.
34172 # The following way of writing the cache mishandles newlines in values,
34173 # but we know of no workaround that is simple, portable, and efficient.
34174 # So, we kill variables containing newlines.
34175 # Ultrix sh set writes to stderr and can't be redirected directly,
34176 # and sets the high bit in the cache file unless we assign to the vars.
34178 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34179 eval ac_val=\$$ac_var
34183 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34184 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34187 _ | IFS | as_nl) ;; #(
34188 *) $as_unset $ac_var ;;
34194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34195 *${as_nl}ac_space=\ *)
34196 # `set' does not quote correctly, so add quotes (double-quote
34197 # substitution turns \\\\ into \\, and sed turns \\ into \).
34200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34203 # `set' quotes correctly as required by POSIX, so do not add quotes.
34204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34218 if test -w "$cache_file"; then
34219 test "x$cache_file" != "x/dev/null" &&
34220 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34221 echo "$as_me: updating cache $cache_file" >&6;}
34222 cat confcache >$cache_file
34224 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34225 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34231 # Let make expand exec_prefix.
34232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34234 DEFS=-DHAVE_CONFIG_H
34238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34239 # 1. Remove the extension, and $U if already installed.
34240 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34241 ac_i=`echo "$ac_i" | sed "$ac_script"`
34242 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34243 # will be set to the directory where LIBOBJS objects are built.
34244 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34245 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34247 LIBOBJS=$ac_libobjs
34249 LTLIBOBJS=$ac_ltlibobjs
34252 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34253 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34254 Usually this means the macro was only invoked conditionally." >&5
34255 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34256 Usually this means the macro was only invoked conditionally." >&2;}
34257 { (exit 1); exit 1; }; }
34259 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34260 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34261 Usually this means the macro was only invoked conditionally." >&5
34262 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34263 Usually this means the macro was only invoked conditionally." >&2;}
34264 { (exit 1); exit 1; }; }
34267 : ${CONFIG_STATUS=./config.status}
34268 ac_clean_files_save=$ac_clean_files
34269 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34270 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34271 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34272 cat >$CONFIG_STATUS <<_ACEOF
34274 # Generated by $as_me.
34275 # Run this file to recreate the current configuration.
34276 # Compiler output produced by configure, useful for debugging
34277 # configure, is in config.log if it exists.
34280 ac_cs_recheck=false
34282 SHELL=\${CONFIG_SHELL-$SHELL}
34285 cat >>$CONFIG_STATUS <<\_ACEOF
34286 ## --------------------- ##
34287 ## M4sh Initialization. ##
34288 ## --------------------- ##
34290 # Be Bourne compatible
34291 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34294 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34295 # is contrary to our usage. Disable this feature.
34296 alias -g '${1+"$@"}'='"$@"'
34297 setopt NO_GLOB_SUBST
34299 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34301 BIN_SH=xpg4; export BIN_SH # for Tru64
34302 DUALCASE=1; export DUALCASE # for MKS sh
34306 # Avoid depending upon Character Ranges.
34307 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34310 as_cr_digits='0123456789'
34311 as_cr_alnum=$as_cr_Letters$as_cr_digits
34313 # The user is always right.
34314 if test "${PATH_SEPARATOR+set}" != set; then
34315 echo "#! /bin/sh" >conf$$.sh
34316 echo "exit 0" >>conf$$.sh
34318 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34326 # Support unset when possible.
34327 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34335 # We need space, tab and new line, in precisely that order. Quoting is
34336 # there to prevent editors from complaining about space-tab.
34337 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34338 # splitting by setting IFS to empty value.)
34343 # Find who we are. Look in the path if we contain no directory separator.
34345 *[\\/]* ) as_myself=$0 ;;
34346 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34347 for as_dir in $PATH
34350 test -z "$as_dir" && as_dir=.
34351 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34357 # We did not find ourselves, most probably we were run as `sh COMMAND'
34358 # in which case we are not to be found in the path.
34359 if test "x$as_myself" = x; then
34362 if test ! -f "$as_myself"; then
34363 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34364 { (exit 1); exit 1; }
34367 # Work around bugs in pre-3.0 UWIN ksh.
34368 for as_var in ENV MAIL MAILPATH
34369 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34377 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34378 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34379 LC_TELEPHONE LC_TIME
34381 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34382 eval $as_var=C; export $as_var
34384 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34388 # Required to use basename.
34389 if expr a : '\(a\)' >/dev/null 2>&1 &&
34390 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34396 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34397 as_basename=basename
34403 # Name of the executable.
34404 as_me=`$as_basename -- "$0" ||
34405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34406 X"$0" : 'X\(//\)$' \| \
34407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34409 sed '/^.*\/\([^/][^/]*\)\/*$/{
34428 as_lineno_1=$LINENO
34429 as_lineno_2=$LINENO
34430 test "x$as_lineno_1" != "x$as_lineno_2" &&
34431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34434 # uniformly replaced by the line number. The first 'sed' inserts a
34435 # line-number line after each line using $LINENO; the second 'sed'
34436 # does the real work. The second script uses 'N' to pair each
34437 # line-number line with the line containing $LINENO, and appends
34438 # trailing '-' during substitution so that $LINENO is not a special
34439 # case at line end.
34440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34441 # scripts with optimization help from Paolo Bonzini. Blame Lee
34442 # E. McMahon (1931-1989) for sed's syntax. :-)
34454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34457 ' >$as_me.lineno &&
34458 chmod +x "$as_me.lineno" ||
34459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34460 { (exit 1); exit 1; }; }
34462 # Don't try to exec as it changes $[0], causing all sort of problems
34463 # (the dirname of $[0] is not the place where we might find the
34464 # original and so on. Autoconf is especially sensitive to this).
34465 . "./$as_me.lineno"
34466 # Exit status is that of the last command.
34471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34477 ECHO_C= ECHO_N= ECHO_T=
34478 case `echo -n x` in
34480 case `echo 'x\c'` in
34481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34488 if expr a : '\(a\)' >/dev/null 2>&1 &&
34489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34495 rm -f conf$$ conf$$.exe conf$$.file
34496 if test -d conf$$.dir; then
34497 rm -f conf$$.dir/conf$$.file
34503 if ln -s conf$$.file conf$$ 2>/dev/null; then
34505 # ... but there are two gotchas:
34506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34508 # In both cases, we have to default to `cp -p'.
34509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34511 elif ln conf$$.file conf$$ 2>/dev/null; then
34516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34517 rmdir conf$$.dir 2>/dev/null
34519 if mkdir -p . 2>/dev/null; then
34522 test -d ./-p && rmdir ./-p
34526 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34527 # systems may use methods other than mode bits to determine executability.
34528 cat >conf$$.file <<_ASEOF
34532 chmod +x conf$$.file
34533 if test -x conf$$.file >/dev/null 2>&1; then
34534 as_executable_p="test -x"
34540 # Sed expression to map a string onto a valid CPP name.
34541 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34543 # Sed expression to map a string onto a valid variable name.
34544 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34549 # Save the log message, to keep $[0] and so on meaningful, and to
34550 # report actual input values of CONFIG_FILES etc. instead of their
34551 # values after options handling.
34553 This file was extended by llvm $as_me 2.6svn, which was
34554 generated by GNU Autoconf 2.60. Invocation command line was
34556 CONFIG_FILES = $CONFIG_FILES
34557 CONFIG_HEADERS = $CONFIG_HEADERS
34558 CONFIG_LINKS = $CONFIG_LINKS
34559 CONFIG_COMMANDS = $CONFIG_COMMANDS
34562 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34567 cat >>$CONFIG_STATUS <<_ACEOF
34568 # Files that config.status was made for.
34569 config_files="$ac_config_files"
34570 config_headers="$ac_config_headers"
34571 config_commands="$ac_config_commands"
34575 cat >>$CONFIG_STATUS <<\_ACEOF
34577 \`$as_me' instantiates files from templates according to the
34578 current configuration.
34580 Usage: $0 [OPTIONS] [FILE]...
34582 -h, --help print this help, then exit
34583 -V, --version print version number, then exit
34584 -q, --quiet do not print progress messages
34585 -d, --debug don't remove temporary files
34586 --recheck update $as_me by reconfiguring in the same conditions
34587 --file=FILE[:TEMPLATE]
34588 instantiate the configuration file FILE
34589 --header=FILE[:TEMPLATE]
34590 instantiate the configuration header FILE
34592 Configuration files:
34595 Configuration headers:
34598 Configuration commands:
34601 Report bugs to <bug-autoconf@gnu.org>."
34604 cat >>$CONFIG_STATUS <<_ACEOF
34606 llvm config.status 2.6svn
34607 configured by $0, generated by GNU Autoconf 2.60,
34608 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34610 Copyright (C) 2006 Free Software Foundation, Inc.
34611 This config.status script is free software; the Free Software Foundation
34612 gives unlimited permission to copy, distribute and modify it."
34619 cat >>$CONFIG_STATUS <<\_ACEOF
34620 # If no file are specified by the user, then we need to provide default
34621 # value. By we need to know if files were specified by the user.
34627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34628 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34639 # Handling of the options.
34640 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34642 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34643 echo "$ac_cs_version"; exit ;;
34644 --debug | --debu | --deb | --de | --d | -d )
34646 --file | --fil | --fi | --f )
34648 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34649 ac_need_defaults=false;;
34650 --header | --heade | --head | --hea )
34652 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34653 ac_need_defaults=false;;
34655 # Conflict between --help and --header
34656 { echo "$as_me: error: ambiguous option: $1
34657 Try \`$0 --help' for more information." >&2
34658 { (exit 1); exit 1; }; };;
34659 --help | --hel | -h )
34660 echo "$ac_cs_usage"; exit ;;
34661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34662 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34665 # This is an error.
34666 -*) { echo "$as_me: error: unrecognized option: $1
34667 Try \`$0 --help' for more information." >&2
34668 { (exit 1); exit 1; }; } ;;
34670 *) ac_config_targets="$ac_config_targets $1"
34671 ac_need_defaults=false ;;
34677 ac_configure_extra_args=
34679 if $ac_cs_silent; then
34681 ac_configure_extra_args="$ac_configure_extra_args --silent"
34685 cat >>$CONFIG_STATUS <<_ACEOF
34686 if \$ac_cs_recheck; then
34687 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34688 CONFIG_SHELL=$SHELL
34689 export CONFIG_SHELL
34690 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34694 cat >>$CONFIG_STATUS <<\_ACEOF
34698 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34699 ## Running $as_me. ##
34705 cat >>$CONFIG_STATUS <<_ACEOF
34709 llvm_src="${srcdir}"
34713 cat >>$CONFIG_STATUS <<\_ACEOF
34715 # Handling of arguments.
34716 for ac_config_target in $ac_config_targets
34718 case $ac_config_target in
34719 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34720 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34721 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34722 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34723 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34724 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34725 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
34726 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34727 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34728 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34729 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34730 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34731 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34732 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34733 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34734 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34735 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34736 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34737 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34738 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34739 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34740 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34742 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34743 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34744 { (exit 1); exit 1; }; };;
34749 # If the user did not use the arguments to specify the items to instantiate,
34750 # then the envvar interface is used. Set only those that are not.
34751 # We use the long form for the default assignment because of an extremely
34752 # bizarre bug on SunOS 4.1.3.
34753 if $ac_need_defaults; then
34754 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34755 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34756 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34759 # Have a temporary directory for convenience. Make it in the build tree
34760 # simply because there is no reason against having it here, and in addition,
34761 # creating and moving files from /tmp can sometimes cause problems.
34762 # Hook for its removal unless debugging.
34763 # Note that there is a small window in which the directory will not be cleaned:
34764 # after its creation but before its name has been assigned to `$tmp'.
34768 trap 'exit_status=$?
34769 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34771 trap '{ (exit 1); exit 1; }' 1 2 13 15
34773 # Create a (secure) tmp directory for tmp files.
34776 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34777 test -n "$tmp" && test -d "$tmp"
34780 tmp=./conf$$-$RANDOM
34781 (umask 077 && mkdir "$tmp")
34784 echo "$me: cannot create a temporary directory in ." >&2
34785 { (exit 1); exit 1; }
34789 # Set up the sed scripts for CONFIG_FILES section.
34792 # No need to generate the scripts if there are no CONFIG_FILES.
34793 # This happens for instance when ./config.status config.h
34794 if test -n "$CONFIG_FILES"; then
34801 for ac_last_try in false false false false false :; do
34802 cat >conf$$subs.sed <<_ACEOF
34803 SHELL!$SHELL$ac_delim
34804 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34805 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34806 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34807 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34808 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34809 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34810 exec_prefix!$exec_prefix$ac_delim
34811 prefix!$prefix$ac_delim
34812 program_transform_name!$program_transform_name$ac_delim
34813 bindir!$bindir$ac_delim
34814 sbindir!$sbindir$ac_delim
34815 libexecdir!$libexecdir$ac_delim
34816 datarootdir!$datarootdir$ac_delim
34817 datadir!$datadir$ac_delim
34818 sysconfdir!$sysconfdir$ac_delim
34819 sharedstatedir!$sharedstatedir$ac_delim
34820 localstatedir!$localstatedir$ac_delim
34821 includedir!$includedir$ac_delim
34822 oldincludedir!$oldincludedir$ac_delim
34823 docdir!$docdir$ac_delim
34824 infodir!$infodir$ac_delim
34825 htmldir!$htmldir$ac_delim
34826 dvidir!$dvidir$ac_delim
34827 pdfdir!$pdfdir$ac_delim
34828 psdir!$psdir$ac_delim
34829 libdir!$libdir$ac_delim
34830 localedir!$localedir$ac_delim
34831 mandir!$mandir$ac_delim
34832 DEFS!$DEFS$ac_delim
34833 ECHO_C!$ECHO_C$ac_delim
34834 ECHO_N!$ECHO_N$ac_delim
34835 ECHO_T!$ECHO_T$ac_delim
34836 LIBS!$LIBS$ac_delim
34837 build_alias!$build_alias$ac_delim
34838 host_alias!$host_alias$ac_delim
34839 target_alias!$target_alias$ac_delim
34840 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34841 subdirs!$subdirs$ac_delim
34842 build!$build$ac_delim
34843 build_cpu!$build_cpu$ac_delim
34844 build_vendor!$build_vendor$ac_delim
34845 build_os!$build_os$ac_delim
34846 host!$host$ac_delim
34847 host_cpu!$host_cpu$ac_delim
34848 host_vendor!$host_vendor$ac_delim
34849 host_os!$host_os$ac_delim
34850 target!$target$ac_delim
34851 target_cpu!$target_cpu$ac_delim
34852 target_vendor!$target_vendor$ac_delim
34853 target_os!$target_os$ac_delim
34855 LINKALL!$LINKALL$ac_delim
34856 NOLINKALL!$NOLINKALL$ac_delim
34857 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34858 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34859 ARCH!$ARCH$ac_delim
34860 ENDIAN!$ENDIAN$ac_delim
34862 CFLAGS!$CFLAGS$ac_delim
34863 LDFLAGS!$LDFLAGS$ac_delim
34864 CPPFLAGS!$CPPFLAGS$ac_delim
34865 ac_ct_CC!$ac_ct_CC$ac_delim
34866 EXEEXT!$EXEEXT$ac_delim
34867 OBJEXT!$OBJEXT$ac_delim
34869 GREP!$GREP$ac_delim
34870 EGREP!$EGREP$ac_delim
34871 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34872 BUILD_CC!$BUILD_CC$ac_delim
34873 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34874 BUILD_CXX!$BUILD_CXX$ac_delim
34875 CVSBUILD!$CVSBUILD$ac_delim
34876 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34877 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
34878 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34879 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34880 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34881 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34883 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34884 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34885 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34886 ENABLE_PIC!$ENABLE_PIC$ac_delim
34887 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34888 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34889 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34890 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34892 CXXFLAGS!$CXXFLAGS$ac_delim
34893 ac_ct_CXX!$ac_ct_CXX$ac_delim
34895 ifGNUmake!$ifGNUmake$ac_delim
34896 LN_S!$LN_S$ac_delim
34899 DATE!$DATE$ac_delim
34902 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34904 elif $ac_last_try; then
34905 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34906 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34907 { (exit 1); exit 1; }; }
34909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34913 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34914 if test -n "$ac_eof"; then
34915 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34916 ac_eof=`expr $ac_eof + 1`
34919 cat >>$CONFIG_STATUS <<_ACEOF
34920 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34924 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34925 s/^/s,@/; s/!/@,|#_!!_#|/
34928 s/'"$ac_delim"'$/,g/; t
34930 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34931 ' >>$CONFIG_STATUS <conf$$subs.sed
34932 rm -f conf$$subs.sed
34933 cat >>$CONFIG_STATUS <<_ACEOF
34939 for ac_last_try in false false false false false :; do
34940 cat >conf$$subs.sed <<_ACEOF
34941 FIND!$FIND$ac_delim
34942 MKDIR!$MKDIR$ac_delim
34944 RANLIB!$RANLIB$ac_delim
34948 BINPWD!$BINPWD$ac_delim
34949 GRAPHVIZ!$GRAPHVIZ$ac_delim
34952 DOTTY!$DOTTY$ac_delim
34953 PERL!$PERL$ac_delim
34954 HAVE_PERL!$HAVE_PERL$ac_delim
34955 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34956 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34957 INSTALL_DATA!$INSTALL_DATA$ac_delim
34958 BZIP2!$BZIP2$ac_delim
34959 DOXYGEN!$DOXYGEN$ac_delim
34960 GROFF!$GROFF$ac_delim
34961 GZIP!$GZIP$ac_delim
34962 POD2HTML!$POD2HTML$ac_delim
34963 POD2MAN!$POD2MAN$ac_delim
34964 RUNTEST!$RUNTEST$ac_delim
34965 TCLSH!$TCLSH$ac_delim
34967 OCAMLC!$OCAMLC$ac_delim
34968 OCAMLOPT!$OCAMLOPT$ac_delim
34969 OCAMLDEP!$OCAMLDEP$ac_delim
34970 OCAMLDOC!$OCAMLDOC$ac_delim
34972 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34973 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34974 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34975 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34976 LIBADD_DL!$LIBADD_DL$ac_delim
34977 ECHO!$ECHO$ac_delim
34979 STRIP!$STRIP$ac_delim
34980 CXXCPP!$CXXCPP$ac_delim
34982 FFLAGS!$FFLAGS$ac_delim
34983 ac_ct_F77!$ac_ct_F77$ac_delim
34984 LIBTOOL!$LIBTOOL$ac_delim
34985 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
34986 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
34987 LLVMGCC!$LLVMGCC$ac_delim
34988 LLVMGXX!$LLVMGXX$ac_delim
34989 USE_UDIS86!$USE_UDIS86$ac_delim
34990 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34991 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34992 ALLOCA!$ALLOCA$ac_delim
34993 MMAP_FILE!$MMAP_FILE$ac_delim
34994 LLVMCC1!$LLVMCC1$ac_delim
34995 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34996 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34997 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34998 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34999 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35000 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35001 SHLIBEXT!$SHLIBEXT$ac_delim
35002 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35003 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35004 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35005 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35006 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35007 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35008 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35009 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35010 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35011 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35012 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35013 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35014 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35015 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35016 RPATH!$RPATH$ac_delim
35017 RDYNAMIC!$RDYNAMIC$ac_delim
35018 LIBOBJS!$LIBOBJS$ac_delim
35019 LTLIBOBJS!$LTLIBOBJS$ac_delim
35022 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
35024 elif $ac_last_try; then
35025 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35026 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35027 { (exit 1); exit 1; }; }
35029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35033 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35034 if test -n "$ac_eof"; then
35035 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35036 ac_eof=`expr $ac_eof + 1`
35039 cat >>$CONFIG_STATUS <<_ACEOF
35040 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35044 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35045 s/^/s,@/; s/!/@,|#_!!_#|/
35048 s/'"$ac_delim"'$/,g/; t
35050 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35051 ' >>$CONFIG_STATUS <conf$$subs.sed
35052 rm -f conf$$subs.sed
35053 cat >>$CONFIG_STATUS <<_ACEOF
35060 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35061 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35062 # trailing colons and then remove the whole line if VPATH becomes empty
35063 # (actually we leave an empty line to preserve line numbers).
35064 if test "x$srcdir" = x.; then
35065 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35066 s/:*\$(srcdir):*/:/
35067 s/:*\${srcdir}:*/:/
35069 s/^\([^=]*=[ ]*\):*/\1/
35075 cat >>$CONFIG_STATUS <<\_ACEOF
35076 fi # test -n "$CONFIG_FILES"
35079 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35082 :[FHLC]) ac_mode=$ac_tag; continue;;
35084 case $ac_mode$ac_tag in
35086 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35087 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35088 { (exit 1); exit 1; }; };;
35089 :[FH]-) ac_tag=-:-;;
35090 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35107 -) ac_f="$tmp/stdin";;
35108 *) # Look for the file first in the build tree, then in the source tree
35109 # (if the path is not absolute). The absolute path cannot be DOS-style,
35110 # because $ac_f cannot contain `:'.
35114 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35116 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35117 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35118 { (exit 1); exit 1; }; };;
35120 ac_file_inputs="$ac_file_inputs $ac_f"
35123 # Let's still pretend it is `configure' which instantiates (i.e., don't
35124 # use $as_me), people would be surprised to read:
35125 # /* config.h. Generated by config.status. */
35126 configure_input="Generated from "`IFS=:
35127 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35128 if test x"$ac_file" != x-; then
35129 configure_input="$ac_file. $configure_input"
35130 { echo "$as_me:$LINENO: creating $ac_file" >&5
35131 echo "$as_me: creating $ac_file" >&6;}
35135 *:-:* | *:-) cat >"$tmp/stdin";;
35140 ac_dir=`$as_dirname -- "$ac_file" ||
35141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35142 X"$ac_file" : 'X\(//\)[^/]' \| \
35143 X"$ac_file" : 'X\(//\)$' \| \
35144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35150 /^X\(\/\/\)[^/].*/{
35165 -*) as_dir=./$as_dir;;
35167 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35171 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35172 *) as_qdir=$as_dir;;
35174 as_dirs="'$as_qdir' $as_dirs"
35175 as_dir=`$as_dirname -- "$as_dir" ||
35176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35177 X"$as_dir" : 'X\(//\)[^/]' \| \
35178 X"$as_dir" : 'X\(//\)$' \| \
35179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35185 /^X\(\/\/\)[^/].*/{
35198 test -d "$as_dir" && break
35200 test -z "$as_dirs" || eval "mkdir $as_dirs"
35201 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35202 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35203 { (exit 1); exit 1; }; }; }
35207 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35209 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35210 # A ".." for each directory in $ac_dir_suffix.
35211 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35212 case $ac_top_builddir_sub in
35213 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35214 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35217 ac_abs_top_builddir=$ac_pwd
35218 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35219 # for backward compatibility:
35220 ac_top_builddir=$ac_top_build_prefix
35223 .) # We are building in place.
35225 ac_top_srcdir=$ac_top_builddir_sub
35226 ac_abs_top_srcdir=$ac_pwd ;;
35227 [\\/]* | ?:[\\/]* ) # Absolute name.
35228 ac_srcdir=$srcdir$ac_dir_suffix;
35229 ac_top_srcdir=$srcdir
35230 ac_abs_top_srcdir=$srcdir ;;
35231 *) # Relative name.
35232 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35233 ac_top_srcdir=$ac_top_build_prefix$srcdir
35234 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35236 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35246 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35247 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35251 cat >>$CONFIG_STATUS <<\_ACEOF
35252 # If the template does not know about datarootdir, expand it.
35253 # FIXME: This hack should be removed a few years after 2.60.
35254 ac_datarootdir_hack=; ac_datarootdir_seen=
35256 case `sed -n '/datarootdir/ {
35265 ' $ac_file_inputs` in
35266 *datarootdir*) ac_datarootdir_seen=yes;;
35267 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35268 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35269 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35271 cat >>$CONFIG_STATUS <<_ACEOF
35272 ac_datarootdir_hack='
35273 s&@datadir@&$datadir&g
35274 s&@docdir@&$docdir&g
35275 s&@infodir@&$infodir&g
35276 s&@localedir@&$localedir&g
35277 s&@mandir@&$mandir&g
35278 s&\\\${datarootdir}&$datarootdir&g' ;;
35282 # Neutralize VPATH when `$srcdir' = `.'.
35283 # Shell code in configure.ac might set extrasub.
35284 # FIXME: do we really want to maintain this feature?
35285 cat >>$CONFIG_STATUS <<_ACEOF
35289 cat >>$CONFIG_STATUS <<\_ACEOF
35291 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35292 s&@configure_input@&$configure_input&;t t
35293 s&@top_builddir@&$ac_top_builddir_sub&;t t
35294 s&@srcdir@&$ac_srcdir&;t t
35295 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35296 s&@top_srcdir@&$ac_top_srcdir&;t t
35297 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35298 s&@builddir@&$ac_builddir&;t t
35299 s&@abs_builddir@&$ac_abs_builddir&;t t
35300 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35301 s&@INSTALL@&$ac_INSTALL&;t t
35302 $ac_datarootdir_hack
35303 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35308 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35309 which seems to be undefined. Please make sure it is defined." >&5
35310 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35311 which seems to be undefined. Please make sure it is defined." >&2;}
35315 -) cat "$tmp/out"; rm -f "$tmp/out";;
35316 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35325 # Transform confdefs.h into a sed script `conftest.defines', that
35326 # substitutes the proper values into config.h.in to produce config.h.
35327 rm -f conftest.defines conftest.tail
35328 # First, append a space to every undef/define line, to ease matching.
35329 echo 's/$/ /' >conftest.defines
35330 # Then, protect against being on the right side of a sed subst, or in
35331 # an unquoted here document, in config.status. If some macros were
35332 # called several times there might be several #defines for the same
35333 # symbol, which is useless. But do not sort them, since the last
35334 # AC_DEFINE must be honored.
35335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35336 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35337 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35338 # PARAMS is the parameter list in the macro definition--in most cases, it's
35339 # just an empty string.
35340 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35341 ac_dB='\\)[ (].*,\\1define\\2'
35349 s/^[ ]*#[ ]*define[ ][ ]*//
35354 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35355 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35356 ' >>conftest.defines
35358 # Remove the space that was appended to ease matching.
35359 # Then replace #undef with comments. This is necessary, for
35360 # example, in the case of _POSIX_SOURCE, which is predefined and required
35361 # on some systems where configure will not decide to define it.
35362 # (The regexp can be short, since the line contains either #define or #undef.)
35364 s,^[ #]*u.*,/* & */,' >>conftest.defines
35366 # Break up conftest.defines:
35367 ac_max_sed_lines=50
35369 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35370 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35371 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35373 ac_in='$ac_file_inputs'
35374 ac_out='"$tmp/out1"'
35375 ac_nxt='"$tmp/out2"'
35379 # Write a here document:
35380 cat >>$CONFIG_STATUS <<_ACEOF
35381 # First, check the format of the line:
35382 cat >"\$tmp/defines.sed" <<\\CEOF
35383 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35384 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35388 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35390 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35391 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35392 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35393 grep . conftest.tail >/dev/null || break
35394 rm -f conftest.defines
35395 mv conftest.tail conftest.defines
35397 rm -f conftest.defines conftest.tail
35399 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35400 cat >>$CONFIG_STATUS <<\_ACEOF
35401 if test x"$ac_file" != x-; then
35402 echo "/* $configure_input */" >"$tmp/config.h"
35403 cat "$ac_result" >>"$tmp/config.h"
35404 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35406 echo "$as_me: $ac_file is unchanged" >&6;}
35409 mv "$tmp/config.h" $ac_file
35412 echo "/* $configure_input */"
35418 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35419 echo "$as_me: executing $ac_file commands" >&6;}
35424 case $ac_file$ac_mode in
35425 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35426 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35427 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35428 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35429 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35430 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35431 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35432 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35433 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35434 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35435 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35436 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35437 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35438 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35439 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35440 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35441 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35442 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35443 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35444 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35445 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35446 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35447 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35448 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35449 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35450 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35456 { (exit 0); exit 0; }
35458 chmod +x $CONFIG_STATUS
35459 ac_clean_files=$ac_clean_files_save
35462 # configure is writing to config.log, and then calls config.status.
35463 # config.status does its own redirection, appending to config.log.
35464 # Unfortunately, on DOS this fails, as config.log is still kept open
35465 # by configure, so config.status won't be able to write to it; its
35466 # output is simply discarded. So we exec the FD to /dev/null,
35467 # effectively closing config.log, so it can be properly (re)opened and
35468 # appended to by config.status. When coming back to configure, we
35469 # need to make the FD available again.
35470 if test "$no_create" != yes; then
35472 ac_config_status_args=
35473 test "$silent" = yes &&
35474 ac_config_status_args="$ac_config_status_args --quiet"
35476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35479 # would make configure fail if this is the last instruction.
35480 $ac_cs_success || { (exit 1); exit 1; }
35484 # CONFIG_SUBDIRS section.
35486 if test "$no_recursion" != yes; then
35488 # Remove --cache-file and --srcdir arguments so they do not pile up.
35489 ac_sub_configure_args=
35491 eval "set x $ac_configure_args"
35495 if test -n "$ac_prev"; then
35500 -cache-file | --cache-file | --cache-fil | --cache-fi \
35501 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35502 ac_prev=cache_file ;;
35503 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35504 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35507 --config-cache | -C)
35509 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35511 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35513 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35515 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35519 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35521 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35525 # Always prepend --prefix to ensure using the same prefix
35526 # in subdir configurations.
35527 ac_arg="--prefix=$prefix"
35529 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35531 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35534 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35536 # Do not complain, so a configure script can configure whichever
35537 # parts of a large source tree are present.
35538 test -d "$srcdir/$ac_dir" || continue
35540 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35541 echo "$as_me:$LINENO: $ac_msg" >&5
35545 -*) as_dir=./$as_dir;;
35547 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35551 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35552 *) as_qdir=$as_dir;;
35554 as_dirs="'$as_qdir' $as_dirs"
35555 as_dir=`$as_dirname -- "$as_dir" ||
35556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35557 X"$as_dir" : 'X\(//\)[^/]' \| \
35558 X"$as_dir" : 'X\(//\)$' \| \
35559 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35565 /^X\(\/\/\)[^/].*/{
35578 test -d "$as_dir" && break
35580 test -z "$as_dirs" || eval "mkdir $as_dirs"
35581 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35582 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35583 { (exit 1); exit 1; }; }; }
35587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35590 # A ".." for each directory in $ac_dir_suffix.
35591 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35592 case $ac_top_builddir_sub in
35593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35597 ac_abs_top_builddir=$ac_pwd
35598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35599 # for backward compatibility:
35600 ac_top_builddir=$ac_top_build_prefix
35603 .) # We are building in place.
35605 ac_top_srcdir=$ac_top_builddir_sub
35606 ac_abs_top_srcdir=$ac_pwd ;;
35607 [\\/]* | ?:[\\/]* ) # Absolute name.
35608 ac_srcdir=$srcdir$ac_dir_suffix;
35609 ac_top_srcdir=$srcdir
35610 ac_abs_top_srcdir=$srcdir ;;
35611 *) # Relative name.
35612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35613 ac_top_srcdir=$ac_top_build_prefix$srcdir
35614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35621 # Check for guested configure; otherwise get Cygnus style configure.
35622 if test -f "$ac_srcdir/configure.gnu"; then
35623 ac_sub_configure=$ac_srcdir/configure.gnu
35624 elif test -f "$ac_srcdir/configure"; then
35625 ac_sub_configure=$ac_srcdir/configure
35626 elif test -f "$ac_srcdir/configure.in"; then
35627 # This should be Cygnus configure.
35628 ac_sub_configure=$ac_aux_dir/configure
35630 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35631 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35635 # The recursion is here.
35636 if test -n "$ac_sub_configure"; then
35637 # Make the cache file name correct relative to the subdirectory.
35638 case $cache_file in
35639 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35640 *) # Relative name.
35641 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35644 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35645 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35646 # The eval makes quoting arguments work.
35647 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35648 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35649 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35650 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35651 { (exit 1); exit 1; }; }