2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
5 # Report bugs to <bugs@yourdomain>.
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.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
691 ENABLE_EXPENSIVE_CHECKS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
785 ENABLE_VISIBILITY_INLINES_HIDDEN
791 ac_precious_vars='build_alias
802 ac_subdirs_all='tools/polly'
804 # Initialize some variables set by options.
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
816 program_transform_name=s,x,x,
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911 eval enable_$ac_feature=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 -enable-* | --enable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=\$ac_optarg ;;
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
945 -help | --help | --hel | --he | -h)
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 htmldir=$ac_optarg ;;
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
975 -libdir | --libdir | --libdi | --libd)
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
987 -localedir | --localedir | --localedi | --localed | --locale)
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1066 -psdir | --psdir | --psdi | --psd | --ps)
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 sbindir=$ac_optarg ;;
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 sharedstatedir=$ac_optarg ;;
1092 -site | --site | --sit)
1094 -site=* | --site=* | --sit=*)
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1121 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package| sed 's/-/_/g'`
1127 eval with_$ac_package=\$ac_optarg ;;
1129 -without-* | --without-*)
1130 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133 { echo "$as_me: error: invalid package name: $ac_package" >&2
1134 { (exit 1); exit 1; }; }
1135 ac_package=`echo $ac_package | sed 's/-/_/g'`
1136 eval with_$ac_package=no ;;
1139 # Obsolete; use --with-x.
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1156 -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158 { (exit 1); exit 1; }; }
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166 { (exit 1); exit 1; }; }
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 { echo "$as_me: error: missing argument to $ac_option" >&2
1184 { (exit 1); exit 1; }; }
1187 # Be sure to have absolute directory names.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val=\$$ac_var
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199 { (exit 1); exit 1; }; }
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1207 target=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223 test "$silent" = yes && exec 6>/dev/null
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 { echo "$as_me: error: Working directory cannot be determined" >&2
1230 { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 { echo "$as_me: error: pwd does not report name of working directory" >&2
1233 { (exit 1); exit 1; }; }
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$0" : 'X\(//\)[^/]' \| \
1243 X"$0" : 'X\(//\)$' \| \
1244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1268 ac_srcdir_defaulted=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273 { (exit 1); exit 1; }; }
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278 { (exit 1); exit 1; }; }
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --enable-polly Use polly if available (default is YES)
1378 --enable-libcpp Use libc++ if available (default is NO)
1379 --enable-cxx11 Use c++11 if available (default is NO)
1380 --enable-optimized Compile with optimizations enabled (default is NO)
1381 --enable-profiling Compile with profiling enabled (default is NO)
1382 --enable-assertions Compile with assertion checks enabled (default is
1384 --enable-werror Compile with -Werror enabled (default is NO)
1385 --enable-expensive-checks
1386 Compile with expensive debug checks enabled (default
1388 --enable-debug-runtime Build runtime libs with debug symbols (default is
1390 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1391 optimization is on and YES if it's off)
1392 --enable-jit Enable Just In Time Compiling (default is YES)
1393 --enable-docs Build documents (default is YES)
1394 --enable-doxygen Build doxygen documentation (default is NO)
1395 --enable-threads Use threads if available (default is YES)
1396 --enable-pthreads Use pthreads if available (default is YES)
1397 --enable-pic Build LLVM with Position Independent Code (default
1399 --enable-shared Build a shared library and link tools against it
1401 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1402 Win32 DLL (default is YES)
1403 --enable-timestamps Enable embedding timestamp information in build
1405 --enable-targets Build specific host targets: all or
1406 target1,target2,... Valid targets are: host, x86,
1407 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1408 xcore, msp430, nvptx, systemz, r600, and cpp
1410 --enable-bindings Build specific language bindings:
1411 all,auto,none,{binding-name} (default=auto)
1412 --enable-libffi Check for the presence of libffi (default is NO)
1413 --enable-ltdl-install install libltdl
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-llvmsrc Location of LLVM Source Code
1419 --with-llvmobj Location of LLVM Object Code
1420 --with-optimize-option Select the compiler options to use for optimized
1422 --with-extra-options Specify additional options to compile LLVM with
1423 --with-extra-ld-options Specify additional options to link LLVM with
1424 --with-ocaml-libdir Specify install location for ocaml bindings (default
1426 --with-clang-resource-dir
1427 Relative directory from the Clang binary for
1429 --with-c-include-dirs Colon separated list of directories clang will
1431 --with-gcc-toolchain Directory where gcc is installed.
1432 --with-binutils-include Specify path to binutils/include/ containing
1433 plugin-api.h file for gold plugin.
1434 --with-bug-report-url Specify the URL where bug reports should be
1435 submitted (default=http://llvm.org/bugs/)
1436 --with-tclinclude directory where tcl headers are
1437 --with-udis86=<path> Use udis86 external x86 disassembler library
1438 --with-oprofile=<prefix>
1439 Tell OProfile >= 0.9.4 how to symbolize JIT output
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 Report bugs to <bugs@yourdomain>.
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" || continue
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1483 .) # We are building in place.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1516 [SAMPLE] configure [x.xx]
1517 generated by GNU Autoconf 2.60
1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1526 cat >config.log <<_ACEOF
1527 This file contains any messages produced by compilers while
1528 running configure, to aid debugging if configure makes a mistake.
1530 It was created by [SAMPLE] $as_me [x.xx], which was
1531 generated by GNU Autoconf 2.60. Invocation command line was
1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1552 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1553 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1555 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1556 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1557 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1558 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 test -z "$as_dir" && as_dir=.
1567 echo "PATH: $as_dir"
1583 # Keep a trace of the command line.
1584 # Strip out --no-create and --no-recursion so they do not pile up.
1585 # Strip out --silent because we don't want to record it for future runs.
1586 # Also quote any args containing shell meta-characters.
1587 # Make two passes to allow for proper duplicate-argument suppression.
1591 ac_must_keep_next=false
1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599 | -silent | --silent | --silen | --sile | --sil)
1602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608 if test $ac_must_keep_next = true; then
1609 ac_must_keep_next=false # Got value, back to normal.
1612 *=* | --config-cache | -C | -disable-* | --disable-* \
1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615 | -with-* | --with-* | -without-* | --without-* | --x)
1616 case "$ac_configure_args0 " in
1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1620 -* ) ac_must_keep_next=true ;;
1623 ac_configure_args="$ac_configure_args '$ac_arg'"
1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1631 # When interrupted or exit'd, cleanup temporary files, and complete
1632 # config.log. We remove comments because anyway the quotes in there
1633 # would cause problems or look ugly.
1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636 trap 'exit_status=$?
1637 # Save into config.log some information that might help in debugging.
1642 ## ---------------- ##
1643 ## Cache variables. ##
1644 ## ---------------- ##
1647 # The following way of writing the cache mishandles newlines in values,
1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650 eval ac_val=\$$ac_var
1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1658 _ | IFS | as_nl) ;; #(
1659 *) $as_unset $ac_var ;;
1664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665 *${as_nl}ac_space=\ *)
1667 "s/'\''/'\''\\\\'\'''\''/g;
1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1679 ## ----------------- ##
1680 ## Output variables. ##
1681 ## ----------------- ##
1684 for ac_var in $ac_subst_vars
1686 eval ac_val=\$$ac_var
1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1690 echo "$ac_var='\''$ac_val'\''"
1694 if test -n "$ac_subst_files"; then
1696 ## ------------------- ##
1697 ## File substitutions. ##
1698 ## ------------------- ##
1701 for ac_var in $ac_subst_files
1703 eval ac_val=\$$ac_var
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 echo "$ac_var='\''$ac_val'\''"
1712 if test -s confdefs.h; then
1722 test "$ac_signal" != 0 &&
1723 echo "$as_me: caught signal $ac_signal"
1724 echo "$as_me: exit $exit_status"
1726 rm -f core *.core core.conftest.* &&
1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1730 for ac_signal in 1 2 13 15; do
1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1736 rm -f -r conftest* confdefs.h
1738 # Predefined preprocessor variables.
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_NAME "$PACKAGE_NAME"
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_STRING "$PACKAGE_STRING"
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1765 # Let the site file select an alternate cache file if it wants to.
1766 # Prefer explicitly selected file to automatically selected ones.
1767 if test -n "$CONFIG_SITE"; then
1768 set x "$CONFIG_SITE"
1769 elif test "x$prefix" != xNONE; then
1770 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1772 set x "$ac_default_prefix/share/config.site" \
1773 "$ac_default_prefix/etc/config.site"
1778 if test -r "$ac_site_file"; then
1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780 echo "$as_me: loading site script $ac_site_file" >&6;}
1781 sed 's/^/| /' "$ac_site_file" >&5
1786 if test -r "$cache_file"; then
1787 # Some versions of bash will fail to source /dev/null (special
1788 # files actually), so we avoid doing that.
1789 if test -f "$cache_file"; then
1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791 echo "$as_me: loading cache $cache_file" >&6;}
1793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794 *) . "./$cache_file";;
1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799 echo "$as_me: creating cache $cache_file" >&6;}
1803 # Check that the precious variables saved in the cache have kept the same
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
1809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
1811 case $ac_old_set,$ac_new_set in
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
1823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1826 echo "$as_me: former value: $ac_old_val" >&2;}
1827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1828 echo "$as_me: current value: $ac_new_val" >&2;}
1829 ac_cache_corrupted=:
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 *) ac_arg=$ac_var=$ac_new_val ;;
1838 case " $ac_configure_args " in
1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1844 if $ac_cache_corrupted; then
1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849 { (exit 1); exit 1; }; }
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884 LLVM_SRC_ROOT="../.."
1885 LLVM_OBJ_ROOT="../.."
1887 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1888 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1891 # Check whether --with-llvmsrc was given.
1892 if test "${with_llvmsrc+set}" = set; then
1893 withval=$with_llvmsrc; llvm_src="$withval"
1895 llvm_src="$LLVM_ABS_SRC_ROOT"
1901 # Check whether --with-llvmobj was given.
1902 if test "${with_llvmobj+set}" = set; then
1903 withval=$with_llvmobj; llvm_obj="$withval"
1905 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1910 ac_config_commands="$ac_config_commands setup"
1914 { echo "$as_me:$LINENO: checking llvm-config" >&5
1915 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1916 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1917 if ! test -f "$llvm_config_path" ; then
1918 llvm_config_path="no"
1920 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1921 echo "${ECHO_T}$llvm_config_path" >&6; }
1923 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1924 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1925 if test "$llvm_config_path" != no ; then
1926 llvm_package_version=`$llvm_config_path --version`
1928 llvm_package_version="unknown";
1930 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1931 echo "${ECHO_T}$llvm_package_version" >&6; }
1932 LLVM_VERSION=$llvm_package_version
1938 for ac_dir in autoconf "$srcdir"/autoconf; do
1939 if test -f "$ac_dir/install-sh"; then
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1943 elif test -f "$ac_dir/install.sh"; then
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1947 elif test -f "$ac_dir/shtool"; then
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976 for ac_prog in clang llvm-gcc gcc
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2015 test -n "$CC" && break
2018 if test -z "$CC"; then
2020 for ac_prog in clang llvm-gcc gcc
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2054 { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2059 test -n "$ac_ct_CC" && break
2062 if test "x$ac_ct_CC" = x; then
2065 case $cross_compiling:$ac_tool_warned in
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet. If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet. If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler --version >&5") 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -v >&5") 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -V >&5") 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort. b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions. Remove them first so a
2151 # subsequent execution test works.
2153 for ac_file in $ac_files
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 if { (ac_try="$ac_link_default"
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_link_default") 2>&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2177 for ac_file in $ac_files
2179 test -f "$ac_file" || continue
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2184 # We found the default executable, but exeext='' is most
2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # We set ac_cv_exeext here because the later test for it is not
2193 # safe: cross compilers may not add the suffix if given an `-o'
2194 # argument, so we may need to know it at that point already.
2195 # Even if this section looks crufty: it has the advantage of
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2219 # Check that the compiler produces executables we can run. If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 if test "$cross_compiling" = maybe; then
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run. If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_link") 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 cat >conftest.$ac_ext <<_ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compile") 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.$ac_ext <<_ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2391 grep -v '^ *+' conftest.er1 >conftest.err
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 ac_save_c_werror_flag=$ac_c_werror_flag
2439 ac_c_werror_flag=yes
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2466 grep -v '^ *+' conftest.er1 >conftest.err
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2521 grep -v '^ *+' conftest.er1 >conftest.err
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2551 ac_c_werror_flag=$ac_save_c_werror_flag
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2577 grep -v '^ *+' conftest.er1 >conftest.err
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2630 if test "$GCC" = yes; then
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 ac_cv_prog_cc_c89=no
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2667 s = g (p, va_arg (v,int));
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2673 function prototypes and stuff, but not '\xHH' hex character constants.
2674 These don't provoke an error unfortunately, instead are silently treated
2675 as 'x'. The following induces an error, until -std is added to get
2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2677 array size at least. It's necessary to write '\x00'==0 to get something
2678 that's true only with -std. */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682 inside strings and character constants. */
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
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_try") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
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_try") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_c89=$ac_arg
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2746 rm -f core conftest.err conftest.$ac_objext
2747 test "x$ac_cv_prog_cc_c89" != "xno" && break
2749 rm -f conftest.$ac_ext
2754 case "x$ac_cv_prog_cc_c89" in
2756 { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2759 { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2762 CC="$CC $ac_cv_prog_cc_c89"
2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780 if test -n "$CCC"; then
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in clang++ llvm-g++ g++
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 if test -n "$CXX"; then
2794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 if test -n "$CXX"; then
2815 { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2818 { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2823 test -n "$CXX" && break
2826 if test -z "$CXX"; then
2828 for ac_prog in clang++ llvm-g++ g++
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 if test -n "$ac_ct_CXX"; then
2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CXX="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2862 { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2867 test -n "$ac_ct_CXX" && break
2870 if test "x$ac_ct_CXX" = x; then
2873 case $cross_compiling:$ac_tool_warned in
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet. If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet. If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881 ac_tool_warned=yes ;;
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cxx_g=yes
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_cv_prog_cxx_g=yes
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186 CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188 if test "$GXX" = yes; then
3194 if test "$GXX" = yes; then
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3217 if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268 if test -z "$ac_cpp_err"; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 # Broken: fails on valid input.
3278 rm -f conftest.err conftest.$ac_ext
3280 # OK, works on sane cases. Now check whether nonexistent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <ac_nonexistent.h>
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312 if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Passes both tests.
3324 rm -f conftest.err conftest.$ac_ext
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3344 for ac_c_preproc_warn_flag in '' yes
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3359 # include <limits.h>
3361 # include <assert.h>
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 if test -z "$ac_cpp_err"; then
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 # Broken: fails on valid input.
3397 rm -f conftest.err conftest.$ac_ext
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <ac_nonexistent.h>
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 # Check whether --enable-polly was given.
3468 if test "${enable_polly+set}" = set; then
3469 enableval=$enable_polly;
3474 case "$enableval" in
3479 default) ENABLE_POLLY=1
3481 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3482 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3483 { (exit 1); exit 1; }; } ;;
3487 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3490 subdirs="$subdirs tools/polly"
3495 # Make sure we can run config.sub.
3496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3497 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3498 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3499 { (exit 1); exit 1; }; }
3501 { echo "$as_me:$LINENO: checking build system type" >&5
3502 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3503 if test "${ac_cv_build+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 ac_build_alias=$build_alias
3507 test "x$ac_build_alias" = x &&
3508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3509 test "x$ac_build_alias" = x &&
3510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3512 { (exit 1); exit 1; }; }
3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3515 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3516 { (exit 1); exit 1; }; }
3519 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3520 echo "${ECHO_T}$ac_cv_build" >&6; }
3521 case $ac_cv_build in
3523 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3524 echo "$as_me: error: invalid value of canonical build" >&2;}
3525 { (exit 1); exit 1; }; };;
3528 ac_save_IFS=$IFS; IFS='-'
3534 # Remember, the first character of IFS is used to create $*,
3535 # except with old shells:
3538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3541 { echo "$as_me:$LINENO: checking host system type" >&5
3542 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3543 if test "${ac_cv_host+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test "x$host_alias" = x; then
3547 ac_cv_host=$ac_cv_build
3549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3550 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3552 { (exit 1); exit 1; }; }
3556 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3557 echo "${ECHO_T}$ac_cv_host" >&6; }
3560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3561 echo "$as_me: error: invalid value of canonical host" >&2;}
3562 { (exit 1); exit 1; }; };;
3565 ac_save_IFS=$IFS; IFS='-'
3571 # Remember, the first character of IFS is used to create $*,
3572 # except with old shells:
3575 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3578 { echo "$as_me:$LINENO: checking target system type" >&5
3579 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3580 if test "${ac_cv_target+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test "x$target_alias" = x; then
3584 ac_cv_target=$ac_cv_host
3586 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3593 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3594 echo "${ECHO_T}$ac_cv_target" >&6; }
3595 case $ac_cv_target in
3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3598 echo "$as_me: error: invalid value of canonical target" >&2;}
3599 { (exit 1); exit 1; }; };;
3601 target=$ac_cv_target
3602 ac_save_IFS=$IFS; IFS='-'
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3612 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3615 # The aliases save the names the user supplied, while $host etc.
3616 # will get canonicalized.
3617 test -n "$target_alias" &&
3618 test "$program_prefix$program_suffix$program_transform_name" = \
3620 program_prefix=${target_alias}-
3622 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3623 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3624 if test "${llvm_cv_os_type+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 llvm_cv_link_all_option="-Wl,--whole-archive"
3630 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3631 llvm_cv_os_type="AIX"
3632 llvm_cv_platform_type="Unix" ;;
3634 llvm_cv_link_all_option="-Wl,--whole-archive"
3635 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636 llvm_cv_os_type="IRIX"
3637 llvm_cv_platform_type="Unix" ;;
3639 llvm_cv_link_all_option="-Wl,--whole-archive"
3640 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641 llvm_cv_os_type="Cygwin"
3642 llvm_cv_platform_type="Unix" ;;
3644 llvm_cv_link_all_option="-Wl,-all_load"
3645 llvm_cv_no_link_all_option="-Wl,-noall_load"
3646 llvm_cv_os_type="Darwin"
3647 llvm_cv_platform_type="Unix" ;;
3649 llvm_cv_link_all_option="-Wl,-all_load"
3650 llvm_cv_no_link_all_option="-Wl,-noall_load"
3651 llvm_cv_os_type="Minix"
3652 llvm_cv_platform_type="Unix" ;;
3653 *-*-freebsd* | *-*-kfreebsd-gnu)
3654 llvm_cv_link_all_option="-Wl,--whole-archive"
3655 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3656 llvm_cv_os_type="FreeBSD"
3657 llvm_cv_platform_type="Unix" ;;
3659 llvm_cv_link_all_option="-Wl,--whole-archive"
3660 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661 llvm_cv_os_type="OpenBSD"
3662 llvm_cv_platform_type="Unix" ;;
3664 llvm_cv_link_all_option="-Wl,--whole-archive"
3665 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666 llvm_cv_os_type="NetBSD"
3667 llvm_cv_platform_type="Unix" ;;
3669 llvm_cv_link_all_option="-Wl,--whole-archive"
3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671 llvm_cv_os_type="DragonFly"
3672 llvm_cv_platform_type="Unix" ;;
3674 llvm_cv_link_all_option="-Wl,--whole-archive"
3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676 llvm_cv_os_type="HP-UX"
3677 llvm_cv_platform_type="Unix" ;;
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="Interix"
3682 llvm_cv_platform_type="Unix" ;;
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="Linux"
3687 llvm_cv_platform_type="Unix" ;;
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="GNU"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,-z,allextract"
3695 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3696 llvm_cv_os_type="SunOS"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,-z,allextract"
3700 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3701 llvm_cv_os_type="AuroraUX"
3702 llvm_cv_platform_type="Unix" ;;
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="Win32"
3707 llvm_cv_platform_type="Win32" ;;
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="MingW"
3712 llvm_cv_platform_type="Win32" ;;
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="Haiku"
3717 llvm_cv_platform_type="Unix" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="Freestanding"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="Freestanding"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option=""
3730 llvm_cv_no_link_all_option=""
3731 llvm_cv_os_type="Unknown"
3732 llvm_cv_platform_type="Unknown" ;;
3735 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3736 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3738 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3739 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3740 if test "${llvm_cv_target_os_type+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 llvm_cv_target_os_type="AIX" ;;
3747 llvm_cv_target_os_type="IRIX" ;;
3749 llvm_cv_target_os_type="Cygwin" ;;
3751 llvm_cv_target_os_type="Darwin" ;;
3753 llvm_cv_target_os_type="Minix" ;;
3754 *-*-freebsd* | *-*-kfreebsd-gnu)
3755 llvm_cv_target_os_type="FreeBSD" ;;
3757 llvm_cv_target_os_type="OpenBSD" ;;
3759 llvm_cv_target_os_type="NetBSD" ;;
3761 llvm_cv_target_os_type="DragonFly" ;;
3763 llvm_cv_target_os_type="HP-UX" ;;
3765 llvm_cv_target_os_type="Interix" ;;
3767 llvm_cv_target_os_type="Linux" ;;
3769 llvm_cv_target_os_type="GNU" ;;
3771 llvm_cv_target_os_type="SunOS" ;;
3773 llvm_cv_target_os_type="AuroraUX" ;;
3775 llvm_cv_target_os_type="Win32" ;;
3777 llvm_cv_target_os_type="MingW" ;;
3779 llvm_cv_target_os_type="Haiku" ;;
3781 llvm_cv_target_os_type="RTEMS" ;;
3783 llvm_cv_target_os_type="NativeClient" ;;
3785 llvm_cv_target_os_type="Freestanding" ;;
3787 llvm_cv_target_os_type="Unknown" ;;
3790 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3791 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3793 if test "$llvm_cv_os_type" = "Unknown" ; then
3794 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3795 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3796 { (exit 1); exit 1; }; }
3801 HOST_OS=$llvm_cv_os_type
3803 TARGET_OS=$llvm_cv_target_os_type
3806 LINKALL=$llvm_cv_link_all_option
3808 NOLINKALL=$llvm_cv_no_link_all_option
3811 case $llvm_cv_platform_type in
3814 cat >>confdefs.h <<\_ACEOF
3815 #define LLVM_ON_UNIX 1
3825 cat >>confdefs.h <<\_ACEOF
3826 #define LLVM_ON_WIN32 1
3836 { echo "$as_me:$LINENO: checking target architecture" >&5
3837 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3838 if test "${llvm_cv_target_arch+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 i?86-*) llvm_cv_target_arch="x86" ;;
3843 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3844 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3845 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3846 arm*-*) llvm_cv_target_arch="ARM" ;;
3847 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
3848 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3849 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3850 xcore-*) llvm_cv_target_arch="XCore" ;;
3851 msp430-*) llvm_cv_target_arch="MSP430" ;;
3852 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3853 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3854 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3855 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3856 *) llvm_cv_target_arch="Unknown" ;;
3859 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3860 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3862 if test "$llvm_cv_target_arch" = "Unknown" ; then
3863 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3864 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3867 # Determine the LLVM native architecture for the target
3868 case "$llvm_cv_target_arch" in
3869 x86) LLVM_NATIVE_ARCH="X86" ;;
3870 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3871 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3874 ARCH=$llvm_cv_target_arch
3879 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3880 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3881 if test "${ac_cv_path_GREP+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 # Extract the first word of "grep ggrep" to use in msg output
3885 if test -z "$GREP"; then
3886 set dummy grep ggrep; ac_prog_name=$2
3887 if test "${ac_cv_path_GREP+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in grep ggrep; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3901 # Check for GNU ac_path_GREP and select it if it is found.
3902 # Check for GNU $ac_path_GREP
3903 case `"$ac_path_GREP" --version 2>&1` in
3905 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3908 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 echo 'GREP' >> "conftest.nl"
3915 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 ac_count=`expr $ac_count + 1`
3918 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_GREP="$ac_path_GREP"
3921 ac_path_GREP_max=$ac_count
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3930 $ac_path_GREP_found && break 3
3940 GREP="$ac_cv_path_GREP"
3941 if test -z "$GREP"; then
3942 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3943 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3944 { (exit 1); exit 1; }; }
3948 ac_cv_path_GREP=$GREP
3953 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3954 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3955 GREP="$ac_cv_path_GREP"
3958 { echo "$as_me:$LINENO: checking for egrep" >&5
3959 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_EGREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3964 then ac_cv_path_EGREP="$GREP -E"
3966 # Extract the first word of "egrep" to use in msg output
3967 if test -z "$EGREP"; then
3968 set dummy egrep; ac_prog_name=$2
3969 if test "${ac_cv_path_EGREP+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_path_EGREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978 test -z "$as_dir" && as_dir=.
3979 for ac_prog in egrep; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3982 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3983 # Check for GNU ac_path_EGREP and select it if it is found.
3984 # Check for GNU $ac_path_EGREP
3985 case `"$ac_path_EGREP" --version 2>&1` in
3987 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3990 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 echo 'EGREP' >> "conftest.nl"
3997 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999 ac_count=`expr $ac_count + 1`
4000 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_EGREP="$ac_path_EGREP"
4003 ac_path_EGREP_max=$ac_count
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 $ac_path_EGREP_found && break 3
4022 EGREP="$ac_cv_path_EGREP"
4023 if test -z "$EGREP"; then
4024 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026 { (exit 1); exit 1; }; }
4030 ac_cv_path_EGREP=$EGREP
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4038 EGREP="$ac_cv_path_EGREP"
4041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4043 if test "${ac_cv_header_stdc+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4065 rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_compile") 2>conftest.er1
4074 grep -v '^ *+' conftest.er1 >conftest.err
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080 { (case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_try") 2>&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095 (eval "$ac_try") 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 ac_cv_header_stdc=yes
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 ac_cv_header_stdc=no
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 if test $ac_cv_header_stdc = yes; then
4110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121 $EGREP "memchr" >/dev/null 2>&1; then
4124 ac_cv_header_stdc=no
4130 if test $ac_cv_header_stdc = yes; then
4131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142 $EGREP "free" >/dev/null 2>&1; then
4145 ac_cv_header_stdc=no
4151 if test $ac_cv_header_stdc = yes; then
4152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4153 if test "$cross_compiling" = yes; then
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4164 #if ((' ' & 0x0FF) == 0x020)
4165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4168 # define ISLOWER(c) \
4169 (('a' <= (c) && (c) <= 'i') \
4170 || ('j' <= (c) && (c) <= 'r') \
4171 || ('s' <= (c) && (c) <= 'z'))
4172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4180 for (i = 0; i < 256; i++)
4181 if (XOR (islower (i), ISLOWER (i))
4182 || toupper (i) != TOUPPER (i))
4187 rm -f conftest$ac_exeext
4188 if { (ac_try="$ac_link"
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_link") 2>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4209 echo "$as_me: program exited with status $ac_status" >&5
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4214 ac_cv_header_stdc=no
4216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4222 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4223 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4224 if test $ac_cv_header_stdc = yes; then
4226 cat >>confdefs.h <<\_ACEOF
4227 #define STDC_HEADERS 1
4232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4243 inttypes.h stdint.h unistd.h
4245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 $ac_includes_default
4259 #include <$ac_header>
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_compile") 2>conftest.er1
4270 grep -v '^ *+' conftest.er1 >conftest.err
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; } &&
4285 { ac_try='test -s conftest.$ac_objext'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 eval "$as_ac_Header=yes"
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 eval "$as_ac_Header=no"
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_res=`eval echo '${'$as_ac_Header'}'`
4306 { echo "$as_me:$LINENO: result: $ac_res" >&5
4307 echo "${ECHO_T}$ac_res" >&6; }
4308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4309 cat >>confdefs.h <<_ACEOF
4310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4319 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4320 if test "${ac_cv_c_bigendian+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 # See if sys/param.h defines the BYTE_ORDER macro.
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <sys/types.h>
4331 #include <sys/param.h>
4336 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 # It does; now see whether it defined to BIG_ENDIAN or not.
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 #include <sys/types.h>
4386 #include <sys/param.h>
4391 #if BYTE_ORDER != BIG_ENDIAN
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_compile") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4414 { (case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_try") 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_try") 2>&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_c_bigendian=yes
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_cv_c_bigendian=no
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 # It does not; compile a test program.
4447 if test "$cross_compiling" = yes; then
4448 # try to guess the endianness by grepping values into an object file
4449 ac_cv_c_bigendian=unknown
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4457 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4458 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4459 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4460 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4461 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4465 _ascii (); _ebcdic ();
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_compile") 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4485 { (case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_try") 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest.$ac_objext'
4495 { (case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_try") 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4505 ac_cv_c_bigendian=yes
4507 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4508 if test "$ac_cv_c_bigendian" = unknown; then
4509 ac_cv_c_bigendian=no
4511 # finding both strings is unlikely to happen, but who knows?
4512 ac_cv_c_bigendian=unknown
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4535 /* Are we little or big endian? From Harbison&Steele. */
4539 char c[sizeof (long int)];
4542 return u.c[sizeof (long int) - 1] == 1;
4548 rm -f conftest$ac_exeext
4549 if { (ac_try="$ac_link"
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555 (eval "$ac_link") 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4559 { (case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_try") 2>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 ac_cv_c_bigendian=no
4570 echo "$as_me: program exited with status $ac_status" >&5
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4575 ac_cv_c_bigendian=yes
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4586 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4587 case $ac_cv_c_bigendian in
4595 { { echo "$as_me:$LINENO: error: unknown endianness
4596 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4597 echo "$as_me: error: unknown endianness
4598 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4599 { (exit 1); exit 1; }; } ;;
4603 if test "$cross_compiling" = yes; then
4604 LLVM_CROSS_COMPILING=1
4607 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4608 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4609 if test "${ac_cv_build_exeext+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4613 ac_cv_build_exeext=.exe
4615 ac_build_prefix=${build_alias}-
4617 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4618 set dummy ${ac_build_prefix}gcc; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 if test -n "$BUILD_CC"; then
4625 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 BUILD_CC=$ac_cv_prog_BUILD_CC
4645 if test -n "$BUILD_CC"; then
4646 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4647 echo "${ECHO_T}$BUILD_CC" >&6; }
4649 { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4654 if test -z "$BUILD_CC"; then
4655 # Extract the first word of "gcc", so it can be a program name with args.
4656 set dummy gcc; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 if test -n "$BUILD_CC"; then
4663 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_BUILD_CC="gcc"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 BUILD_CC=$ac_cv_prog_BUILD_CC
4683 if test -n "$BUILD_CC"; then
4684 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4685 echo "${ECHO_T}$BUILD_CC" >&6; }
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4692 if test -z "$BUILD_CC"; then
4693 # Extract the first word of "cc", so it can be a program name with args.
4694 set dummy cc; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 if test -n "$BUILD_CC"; then
4701 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4712 ac_prog_rejected=yes
4715 ac_cv_prog_BUILD_CC="cc"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 if test $ac_prog_rejected = yes; then
4724 # We found a bogon in the path, so make sure we never use it.
4725 set dummy $ac_cv_prog_BUILD_CC
4727 if test $# != 0; then
4728 # We chose a different compiler from the bogus one.
4729 # However, it has the same basename, so the bogon will be chosen
4730 # first if we set BUILD_CC to just the basename; use the full file name.
4732 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4737 BUILD_CC=$ac_cv_prog_BUILD_CC
4738 if test -n "$BUILD_CC"; then
4739 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4740 echo "${ECHO_T}$BUILD_CC" >&6; }
4742 { echo "$as_me:$LINENO: result: no" >&5
4743 echo "${ECHO_T}no" >&6; }
4749 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4750 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4751 { (exit 1); exit 1; }; }
4752 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4754 echo 'int main () { return 0; }' > conftest.$ac_ext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4757 (eval $ac_build_link) 2>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; then
4761 for file in conftest.*; do
4763 *.c | *.o | *.obj | *.dSYM) ;;
4764 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4768 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4769 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4770 { (exit 1); exit 1; }; }
4773 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4778 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4779 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4780 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4781 ac_build_exeext=$BUILD_EXEEXT
4783 ac_build_prefix=${build_alias}-
4784 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4785 set dummy ${ac_build_prefix}g++; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 if test -n "$BUILD_CXX"; then
4792 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4812 if test -n "$BUILD_CXX"; then
4813 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4814 echo "${ECHO_T}$BUILD_CXX" >&6; }
4816 { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4821 if test -z "$BUILD_CXX"; then
4822 # Extract the first word of "g++", so it can be a program name with args.
4823 set dummy g++; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 if test -n "$BUILD_CXX"; then
4830 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_BUILD_CXX="g++"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4850 if test -n "$BUILD_CXX"; then
4851 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4852 echo "${ECHO_T}$BUILD_CXX" >&6; }
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4859 if test -z "$BUILD_CXX"; then
4860 # Extract the first word of "c++", so it can be a program name with args.
4861 set dummy c++; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 if test -n "$BUILD_CXX"; then
4868 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4879 ac_prog_rejected=yes
4882 ac_cv_prog_BUILD_CXX="c++"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 if test $ac_prog_rejected = yes; then
4891 # We found a bogon in the path, so make sure we never use it.
4892 set dummy $ac_cv_prog_BUILD_CXX
4894 if test $# != 0; then
4895 # We chose a different compiler from the bogus one.
4896 # However, it has the same basename, so the bogon will be chosen
4897 # first if we set BUILD_CXX to just the basename; use the full file name.
4899 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4904 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4905 if test -n "$BUILD_CXX"; then
4906 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4907 echo "${ECHO_T}$BUILD_CXX" >&6; }
4909 { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4917 LLVM_CROSS_COMPILING=0
4921 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4932 # Check whether --enable-libcpp was given.
4933 if test "${enable_libcpp+set}" = set; then
4934 enableval=$enable_libcpp;
4939 case "$enableval" in
4940 yes) ENABLE_LIBCPP=1
4944 default) ENABLE_LIBCPP=0
4946 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4947 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4948 { (exit 1); exit 1; }; } ;;
4951 # Check whether --enable-cxx11 was given.
4952 if test "${enable_cxx11+set}" = set; then
4953 enableval=$enable_cxx11;
4958 case "$enableval" in
4963 default) ENABLE_CXX11=0
4965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972 enableval=$enable_optimized;
4977 if test ${enableval} = "no" ; then
4981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987 enableval=$enable_profiling;
4992 if test ${enableval} = "no" ; then
4996 ENABLE_PROFILING=ENABLE_PROFILING=1
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002 enableval=$enable_assertions;
5007 if test ${enableval} = "yes" ; then
5011 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5015 # Check whether --enable-werror was given.
5016 if test "${enable_werror+set}" = set; then
5017 enableval=$enable_werror;
5022 case "$enableval" in
5023 yes) ENABLE_WERROR=1
5027 default) ENABLE_WERROR=0
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5034 # Check whether --enable-expensive-checks was given.
5035 if test "${enable_expensive_checks+set}" = set; then
5036 enableval=$enable_expensive_checks;
5041 if test ${enableval} = "yes" ; then
5042 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5044 EXPENSIVE_CHECKS=yes
5047 ENABLE_EXPENSIVE_CHECKS=
5053 # Check whether --enable-debug-runtime was given.
5054 if test "${enable_debug_runtime+set}" = set; then
5055 enableval=$enable_debug_runtime;
5060 if test ${enableval} = "no" ; then
5064 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5068 # Check whether --enable-debug-symbols was given.
5069 if test "${enable_debug_symbols+set}" = set; then
5070 enableval=$enable_debug_symbols;
5075 if test ${enableval} = "no" ; then
5079 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085 enableval=$enable_jit;
5090 if test ${enableval} = "no"
5095 case "$llvm_cv_target_arch" in
5096 x86) TARGET_HAS_JIT=1
5098 Sparc) TARGET_HAS_JIT=0
5100 PowerPC) TARGET_HAS_JIT=1
5102 x86_64) TARGET_HAS_JIT=1
5104 ARM) TARGET_HAS_JIT=1
5106 AArch64) TARGET_HAS_JIT=0
5108 Mips) TARGET_HAS_JIT=1
5110 XCore) TARGET_HAS_JIT=0
5112 MSP430) TARGET_HAS_JIT=0
5114 Hexagon) TARGET_HAS_JIT=0
5116 MBlaze) TARGET_HAS_JIT=0
5118 NVPTX) TARGET_HAS_JIT=0
5120 SystemZ) TARGET_HAS_JIT=1
5127 # Check whether --enable-docs was given.
5128 if test "${enable_docs+set}" = set; then
5129 enableval=$enable_docs;
5134 case "$enableval" in
5139 default) ENABLE_DOCS=1
5141 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5146 # Check whether --enable-doxygen was given.
5147 if test "${enable_doxygen+set}" = set; then
5148 enableval=$enable_doxygen;
5153 case "$enableval" in
5154 yes) ENABLE_DOXYGEN=1
5156 no) ENABLE_DOXYGEN=0
5158 default) ENABLE_DOXYGEN=0
5160 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162 { (exit 1); exit 1; }; } ;;
5165 # Check whether --enable-threads was given.
5166 if test "${enable_threads+set}" = set; then
5167 enableval=$enable_threads;
5172 case "$enableval" in
5173 yes) ENABLE_THREADS=1
5175 no) ENABLE_THREADS=0
5177 default) ENABLE_THREADS=1
5179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181 { (exit 1); exit 1; }; } ;;
5184 cat >>confdefs.h <<_ACEOF
5185 #define ENABLE_THREADS $ENABLE_THREADS
5189 # Check whether --enable-pthreads was given.
5190 if test "${enable_pthreads+set}" = set; then
5191 enableval=$enable_pthreads;
5196 case "$enableval" in
5197 yes) ENABLE_PTHREADS=1
5199 no) ENABLE_PTHREADS=0
5201 default) ENABLE_PTHREADS=1
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5208 # Check whether --enable-pic was given.
5209 if test "${enable_pic+set}" = set; then
5210 enableval=$enable_pic;
5215 case "$enableval" in
5220 default) ENABLE_PIC=1
5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5227 cat >>confdefs.h <<_ACEOF
5228 #define ENABLE_PIC $ENABLE_PIC
5232 # Check whether --enable-shared was given.
5233 if test "${enable_shared+set}" = set; then
5234 enableval=$enable_shared;
5239 case "$enableval" in
5240 yes) ENABLE_SHARED=1
5244 default) ENABLE_SHARED=0
5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
5251 # Check whether --enable-embed-stdcxx was given.
5252 if test "${enable_embed_stdcxx+set}" = set; then
5253 enableval=$enable_embed_stdcxx;
5258 case "$enableval" in
5259 yes) ENABLE_EMBED_STDCXX=1
5261 no) ENABLE_EMBED_STDCXX=0
5263 default) ENABLE_EMBED_STDCXX=1
5265 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5267 { (exit 1); exit 1; }; } ;;
5270 # Check whether --enable-timestamps was given.
5271 if test "${enable_timestamps+set}" = set; then
5272 enableval=$enable_timestamps;
5277 case "$enableval" in
5278 yes) ENABLE_TIMESTAMPS=1
5280 no) ENABLE_TIMESTAMPS=0
5282 default) ENABLE_TIMESTAMPS=1
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5289 cat >>confdefs.h <<_ACEOF
5290 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5295 # Check whether --enable-targets was given.
5296 if test "${enable_targets+set}" = set; then
5297 enableval=$enable_targets;
5302 if test "$enableval" = host-only ; then
5305 case "$enableval" in
5306 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5307 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5309 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5312 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5313 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5314 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5315 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5317 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5318 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5319 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5320 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5321 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5322 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5323 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5324 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5325 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5326 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5327 host) case "$llvm_cv_target_arch" in
5328 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5331 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5332 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5333 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5334 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5336 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5337 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5338 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5339 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5340 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5341 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5342 echo "$as_me: error: Can not set target to build" >&2;}
5343 { (exit 1); exit 1; }; } ;;
5345 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5346 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5347 { (exit 1); exit 1; }; } ;;
5352 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5355 # Determine whether we are building LLVM support for the native architecture.
5356 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5357 for a_target in $TARGETS_TO_BUILD; do
5358 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5360 cat >>confdefs.h <<_ACEOF
5361 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5364 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5365 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5366 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5367 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5368 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5369 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5371 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5372 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5394 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5396 cat >>confdefs.h <<_ACEOF
5397 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5401 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5411 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5412 # target feature def files.
5413 LLVM_ENUM_TARGETS=""
5414 LLVM_ENUM_ASM_PRINTERS=""
5415 LLVM_ENUM_ASM_PARSERS=""
5416 LLVM_ENUM_DISASSEMBLERS=""
5417 for target_to_build in $TARGETS_TO_BUILD; do
5418 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5419 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5420 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5422 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5423 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5425 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5426 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5435 # Check whether --with-optimize-option was given.
5436 if test "${with_optimize_option+set}" = set; then
5437 withval=$with_optimize_option;
5442 { echo "$as_me:$LINENO: checking optimization flags" >&5
5443 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5446 case "$llvm_cv_os_type" in
5447 FreeBSD) optimize_option=-O2 ;;
5448 MingW) optimize_option=-O2 ;;
5449 *) optimize_option=-O3 ;;
5451 *) optimize_option="$withval" ;;
5453 OPTIMIZE_OPTION=$optimize_option
5455 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5456 echo "${ECHO_T}$optimize_option" >&6; }
5459 # Check whether --with-extra-options was given.
5460 if test "${with_extra_options+set}" = set; then
5461 withval=$with_extra_options;
5467 default) EXTRA_OPTIONS= ;;
5468 *) EXTRA_OPTIONS=$withval ;;
5470 EXTRA_OPTIONS=$EXTRA_OPTIONS
5474 # Check whether --with-extra-ld-options was given.
5475 if test "${with_extra_ld_options+set}" = set; then
5476 withval=$with_extra_ld_options;
5482 default) EXTRA_LD_OPTIONS= ;;
5483 *) EXTRA_LD_OPTIONS=$withval ;;
5485 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5488 # Check whether --enable-bindings was given.
5489 if test "${enable_bindings+set}" = set; then
5490 enableval=$enable_bindings;
5495 BINDINGS_TO_BUILD=""
5496 case "$enableval" in
5497 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5498 all ) BINDINGS_TO_BUILD="ocaml" ;;
5499 none | no) BINDINGS_TO_BUILD="" ;;
5500 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5501 case "$a_binding" in
5502 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5503 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5504 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5505 { (exit 1); exit 1; }; } ;;
5512 # Check whether --with-ocaml-libdir was given.
5513 if test "${with_ocaml_libdir+set}" = set; then
5514 withval=$with_ocaml_libdir;
5520 auto) with_ocaml_libdir="$withval" ;;
5521 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5522 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5523 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5524 { (exit 1); exit 1; }; } ;;
5528 # Check whether --with-clang-resource-dir was given.
5529 if test "${with_clang_resource_dir+set}" = set; then
5530 withval=$with_clang_resource_dir;
5536 cat >>confdefs.h <<_ACEOF
5537 #define CLANG_RESOURCE_DIR "$withval"
5542 # Check whether --with-c-include-dirs was given.
5543 if test "${with_c_include_dirs+set}" = set; then
5544 withval=$with_c_include_dirs;
5550 cat >>confdefs.h <<_ACEOF
5551 #define C_INCLUDE_DIRS "$withval"
5555 # Clang normally uses the system c++ headers and libraries. With this option,
5556 # clang will use the ones provided by a gcc installation instead. This option should
5557 # be passed the same value that was used with --prefix when configuring gcc.
5559 # Check whether --with-gcc-toolchain was given.
5560 if test "${with_gcc_toolchain+set}" = set; then
5561 withval=$with_gcc_toolchain;
5567 cat >>confdefs.h <<_ACEOF
5568 #define GCC_INSTALL_PREFIX "$withval"
5573 # Check whether --with-binutils-include was given.
5574 if test "${with_binutils_include+set}" = set; then
5575 withval=$with_binutils_include;
5581 default) WITH_BINUTILS_INCDIR=default ;;
5582 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5583 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5584 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5585 { (exit 1); exit 1; }; } ;;
5587 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5588 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5590 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5591 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5592 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5593 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5594 { (exit 1); exit 1; }; };
5599 # Check whether --with-bug-report-url was given.
5600 if test "${with_bug_report_url+set}" = set; then
5601 withval=$with_bug_report_url;
5603 withval="http://llvm.org/bugs/"
5607 cat >>confdefs.h <<_ACEOF
5608 #define BUG_REPORT_URL "$withval"
5612 # Check whether --enable-libffi was given.
5613 if test "${enable_libffi+set}" = set; then
5614 enableval=$enable_libffi; case "$enableval" in
5615 yes) llvm_cv_enable_libffi="yes" ;;
5616 no) llvm_cv_enable_libffi="no" ;;
5617 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5618 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5619 { (exit 1); exit 1; }; } ;;
5622 llvm_cv_enable_libffi=no
5627 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5628 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5629 if test "${lt_cv_path_NM+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 if test -n "$NM"; then
5633 # Let the user override the test.
5636 lt_nm_to_check="${ac_tool_prefix}nm"
5637 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5638 lt_nm_to_check="$lt_nm_to_check nm"
5640 for lt_tmp_nm in $lt_nm_to_check; do
5641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5642 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5644 test -z "$ac_dir" && ac_dir=.
5645 tmp_nm="$ac_dir/$lt_tmp_nm"
5646 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5647 # Check to see if the nm accepts a BSD-compat flag.
5648 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5649 # nm: unknown option "B" ignored
5650 # Tru64's nm complains that /dev/null is an invalid object file
5651 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5652 */dev/null* | *'Invalid file or object type'*)
5653 lt_cv_path_NM="$tmp_nm -B"
5657 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5659 lt_cv_path_NM="$tmp_nm -p"
5663 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5664 continue # so that we can try to find one that supports BSD flags
5673 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5676 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5677 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5682 { echo "$as_me:$LINENO: checking for GNU make" >&5
5683 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5684 if test "${llvm_cv_gnu_make_command+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 llvm_cv_gnu_make_command=''
5688 for a in "$MAKE" make gmake gnumake ; do
5689 if test -z "$a" ; then continue ; fi ;
5690 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5692 llvm_cv_gnu_make_command=$a ;
5697 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5698 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5699 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5703 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5704 echo "${ECHO_T}\"Not found\"" >&6; };
5708 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5709 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5711 if test "$LN_S" = "ln -s"; then
5712 { echo "$as_me:$LINENO: result: yes" >&5
5713 echo "${ECHO_T}yes" >&6; }
5715 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5716 echo "${ECHO_T}no, using $LN_S" >&6; }
5719 # Extract the first word of "cmp", so it can be a program name with args.
5720 set dummy cmp; ac_word=$2
5721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5723 if test "${ac_cv_path_CMP+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5738 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5751 if test -n "$CMP"; then
5752 { echo "$as_me:$LINENO: result: $CMP" >&5
5753 echo "${ECHO_T}$CMP" >&6; }
5755 { echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6; }
5760 # Extract the first word of "cp", so it can be a program name with args.
5761 set dummy cp; ac_word=$2
5762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5764 if test "${ac_cv_path_CP+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5779 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5792 if test -n "$CP"; then
5793 { echo "$as_me:$LINENO: result: $CP" >&5
5794 echo "${ECHO_T}$CP" >&6; }
5796 { echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6; }
5801 # Extract the first word of "date", so it can be a program name with args.
5802 set dummy date; ac_word=$2
5803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805 if test "${ac_cv_path_DATE+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5832 DATE=$ac_cv_path_DATE
5833 if test -n "$DATE"; then
5834 { echo "$as_me:$LINENO: result: $DATE" >&5
5835 echo "${ECHO_T}$DATE" >&6; }
5837 { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5842 # Extract the first word of "find", so it can be a program name with args.
5843 set dummy find; ac_word=$2
5844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5846 if test "${ac_cv_path_FIND+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5873 FIND=$ac_cv_path_FIND
5874 if test -n "$FIND"; then
5875 { echo "$as_me:$LINENO: result: $FIND" >&5
5876 echo "${ECHO_T}$FIND" >&6; }
5878 { echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6; }
5883 # Extract the first word of "grep", so it can be a program name with args.
5884 set dummy grep; ac_word=$2
5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887 if test "${ac_cv_path_GREP+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5914 GREP=$ac_cv_path_GREP
5915 if test -n "$GREP"; then
5916 { echo "$as_me:$LINENO: result: $GREP" >&5
5917 echo "${ECHO_T}$GREP" >&6; }
5919 { echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6; }
5924 # Extract the first word of "mkdir", so it can be a program name with args.
5925 set dummy mkdir; ac_word=$2
5926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928 if test "${ac_cv_path_MKDIR+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5955 MKDIR=$ac_cv_path_MKDIR
5956 if test -n "$MKDIR"; then
5957 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5958 echo "${ECHO_T}$MKDIR" >&6; }
5960 { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5965 # Extract the first word of "mv", so it can be a program name with args.
5966 set dummy mv; ac_word=$2
5967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5969 if test "${ac_cv_path_MV+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5997 if test -n "$MV"; then
5998 { echo "$as_me:$LINENO: result: $MV" >&5
5999 echo "${ECHO_T}$MV" >&6; }
6001 { echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6; }
6006 if test -n "$ac_tool_prefix"; then
6007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_prog_RANLIB+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 if test -n "$RANLIB"; then
6015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 RANLIB=$ac_cv_prog_RANLIB
6035 if test -n "$RANLIB"; then
6036 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6037 echo "${ECHO_T}$RANLIB" >&6; }
6039 { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6045 if test -z "$ac_cv_prog_RANLIB"; then
6046 ac_ct_RANLIB=$RANLIB
6047 # Extract the first word of "ranlib", so it can be a program name with args.
6048 set dummy ranlib; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 if test -n "$ac_ct_RANLIB"; then
6055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_prog_ac_ct_RANLIB="ranlib"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6075 if test -n "$ac_ct_RANLIB"; then
6076 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6077 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6079 { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6083 if test "x$ac_ct_RANLIB" = x; then
6086 case $cross_compiling:$ac_tool_warned in
6088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6089 whose name does not start with the host triplet. If you think this
6090 configuration is useful to you, please write to autoconf@gnu.org." >&5
6091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6092 whose name does not start with the host triplet. If you think this
6093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6094 ac_tool_warned=yes ;;
6096 RANLIB=$ac_ct_RANLIB
6099 RANLIB="$ac_cv_prog_RANLIB"
6102 if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}ar; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_AR+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 if test -n "$AR"; then
6111 ac_cv_prog_AR="$AR" # Let the user override the test.
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_prog_AR="${ac_tool_prefix}ar"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 if test -n "$AR"; then
6132 { echo "$as_me:$LINENO: result: $AR" >&5
6133 echo "${ECHO_T}$AR" >&6; }
6135 { echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6; }
6141 if test -z "$ac_cv_prog_AR"; then
6143 # Extract the first word of "ar", so it can be a program name with args.
6144 set dummy ar; ac_word=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 if test -n "$ac_ct_AR"; then
6151 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_ac_ct_AR="ar"
6161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6171 if test -n "$ac_ct_AR"; then
6172 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6173 echo "${ECHO_T}$ac_ct_AR" >&6; }
6175 { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6179 if test "x$ac_ct_AR" = x; then
6182 case $cross_compiling:$ac_tool_warned in
6184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6185 whose name does not start with the host triplet. If you think this
6186 configuration is useful to you, please write to autoconf@gnu.org." >&5
6187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6188 whose name does not start with the host triplet. If you think this
6189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6190 ac_tool_warned=yes ;;
6198 # Extract the first word of "rm", so it can be a program name with args.
6199 set dummy rm; ac_word=$2
6200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6202 if test "${ac_cv_path_RM+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6230 if test -n "$RM"; then
6231 { echo "$as_me:$LINENO: result: $RM" >&5
6232 echo "${ECHO_T}$RM" >&6; }
6234 { echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6; }
6239 # Extract the first word of "sed", so it can be a program name with args.
6240 set dummy sed; ac_word=$2
6241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6243 if test "${ac_cv_path_SED+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6271 if test -n "$SED"; then
6272 { echo "$as_me:$LINENO: result: $SED" >&5
6273 echo "${ECHO_T}$SED" >&6; }
6275 { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6280 # Extract the first word of "tar", so it can be a program name with args.
6281 set dummy tar; ac_word=$2
6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284 if test "${ac_cv_path_TAR+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6312 if test -n "$TAR"; then
6313 { echo "$as_me:$LINENO: result: $TAR" >&5
6314 echo "${ECHO_T}$TAR" >&6; }
6316 { echo "$as_me:$LINENO: result: no" >&5
6317 echo "${ECHO_T}no" >&6; }
6321 # Extract the first word of "pwd", so it can be a program name with args.
6322 set dummy pwd; ac_word=$2
6323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325 if test "${ac_cv_path_BINPWD+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6352 BINPWD=$ac_cv_path_BINPWD
6353 if test -n "$BINPWD"; then
6354 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6355 echo "${ECHO_T}$BINPWD" >&6; }
6357 { echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6; }
6363 # Extract the first word of "Graphviz", so it can be a program name with args.
6364 set dummy Graphviz; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6394 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6395 if test -n "$GRAPHVIZ"; then
6396 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6397 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6399 { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6404 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6406 cat >>confdefs.h <<\_ACEOF
6407 #define HAVE_GRAPHVIZ 1
6410 if test "$llvm_cv_os_type" = "MingW" ; then
6411 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6414 cat >>confdefs.h <<_ACEOF
6415 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6419 # Extract the first word of "dot", so it can be a program name with args.
6420 set dummy dot; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_path_DOT+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6451 if test -n "$DOT"; then
6452 { echo "$as_me:$LINENO: result: $DOT" >&5
6453 echo "${ECHO_T}$DOT" >&6; }
6455 { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6460 if test "$DOT" != "echo dot" ; then
6462 cat >>confdefs.h <<\_ACEOF
6466 if test "$llvm_cv_os_type" = "MingW" ; then
6467 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6470 cat >>confdefs.h <<_ACEOF
6471 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6475 # Extract the first word of "fdp", so it can be a program name with args.
6476 set dummy fdp; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_path_FDP+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6507 if test -n "$FDP"; then
6508 { echo "$as_me:$LINENO: result: $FDP" >&5
6509 echo "${ECHO_T}$FDP" >&6; }
6511 { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6516 if test "$FDP" != "echo fdp" ; then
6518 cat >>confdefs.h <<\_ACEOF
6522 if test "$llvm_cv_os_type" = "MingW" ; then
6523 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6526 cat >>confdefs.h <<_ACEOF
6527 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6531 # Extract the first word of "neato", so it can be a program name with args.
6532 set dummy neato; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_path_NEATO+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6562 NEATO=$ac_cv_path_NEATO
6563 if test -n "$NEATO"; then
6564 { echo "$as_me:$LINENO: result: $NEATO" >&5
6565 echo "${ECHO_T}$NEATO" >&6; }
6567 { echo "$as_me:$LINENO: result: no" >&5
6568 echo "${ECHO_T}no" >&6; }
6572 if test "$NEATO" != "echo neato" ; then
6574 cat >>confdefs.h <<\_ACEOF
6575 #define HAVE_NEATO 1
6578 if test "$llvm_cv_os_type" = "MingW" ; then
6579 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6582 cat >>confdefs.h <<_ACEOF
6583 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6587 # Extract the first word of "twopi", so it can be a program name with args.
6588 set dummy twopi; ac_word=$2
6589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591 if test "${ac_cv_path_TWOPI+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6618 TWOPI=$ac_cv_path_TWOPI
6619 if test -n "$TWOPI"; then
6620 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6621 echo "${ECHO_T}$TWOPI" >&6; }
6623 { echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6; }
6628 if test "$TWOPI" != "echo twopi" ; then
6630 cat >>confdefs.h <<\_ACEOF
6631 #define HAVE_TWOPI 1
6634 if test "$llvm_cv_os_type" = "MingW" ; then
6635 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6638 cat >>confdefs.h <<_ACEOF
6639 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6643 # Extract the first word of "circo", so it can be a program name with args.
6644 set dummy circo; ac_word=$2
6645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6647 if test "${ac_cv_path_CIRCO+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6662 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6674 CIRCO=$ac_cv_path_CIRCO
6675 if test -n "$CIRCO"; then
6676 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6677 echo "${ECHO_T}$CIRCO" >&6; }
6679 { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6684 if test "$CIRCO" != "echo circo" ; then
6686 cat >>confdefs.h <<\_ACEOF
6687 #define HAVE_CIRCO 1
6690 if test "$llvm_cv_os_type" = "MingW" ; then
6691 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6694 cat >>confdefs.h <<_ACEOF
6695 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6699 for ac_prog in gv gsview32
6701 # Extract the first word of "$ac_prog", so it can be a program name with args.
6702 set dummy $ac_prog; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_GV+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 if test -n "$GV"; then
6733 { echo "$as_me:$LINENO: result: $GV" >&5
6734 echo "${ECHO_T}$GV" >&6; }
6736 { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6741 test -n "$GV" && break
6743 test -n "$GV" || GV="echo gv"
6745 if test "$GV" != "echo gv" ; then
6747 cat >>confdefs.h <<\_ACEOF
6751 if test "$llvm_cv_os_type" = "MingW" ; then
6752 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6755 cat >>confdefs.h <<_ACEOF
6756 #define LLVM_PATH_GV "$GV${EXEEXT}"
6760 # Extract the first word of "dotty", so it can be a program name with args.
6761 set dummy dotty; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_DOTTY+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6791 DOTTY=$ac_cv_path_DOTTY
6792 if test -n "$DOTTY"; then
6793 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6794 echo "${ECHO_T}$DOTTY" >&6; }
6796 { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6801 if test "$DOTTY" != "echo dotty" ; then
6803 cat >>confdefs.h <<\_ACEOF
6804 #define HAVE_DOTTY 1
6807 if test "$llvm_cv_os_type" = "MingW" ; then
6808 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6811 cat >>confdefs.h <<_ACEOF
6812 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6816 # Extract the first word of "xdot.py", so it can be a program name with args.
6817 set dummy xdot.py; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6847 XDOT_PY=$ac_cv_path_XDOT_PY
6848 if test -n "$XDOT_PY"; then
6849 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6850 echo "${ECHO_T}$XDOT_PY" >&6; }
6852 { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6857 if test "$XDOT_PY" != "echo xdot.py" ; then
6859 cat >>confdefs.h <<\_ACEOF
6860 #define HAVE_XDOT_PY 1
6863 if test "$llvm_cv_os_type" = "MingW" ; then
6864 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6867 cat >>confdefs.h <<_ACEOF
6868 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6873 # Find a good install program. We prefer a C program (faster),
6874 # so one script is as good as another. But avoid the broken or
6875 # incompatible versions:
6876 # SysV /etc/install, /usr/sbin/install
6877 # SunOS /usr/etc/install
6878 # IRIX /sbin/install
6880 # AmigaOS /C/install, which installs bootblocks on floppy discs
6881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6884 # OS/2's system install, which has a completely different semantic
6885 # ./install, which can be erroneously created by make from ./install.sh.
6886 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6887 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6888 if test -z "$INSTALL"; then
6889 if test "${ac_cv_path_install+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir=.
6897 # Account for people who put trailing slashes in PATH elements.
6899 ./ | .// | /cC/* | \
6900 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6901 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6904 # OSF1 and SCO ODT 3.0 have their own names for install.
6905 # Don't use installbsd from OSF since it installs stuff as root
6907 for ac_prog in ginstall scoinst install; do
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6910 if test $ac_prog = install &&
6911 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6912 # AIX install. It has an incompatible calling convention.
6914 elif test $ac_prog = install &&
6915 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6916 # program-specific install script used by HP pwplus--don't use.
6919 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6932 if test "${ac_cv_path_install+set}" = set; then
6933 INSTALL=$ac_cv_path_install
6935 # As a last resort, use the slow shell script. Don't cache a
6936 # value for INSTALL within a source directory, because that will
6937 # break other packages using the cache if that directory is
6938 # removed, or if the value is a relative name.
6939 INSTALL=$ac_install_sh
6942 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6943 echo "${ECHO_T}$INSTALL" >&6; }
6945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6946 # It thinks the first close brace ends the variable substitution.
6947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6954 [\\/$]* | ?:[\\/]* ) ;;
6955 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6958 # Extract the first word of "bzip2", so it can be a program name with args.
6959 set dummy bzip2; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_path_BZIP2+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 BZIP2=$ac_cv_path_BZIP2
6989 if test -n "$BZIP2"; then
6990 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6991 echo "${ECHO_T}$BZIP2" >&6; }
6993 { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6998 # Extract the first word of "cat", so it can be a program name with args.
6999 set dummy cat; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_CAT+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 if test -n "$CAT"; then
7030 { echo "$as_me:$LINENO: result: $CAT" >&5
7031 echo "${ECHO_T}$CAT" >&6; }
7033 { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7038 # Extract the first word of "doxygen", so it can be a program name with args.
7039 set dummy doxygen; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 DOXYGEN=$ac_cv_path_DOXYGEN
7069 if test -n "$DOXYGEN"; then
7070 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7071 echo "${ECHO_T}$DOXYGEN" >&6; }
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7078 # Extract the first word of "groff", so it can be a program name with args.
7079 set dummy groff; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_GROFF+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 GROFF=$ac_cv_path_GROFF
7109 if test -n "$GROFF"; then
7110 { echo "$as_me:$LINENO: result: $GROFF" >&5
7111 echo "${ECHO_T}$GROFF" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7118 # Extract the first word of "gzip", so it can be a program name with args.
7119 set dummy gzip; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 GZIPBIN=$ac_cv_path_GZIPBIN
7149 if test -n "$GZIPBIN"; then
7150 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7151 echo "${ECHO_T}$GZIPBIN" >&6; }
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7158 # Extract the first word of "pod2html", so it can be a program name with args.
7159 set dummy pod2html; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_POD2HTML+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 POD2HTML=$ac_cv_path_POD2HTML
7189 if test -n "$POD2HTML"; then
7190 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7191 echo "${ECHO_T}$POD2HTML" >&6; }
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7198 # Extract the first word of "pod2man", so it can be a program name with args.
7199 set dummy pod2man; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_POD2MAN+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 POD2MAN=$ac_cv_path_POD2MAN
7229 if test -n "$POD2MAN"; then
7230 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7231 echo "${ECHO_T}$POD2MAN" >&6; }
7233 { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7238 # Extract the first word of "pdfroff", so it can be a program name with args.
7239 set dummy pdfroff; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_PDFROFF+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 PDFROFF=$ac_cv_path_PDFROFF
7269 if test -n "$PDFROFF"; then
7270 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7271 echo "${ECHO_T}$PDFROFF" >&6; }
7273 { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7278 # Extract the first word of "runtest", so it can be a program name with args.
7279 set dummy runtest; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_RUNTEST+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 RUNTEST=$ac_cv_path_RUNTEST
7309 if test -n "$RUNTEST"; then
7310 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7311 echo "${ECHO_T}$RUNTEST" >&6; }
7313 { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7320 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7321 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7323 # Check whether --with-tclinclude was given.
7324 if test "${with_tclinclude+set}" = set; then
7325 withval=$with_tclinclude; with_tclinclude=${withval}
7330 if test "${ac_cv_path_tclsh+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 if test x"${with_tclinclude}" != x ; then
7335 if test -f ${with_tclinclude}/tclsh ; then
7336 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7337 elif test -f ${with_tclinclude}/src/tclsh ; then
7338 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7340 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7341 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7342 { (exit 1); exit 1; }; }
7348 if test x"${ac_cv_path_tclsh}" = x ; then
7349 { echo "$as_me:$LINENO: result: none" >&5
7350 echo "${ECHO_T}none" >&6; }
7351 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
7353 # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy $ac_prog; ac_word=$2
7355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357 if test "${ac_cv_path_TCLSH+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 TCLSH=$ac_cv_path_TCLSH
7384 if test -n "$TCLSH"; then
7385 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7386 echo "${ECHO_T}$TCLSH" >&6; }
7388 { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7393 test -n "$TCLSH" && break
7396 if test x"${TCLSH}" = x ; then
7397 ac_cv_path_tclsh='';
7399 ac_cv_path_tclsh="${TCLSH}";
7402 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7403 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7404 TCLSH="${ac_cv_path_tclsh}"
7408 # Extract the first word of "zip", so it can be a program name with args.
7409 set dummy zip; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_path_ZIP+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 if test -n "$ZIP"; then
7440 { echo "$as_me:$LINENO: result: $ZIP" >&5
7441 echo "${ECHO_T}$ZIP" >&6; }
7443 { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7448 for ac_prog in ocamlc
7450 # Extract the first word of "$ac_prog", so it can be a program name with args.
7451 set dummy $ac_prog; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_OCAMLC+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 OCAMLC=$ac_cv_path_OCAMLC
7481 if test -n "$OCAMLC"; then
7482 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7483 echo "${ECHO_T}$OCAMLC" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7490 test -n "$OCAMLC" && break
7493 for ac_prog in ocamlopt
7495 # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 OCAMLOPT=$ac_cv_path_OCAMLOPT
7526 if test -n "$OCAMLOPT"; then
7527 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7528 echo "${ECHO_T}$OCAMLOPT" >&6; }
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7535 test -n "$OCAMLOPT" && break
7538 for ac_prog in ocamldep
7540 # Extract the first word of "$ac_prog", so it can be a program name with args.
7541 set dummy $ac_prog; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 OCAMLDEP=$ac_cv_path_OCAMLDEP
7571 if test -n "$OCAMLDEP"; then
7572 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7573 echo "${ECHO_T}$OCAMLDEP" >&6; }
7575 { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7580 test -n "$OCAMLDEP" && break
7583 for ac_prog in ocamldoc
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 OCAMLDOC=$ac_cv_path_OCAMLDOC
7616 if test -n "$OCAMLDOC"; then
7617 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7618 echo "${ECHO_T}$OCAMLDOC" >&6; }
7620 { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7625 test -n "$OCAMLDOC" && break
7628 for ac_prog in gas as
7630 # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_GAS+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 if test -n "$GAS"; then
7662 { echo "$as_me:$LINENO: result: $GAS" >&5
7663 echo "${ECHO_T}$GAS" >&6; }
7665 { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7670 test -n "$GAS" && break
7674 { echo "$as_me:$LINENO: checking for linker version" >&5
7675 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7676 if test "${llvm_cv_link_version+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 version_string="$(ld -v 2>&1 | head -1)"
7683 if (echo "$version_string" | grep -q "ld64"); then
7684 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7686 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7690 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7691 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7693 cat >>confdefs.h <<_ACEOF
7694 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7699 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7700 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7701 if test "${llvm_cv_link_use_r+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711 CFLAGS="$CFLAGS -Wl,-R."
7712 cat >conftest.$ac_ext <<_ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (ac_try="$ac_link"
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_link") 2>conftest.er1
7736 grep -v '^ *+' conftest.er1 >conftest.err
7738 cat conftest.err >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } &&
7741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7742 { (case "(($ac_try" in
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747 (eval "$ac_try") 2>&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try='test -s conftest$ac_exeext'
7752 { (case "(($ac_try" in
7753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757 (eval "$ac_try") 2>&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 llvm_cv_link_use_r=yes
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 llvm_cv_link_use_r=no
7769 rm -f core conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext conftest.$ac_ext
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7781 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7782 if test "$llvm_cv_link_use_r" = yes ; then
7784 cat >>confdefs.h <<\_ACEOF
7785 #define HAVE_LINK_R 1
7791 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7792 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7793 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 ac_cpp='$CPP $CPPFLAGS'
7798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7803 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7819 rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (ac_try="$ac_link"
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_link") 2>conftest.er1
7828 grep -v '^ *+' conftest.er1 >conftest.err
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7834 { (case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_try") 2>&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest$ac_exeext'
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 llvm_cv_link_use_export_dynamic=yes
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7858 llvm_cv_link_use_export_dynamic=no
7861 rm -f core conftest.err conftest.$ac_objext \
7862 conftest$ac_exeext conftest.$ac_ext
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7872 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7873 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7874 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7876 cat >>confdefs.h <<\_ACEOF
7877 #define HAVE_LINK_EXPORT_DYNAMIC 1
7883 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7884 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7885 if test "${llvm_cv_link_use_version_script+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896 # The following code is from the autoconf manual,
7897 # "11.13: Limitations of Usual Tools".
7898 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7899 # Use mktemp if possible; otherwise fall back on mkdir,
7900 # with $RANDOM to make collisions less likely.
7904 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7906 test -n "$tmp" && test -d "$tmp"
7908 tmp=$TMPDIR/foo$$-$RANDOM
7909 (umask 077 && mkdir "$tmp")
7912 echo "{" > "$tmp/export.map"
7913 echo " global: main;" >> "$tmp/export.map"
7914 echo " local: *;" >> "$tmp/export.map"
7915 echo "};" >> "$tmp/export.map"
7917 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_link") 2>conftest.er1
7942 grep -v '^ *+' conftest.er1 >conftest.err
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7948 { (case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_try") 2>&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; } &&
7957 { ac_try='test -s conftest$ac_exeext'
7958 { (case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963 (eval "$ac_try") 2>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 llvm_cv_link_use_version_script=yes
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 llvm_cv_link_use_version_script=no
7975 rm -f core conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 rm "$tmp/export.map"
7981 ac_cpp='$CPP $CPPFLAGS'
7982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7988 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7989 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7990 if test "$llvm_cv_link_use_version_script" = yes ; then
7991 HAVE_LINK_VERSION_SCRIPT=1
7998 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7999 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8000 if test "${ac_cv_c_const+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 cat >conftest.$ac_ext <<_ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8013 /* FIXME: Include the comments suggested by Paul. */
8015 /* Ultrix mips cc rejects this. */
8016 typedef int charset[2];
8018 /* SunOS 4.1.1 cc rejects this. */
8019 char const *const *ccp;
8021 /* NEC SVR4.0.2 mips cc rejects this. */
8022 struct point {int x, y;};
8023 static struct point const zero = {0,0};
8024 /* AIX XL C 1.02.0.0 rejects this.
8025 It does not let you subtract one const X* pointer from another in
8026 an arm of an if-expression whose if-part is not a constant
8028 const char *g = "string";
8029 ccp = &g + (g ? g-g : 0);
8030 /* HPUX 7.0 cc rejects these. */
8033 ccp = (char const *const *) p;
8034 { /* SCO 3.2v4 cc rejects this. */
8036 char const *s = 0 ? (char *) 0 : (char const *) 0;
8041 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8043 const int *foo = &x[0];
8046 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8047 typedef const int *iptr;
8051 { /* AIX XL C 1.02.0.0 rejects this saying
8052 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8053 struct s { int j; const int *ap[3]; };
8054 struct s *b; b->j = 5;
8056 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8060 return !x[0] && !zero.x;
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_compile") 2>conftest.er1
8076 grep -v '^ *+' conftest.er1 >conftest.err
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8082 { (case "(($ac_try" in
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_try") 2>&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try='test -s conftest.$ac_objext'
8092 { (case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_try") 2>&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8112 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8113 if test $ac_cv_c_const = no; then
8115 cat >>confdefs.h <<\_ACEOF
8127 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8128 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8129 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8130 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 #include <sys/types.h>
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_compile") 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8167 { (case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_try") 2>&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest.$ac_objext'
8177 { (case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_try") 2>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 eval "$as_ac_Header=yes"
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8191 eval "$as_ac_Header=no"
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 ac_res=`eval echo '${'$as_ac_Header'}'`
8197 { echo "$as_me:$LINENO: result: $ac_res" >&5
8198 echo "${ECHO_T}$ac_res" >&6; }
8199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8200 cat >>confdefs.h <<_ACEOF
8201 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8204 ac_header_dirent=$ac_hdr; break
8208 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8209 if test $ac_header_dirent = dirent.h; then
8210 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8211 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8212 if test "${ac_cv_search_opendir+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 ac_func_search_save_LIBS=$LIBS
8216 cat >conftest.$ac_ext <<_ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8223 /* Override any GCC internal prototype to avoid an error.
8224 Use char because int might match the return type of a GCC
8225 builtin and then its argument prototype would still apply. */
8238 for ac_lib in '' dir; do
8239 if test -z "$ac_lib"; then
8240 ac_res="none required"
8243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_link") 2>conftest.er1
8254 grep -v '^ *+' conftest.er1 >conftest.err
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8260 { (case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_try") 2>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest$ac_exeext'
8270 { (case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_try") 2>&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 ac_cv_search_opendir=$ac_res
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8287 rm -f core conftest.err conftest.$ac_objext \
8289 if test "${ac_cv_search_opendir+set}" = set; then
8293 if test "${ac_cv_search_opendir+set}" = set; then
8296 ac_cv_search_opendir=no
8299 LIBS=$ac_func_search_save_LIBS
8301 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8302 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8303 ac_res=$ac_cv_search_opendir
8304 if test "$ac_res" != no; then
8305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8310 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8311 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8312 if test "${ac_cv_search_opendir+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 ac_func_search_save_LIBS=$LIBS
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8323 /* Override any GCC internal prototype to avoid an error.
8324 Use char because int might match the return type of a GCC
8325 builtin and then its argument prototype would still apply. */
8338 for ac_lib in '' x; do
8339 if test -z "$ac_lib"; then
8340 ac_res="none required"
8343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8345 rm -f conftest.$ac_objext conftest$ac_exeext
8346 if { (ac_try="$ac_link"
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_link") 2>conftest.er1
8354 grep -v '^ *+' conftest.er1 >conftest.err
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8360 { (case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_try") 2>&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; } &&
8369 { ac_try='test -s conftest$ac_exeext'
8370 { (case "(($ac_try" in
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_try") 2>&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; }; then
8379 ac_cv_search_opendir=$ac_res
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8387 rm -f core conftest.err conftest.$ac_objext \
8389 if test "${ac_cv_search_opendir+set}" = set; then
8393 if test "${ac_cv_search_opendir+set}" = set; then
8396 ac_cv_search_opendir=no
8399 LIBS=$ac_func_search_save_LIBS
8401 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8402 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8403 ac_res=$ac_cv_search_opendir
8404 if test "$ac_res" != no; then
8405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8412 for ac_header in dlfcn.h
8414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 ac_res=`eval echo '${'$as_ac_Header'}'`
8422 { echo "$as_me:$LINENO: result: $ac_res" >&5
8423 echo "${ECHO_T}$ac_res" >&6; }
8425 # Is the header compilable?
8426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 $ac_includes_default
8435 #include <$ac_header>
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_compile") 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_try") 2>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_try") 2>&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 ac_header_compiler=yes
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8476 ac_header_compiler=no
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8481 echo "${ECHO_T}$ac_header_compiler" >&6; }
8483 # Is the header present?
8484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8486 cat >conftest.$ac_ext <<_ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 #include <$ac_header>
8494 if { (ac_try="$ac_cpp conftest.$ac_ext"
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } >/dev/null; then
8507 if test -s conftest.err; then
8508 ac_cpp_err=$ac_c_preproc_warn_flag
8509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8516 if test -z "$ac_cpp_err"; then
8517 ac_header_preproc=yes
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8522 ac_header_preproc=no
8525 rm -f conftest.err conftest.$ac_ext
8526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8527 echo "${ECHO_T}$ac_header_preproc" >&6; }
8529 # So? What about this header?
8530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8536 ac_header_preproc=yes
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8552 ## ------------------------------ ##
8553 ## Report this to bugs@yourdomain ##
8554 ## ------------------------------ ##
8556 ) | sed "s/^/$as_me: WARNING: /" >&2
8559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 eval "$as_ac_Header=\$ac_header_preproc"
8566 ac_res=`eval echo '${'$as_ac_Header'}'`
8567 { echo "$as_me:$LINENO: result: $ac_res" >&5
8568 echo "${ECHO_T}$ac_res" >&6; }
8571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8572 cat >>confdefs.h <<_ACEOF
8573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8580 # Check whether --enable-ltdl-install was given.
8581 if test "${enable_ltdl_install+set}" = set; then
8582 enableval=$enable_ltdl_install;
8588 if test x"${enable_ltdl_install-no}" != xno; then
8590 INSTALL_LTDL_FALSE='#'
8592 INSTALL_LTDL_TRUE='#'
8598 if test x"${enable_ltdl_convenience-no}" != xno; then
8599 CONVENIENCE_LTDL_TRUE=
8600 CONVENIENCE_LTDL_FALSE='#'
8602 CONVENIENCE_LTDL_TRUE='#'
8603 CONVENIENCE_LTDL_FALSE=
8607 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8608 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8610 libname_spec='lib$name'
8618 shlibpath_overrides_runpath=unknown
8620 dynamic_linker="$host_os ld.so"
8621 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8622 if test "$GCC" = yes; then
8623 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8624 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8625 # if the path contains ";" then we assume it to be the separator
8626 # otherwise default to the standard path separator (i.e. ":") - it is
8627 # assumed that no part of a normal pathname contains ";" but that should
8628 # okay in the real world where ";" in dirpaths is itself problematic.
8629 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8636 need_lib_prefix=unknown
8637 hardcode_into_libs=no
8639 # when you set need_version to no, make sure it does not cause -set_version
8640 # flags to be left without arguments
8641 need_version=unknown
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8647 shlibpath_var=LIBPATH
8649 # AIX 3 has no versioning support, so we append a major version to the name.
8650 soname_spec='${libname}${release}${shared_ext}$major'
8657 hardcode_into_libs=yes
8658 if test "$host_cpu" = ia64; then
8659 # AIX 5 supports IA64
8660 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8661 shlibpath_var=LD_LIBRARY_PATH
8663 # With GCC up to 2.95.x, collect2 would create an import file
8664 # for dependence libraries. The import file would start with
8665 # the line `#! .'. This would cause the generated library to
8666 # depend on `.', always an invalid library. This was fixed in
8667 # development snapshots of GCC prior to 3.0.
8669 aix4 | aix4.[01] | aix4.[01].*)
8670 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8672 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8679 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8680 # soname into executable. Probably we can add versioning support to
8681 # collect2, so additional links can be useful in future.
8682 if test "$aix_use_runtimelinking" = yes; then
8683 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8684 # instead of lib<name>.a to let people know that these are not
8685 # typical AIX shared libraries.
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8688 # We preserve .a as extension for shared libraries through AIX4.2
8689 # and later when we are not doing run time linking.
8690 library_names_spec='${libname}${release}.a $libname.a'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8693 shlibpath_var=LIBPATH
8698 library_names_spec='$libname.ixlibrary $libname.a'
8699 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8700 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'
8704 library_names_spec='${libname}${shared_ext}'
8705 dynamic_linker="$host_os ld.so"
8706 shlibpath_var=LIBRARY_PATH
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8715 shlibpath_var=LD_LIBRARY_PATH
8716 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8717 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8718 # the default ld.so.conf also contains /usr/contrib/lib and
8719 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8720 # libtool to hard-code these into programs
8723 cygwin* | mingw* | pw32*)
8724 version_type=windows
8729 case $GCC,$host_os in
8730 yes,cygwin* | yes,mingw* | yes,pw32*)
8731 library_names_spec='$libname.dll.a'
8732 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8733 postinstall_cmds='base_file=`basename \${file}`~
8734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8735 dldir=$destdir/`dirname \$dlpath`~
8736 test -d \$dldir || mkdir -p \$dldir~
8737 $install_prog $dir/$dlname \$dldir/$dlname~
8738 chmod a+x \$dldir/$dlname'
8739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8740 dlpath=$dir/\$dldll~
8742 shlibpath_overrides_runpath=yes
8746 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8747 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8748 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8751 # MinGW DLLs use traditional 'lib' prefix
8752 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8753 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8754 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8755 # It is most probably a Windows format PATH printed by
8756 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8757 # path with ; separators, and with drive letters. We can handle the
8758 # drive letters (cygwin fileutils understands them), so leave them,
8759 # especially as we might pass files found there to a mingw objdump,
8760 # which wouldn't understand a cygwinified path. Ahh.
8761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8767 # pw32 DLLs use 'pw' prefix rather than 'lib'
8768 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8774 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8777 dynamic_linker='Win32 ld.exe'
8778 # FIXME: first we should search . and the directory the executable is in
8782 darwin* | rhapsody*)
8783 dynamic_linker="$host_os dyld"
8787 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8788 soname_spec='${libname}${release}${major}$shared_ext'
8789 shlibpath_overrides_runpath=yes
8790 shlibpath_var=DYLD_LIBRARY_PATH
8791 shrext_cmds='.dylib'
8792 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8793 if test "$GCC" = yes; then
8794 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"`
8796 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8798 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8806 soname_spec='${libname}${release}${shared_ext}$major'
8807 shlibpath_var=LD_LIBRARY_PATH
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 shlibpath_var=LD_LIBRARY_PATH
8821 shlibpath_overrides_runpath=no
8822 hardcode_into_libs=yes
8823 dynamic_linker='GNU ld.so'
8826 freebsd* | dragonfly*)
8827 # DragonFly does not have aout. When/if they implement a new
8828 # versioning mechanism, adjust this.
8829 if test -x /usr/bin/objformat; then
8830 objformat=`/usr/bin/objformat`
8833 freebsd[123].*) objformat=aout ;;
8837 version_type=freebsd-$objformat
8838 case $version_type in
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8849 shlibpath_var=LD_LIBRARY_PATH
8852 shlibpath_overrides_runpath=yes
8854 freebsd3.[01]* | freebsdelf3.[01]*)
8855 shlibpath_overrides_runpath=yes
8856 hardcode_into_libs=yes
8858 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8859 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8860 shlibpath_overrides_runpath=no
8861 hardcode_into_libs=yes
8863 freebsd*) # from 4.6 on
8864 shlibpath_overrides_runpath=yes
8865 hardcode_into_libs=yes
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 shlibpath_var=LD_LIBRARY_PATH
8877 hardcode_into_libs=yes
8880 hpux9* | hpux10* | hpux11*)
8881 # Give a soname corresponding to the major version so that dld.sl refuses to
8882 # link against other versions.
8889 hardcode_into_libs=yes
8890 dynamic_linker="$host_os dld.so"
8891 shlibpath_var=LD_LIBRARY_PATH
8892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 if test "X$HPUX_IA64_MODE" = X32; then
8896 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8904 hardcode_into_libs=yes
8905 dynamic_linker="$host_os dld.sl"
8906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8915 dynamic_linker="$host_os dld.sl"
8916 shlibpath_var=SHLIB_PATH
8917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919 soname_spec='${libname}${release}${shared_ext}$major'
8922 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8923 postinstall_cmds='chmod 555 $lib'
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=no
8935 hardcode_into_libs=yes
8938 irix5* | irix6* | nonstopux*)
8940 nonstopux*) version_type=nonstopux ;;
8942 if test "$lt_cv_prog_gnu_ld" = yes; then
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8953 irix5* | nonstopux*)
8957 case $LD in # libtool.m4 will add one of these switches to LD
8958 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8959 libsuff= shlibsuff= libmagic=32-bit;;
8960 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8961 libsuff=32 shlibsuff=N32 libmagic=N32;;
8962 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8963 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8964 *) libsuff= shlibsuff= libmagic=never-match;;
8968 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8969 shlibpath_overrides_runpath=no
8970 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8971 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8972 hardcode_into_libs=yes
8975 # No shared lib support for Linux oldld, aout, or coff.
8976 linux*oldld* | linux*aout* | linux*coff*)
8980 # This must be Linux ELF.
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=no
8990 # This implies no fast_install, which is unacceptable.
8991 # Some rework will be needed to allow for fast_install
8992 # before this can be enabled.
8993 hardcode_into_libs=yes
8995 # Append ld.so.conf contents to the search path
8996 if test -f /etc/ld.so.conf; then
8997 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' ' '`
8998 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9001 # We used to test for /lib/ld.so.1 and disable shared libraries on
9002 # powerpc, because MkLinux only supported shared libraries with the
9003 # GNU dynamic linker. Since this was broken with cross compilers,
9004 # most powerpc-linux boxes support dynamic linking these days and
9005 # people can always --disable-shared, the test was removed, and we
9006 # assume the GNU/Linux dynamic linker is in use.
9007 dynamic_linker='GNU/Linux ld.so'
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=no
9018 hardcode_into_libs=yes
9019 dynamic_linker='GNU ld.so'
9026 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9029 dynamic_linker='NetBSD (a.out) ld.so'
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 dynamic_linker='NetBSD ld.elf_so'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=yes
9037 hardcode_into_libs=yes
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 shlibpath_overrides_runpath=yes
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 shlibpath_var=LD_LIBRARY_PATH
9054 shlibpath_overrides_runpath=yes
9059 sys_lib_dlsearch_path_spec="/usr/lib"
9061 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9063 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9064 *) need_version=no ;;
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9071 openbsd2.[89] | openbsd2.[89].*)
9072 shlibpath_overrides_runpath=no
9075 shlibpath_overrides_runpath=yes
9079 shlibpath_overrides_runpath=yes
9084 libname_spec='$name'
9087 library_names_spec='$libname${shared_ext} $libname.a'
9088 dynamic_linker='OS/2 ld.exe'
9089 shlibpath_var=LIBPATH
9092 osf3* | osf4* | osf5*)
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9100 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 shlibpath_overrides_runpath=yes
9111 hardcode_into_libs=yes
9112 # ldd complains unless libraries are executable
9113 postinstall_cmds='chmod +x $lib'
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=yes
9122 if test "$with_gnu_ld" = yes; then
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 case $host_vendor in
9135 shlibpath_overrides_runpath=no
9137 export_dynamic_flag_spec='${wl}-Blargedynsym'
9138 runpath_var=LD_RUN_PATH
9146 shlibpath_overrides_runpath=no
9147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9153 if test -d /usr/nec ;then
9155 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9156 soname_spec='$libname${shared_ext}.$major'
9157 shlibpath_var=LD_LIBRARY_PATH
9161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9162 version_type=freebsd-elf
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 hardcode_into_libs=yes
9169 if test "$with_gnu_ld" = yes; then
9170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9171 shlibpath_overrides_runpath=no
9173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9174 shlibpath_overrides_runpath=yes
9177 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9181 sys_lib_dlsearch_path_spec='/usr/lib'
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 shlibpath_var=LD_LIBRARY_PATH
9195 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9196 echo "${ECHO_T}$dynamic_linker" >&6; }
9197 test "$dynamic_linker" = no && can_build_shared=no
9199 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9200 if test "$GCC" = yes; then
9201 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9205 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9206 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9207 if test "${libltdl_cv_shlibext+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 eval libltdl_cv_shlibext=$shrext_cmds
9215 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9216 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9217 if test -n "$libltdl_cv_shlibext"; then
9219 cat >>confdefs.h <<_ACEOF
9220 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9226 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9227 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9228 if test "${libltdl_cv_sys_search_path+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9233 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9234 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9235 if test -n "$libltdl_cv_sys_search_path"; then
9237 for dir in $libltdl_cv_sys_search_path; do
9238 if test -z "$sys_search_path"; then
9239 sys_search_path="$dir"
9241 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9245 cat >>confdefs.h <<_ACEOF
9246 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9251 { echo "$as_me:$LINENO: checking for objdir" >&5
9252 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9253 if test "${libltdl_cv_objdir+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 libltdl_cv_objdir="$objdir"
9257 if test -n "$objdir"; then
9260 rm -f .libs 2>/dev/null
9261 mkdir .libs 2>/dev/null
9262 if test -d .libs; then
9263 libltdl_cv_objdir=.libs
9265 # MS-DOS does not allow filenames that begin with a dot.
9266 libltdl_cv_objdir=_libs
9268 rmdir .libs 2>/dev/null
9272 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9273 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9275 cat >>confdefs.h <<_ACEOF
9276 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9284 # Check for command to grab the raw symbol name followed by C symbol from nm.
9285 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9286 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9287 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 # These are sane defaults that work on at least a few old systems.
9292 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9294 # Character class describing NM global symbol codes.
9295 symcode='[BCDEGRST]'
9297 # Regexp to match symbols that can be accessed directly from C.
9298 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9300 # Transform an extracted symbol line into a proper C declaration
9301 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9303 # Transform an extracted symbol line into symbol name and symbol address
9304 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'"
9306 # Define system-specific variables.
9311 cygwin* | mingw* | pw32*)
9312 symcode='[ABCDGISTW]'
9314 hpux*) # Its linker distinguishes data from code symbols
9315 if test "$host_cpu" = ia64; then
9316 symcode='[ABCDEGRST]'
9318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9319 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'"
9322 if test "$host_cpu" = ia64; then
9323 symcode='[ABCDGIRSTW]'
9324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9325 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'"
9329 symcode='[BCDEGRST]'
9332 symcode='[BCDEGQRST]'
9343 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9351 # Handle CRLF in mingw tool chain
9355 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9359 # If we're using GNU nm, then use its standard symbol codes.
9360 case `$NM -V 2>&1` in
9361 *GNU* | *'with BFD'*)
9362 symcode='[ABCDGIRSTW]' ;;
9365 # Try without a prefix undercore, then with it.
9366 for ac_symprfx in "" "_"; do
9368 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9369 symxfrm="\\1 $ac_symprfx\\2 \\2"
9371 # Write the raw and C identifiers.
9372 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9374 # Check to see that the pipe works correctly.
9378 cat > conftest.$ac_ext <<EOF
9383 void nm_test_func(){}
9387 int main(){nm_test_var='a';nm_test_func();return(0);}
9390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9391 (eval $ac_compile) 2>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; then
9395 # Now try to grab the symbols.
9397 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9398 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && test -s "$nlist"; then
9402 # Try sorting and uniquifying the output.
9403 if sort "$nlist" | uniq > "$nlist"T; then
9404 mv -f "$nlist"T "$nlist"
9409 # Make sure that we snagged all the symbols we need.
9410 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9411 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9412 cat <<EOF > conftest.$ac_ext
9418 # Now generate the symbol file.
9419 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9421 cat <<EOF >> conftest.$ac_ext
9422 #if defined (__STDC__) && __STDC__
9423 # define lt_ptr_t void *
9425 # define lt_ptr_t char *
9429 /* The mapping between symbol names and symbols. */
9434 lt_preloaded_symbols[] =
9437 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9438 cat <<\EOF >> conftest.$ac_ext
9446 # Now try linking the two files.
9447 mv conftest.$ac_objext conftstm.$ac_objext
9448 lt_save_LIBS="$LIBS"
9449 lt_save_CFLAGS="$CFLAGS"
9450 LIBS="conftstm.$ac_objext"
9451 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453 (eval $ac_link) 2>&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9459 LIBS="$lt_save_LIBS"
9460 CFLAGS="$lt_save_CFLAGS"
9462 echo "cannot find nm_test_func in $nlist" >&5
9465 echo "cannot find nm_test_var in $nlist" >&5
9468 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9471 echo "$progname: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9474 rm -f conftest* conftst*
9476 # Do not use the global_symbol_pipe unless it works.
9477 if test "$pipe_works" = yes; then
9480 lt_cv_sys_global_symbol_pipe=
9486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9487 lt_cv_sys_global_symbol_to_cdecl=
9489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9490 { echo "$as_me:$LINENO: result: failed" >&5
9491 echo "${ECHO_T}failed" >&6; }
9493 { echo "$as_me:$LINENO: result: ok" >&5
9494 echo "${ECHO_T}ok" >&6; }
9498 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9499 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9500 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9504 libltdl_cv_preloaded_symbols=yes
9506 libltdl_cv_preloaded_symbols=no
9510 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9511 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9512 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_PRELOADED_SYMBOLS 1
9523 ac_cpp='$CPP $CPPFLAGS'
9524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9529 { echo "$as_me:$LINENO: checking for shl_load" >&5
9530 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9531 if test "${ac_cv_func_shl_load+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 cat >conftest.$ac_ext <<_ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9542 #define shl_load innocuous_shl_load
9544 /* System header to define __stub macros and hopefully few prototypes,
9545 which can conflict with char shl_load (); below.
9546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9547 <limits.h> exists even on freestanding compilers. */
9550 # include <limits.h>
9552 # include <assert.h>
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9564 /* The GNU C library defines this for functions which it implements
9565 to always fail with ENOSYS. Some functions are actually named
9566 something starting with __ and the normal name is an alias. */
9567 #if defined __stub_shl_load || defined __stub___shl_load
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_link") 2>conftest.er1
9588 grep -v '^ *+' conftest.er1 >conftest.err
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9594 { (case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_try") 2>&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; } &&
9603 { ac_try='test -s conftest$ac_exeext'
9604 { (case "(($ac_try" in
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_try") 2>&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; }; then
9613 ac_cv_func_shl_load=yes
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9618 ac_cv_func_shl_load=no
9621 rm -f core conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9624 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9625 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9626 if test $ac_cv_func_shl_load = yes; then
9628 cat >>confdefs.h <<\_ACEOF
9629 #define HAVE_SHL_LOAD 1
9633 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9634 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9635 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 ac_check_lib_save_LIBS=$LIBS
9640 cat >conftest.$ac_ext <<_ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9647 /* Override any GCC internal prototype to avoid an error.
9648 Use char because int might match the return type of a GCC
9649 builtin and then its argument prototype would still apply. */
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9677 { (case "(($ac_try" in
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_try") 2>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest$ac_exeext'
9687 { (case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_try") 2>&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_lib_dld_shl_load=yes
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9701 ac_cv_lib_dld_shl_load=no
9704 rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706 LIBS=$ac_check_lib_save_LIBS
9708 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9709 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9710 if test $ac_cv_lib_dld_shl_load = yes; then
9712 cat >>confdefs.h <<\_ACEOF
9713 #define HAVE_SHL_LOAD 1
9716 LIBADD_DL="$LIBADD_DL -ldld"
9718 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 ac_check_lib_save_LIBS=$LIBS
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9732 /* Override any GCC internal prototype to avoid an error.
9733 Use char because int might match the return type of a GCC
9734 builtin and then its argument prototype would still apply. */
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>conftest.er1
9756 grep -v '^ *+' conftest.er1 >conftest.err
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9762 { (case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_try") 2>&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_try") 2>&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_lib_dl_dlopen=yes
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_cv_lib_dl_dlopen=no
9789 rm -f core conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
9791 LIBS=$ac_check_lib_save_LIBS
9793 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9794 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9795 if test $ac_cv_lib_dl_dlopen = yes; then
9797 cat >>confdefs.h <<\_ACEOF
9798 #define HAVE_LIBDL 1
9801 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9803 cat >conftest.$ac_ext <<_ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_link") 2>conftest.er1
9830 grep -v '^ *+' conftest.er1 >conftest.err
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_try") 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9856 cat >>confdefs.h <<\_ACEOF
9857 #define HAVE_LIBDL 1
9859 libltdl_cv_func_dlopen="yes"
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9865 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9866 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 ac_check_lib_save_LIBS=$LIBS
9871 cat >conftest.$ac_ext <<_ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9878 /* Override any GCC internal prototype to avoid an error.
9879 Use char because int might match the return type of a GCC
9880 builtin and then its argument prototype would still apply. */
9893 rm -f conftest.$ac_objext conftest$ac_exeext
9894 if { (ac_try="$ac_link"
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_link") 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9908 { (case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_try") 2>&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_lib_svld_dlopen=yes
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_cv_lib_svld_dlopen=no
9935 rm -f core conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
9937 LIBS=$ac_check_lib_save_LIBS
9939 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9940 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9941 if test $ac_cv_lib_svld_dlopen = yes; then
9943 cat >>confdefs.h <<\_ACEOF
9944 #define HAVE_LIBDL 1
9947 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9949 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9950 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9951 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 ac_check_lib_save_LIBS=$LIBS
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9963 /* Override any GCC internal prototype to avoid an error.
9964 Use char because int might match the return type of a GCC
9965 builtin and then its argument prototype would still apply. */
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (ac_try="$ac_link"
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_link") 2>conftest.er1
9987 grep -v '^ *+' conftest.er1 >conftest.err
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_try") 2>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest$ac_exeext'
10003 { (case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_try") 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_lib_dld_dld_link=yes
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10017 ac_cv_lib_dld_dld_link=no
10020 rm -f core conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10025 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10026 if test $ac_cv_lib_dld_dld_link = yes; then
10028 cat >>confdefs.h <<\_ACEOF
10032 LIBADD_DL="$LIBADD_DL -ldld"
10034 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10035 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10036 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10047 #define _dyld_func_lookup innocuous__dyld_func_lookup
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char _dyld_func_lookup (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10055 # include <limits.h>
10057 # include <assert.h>
10060 #undef _dyld_func_lookup
10062 /* Override any GCC internal prototype to avoid an error.
10063 Use char because int might match the return type of a GCC
10064 builtin and then its argument prototype would still apply. */
10068 char _dyld_func_lookup ();
10069 /* The GNU C library defines this for functions which it implements
10070 to always fail with ENOSYS. Some functions are actually named
10071 something starting with __ and the normal name is an alias. */
10072 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10079 return _dyld_func_lookup ();
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_link") 2>conftest.er1
10093 grep -v '^ *+' conftest.er1 >conftest.err
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10099 { (case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_try") 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest$ac_exeext'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_cv_func__dyld_func_lookup=yes
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_cv_func__dyld_func_lookup=no
10126 rm -f core conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10129 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10130 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10131 if test $ac_cv_func__dyld_func_lookup = yes; then
10133 cat >>confdefs.h <<\_ACEOF
10134 #define HAVE_DYLD 1
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10160 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10162 lt_save_LIBS="$LIBS"
10163 LIBS="$LIBS $LIBADD_DL"
10165 for ac_func in dlerror
10167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 cat >conftest.$ac_ext <<_ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10181 #define $ac_func innocuous_$ac_func
10183 /* System header to define __stub macros and hopefully few prototypes,
10184 which can conflict with char $ac_func (); below.
10185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10186 <limits.h> exists even on freestanding compilers. */
10189 # include <limits.h>
10191 # include <assert.h>
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10203 /* The GNU C library defines this for functions which it implements
10204 to always fail with ENOSYS. Some functions are actually named
10205 something starting with __ and the normal name is an alias. */
10206 #if defined __stub_$ac_func || defined __stub___$ac_func
10213 return $ac_func ();
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_link") 2>conftest.er1
10227 grep -v '^ *+' conftest.er1 >conftest.err
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } &&
10232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10233 { (case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_try") 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try='test -s conftest$ac_exeext'
10243 { (case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_try") 2>&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10252 eval "$as_ac_var=yes"
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 eval "$as_ac_var=no"
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10263 ac_res=`eval echo '${'$as_ac_var'}'`
10264 { echo "$as_me:$LINENO: result: $ac_res" >&5
10265 echo "${ECHO_T}$ac_res" >&6; }
10266 if test `eval echo '${'$as_ac_var'}'` = yes; then
10267 cat >>confdefs.h <<_ACEOF
10268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10274 LIBS="$lt_save_LIBS"
10277 ac_cpp='$CPP $CPPFLAGS'
10278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10284 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10285 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10286 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 ac_cv_sys_symbol_underscore=no
10290 cat > conftest.$ac_ext <<EOF
10291 void nm_test_func(){}
10292 int main(){nm_test_func;return 0;}
10294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295 (eval $ac_compile) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; then
10299 # Now try to grab the symbols.
10300 ac_nlist=conftest.nm
10301 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10302 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } && test -s "$ac_nlist"; then
10306 # See whether the symbols have a leading underscore.
10307 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10308 ac_cv_sys_symbol_underscore=yes
10310 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10313 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10317 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10320 echo "configure: failed program was:" >&5
10326 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10327 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10330 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10331 if test x"$libltdl_cv_func_dlopen" = xyes ||
10332 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10333 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10334 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10335 if test "${libltdl_cv_need_uscore+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 libltdl_cv_need_uscore=unknown
10340 LIBS="$LIBS $LIBADD_DL"
10341 if test "$cross_compiling" = yes; then :
10342 libltdl_cv_need_uscore=cross
10344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10345 lt_status=$lt_dlunknown
10346 cat > conftest.$ac_ext <<EOF
10347 #line 10347 "configure"
10348 #include "confdefs.h"
10357 # define LT_DLGLOBAL RTLD_GLOBAL
10360 # define LT_DLGLOBAL DL_GLOBAL
10362 # define LT_DLGLOBAL 0
10366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10367 find out it does not work in some platform. */
10368 #ifndef LT_DLLAZY_OR_NOW
10370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10373 # define LT_DLLAZY_OR_NOW DL_LAZY
10376 # define LT_DLLAZY_OR_NOW RTLD_NOW
10379 # define LT_DLLAZY_OR_NOW DL_NOW
10381 # define LT_DLLAZY_OR_NOW 0
10389 extern "C" void exit (int);
10392 void fnord() { int i=42;}
10395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10396 int status = $lt_dlunknown;
10400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10401 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10402 /* dlclose (self); */
10410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10411 (eval $ac_link) 2>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10415 (./conftest; exit; ) >&5 2>/dev/null
10417 case x$lt_status in
10418 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10419 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10420 x$lt_dlunknown|x*) ;;
10423 # compilation failed
10432 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10433 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10437 if test x"$libltdl_cv_need_uscore" = xyes; then
10439 cat >>confdefs.h <<\_ACEOF
10440 #define NEED_USCORE 1
10446 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10447 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10448 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 # PORTME does your system automatically load deplibs for dlopen?
10452 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10453 # For now, we just catch OSes we know something about -- in the
10454 # future, we'll try test this programmatically.
10455 libltdl_cv_sys_dlopen_deplibs=unknown
10457 aix3*|aix4.1.*|aix4.2.*)
10458 # Unknown whether this is true for these versions of AIX, but
10459 # we want this `case' here to explicitly catch those versions.
10460 libltdl_cv_sys_dlopen_deplibs=unknown
10463 libltdl_cv_sys_dlopen_deplibs=yes
10466 # Assuming the user has installed a libdl from somewhere, this is true
10467 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10468 libltdl_cv_sys_dlopen_deplibs=yes
10470 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10471 # GNU and its variants, using gnu ld.so (Glibc)
10472 libltdl_cv_sys_dlopen_deplibs=yes
10475 libltdl_cv_sys_dlopen_deplibs=yes
10478 libltdl_cv_sys_dlopen_deplibs=yes
10480 irix[12345]*|irix6.[01]*)
10481 # Catch all versions of IRIX before 6.2, and indicate that we don't
10482 # know how it worked for any of those versions.
10483 libltdl_cv_sys_dlopen_deplibs=unknown
10486 # The case above catches anything before 6.2, and it's known that
10487 # at 6.2 and later dlopen does load deplibs.
10488 libltdl_cv_sys_dlopen_deplibs=yes
10491 libltdl_cv_sys_dlopen_deplibs=yes
10494 libltdl_cv_sys_dlopen_deplibs=yes
10497 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10498 # it did *not* use an RPATH in a shared library to find objects the
10499 # library depends on, so we explicitly say `no'.
10500 libltdl_cv_sys_dlopen_deplibs=no
10502 osf5.0|osf5.0a|osf5.1)
10503 # dlopen *does* load deplibs and with the right loader patch applied
10504 # it even uses RPATH in a shared library to search for shared objects
10505 # that the library depends on, but there's no easy way to know if that
10506 # patch is installed. Since this is the case, all we can really
10507 # say is unknown -- it depends on the patch being installed. If
10508 # it is, this changes to `yes'. Without it, it would be `no'.
10509 libltdl_cv_sys_dlopen_deplibs=unknown
10512 # the two cases above should catch all versions of osf <= 5.1. Read
10513 # the comments above for what we know about them.
10514 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10515 # is used to find them so we can finally say `yes'.
10516 libltdl_cv_sys_dlopen_deplibs=yes
10519 libltdl_cv_sys_dlopen_deplibs=yes
10521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10522 libltdl_cv_sys_dlopen_deplibs=yes
10527 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10528 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10529 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10531 cat >>confdefs.h <<\_ACEOF
10532 #define LTDL_DLOPEN_DEPLIBS 1
10538 for ac_header in argz.h
10540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 ac_res=`eval echo '${'$as_ac_Header'}'`
10548 { echo "$as_me:$LINENO: result: $ac_res" >&5
10549 echo "${ECHO_T}$ac_res" >&6; }
10551 # Is the header compilable?
10552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10554 cat >conftest.$ac_ext <<_ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10560 $ac_includes_default
10561 #include <$ac_header>
10563 rm -f conftest.$ac_objext
10564 if { (ac_try="$ac_compile"
10565 case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_compile") 2>conftest.er1
10572 grep -v '^ *+' conftest.er1 >conftest.err
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10578 { (case "(($ac_try" in
10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10583 (eval "$ac_try") 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest.$ac_objext'
10588 { (case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593 (eval "$ac_try") 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
10597 ac_header_compiler=yes
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_header_compiler=no
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10607 echo "${ECHO_T}$ac_header_compiler" >&6; }
10609 # Is the header present?
10610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10612 cat >conftest.$ac_ext <<_ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #include <$ac_header>
10620 if { (ac_try="$ac_cpp conftest.$ac_ext"
10621 case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10628 grep -v '^ *+' conftest.er1 >conftest.err
10630 cat conftest.err >&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } >/dev/null; then
10633 if test -s conftest.err; then
10634 ac_cpp_err=$ac_c_preproc_warn_flag
10635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10642 if test -z "$ac_cpp_err"; then
10643 ac_header_preproc=yes
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10648 ac_header_preproc=no
10651 rm -f conftest.err conftest.$ac_ext
10652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10653 echo "${ECHO_T}$ac_header_preproc" >&6; }
10655 # So? What about this header?
10656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10662 ac_header_preproc=yes
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10678 ## ------------------------------ ##
10679 ## Report this to bugs@yourdomain ##
10680 ## ------------------------------ ##
10682 ) | sed "s/^/$as_me: WARNING: /" >&2
10685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 eval "$as_ac_Header=\$ac_header_preproc"
10692 ac_res=`eval echo '${'$as_ac_Header'}'`
10693 { echo "$as_me:$LINENO: result: $ac_res" >&5
10694 echo "${ECHO_T}$ac_res" >&6; }
10697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10698 cat >>confdefs.h <<_ACEOF
10699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10707 { echo "$as_me:$LINENO: checking for error_t" >&5
10708 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10709 if test "${ac_cv_type_error_t+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10722 typedef error_t ac__type_new_;
10726 if ((ac__type_new_ *) 0)
10728 if (sizeof (ac__type_new_))
10734 rm -f conftest.$ac_objext
10735 if { (ac_try="$ac_compile"
10736 case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_compile") 2>conftest.er1
10743 grep -v '^ *+' conftest.er1 >conftest.err
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10749 { (case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_try") 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest.$ac_objext'
10759 { (case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_try") 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 ac_cv_type_error_t=yes
10770 echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 ac_cv_type_error_t=no
10776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10779 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10780 if test $ac_cv_type_error_t = yes; then
10782 cat >>confdefs.h <<_ACEOF
10783 #define HAVE_ERROR_T 1
10789 cat >>confdefs.h <<\_ACEOF
10790 #define error_t int
10801 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 cat >conftest.$ac_ext <<_ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10817 #define $ac_func innocuous_$ac_func
10819 /* System header to define __stub macros and hopefully few prototypes,
10820 which can conflict with char $ac_func (); below.
10821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10822 <limits.h> exists even on freestanding compilers. */
10825 # include <limits.h>
10827 # include <assert.h>
10832 /* Override any GCC internal prototype to avoid an error.
10833 Use char because int might match the return type of a GCC
10834 builtin and then its argument prototype would still apply. */
10839 /* The GNU C library defines this for functions which it implements
10840 to always fail with ENOSYS. Some functions are actually named
10841 something starting with __ and the normal name is an alias. */
10842 #if defined __stub_$ac_func || defined __stub___$ac_func
10849 return $ac_func ();
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest$ac_exeext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 eval "$as_ac_var=yes"
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 eval "$as_ac_var=no"
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10899 ac_res=`eval echo '${'$as_ac_var'}'`
10900 { echo "$as_me:$LINENO: result: $ac_res" >&5
10901 echo "${ECHO_T}$ac_res" >&6; }
10902 if test `eval echo '${'$as_ac_var'}'` = yes; then
10903 cat >>confdefs.h <<_ACEOF
10904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10936 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 ac_res=`eval echo '${'$as_ac_Header'}'`
10947 { echo "$as_me:$LINENO: result: $ac_res" >&5
10948 echo "${ECHO_T}$ac_res" >&6; }
10950 # Is the header compilable?
10951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10953 cat >conftest.$ac_ext <<_ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 $ac_includes_default
10960 #include <$ac_header>
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10971 grep -v '^ *+' conftest.er1 >conftest.err
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977 { (case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_try") 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest.$ac_objext'
10987 { (case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_try") 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996 ac_header_compiler=yes
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_header_compiler=no
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11006 echo "${ECHO_T}$ac_header_compiler" >&6; }
11008 # Is the header present?
11009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11011 cat >conftest.$ac_ext <<_ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 #include <$ac_header>
11019 if { (ac_try="$ac_cpp conftest.$ac_ext"
11020 case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11027 grep -v '^ *+' conftest.er1 >conftest.err
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } >/dev/null; then
11032 if test -s conftest.err; then
11033 ac_cpp_err=$ac_c_preproc_warn_flag
11034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11041 if test -z "$ac_cpp_err"; then
11042 ac_header_preproc=yes
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11047 ac_header_preproc=no
11050 rm -f conftest.err conftest.$ac_ext
11051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052 echo "${ECHO_T}$ac_header_preproc" >&6; }
11054 # So? What about this header?
11055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11061 ac_header_preproc=yes
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11077 ## ------------------------------ ##
11078 ## Report this to bugs@yourdomain ##
11079 ## ------------------------------ ##
11081 ) | sed "s/^/$as_me: WARNING: /" >&2
11084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 eval "$as_ac_Header=\$ac_header_preproc"
11091 ac_res=`eval echo '${'$as_ac_Header'}'`
11092 { echo "$as_me:$LINENO: result: $ac_res" >&5
11093 echo "${ECHO_T}$ac_res" >&6; }
11096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11097 cat >>confdefs.h <<_ACEOF
11098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11109 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 ac_res=`eval echo '${'$as_ac_Header'}'`
11119 { echo "$as_me:$LINENO: result: $ac_res" >&5
11120 echo "${ECHO_T}$ac_res" >&6; }
11122 # Is the header compilable?
11123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11125 cat >conftest.$ac_ext <<_ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 $ac_includes_default
11132 #include <$ac_header>
11134 rm -f conftest.$ac_objext
11135 if { (ac_try="$ac_compile"
11136 case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_compile") 2>conftest.er1
11143 grep -v '^ *+' conftest.er1 >conftest.err
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149 { (case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_try") 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest.$ac_objext'
11159 { (case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_try") 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_header_compiler=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 ac_header_compiler=no
11176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11178 echo "${ECHO_T}$ac_header_compiler" >&6; }
11180 # Is the header present?
11181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 #include <$ac_header>
11191 if { (ac_try="$ac_cpp conftest.$ac_ext"
11192 case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11199 grep -v '^ *+' conftest.er1 >conftest.err
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } >/dev/null; then
11204 if test -s conftest.err; then
11205 ac_cpp_err=$ac_c_preproc_warn_flag
11206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11213 if test -z "$ac_cpp_err"; then
11214 ac_header_preproc=yes
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11219 ac_header_preproc=no
11222 rm -f conftest.err conftest.$ac_ext
11223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11224 echo "${ECHO_T}$ac_header_preproc" >&6; }
11226 # So? What about this header?
11227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11233 ac_header_preproc=yes
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11249 ## ------------------------------ ##
11250 ## Report this to bugs@yourdomain ##
11251 ## ------------------------------ ##
11253 ) | sed "s/^/$as_me: WARNING: /" >&2
11256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 eval "$as_ac_Header=\$ac_header_preproc"
11263 ac_res=`eval echo '${'$as_ac_Header'}'`
11264 { echo "$as_me:$LINENO: result: $ac_res" >&5
11265 echo "${ECHO_T}$ac_res" >&6; }
11268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11269 cat >>confdefs.h <<_ACEOF
11270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11279 for ac_header in string.h strings.h
11281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 ac_res=`eval echo '${'$as_ac_Header'}'`
11289 { echo "$as_me:$LINENO: result: $ac_res" >&5
11290 echo "${ECHO_T}$ac_res" >&6; }
11292 # Is the header compilable?
11293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 $ac_includes_default
11302 #include <$ac_header>
11304 rm -f conftest.$ac_objext
11305 if { (ac_try="$ac_compile"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_compile") 2>conftest.er1
11313 grep -v '^ *+' conftest.er1 >conftest.err
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
11318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319 { (case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_try") 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest.$ac_objext'
11329 { (case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_try") 2>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_header_compiler=yes
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_header_compiler=no
11346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11348 echo "${ECHO_T}$ac_header_compiler" >&6; }
11350 # Is the header present?
11351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11353 cat >conftest.$ac_ext <<_ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 #include <$ac_header>
11361 if { (ac_try="$ac_cpp conftest.$ac_ext"
11362 case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11369 grep -v '^ *+' conftest.er1 >conftest.err
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } >/dev/null; then
11374 if test -s conftest.err; then
11375 ac_cpp_err=$ac_c_preproc_warn_flag
11376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11383 if test -z "$ac_cpp_err"; then
11384 ac_header_preproc=yes
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 ac_header_preproc=no
11392 rm -f conftest.err conftest.$ac_ext
11393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6; }
11396 # So? What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403 ac_header_preproc=yes
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11419 ## ------------------------------ ##
11420 ## Report this to bugs@yourdomain ##
11421 ## ------------------------------ ##
11423 ) | sed "s/^/$as_me: WARNING: /" >&2
11426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 eval "$as_ac_Header=\$ac_header_preproc"
11433 ac_res=`eval echo '${'$as_ac_Header'}'`
11434 { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11439 cat >>confdefs.h <<_ACEOF
11440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11450 for ac_func in strchr index
11452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 cat >conftest.$ac_ext <<_ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11466 #define $ac_func innocuous_$ac_func
11468 /* System header to define __stub macros and hopefully few prototypes,
11469 which can conflict with char $ac_func (); below.
11470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11471 <limits.h> exists even on freestanding compilers. */
11474 # include <limits.h>
11476 # include <assert.h>
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11488 /* The GNU C library defines this for functions which it implements
11489 to always fail with ENOSYS. Some functions are actually named
11490 something starting with __ and the normal name is an alias. */
11491 #if defined __stub_$ac_func || defined __stub___$ac_func
11498 return $ac_func ();
11503 rm -f conftest.$ac_objext conftest$ac_exeext
11504 if { (ac_try="$ac_link"
11505 case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_link") 2>conftest.er1
11512 grep -v '^ *+' conftest.er1 >conftest.err
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11518 { (case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_try") 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest$ac_exeext'
11528 { (case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_try") 2>&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; }; then
11537 eval "$as_ac_var=yes"
11539 echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11542 eval "$as_ac_var=no"
11545 rm -f core conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
11548 ac_res=`eval echo '${'$as_ac_var'}'`
11549 { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11551 if test `eval echo '${'$as_ac_var'}'` = yes; then
11552 cat >>confdefs.h <<_ACEOF
11553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11561 for ac_func in strrchr rindex
11563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11577 #define $ac_func innocuous_$ac_func
11579 /* System header to define __stub macros and hopefully few prototypes,
11580 which can conflict with char $ac_func (); below.
11581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11582 <limits.h> exists even on freestanding compilers. */
11585 # include <limits.h>
11587 # include <assert.h>
11592 /* Override any GCC internal prototype to avoid an error.
11593 Use char because int might match the return type of a GCC
11594 builtin and then its argument prototype would still apply. */
11599 /* The GNU C library defines this for functions which it implements
11600 to always fail with ENOSYS. Some functions are actually named
11601 something starting with __ and the normal name is an alias. */
11602 #if defined __stub_$ac_func || defined __stub___$ac_func
11609 return $ac_func ();
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_link") 2>conftest.er1
11623 grep -v '^ *+' conftest.er1 >conftest.err
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11629 { (case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_try") 2>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest$ac_exeext'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 eval "$as_ac_var=yes"
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 eval "$as_ac_var=no"
11656 rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11659 ac_res=`eval echo '${'$as_ac_var'}'`
11660 { echo "$as_me:$LINENO: result: $ac_res" >&5
11661 echo "${ECHO_T}$ac_res" >&6; }
11662 if test `eval echo '${'$as_ac_var'}'` = yes; then
11663 cat >>confdefs.h <<_ACEOF
11664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11672 for ac_func in memcpy bcopy
11674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11688 #define $ac_func innocuous_$ac_func
11690 /* System header to define __stub macros and hopefully few prototypes,
11691 which can conflict with char $ac_func (); below.
11692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11693 <limits.h> exists even on freestanding compilers. */
11696 # include <limits.h>
11698 # include <assert.h>
11703 /* Override any GCC internal prototype to avoid an error.
11704 Use char because int might match the return type of a GCC
11705 builtin and then its argument prototype would still apply. */
11710 /* The GNU C library defines this for functions which it implements
11711 to always fail with ENOSYS. Some functions are actually named
11712 something starting with __ and the normal name is an alias. */
11713 #if defined __stub_$ac_func || defined __stub___$ac_func
11720 return $ac_func ();
11725 rm -f conftest.$ac_objext conftest$ac_exeext
11726 if { (ac_try="$ac_link"
11727 case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_link") 2>conftest.er1
11734 grep -v '^ *+' conftest.er1 >conftest.err
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11740 { (case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_try") 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest$ac_exeext'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; }; then
11759 eval "$as_ac_var=yes"
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11764 eval "$as_ac_var=no"
11767 rm -f core conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext conftest.$ac_ext
11770 ac_res=`eval echo '${'$as_ac_var'}'`
11771 { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11773 if test `eval echo '${'$as_ac_var'}'` = yes; then
11774 cat >>confdefs.h <<_ACEOF
11775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11783 for ac_func in memmove strcmp
11785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11799 #define $ac_func innocuous_$ac_func
11801 /* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char $ac_func (); below.
11803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804 <limits.h> exists even on freestanding compilers. */
11807 # include <limits.h>
11809 # include <assert.h>
11814 /* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
11821 /* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
11824 #if defined __stub_$ac_func || defined __stub___$ac_func
11831 return $ac_func ();
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_link") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest$ac_exeext'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 eval "$as_ac_var=yes"
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11875 eval "$as_ac_var=no"
11878 rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11881 ac_res=`eval echo '${'$as_ac_var'}'`
11882 { echo "$as_me:$LINENO: result: $ac_res" >&5
11883 echo "${ECHO_T}$ac_res" >&6; }
11884 if test `eval echo '${'$as_ac_var'}'` = yes; then
11885 cat >>confdefs.h <<_ACEOF
11886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11895 for ac_func in closedir opendir readdir
11897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 cat >conftest.$ac_ext <<_ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11911 #define $ac_func innocuous_$ac_func
11913 /* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char $ac_func (); below.
11915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916 <limits.h> exists even on freestanding compilers. */
11919 # include <limits.h>
11921 # include <assert.h>
11926 /* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11933 /* The GNU C library defines this for functions which it implements
11934 to always fail with ENOSYS. Some functions are actually named
11935 something starting with __ and the normal name is an alias. */
11936 #if defined __stub_$ac_func || defined __stub___$ac_func
11943 return $ac_func ();
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_link") 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963 { (case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_try") 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_try") 2>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 eval "$as_ac_var=yes"
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 eval "$as_ac_var=no"
11990 rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11993 ac_res=`eval echo '${'$as_ac_var'}'`
11994 { echo "$as_me:$LINENO: result: $ac_res" >&5
11995 echo "${ECHO_T}$ac_res" >&6; }
11996 if test `eval echo '${'$as_ac_var'}'` = yes; then
11997 cat >>confdefs.h <<_ACEOF
11998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12006 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12007 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12020 if test "$GCC" != "yes" && test "$ICC" != "yes"
12022 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12023 echo "$as_me: error: gcc|icc required but not found" >&2;}
12024 { (exit 1); exit 1; }; }
12027 if test "$GXX" != "yes" && test "$IXX" != "yes"
12029 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12030 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12031 { (exit 1); exit 1; }; }
12034 if test "$GCC" = "yes"
12036 cat >conftest.$ac_ext <<_ACEOF
12037 #if !defined(__GNUC__) || __GNUC__ < 3
12038 #error Unsupported GCC version
12042 rm -f conftest.$ac_objext
12043 if { (ac_try="$ac_compile"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_compile") 2>conftest.er1
12051 grep -v '^ *+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057 { (case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_try") 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_try") 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12082 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12083 { (exit 1); exit 1; }; }
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089 if test -z "$llvm_cv_gnu_make_command"
12091 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12092 echo "$as_me: error: GNU Make required but not found" >&2;}
12093 { (exit 1); exit 1; }; }
12096 { echo "$as_me:$LINENO: result: ok" >&5
12097 echo "${ECHO_T}ok" >&6; }
12099 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12100 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12101 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12103 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12105 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12107 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12108 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12112 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12113 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12114 if test "${ac_cv_lib_m_sin+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 ac_check_lib_save_LIBS=$LIBS
12119 cat >conftest.$ac_ext <<_ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (ac_try="$ac_link"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_link") 2>conftest.er1
12150 grep -v '^ *+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest$ac_exeext'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_cv_lib_m_sin=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12187 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12188 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12189 if test $ac_cv_lib_m_sin = yes; then
12190 cat >>confdefs.h <<_ACEOF
12191 #define HAVE_LIBM 1
12198 if test "$llvm_cv_os_type" = "MingW" ; then
12200 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12201 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12202 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-limagehlp $LIBS"
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_link") 2>conftest.er1
12232 grep -v '^ *+' conftest.er1 >conftest.err
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
12237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12238 { (case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_try") 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; } &&
12247 { ac_try='test -s conftest$ac_exeext'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 ac_cv_lib_imagehlp_main=yes
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12262 ac_cv_lib_imagehlp_main=no
12265 rm -f core conftest.err conftest.$ac_objext \
12266 conftest$ac_exeext conftest.$ac_ext
12267 LIBS=$ac_check_lib_save_LIBS
12269 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12270 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12271 if test $ac_cv_lib_imagehlp_main = yes; then
12272 cat >>confdefs.h <<_ACEOF
12273 #define HAVE_LIBIMAGEHLP 1
12276 LIBS="-limagehlp $LIBS"
12281 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12282 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12283 if test "${ac_cv_lib_psapi_main+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-lpsapi $LIBS"
12288 cat >conftest.$ac_ext <<_ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12304 rm -f conftest.$ac_objext conftest$ac_exeext
12305 if { (ac_try="$ac_link"
12306 case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_link") 2>conftest.er1
12313 grep -v '^ *+' conftest.er1 >conftest.err
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12319 { (case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_try") 2>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } &&
12328 { ac_try='test -s conftest$ac_exeext'
12329 { (case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_try") 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 ac_cv_lib_psapi_main=yes
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 ac_cv_lib_psapi_main=no
12346 rm -f core conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12350 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12351 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12352 if test $ac_cv_lib_psapi_main = yes; then
12353 cat >>confdefs.h <<_ACEOF
12354 #define HAVE_LIBPSAPI 1
12357 LIBS="-lpsapi $LIBS"
12363 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12364 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12365 if test "${ac_cv_search_dlopen+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 ac_func_search_save_LIBS=$LIBS
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12376 /* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
12391 for ac_lib in '' dl; do
12392 if test -z "$ac_lib"; then
12393 ac_res="none required"
12396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>conftest.er1
12407 grep -v '^ *+' conftest.er1 >conftest.err
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12413 { (case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_try") 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest$ac_exeext'
12423 { (case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_try") 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 ac_cv_search_dlopen=$ac_res
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12440 rm -f core conftest.err conftest.$ac_objext \
12442 if test "${ac_cv_search_dlopen+set}" = set; then
12446 if test "${ac_cv_search_dlopen+set}" = set; then
12449 ac_cv_search_dlopen=no
12451 rm conftest.$ac_ext
12452 LIBS=$ac_func_search_save_LIBS
12454 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12455 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12456 ac_res=$ac_cv_search_dlopen
12457 if test "$ac_res" != no; then
12458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_DLOPEN 1
12465 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12466 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12470 if test "$llvm_cv_enable_libffi" = "yes" ; then
12471 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12472 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12473 if test "${ac_cv_search_ffi_call+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 ac_func_search_save_LIBS=$LIBS
12477 cat >conftest.$ac_ext <<_ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12494 return ffi_call ();
12499 for ac_lib in '' ffi; do
12500 if test -z "$ac_lib"; then
12501 ac_res="none required"
12504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_cv_search_ffi_call=$ac_res
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12548 rm -f core conftest.err conftest.$ac_objext \
12550 if test "${ac_cv_search_ffi_call+set}" = set; then
12554 if test "${ac_cv_search_ffi_call+set}" = set; then
12557 ac_cv_search_ffi_call=no
12559 rm conftest.$ac_ext
12560 LIBS=$ac_func_search_save_LIBS
12562 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12563 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12564 ac_res=$ac_cv_search_ffi_call
12565 if test "$ac_res" != no; then
12566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_FFI_CALL 1
12573 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12574 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12575 { (exit 1); exit 1; }; }
12580 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12581 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12582 if test "${ac_cv_search_mallinfo+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 ac_func_search_save_LIBS=$LIBS
12586 cat >conftest.$ac_ext <<_ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12593 /* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12603 return mallinfo ();
12608 for ac_lib in '' malloc; do
12609 if test -z "$ac_lib"; then
12610 ac_res="none required"
12613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (ac_try="$ac_link"
12617 case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_link") 2>conftest.er1
12624 grep -v '^ *+' conftest.er1 >conftest.err
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12630 { (case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_try") 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest$ac_exeext'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
12649 ac_cv_search_mallinfo=$ac_res
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12657 rm -f core conftest.err conftest.$ac_objext \
12659 if test "${ac_cv_search_mallinfo+set}" = set; then
12663 if test "${ac_cv_search_mallinfo+set}" = set; then
12666 ac_cv_search_mallinfo=no
12668 rm conftest.$ac_ext
12669 LIBS=$ac_func_search_save_LIBS
12671 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12672 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12673 ac_res=$ac_cv_search_mallinfo
12674 if test "$ac_res" != no; then
12675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_MALLINFO 1
12684 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12686 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12687 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12688 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 ac_check_lib_save_LIBS=$LIBS
12692 LIBS="-lpthread $LIBS"
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12700 /* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12706 char pthread_mutex_init ();
12710 return pthread_mutex_init ();
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (ac_try="$ac_link"
12717 case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_link") 2>conftest.er1
12724 grep -v '^ *+' conftest.er1 >conftest.err
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12730 { (case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_try") 2>&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try='test -s conftest$ac_exeext'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_lib_pthread_pthread_mutex_init=yes
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 ac_cv_lib_pthread_pthread_mutex_init=no
12757 rm -f core conftest.err conftest.$ac_objext \
12758 conftest$ac_exeext conftest.$ac_ext
12759 LIBS=$ac_check_lib_save_LIBS
12761 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12762 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12763 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12764 cat >>confdefs.h <<_ACEOF
12765 #define HAVE_LIBPTHREAD 1
12768 LIBS="-lpthread $LIBS"
12772 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12773 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12774 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 ac_func_search_save_LIBS=$LIBS
12778 cat >conftest.$ac_ext <<_ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12785 /* Override any GCC internal prototype to avoid an error.
12786 Use char because int might match the return type of a GCC
12787 builtin and then its argument prototype would still apply. */
12791 char pthread_mutex_lock ();
12795 return pthread_mutex_lock ();
12800 for ac_lib in '' pthread; do
12801 if test -z "$ac_lib"; then
12802 ac_res="none required"
12805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12807 rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (ac_try="$ac_link"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_link") 2>conftest.er1
12816 grep -v '^ *+' conftest.er1 >conftest.err
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
12821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12822 { (case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827 (eval "$ac_try") 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; } &&
12831 { ac_try='test -s conftest$ac_exeext'
12832 { (case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_try") 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 ac_cv_search_pthread_mutex_lock=$ac_res
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12849 rm -f core conftest.err conftest.$ac_objext \
12851 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12855 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12858 ac_cv_search_pthread_mutex_lock=no
12860 rm conftest.$ac_ext
12861 LIBS=$ac_func_search_save_LIBS
12863 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12864 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12865 ac_res=$ac_cv_search_pthread_mutex_lock
12866 if test "$ac_res" != no; then
12867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12869 cat >>confdefs.h <<\_ACEOF
12870 #define HAVE_PTHREAD_MUTEX_LOCK 1
12875 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12876 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12877 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 ac_func_search_save_LIBS=$LIBS
12881 cat >conftest.$ac_ext <<_ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12888 /* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12894 char pthread_rwlock_init ();
12898 return pthread_rwlock_init ();
12903 for ac_lib in '' pthread; do
12904 if test -z "$ac_lib"; then
12905 ac_res="none required"
12908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12910 rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_link") 2>conftest.er1
12919 grep -v '^ *+' conftest.er1 >conftest.err
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12925 { (case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_try") 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; } &&
12934 { ac_try='test -s conftest$ac_exeext'
12935 { (case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_try") 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_search_pthread_rwlock_init=$ac_res
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12952 rm -f core conftest.err conftest.$ac_objext \
12954 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12958 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12961 ac_cv_search_pthread_rwlock_init=no
12963 rm conftest.$ac_ext
12964 LIBS=$ac_func_search_save_LIBS
12966 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12967 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12968 ac_res=$ac_cv_search_pthread_rwlock_init
12969 if test "$ac_res" != no; then
12970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12972 cat >>confdefs.h <<\_ACEOF
12973 #define HAVE_PTHREAD_RWLOCK_INIT 1
12978 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12979 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12980 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 ac_func_search_save_LIBS=$LIBS
12984 cat >conftest.$ac_ext <<_ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12991 /* Override any GCC internal prototype to avoid an error.
12992 Use char because int might match the return type of a GCC
12993 builtin and then its argument prototype would still apply. */
12997 char pthread_getspecific ();
13001 return pthread_getspecific ();
13006 for ac_lib in '' pthread; do
13007 if test -z "$ac_lib"; then
13008 ac_res="none required"
13011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (ac_try="$ac_link"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_link") 2>conftest.er1
13022 grep -v '^ *+' conftest.er1 >conftest.err
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } &&
13027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13028 { (case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_try") 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 ac_cv_search_pthread_getspecific=$ac_res
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13055 rm -f core conftest.err conftest.$ac_objext \
13057 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13061 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13064 ac_cv_search_pthread_getspecific=no
13066 rm conftest.$ac_ext
13067 LIBS=$ac_func_search_save_LIBS
13069 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13070 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13071 ac_res=$ac_cv_search_pthread_getspecific
13072 if test "$ac_res" != no; then
13073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_PTHREAD_GETSPECIFIC 1
13084 # Check whether --with-udis86 was given.
13085 if test "${with_udis86+set}" = set; then
13086 withval=$with_udis86;
13091 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13094 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13095 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13096 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-ludis86 $LIBS"
13101 cat >conftest.$ac_ext <<_ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13108 /* Override any GCC internal prototype to avoid an error.
13109 Use char because int might match the return type of a GCC
13110 builtin and then its argument prototype would still apply. */
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
13125 case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_link") 2>conftest.er1
13132 grep -v '^ *+' conftest.er1 >conftest.err
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_cv_lib_udis86_ud_init=yes
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ac_cv_lib_udis86_ud_init=no
13165 rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13169 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13170 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13171 if test $ac_cv_lib_udis86_ud_init = yes; then
13172 cat >>confdefs.h <<_ACEOF
13173 #define HAVE_LIBUDIS86 1
13176 LIBS="-ludis86 $LIBS"
13180 echo "Error! You need to have libudis86 around."
13192 cat >>confdefs.h <<_ACEOF
13193 #define USE_UDIS86 $USE_UDIS86
13198 # Check whether --with-oprofile was given.
13199 if test "${with_oprofile+set}" = set; then
13200 withval=$with_oprofile;
13204 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13205 no) llvm_cv_oppath=
13208 *) llvm_cv_oppath="${withval}/lib/oprofile"
13209 CPPFLAGS="-I${withval}/include";;
13211 if test -n "$llvm_cv_oppath" ; then
13212 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13213 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13214 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13215 if test "${ac_cv_search_bfd_init+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 ac_func_search_save_LIBS=$LIBS
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13226 /* Override any GCC internal prototype to avoid an error.
13227 Use char because int might match the return type of a GCC
13228 builtin and then its argument prototype would still apply. */
13236 return bfd_init ();
13241 for ac_lib in '' bfd; do
13242 if test -z "$ac_lib"; then
13243 ac_res="none required"
13246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13248 rm -f conftest.$ac_objext conftest$ac_exeext
13249 if { (ac_try="$ac_link"
13250 case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_link") 2>conftest.er1
13257 grep -v '^ *+' conftest.er1 >conftest.err
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13263 { (case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_try") 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; } &&
13272 { ac_try='test -s conftest$ac_exeext'
13273 { (case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278 (eval "$ac_try") 2>&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; }; then
13282 ac_cv_search_bfd_init=$ac_res
13284 echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13290 rm -f core conftest.err conftest.$ac_objext \
13292 if test "${ac_cv_search_bfd_init+set}" = set; then
13296 if test "${ac_cv_search_bfd_init+set}" = set; then
13299 ac_cv_search_bfd_init=no
13301 rm conftest.$ac_ext
13302 LIBS=$ac_func_search_save_LIBS
13304 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13305 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13306 ac_res=$ac_cv_search_bfd_init
13307 if test "$ac_res" != no; then
13308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13312 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13313 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13314 if test "${ac_cv_search_op_open_agent+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 ac_func_search_save_LIBS=$LIBS
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13325 /* Override any GCC internal prototype to avoid an error.
13326 Use char because int might match the return type of a GCC
13327 builtin and then its argument prototype would still apply. */
13331 char op_open_agent ();
13335 return op_open_agent ();
13340 for ac_lib in '' opagent; do
13341 if test -z "$ac_lib"; then
13342 ac_res="none required"
13345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13347 rm -f conftest.$ac_objext conftest$ac_exeext
13348 if { (ac_try="$ac_link"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>conftest.er1
13356 grep -v '^ *+' conftest.er1 >conftest.err
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13362 { (case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367 (eval "$ac_try") 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; } &&
13371 { ac_try='test -s conftest$ac_exeext'
13372 { (case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_try") 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_cv_search_op_open_agent=$ac_res
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13389 rm -f core conftest.err conftest.$ac_objext \
13391 if test "${ac_cv_search_op_open_agent+set}" = set; then
13395 if test "${ac_cv_search_op_open_agent+set}" = set; then
13398 ac_cv_search_op_open_agent=no
13400 rm conftest.$ac_ext
13401 LIBS=$ac_func_search_save_LIBS
13403 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13404 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13405 ac_res=$ac_cv_search_op_open_agent
13406 if test "$ac_res" != no; then
13407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13411 echo "Error! You need to have libopagent around."
13416 if test "${ac_cv_header_opagent_h+set}" = set; then
13417 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13418 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13419 if test "${ac_cv_header_opagent_h+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13423 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13425 # Is the header compilable?
13426 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13427 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13428 cat >conftest.$ac_ext <<_ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 $ac_includes_default
13435 #include <opagent.h>
13437 rm -f conftest.$ac_objext
13438 if { (ac_try="$ac_compile"
13439 case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_compile") 2>conftest.er1
13446 grep -v '^ *+' conftest.er1 >conftest.err
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest.$ac_objext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 ac_header_compiler=yes
13473 echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13476 ac_header_compiler=no
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13481 echo "${ECHO_T}$ac_header_compiler" >&6; }
13483 # Is the header present?
13484 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13485 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13486 cat >conftest.$ac_ext <<_ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13492 #include <opagent.h>
13494 if { (ac_try="$ac_cpp conftest.$ac_ext"
13495 case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13502 grep -v '^ *+' conftest.er1 >conftest.err
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } >/dev/null; then
13507 if test -s conftest.err; then
13508 ac_cpp_err=$ac_c_preproc_warn_flag
13509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13516 if test -z "$ac_cpp_err"; then
13517 ac_header_preproc=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_header_preproc=no
13525 rm -f conftest.err conftest.$ac_ext
13526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13527 echo "${ECHO_T}$ac_header_preproc" >&6; }
13529 # So? What about this header?
13530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13532 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13533 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13534 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13535 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13536 ac_header_preproc=yes
13539 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13540 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13542 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13544 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13546 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13548 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13550 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13552 ## ------------------------------ ##
13553 ## Report this to bugs@yourdomain ##
13554 ## ------------------------------ ##
13556 ) | sed "s/^/$as_me: WARNING: /" >&2
13559 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13560 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13561 if test "${ac_cv_header_opagent_h+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 ac_cv_header_opagent_h=$ac_header_preproc
13566 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13570 if test $ac_cv_header_opagent_h = yes; then
13574 echo "Error! You need to have opagent.h around."
13590 cat >>confdefs.h <<_ACEOF
13591 #define USE_OPROFILE $USE_OPROFILE
13601 ac_header_dirent=no
13602 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13603 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13604 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13605 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 cat >conftest.$ac_ext <<_ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 #include <sys/types.h>
13627 rm -f conftest.$ac_objext
13628 if { (ac_try="$ac_compile"
13629 case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_compile") 2>conftest.er1
13636 grep -v '^ *+' conftest.er1 >conftest.err
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13642 { (case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_try") 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest.$ac_objext'
13652 { (case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_try") 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 eval "$as_ac_Header=yes"
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13666 eval "$as_ac_Header=no"
13669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671 ac_res=`eval echo '${'$as_ac_Header'}'`
13672 { echo "$as_me:$LINENO: result: $ac_res" >&5
13673 echo "${ECHO_T}$ac_res" >&6; }
13674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13675 cat >>confdefs.h <<_ACEOF
13676 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13679 ac_header_dirent=$ac_hdr; break
13683 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13684 if test $ac_header_dirent = dirent.h; then
13685 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13686 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13687 if test "${ac_cv_search_opendir+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 ac_func_search_save_LIBS=$LIBS
13691 cat >conftest.$ac_ext <<_ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13698 /* Override any GCC internal prototype to avoid an error.
13699 Use char because int might match the return type of a GCC
13700 builtin and then its argument prototype would still apply. */
13713 for ac_lib in '' dir; do
13714 if test -z "$ac_lib"; then
13715 ac_res="none required"
13718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (ac_try="$ac_link"
13722 case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_link") 2>conftest.er1
13729 grep -v '^ *+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
13734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13735 { (case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_try") 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest$ac_exeext'
13745 { (case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_try") 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 ac_cv_search_opendir=$ac_res
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13762 rm -f core conftest.err conftest.$ac_objext \
13764 if test "${ac_cv_search_opendir+set}" = set; then
13768 if test "${ac_cv_search_opendir+set}" = set; then
13771 ac_cv_search_opendir=no
13773 rm conftest.$ac_ext
13774 LIBS=$ac_func_search_save_LIBS
13776 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13777 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13778 ac_res=$ac_cv_search_opendir
13779 if test "$ac_res" != no; then
13780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13785 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13786 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13787 if test "${ac_cv_search_opendir+set}" = set; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 ac_func_search_save_LIBS=$LIBS
13791 cat >conftest.$ac_ext <<_ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13798 /* Override any GCC internal prototype to avoid an error.
13799 Use char because int might match the return type of a GCC
13800 builtin and then its argument prototype would still apply. */
13813 for ac_lib in '' x; do
13814 if test -z "$ac_lib"; then
13815 ac_res="none required"
13818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13820 rm -f conftest.$ac_objext conftest$ac_exeext
13821 if { (ac_try="$ac_link"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_link") 2>conftest.er1
13829 grep -v '^ *+' conftest.er1 >conftest.err
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13835 { (case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_try") 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; } &&
13844 { ac_try='test -s conftest$ac_exeext'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_cv_search_opendir=$ac_res
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13862 rm -f core conftest.err conftest.$ac_objext \
13864 if test "${ac_cv_search_opendir+set}" = set; then
13868 if test "${ac_cv_search_opendir+set}" = set; then
13871 ac_cv_search_opendir=no
13873 rm conftest.$ac_ext
13874 LIBS=$ac_func_search_save_LIBS
13876 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13877 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13878 ac_res=$ac_cv_search_opendir
13879 if test "$ac_res" != no; then
13880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13886 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13887 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13888 if test "${ac_cv_header_mmap_anon+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 ac_cpp='$CPP $CPPFLAGS'
13893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13897 cat >conftest.$ac_ext <<_ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h. */
13903 #include <sys/mman.h>
13904 #include <unistd.h>
13909 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13914 rm -f conftest.$ac_objext
13915 if { (ac_try="$ac_compile"
13916 case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_compile") 2>conftest.er1
13923 grep -v '^ *+' conftest.er1 >conftest.err
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13929 { (case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_try") 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; } &&
13938 { ac_try='test -s conftest.$ac_objext'
13939 { (case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_try") 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_header_mmap_anon=yes
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_cv_header_mmap_anon=no
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 ac_cpp='$CPP $CPPFLAGS'
13959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13965 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13966 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13967 if test "$ac_cv_header_mmap_anon" = yes; then
13969 cat >>confdefs.h <<\_ACEOF
13970 #define HAVE_MMAP_ANONYMOUS 1
13975 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13976 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13977 if test "${ac_cv_header_stat_broken+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 cat >conftest.$ac_ext <<_ACEOF
13983 cat confdefs.h >>conftest.$ac_ext
13984 cat >>conftest.$ac_ext <<_ACEOF
13985 /* end confdefs.h. */
13986 #include <sys/types.h>
13987 #include <sys/stat.h>
13989 #if defined S_ISBLK && defined S_IFDIR
13990 # if S_ISBLK (S_IFDIR)
13995 #if defined S_ISBLK && defined S_IFCHR
13996 # if S_ISBLK (S_IFCHR)
14001 #if defined S_ISLNK && defined S_IFREG
14002 # if S_ISLNK (S_IFREG)
14007 #if defined S_ISSOCK && defined S_IFREG
14008 # if S_ISSOCK (S_IFREG)
14014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14015 $EGREP "You lose" >/dev/null 2>&1; then
14016 ac_cv_header_stat_broken=yes
14018 ac_cv_header_stat_broken=no
14023 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14024 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14025 if test $ac_cv_header_stat_broken = yes; then
14027 cat >>confdefs.h <<\_ACEOF
14028 #define STAT_MACROS_BROKEN 1
14033 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14034 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14035 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 cat >conftest.$ac_ext <<_ACEOF
14041 cat confdefs.h >>conftest.$ac_ext
14042 cat >>conftest.$ac_ext <<_ACEOF
14043 /* end confdefs.h. */
14044 #include <sys/types.h>
14045 #include <sys/wait.h>
14046 #ifndef WEXITSTATUS
14047 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14050 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14058 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14063 rm -f conftest.$ac_objext
14064 if { (ac_try="$ac_compile"
14065 case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_compile") 2>conftest.er1
14072 grep -v '^ *+' conftest.er1 >conftest.err
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14078 { (case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_try") 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; } &&
14087 { ac_try='test -s conftest.$ac_objext'
14088 { (case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_try") 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_cv_header_sys_wait_h=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_cv_header_sys_wait_h=no
14105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14108 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14109 if test $ac_cv_header_sys_wait_h = yes; then
14111 cat >>confdefs.h <<\_ACEOF
14112 #define HAVE_SYS_WAIT_H 1
14117 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14118 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14119 if test "${ac_cv_header_time+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14122 cat >conftest.$ac_ext <<_ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 #include <sys/types.h>
14129 #include <sys/time.h>
14135 if ((struct tm *) 0)
14141 rm -f conftest.$ac_objext
14142 if { (ac_try="$ac_compile"
14143 case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_compile") 2>conftest.er1
14150 grep -v '^ *+' conftest.er1 >conftest.err
14152 cat conftest.err >&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } &&
14155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14156 { (case "(($ac_try" in
14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161 (eval "$ac_try") 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; } &&
14165 { ac_try='test -s conftest.$ac_objext'
14166 { (case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_try") 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 ac_cv_header_time=yes
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 ac_cv_header_time=no
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14186 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14187 if test $ac_cv_header_time = yes; then
14189 cat >>confdefs.h <<\_ACEOF
14190 #define TIME_WITH_SYS_TIME 1
14202 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 ac_res=`eval echo '${'$as_ac_Header'}'`
14212 { echo "$as_me:$LINENO: result: $ac_res" >&5
14213 echo "${ECHO_T}$ac_res" >&6; }
14215 # Is the header compilable?
14216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14218 cat >conftest.$ac_ext <<_ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 $ac_includes_default
14225 #include <$ac_header>
14227 rm -f conftest.$ac_objext
14228 if { (ac_try="$ac_compile"
14229 case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_compile") 2>conftest.er1
14236 grep -v '^ *+' conftest.er1 >conftest.err
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14242 { (case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_try") 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; } &&
14251 { ac_try='test -s conftest.$ac_objext'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_header_compiler=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_header_compiler=no
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14271 echo "${ECHO_T}$ac_header_compiler" >&6; }
14273 # Is the header present?
14274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14276 cat >conftest.$ac_ext <<_ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14282 #include <$ac_header>
14284 if { (ac_try="$ac_cpp conftest.$ac_ext"
14285 case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14292 grep -v '^ *+' conftest.er1 >conftest.err
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } >/dev/null; then
14297 if test -s conftest.err; then
14298 ac_cpp_err=$ac_c_preproc_warn_flag
14299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14306 if test -z "$ac_cpp_err"; then
14307 ac_header_preproc=yes
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14312 ac_header_preproc=no
14315 rm -f conftest.err conftest.$ac_ext
14316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14317 echo "${ECHO_T}$ac_header_preproc" >&6; }
14319 # So? What about this header?
14320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14326 ac_header_preproc=yes
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14342 ## ------------------------------ ##
14343 ## Report this to bugs@yourdomain ##
14344 ## ------------------------------ ##
14346 ) | sed "s/^/$as_me: WARNING: /" >&2
14349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 eval "$as_ac_Header=\$ac_header_preproc"
14356 ac_res=`eval echo '${'$as_ac_Header'}'`
14357 { echo "$as_me:$LINENO: result: $ac_res" >&5
14358 echo "${ECHO_T}$ac_res" >&6; }
14361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14362 cat >>confdefs.h <<_ACEOF
14363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14376 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 ac_res=`eval echo '${'$as_ac_Header'}'`
14386 { echo "$as_me:$LINENO: result: $ac_res" >&5
14387 echo "${ECHO_T}$ac_res" >&6; }
14389 # Is the header compilable?
14390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14392 cat >conftest.$ac_ext <<_ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h. */
14398 $ac_includes_default
14399 #include <$ac_header>
14401 rm -f conftest.$ac_objext
14402 if { (ac_try="$ac_compile"
14403 case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_compile") 2>conftest.er1
14410 grep -v '^ *+' conftest.er1 >conftest.err
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14416 { (case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_try") 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_try") 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 ac_header_compiler=yes
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14440 ac_header_compiler=no
14443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14445 echo "${ECHO_T}$ac_header_compiler" >&6; }
14447 # Is the header present?
14448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 #include <$ac_header>
14458 if { (ac_try="$ac_cpp conftest.$ac_ext"
14459 case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14466 grep -v '^ *+' conftest.er1 >conftest.err
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } >/dev/null; then
14471 if test -s conftest.err; then
14472 ac_cpp_err=$ac_c_preproc_warn_flag
14473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14480 if test -z "$ac_cpp_err"; then
14481 ac_header_preproc=yes
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ac_header_preproc=no
14489 rm -f conftest.err conftest.$ac_ext
14490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14491 echo "${ECHO_T}$ac_header_preproc" >&6; }
14493 # So? What about this header?
14494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14500 ac_header_preproc=yes
14503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14516 ## ------------------------------ ##
14517 ## Report this to bugs@yourdomain ##
14518 ## ------------------------------ ##
14520 ) | sed "s/^/$as_me: WARNING: /" >&2
14523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 eval "$as_ac_Header=\$ac_header_preproc"
14530 ac_res=`eval echo '${'$as_ac_Header'}'`
14531 { echo "$as_me:$LINENO: result: $ac_res" >&5
14532 echo "${ECHO_T}$ac_res" >&6; }
14535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14536 cat >>confdefs.h <<_ACEOF
14537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14546 for ac_header in utime.h windows.h
14548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14555 ac_res=`eval echo '${'$as_ac_Header'}'`
14556 { echo "$as_me:$LINENO: result: $ac_res" >&5
14557 echo "${ECHO_T}$ac_res" >&6; }
14559 # Is the header compilable?
14560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 $ac_includes_default
14569 #include <$ac_header>
14571 rm -f conftest.$ac_objext
14572 if { (ac_try="$ac_compile"
14573 case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_compile") 2>conftest.er1
14580 grep -v '^ *+' conftest.er1 >conftest.err
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
14585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14586 { (case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_try") 2>&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; } &&
14595 { ac_try='test -s conftest.$ac_objext'
14596 { (case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_try") 2>&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; }; then
14605 ac_header_compiler=yes
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14610 ac_header_compiler=no
14613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14615 echo "${ECHO_T}$ac_header_compiler" >&6; }
14617 # Is the header present?
14618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14620 cat >conftest.$ac_ext <<_ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 #include <$ac_header>
14628 if { (ac_try="$ac_cpp conftest.$ac_ext"
14629 case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14636 grep -v '^ *+' conftest.er1 >conftest.err
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } >/dev/null; then
14641 if test -s conftest.err; then
14642 ac_cpp_err=$ac_c_preproc_warn_flag
14643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14650 if test -z "$ac_cpp_err"; then
14651 ac_header_preproc=yes
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14656 ac_header_preproc=no
14659 rm -f conftest.err conftest.$ac_ext
14660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14661 echo "${ECHO_T}$ac_header_preproc" >&6; }
14663 # So? What about this header?
14664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14670 ac_header_preproc=yes
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14686 ## ------------------------------ ##
14687 ## Report this to bugs@yourdomain ##
14688 ## ------------------------------ ##
14690 ) | sed "s/^/$as_me: WARNING: /" >&2
14693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 eval "$as_ac_Header=\$ac_header_preproc"
14700 ac_res=`eval echo '${'$as_ac_Header'}'`
14701 { echo "$as_me:$LINENO: result: $ac_res" >&5
14702 echo "${ECHO_T}$ac_res" >&6; }
14705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14706 cat >>confdefs.h <<_ACEOF
14707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14719 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 ac_res=`eval echo '${'$as_ac_Header'}'`
14729 { echo "$as_me:$LINENO: result: $ac_res" >&5
14730 echo "${ECHO_T}$ac_res" >&6; }
14732 # Is the header compilable?
14733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14735 cat >conftest.$ac_ext <<_ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 $ac_includes_default
14742 #include <$ac_header>
14744 rm -f conftest.$ac_objext
14745 if { (ac_try="$ac_compile"
14746 case "(($ac_try" in
14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751 (eval "$ac_compile") 2>conftest.er1
14753 grep -v '^ *+' conftest.er1 >conftest.err
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14759 { (case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_try") 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; } &&
14768 { ac_try='test -s conftest.$ac_objext'
14769 { (case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_try") 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 ac_header_compiler=yes
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 ac_header_compiler=no
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14788 echo "${ECHO_T}$ac_header_compiler" >&6; }
14790 # Is the header present?
14791 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14793 cat >conftest.$ac_ext <<_ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h. */
14799 #include <$ac_header>
14801 if { (ac_try="$ac_cpp conftest.$ac_ext"
14802 case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14809 grep -v '^ *+' conftest.er1 >conftest.err
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } >/dev/null; then
14814 if test -s conftest.err; then
14815 ac_cpp_err=$ac_c_preproc_warn_flag
14816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14823 if test -z "$ac_cpp_err"; then
14824 ac_header_preproc=yes
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 ac_header_preproc=no
14832 rm -f conftest.err conftest.$ac_ext
14833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14834 echo "${ECHO_T}$ac_header_preproc" >&6; }
14836 # So? What about this header?
14837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14843 ac_header_preproc=yes
14846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14859 ## ------------------------------ ##
14860 ## Report this to bugs@yourdomain ##
14861 ## ------------------------------ ##
14863 ) | sed "s/^/$as_me: WARNING: /" >&2
14866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 eval "$as_ac_Header=\$ac_header_preproc"
14873 ac_res=`eval echo '${'$as_ac_Header'}'`
14874 { echo "$as_me:$LINENO: result: $ac_res" >&5
14875 echo "${ECHO_T}$ac_res" >&6; }
14878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14879 cat >>confdefs.h <<_ACEOF
14880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14891 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 ac_res=`eval echo '${'$as_ac_Header'}'`
14901 { echo "$as_me:$LINENO: result: $ac_res" >&5
14902 echo "${ECHO_T}$ac_res" >&6; }
14904 # Is the header compilable?
14905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14907 cat >conftest.$ac_ext <<_ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14913 $ac_includes_default
14914 #include <$ac_header>
14916 rm -f conftest.$ac_objext
14917 if { (ac_try="$ac_compile"
14918 case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_compile") 2>conftest.er1
14925 grep -v '^ *+' conftest.er1 >conftest.err
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } &&
14930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14931 { (case "(($ac_try" in
14932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933 *) ac_try_echo=$ac_try;;
14935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936 (eval "$ac_try") 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try='test -s conftest.$ac_objext'
14941 { (case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_try") 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950 ac_header_compiler=yes
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14955 ac_header_compiler=no
14958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14960 echo "${ECHO_T}$ac_header_compiler" >&6; }
14962 # Is the header present?
14963 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14965 cat >conftest.$ac_ext <<_ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 #include <$ac_header>
14973 if { (ac_try="$ac_cpp conftest.$ac_ext"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14981 grep -v '^ *+' conftest.er1 >conftest.err
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } >/dev/null; then
14986 if test -s conftest.err; then
14987 ac_cpp_err=$ac_c_preproc_warn_flag
14988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14995 if test -z "$ac_cpp_err"; then
14996 ac_header_preproc=yes
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 ac_header_preproc=no
15004 rm -f conftest.err conftest.$ac_ext
15005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15006 echo "${ECHO_T}$ac_header_preproc" >&6; }
15008 # So? What about this header?
15009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15015 ac_header_preproc=yes
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15031 ## ------------------------------ ##
15032 ## Report this to bugs@yourdomain ##
15033 ## ------------------------------ ##
15035 ) | sed "s/^/$as_me: WARNING: /" >&2
15038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 eval "$as_ac_Header=\$ac_header_preproc"
15045 ac_res=`eval echo '${'$as_ac_Header'}'`
15046 { echo "$as_me:$LINENO: result: $ac_res" >&5
15047 echo "${ECHO_T}$ac_res" >&6; }
15050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15051 cat >>confdefs.h <<_ACEOF
15052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15060 for ac_header in valgrind/valgrind.h
15062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 ac_res=`eval echo '${'$as_ac_Header'}'`
15070 { echo "$as_me:$LINENO: result: $ac_res" >&5
15071 echo "${ECHO_T}$ac_res" >&6; }
15073 # Is the header compilable?
15074 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15076 cat >conftest.$ac_ext <<_ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 $ac_includes_default
15083 #include <$ac_header>
15085 rm -f conftest.$ac_objext
15086 if { (ac_try="$ac_compile"
15087 case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_compile") 2>conftest.er1
15094 grep -v '^ *+' conftest.er1 >conftest.err
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15100 { (case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_try") 2>&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; } &&
15109 { ac_try='test -s conftest.$ac_objext'
15110 { (case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_try") 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_header_compiler=yes
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15124 ac_header_compiler=no
15127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15129 echo "${ECHO_T}$ac_header_compiler" >&6; }
15131 # Is the header present?
15132 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15134 cat >conftest.$ac_ext <<_ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h. */
15140 #include <$ac_header>
15142 if { (ac_try="$ac_cpp conftest.$ac_ext"
15143 case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15150 grep -v '^ *+' conftest.er1 >conftest.err
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } >/dev/null; then
15155 if test -s conftest.err; then
15156 ac_cpp_err=$ac_c_preproc_warn_flag
15157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15164 if test -z "$ac_cpp_err"; then
15165 ac_header_preproc=yes
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_header_preproc=no
15173 rm -f conftest.err conftest.$ac_ext
15174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15175 echo "${ECHO_T}$ac_header_preproc" >&6; }
15177 # So? What about this header?
15178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15184 ac_header_preproc=yes
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15200 ## ------------------------------ ##
15201 ## Report this to bugs@yourdomain ##
15202 ## ------------------------------ ##
15204 ) | sed "s/^/$as_me: WARNING: /" >&2
15207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 eval "$as_ac_Header=\$ac_header_preproc"
15214 ac_res=`eval echo '${'$as_ac_Header'}'`
15215 { echo "$as_me:$LINENO: result: $ac_res" >&5
15216 echo "${ECHO_T}$ac_res" >&6; }
15219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15220 cat >>confdefs.h <<_ACEOF
15221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15229 for ac_header in fenv.h
15231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 ac_res=`eval echo '${'$as_ac_Header'}'`
15239 { echo "$as_me:$LINENO: result: $ac_res" >&5
15240 echo "${ECHO_T}$ac_res" >&6; }
15242 # Is the header compilable?
15243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 $ac_includes_default
15252 #include <$ac_header>
15254 rm -f conftest.$ac_objext
15255 if { (ac_try="$ac_compile"
15256 case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_compile") 2>conftest.er1
15263 grep -v '^ *+' conftest.er1 >conftest.err
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15269 { (case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_try") 2>&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; } &&
15278 { ac_try='test -s conftest.$ac_objext'
15279 { (case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_try") 2>&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 ac_header_compiler=yes
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15293 ac_header_compiler=no
15296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15298 echo "${ECHO_T}$ac_header_compiler" >&6; }
15300 # Is the header present?
15301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15303 cat >conftest.$ac_ext <<_ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 #include <$ac_header>
15311 if { (ac_try="$ac_cpp conftest.$ac_ext"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15319 grep -v '^ *+' conftest.er1 >conftest.err
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } >/dev/null; then
15324 if test -s conftest.err; then
15325 ac_cpp_err=$ac_c_preproc_warn_flag
15326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15333 if test -z "$ac_cpp_err"; then
15334 ac_header_preproc=yes
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_header_preproc=no
15342 rm -f conftest.err conftest.$ac_ext
15343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15344 echo "${ECHO_T}$ac_header_preproc" >&6; }
15346 # So? What about this header?
15347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15353 ac_header_preproc=yes
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15369 ## ------------------------------ ##
15370 ## Report this to bugs@yourdomain ##
15371 ## ------------------------------ ##
15373 ) | sed "s/^/$as_me: WARNING: /" >&2
15376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 eval "$as_ac_Header=\$ac_header_preproc"
15383 ac_res=`eval echo '${'$as_ac_Header'}'`
15384 { echo "$as_me:$LINENO: result: $ac_res" >&5
15385 echo "${ECHO_T}$ac_res" >&6; }
15388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15389 cat >>confdefs.h <<_ACEOF
15390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15397 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15399 for ac_header in pthread.h
15401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 ac_res=`eval echo '${'$as_ac_Header'}'`
15409 { echo "$as_me:$LINENO: result: $ac_res" >&5
15410 echo "${ECHO_T}$ac_res" >&6; }
15412 # Is the header compilable?
15413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15415 cat >conftest.$ac_ext <<_ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 $ac_includes_default
15422 #include <$ac_header>
15424 rm -f conftest.$ac_objext
15425 if { (ac_try="$ac_compile"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_compile") 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15439 { (case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_try") 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest.$ac_objext'
15449 { (case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_try") 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_header_compiler=yes
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15463 ac_header_compiler=no
15466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15468 echo "${ECHO_T}$ac_header_compiler" >&6; }
15470 # Is the header present?
15471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15473 cat >conftest.$ac_ext <<_ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 #include <$ac_header>
15481 if { (ac_try="$ac_cpp conftest.$ac_ext"
15482 case "(($ac_try" in
15483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484 *) ac_try_echo=$ac_try;;
15486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15489 grep -v '^ *+' conftest.er1 >conftest.err
15491 cat conftest.err >&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } >/dev/null; then
15494 if test -s conftest.err; then
15495 ac_cpp_err=$ac_c_preproc_warn_flag
15496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15503 if test -z "$ac_cpp_err"; then
15504 ac_header_preproc=yes
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_header_preproc=no
15512 rm -f conftest.err conftest.$ac_ext
15513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15514 echo "${ECHO_T}$ac_header_preproc" >&6; }
15516 # So? What about this header?
15517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15523 ac_header_preproc=yes
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15539 ## ------------------------------ ##
15540 ## Report this to bugs@yourdomain ##
15541 ## ------------------------------ ##
15543 ) | sed "s/^/$as_me: WARNING: /" >&2
15546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 eval "$as_ac_Header=\$ac_header_preproc"
15553 ac_res=`eval echo '${'$as_ac_Header'}'`
15554 { echo "$as_me:$LINENO: result: $ac_res" >&5
15555 echo "${ECHO_T}$ac_res" >&6; }
15558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15576 if test "$llvm_cv_enable_libffi" = "yes" ; then
15579 for ac_header in ffi.h ffi/ffi.h
15581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 ac_res=`eval echo '${'$as_ac_Header'}'`
15589 { echo "$as_me:$LINENO: result: $ac_res" >&5
15590 echo "${ECHO_T}$ac_res" >&6; }
15592 # Is the header compilable?
15593 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15595 cat >conftest.$ac_ext <<_ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 $ac_includes_default
15602 #include <$ac_header>
15604 rm -f conftest.$ac_objext
15605 if { (ac_try="$ac_compile"
15606 case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_compile") 2>conftest.er1
15613 grep -v '^ *+' conftest.er1 >conftest.err
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } &&
15618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15619 { (case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_try") 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest.$ac_objext'
15629 { (case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_try") 2>&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 ac_header_compiler=yes
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 ac_header_compiler=no
15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15648 echo "${ECHO_T}$ac_header_compiler" >&6; }
15650 # Is the header present?
15651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15653 cat >conftest.$ac_ext <<_ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15659 #include <$ac_header>
15661 if { (ac_try="$ac_cpp conftest.$ac_ext"
15662 case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15669 grep -v '^ *+' conftest.er1 >conftest.err
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } >/dev/null; then
15674 if test -s conftest.err; then
15675 ac_cpp_err=$ac_c_preproc_warn_flag
15676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15683 if test -z "$ac_cpp_err"; then
15684 ac_header_preproc=yes
15686 echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15689 ac_header_preproc=no
15692 rm -f conftest.err conftest.$ac_ext
15693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15694 echo "${ECHO_T}$ac_header_preproc" >&6; }
15696 # So? What about this header?
15697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15703 ac_header_preproc=yes
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15719 ## ------------------------------ ##
15720 ## Report this to bugs@yourdomain ##
15721 ## ------------------------------ ##
15723 ) | sed "s/^/$as_me: WARNING: /" >&2
15726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 eval "$as_ac_Header=\$ac_header_preproc"
15733 ac_res=`eval echo '${'$as_ac_Header'}'`
15734 { echo "$as_me:$LINENO: result: $ac_res" >&5
15735 echo "${ECHO_T}$ac_res" >&6; }
15738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15739 cat >>confdefs.h <<_ACEOF
15740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15750 for ac_header in CrashReporterClient.h
15752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15757 echo $ECHO_N "(cached) $ECHO_C" >&6
15759 ac_res=`eval echo '${'$as_ac_Header'}'`
15760 { echo "$as_me:$LINENO: result: $ac_res" >&5
15761 echo "${ECHO_T}$ac_res" >&6; }
15763 # Is the header compilable?
15764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15766 cat >conftest.$ac_ext <<_ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 $ac_includes_default
15773 #include <$ac_header>
15775 rm -f conftest.$ac_objext
15776 if { (ac_try="$ac_compile"
15777 case "(($ac_try" in
15778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779 *) ac_try_echo=$ac_try;;
15781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15782 (eval "$ac_compile") 2>conftest.er1
15784 grep -v '^ *+' conftest.er1 >conftest.err
15786 cat conftest.err >&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } &&
15789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15790 { (case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_try") 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_try") 2>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 ac_header_compiler=yes
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_header_compiler=no
15817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15819 echo "${ECHO_T}$ac_header_compiler" >&6; }
15821 # Is the header present?
15822 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15824 cat >conftest.$ac_ext <<_ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h. */
15830 #include <$ac_header>
15832 if { (ac_try="$ac_cpp conftest.$ac_ext"
15833 case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15840 grep -v '^ *+' conftest.er1 >conftest.err
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } >/dev/null; then
15845 if test -s conftest.err; then
15846 ac_cpp_err=$ac_c_preproc_warn_flag
15847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15854 if test -z "$ac_cpp_err"; then
15855 ac_header_preproc=yes
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 ac_header_preproc=no
15863 rm -f conftest.err conftest.$ac_ext
15864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15865 echo "${ECHO_T}$ac_header_preproc" >&6; }
15867 # So? What about this header?
15868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15874 ac_header_preproc=yes
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15890 ## ------------------------------ ##
15891 ## Report this to bugs@yourdomain ##
15892 ## ------------------------------ ##
15894 ) | sed "s/^/$as_me: WARNING: /" >&2
15897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 eval "$as_ac_Header=\$ac_header_preproc"
15904 ac_res=`eval echo '${'$as_ac_Header'}'`
15905 { echo "$as_me:$LINENO: result: $ac_res" >&5
15906 echo "${ECHO_T}$ac_res" >&6; }
15909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15910 cat >>confdefs.h <<_ACEOF
15911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15919 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15920 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15921 cat >conftest.$ac_ext <<_ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15927 extern const char *__crashreporter_info__;
15929 __crashreporter_info__ = "test";
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (ac_try="$ac_link"
15936 case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_link") 2>conftest.er1
15943 grep -v '^ *+' conftest.er1 >conftest.err
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15949 { (case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_try") 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest$ac_exeext'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 { echo "$as_me:$LINENO: result: yes" >&5
15969 echo "${ECHO_T}yes" >&6; }
15971 cat >>confdefs.h <<\_ACEOF
15972 #define HAVE_CRASHREPORTER_INFO 1
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 { echo "$as_me:$LINENO: result: no" >&5
15980 echo "${ECHO_T}no" >&6; }
15982 cat >>confdefs.h <<\_ACEOF
15983 #define HAVE_CRASHREPORTER_INFO 0
15988 rm -f core conftest.err conftest.$ac_objext \
15989 conftest$ac_exeext conftest.$ac_ext
15994 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15995 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15996 if test "${ac_cv_huge_val_sanity+set}" = set; then
15997 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 ac_cpp='$CXXCPP $CPPFLAGS'
16002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16006 ac_save_CXXFLAGS=$CXXFLAGS
16007 CXXFLAGS="$CXXFLAGS -pedantic"
16008 if test "$cross_compiling" = yes; then
16009 ac_cv_huge_val_sanity=yes
16011 cat >conftest.$ac_ext <<_ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16021 double x = HUGE_VAL; return x != x;
16026 rm -f conftest$ac_exeext
16027 if { (ac_try="$ac_link"
16028 case "(($ac_try" in
16029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030 *) ac_try_echo=$ac_try;;
16032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_link") 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16037 { (case "(($ac_try" in
16038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16039 *) ac_try_echo=$ac_try;;
16041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16042 (eval "$ac_try") 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_cv_huge_val_sanity=yes
16048 echo "$as_me: program exited with status $ac_status" >&5
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 ( exit $ac_status )
16053 ac_cv_huge_val_sanity=no
16055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16059 CXXFLAGS=$ac_save_CXXFLAGS
16061 ac_cpp='$CPP $CPPFLAGS'
16062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16068 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16069 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16070 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16073 { echo "$as_me:$LINENO: checking for pid_t" >&5
16074 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16075 if test "${ac_cv_type_pid_t+set}" = set; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 cat >conftest.$ac_ext <<_ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16084 $ac_includes_default
16085 typedef pid_t ac__type_new_;
16089 if ((ac__type_new_ *) 0)
16091 if (sizeof (ac__type_new_))
16097 rm -f conftest.$ac_objext
16098 if { (ac_try="$ac_compile"
16099 case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_compile") 2>conftest.er1
16106 grep -v '^ *+' conftest.er1 >conftest.err
16108 cat conftest.err >&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
16111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16112 { (case "(($ac_try" in
16113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114 *) ac_try_echo=$ac_try;;
16116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117 (eval "$ac_try") 2>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; } &&
16121 { ac_try='test -s conftest.$ac_objext'
16122 { (case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_try") 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }; then
16131 ac_cv_type_pid_t=yes
16133 echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16136 ac_cv_type_pid_t=no
16139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16142 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16143 if test $ac_cv_type_pid_t = yes; then
16147 cat >>confdefs.h <<_ACEOF
16153 { echo "$as_me:$LINENO: checking for size_t" >&5
16154 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16155 if test "${ac_cv_type_size_t+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16158 cat >conftest.$ac_ext <<_ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16164 $ac_includes_default
16165 typedef size_t ac__type_new_;
16169 if ((ac__type_new_ *) 0)
16171 if (sizeof (ac__type_new_))
16177 rm -f conftest.$ac_objext
16178 if { (ac_try="$ac_compile"
16179 case "(($ac_try" in
16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181 *) ac_try_echo=$ac_try;;
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184 (eval "$ac_compile") 2>conftest.er1
16186 grep -v '^ *+' conftest.er1 >conftest.err
16188 cat conftest.err >&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } &&
16191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16192 { (case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_try") 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; } &&
16201 { ac_try='test -s conftest.$ac_objext'
16202 { (case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207 (eval "$ac_try") 2>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_cv_type_size_t=yes
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16216 ac_cv_type_size_t=no
16219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16221 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16222 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16223 if test $ac_cv_type_size_t = yes; then
16227 cat >>confdefs.h <<_ACEOF
16228 #define size_t unsigned int
16234 cat >>confdefs.h <<_ACEOF
16235 #define RETSIGTYPE void
16238 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16239 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16240 if test "${ac_cv_struct_tm+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 cat >conftest.$ac_ext <<_ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 #include <sys/types.h>
16255 struct tm *tp; tp->tm_sec;
16260 rm -f conftest.$ac_objext
16261 if { (ac_try="$ac_compile"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_compile") 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16275 { (case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_try") 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest.$ac_objext'
16285 { (case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_try") 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16294 ac_cv_struct_tm=time.h
16296 echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16299 ac_cv_struct_tm=sys/time.h
16302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16304 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16305 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16306 if test $ac_cv_struct_tm = sys/time.h; then
16308 cat >>confdefs.h <<\_ACEOF
16309 #define TM_IN_SYS_TIME 1
16314 { echo "$as_me:$LINENO: checking for int64_t" >&5
16315 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16316 if test "${ac_cv_type_int64_t+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 cat >conftest.$ac_ext <<_ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 $ac_includes_default
16326 typedef int64_t ac__type_new_;
16330 if ((ac__type_new_ *) 0)
16332 if (sizeof (ac__type_new_))
16338 rm -f conftest.$ac_objext
16339 if { (ac_try="$ac_compile"
16340 case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_compile") 2>conftest.er1
16347 grep -v '^ *+' conftest.er1 >conftest.err
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16353 { (case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_try") 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest.$ac_objext'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_cv_type_int64_t=yes
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_cv_type_int64_t=no
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16382 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16383 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16384 if test $ac_cv_type_int64_t = yes; then
16386 cat >>confdefs.h <<_ACEOF
16387 #define HAVE_INT64_T 1
16392 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16393 echo "$as_me: error: Type int64_t required but not found" >&2;}
16394 { (exit 1); exit 1; }; }
16397 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16398 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16399 if test "${ac_cv_type_uint64_t+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 cat >conftest.$ac_ext <<_ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16408 $ac_includes_default
16409 typedef uint64_t ac__type_new_;
16413 if ((ac__type_new_ *) 0)
16415 if (sizeof (ac__type_new_))
16421 rm -f conftest.$ac_objext
16422 if { (ac_try="$ac_compile"
16423 case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_compile") 2>conftest.er1
16430 grep -v '^ *+' conftest.er1 >conftest.err
16432 cat conftest.err >&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } &&
16435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16436 { (case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_try") 2>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; } &&
16445 { ac_try='test -s conftest.$ac_objext'
16446 { (case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_try") 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
16455 ac_cv_type_uint64_t=yes
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 ac_cv_type_uint64_t=no
16463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16466 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16467 if test $ac_cv_type_uint64_t = yes; then
16469 cat >>confdefs.h <<_ACEOF
16470 #define HAVE_UINT64_T 1
16475 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16476 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16477 if test "${ac_cv_type_u_int64_t+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 cat >conftest.$ac_ext <<_ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16486 $ac_includes_default
16487 typedef u_int64_t ac__type_new_;
16491 if ((ac__type_new_ *) 0)
16493 if (sizeof (ac__type_new_))
16499 rm -f conftest.$ac_objext
16500 if { (ac_try="$ac_compile"
16501 case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_compile") 2>conftest.er1
16508 grep -v '^ *+' conftest.er1 >conftest.err
16510 cat conftest.err >&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
16513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16514 { (case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_try") 2>&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; } &&
16523 { ac_try='test -s conftest.$ac_objext'
16524 { (case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_try") 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; }; then
16533 ac_cv_type_u_int64_t=yes
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_cv_type_u_int64_t=no
16541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16543 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16544 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16545 if test $ac_cv_type_u_int64_t = yes; then
16547 cat >>confdefs.h <<_ACEOF
16548 #define HAVE_U_INT64_T 1
16553 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16554 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16555 { (exit 1); exit 1; }; }
16569 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 cat >conftest.$ac_ext <<_ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h. */
16583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16585 #define $ac_func innocuous_$ac_func
16587 /* System header to define __stub macros and hopefully few prototypes,
16588 which can conflict with char $ac_func (); below.
16589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16590 <limits.h> exists even on freestanding compilers. */
16593 # include <limits.h>
16595 # include <assert.h>
16600 /* Override any GCC internal prototype to avoid an error.
16601 Use char because int might match the return type of a GCC
16602 builtin and then its argument prototype would still apply. */
16607 /* The GNU C library defines this for functions which it implements
16608 to always fail with ENOSYS. Some functions are actually named
16609 something starting with __ and the normal name is an alias. */
16610 #if defined __stub_$ac_func || defined __stub___$ac_func
16617 return $ac_func ();
16622 rm -f conftest.$ac_objext conftest$ac_exeext
16623 if { (ac_try="$ac_link"
16624 case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_link") 2>conftest.er1
16631 grep -v '^ *+' conftest.er1 >conftest.err
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16637 { (case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642 (eval "$ac_try") 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try='test -s conftest$ac_exeext'
16647 { (case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_try") 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; }; then
16656 eval "$as_ac_var=yes"
16658 echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16661 eval "$as_ac_var=no"
16664 rm -f core conftest.err conftest.$ac_objext \
16665 conftest$ac_exeext conftest.$ac_ext
16667 ac_res=`eval echo '${'$as_ac_var'}'`
16668 { echo "$as_me:$LINENO: result: $ac_res" >&5
16669 echo "${ECHO_T}$ac_res" >&6; }
16670 if test `eval echo '${'$as_ac_var'}'` = yes; then
16671 cat >>confdefs.h <<_ACEOF
16672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16682 for ac_func in powf fmodf strtof round
16684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16690 cat >conftest.$ac_ext <<_ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16698 #define $ac_func innocuous_$ac_func
16700 /* System header to define __stub macros and hopefully few prototypes,
16701 which can conflict with char $ac_func (); below.
16702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16703 <limits.h> exists even on freestanding compilers. */
16706 # include <limits.h>
16708 # include <assert.h>
16713 /* Override any GCC internal prototype to avoid an error.
16714 Use char because int might match the return type of a GCC
16715 builtin and then its argument prototype would still apply. */
16720 /* The GNU C library defines this for functions which it implements
16721 to always fail with ENOSYS. Some functions are actually named
16722 something starting with __ and the normal name is an alias. */
16723 #if defined __stub_$ac_func || defined __stub___$ac_func
16730 return $ac_func ();
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_link") 2>conftest.er1
16744 grep -v '^ *+' conftest.er1 >conftest.err
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16750 { (case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_try") 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest$ac_exeext'
16760 { (case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_try") 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16769 eval "$as_ac_var=yes"
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 eval "$as_ac_var=no"
16777 rm -f core conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
16780 ac_res=`eval echo '${'$as_ac_var'}'`
16781 { echo "$as_me:$LINENO: result: $ac_res" >&5
16782 echo "${ECHO_T}$ac_res" >&6; }
16783 if test `eval echo '${'$as_ac_var'}'` = yes; then
16784 cat >>confdefs.h <<_ACEOF
16785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16796 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 cat >conftest.$ac_ext <<_ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16812 #define $ac_func innocuous_$ac_func
16814 /* System header to define __stub macros and hopefully few prototypes,
16815 which can conflict with char $ac_func (); below.
16816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16817 <limits.h> exists even on freestanding compilers. */
16820 # include <limits.h>
16822 # include <assert.h>
16827 /* Override any GCC internal prototype to avoid an error.
16828 Use char because int might match the return type of a GCC
16829 builtin and then its argument prototype would still apply. */
16834 /* The GNU C library defines this for functions which it implements
16835 to always fail with ENOSYS. Some functions are actually named
16836 something starting with __ and the normal name is an alias. */
16837 #if defined __stub_$ac_func || defined __stub___$ac_func
16844 return $ac_func ();
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (ac_try="$ac_link"
16851 case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_link") 2>conftest.er1
16858 grep -v '^ *+' conftest.er1 >conftest.err
16860 cat conftest.err >&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } &&
16863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16864 { (case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_try") 2>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; } &&
16873 { ac_try='test -s conftest$ac_exeext'
16874 { (case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_try") 2>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 eval "$as_ac_var=yes"
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16888 eval "$as_ac_var=no"
16891 rm -f core conftest.err conftest.$ac_objext \
16892 conftest$ac_exeext conftest.$ac_ext
16894 ac_res=`eval echo '${'$as_ac_var'}'`
16895 { echo "$as_me:$LINENO: result: $ac_res" >&5
16896 echo "${ECHO_T}$ac_res" >&6; }
16897 if test `eval echo '${'$as_ac_var'}'` = yes; then
16898 cat >>confdefs.h <<_ACEOF
16899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16908 for ac_func in isatty mkdtemp mkstemp
16910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16916 cat >conftest.$ac_ext <<_ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16924 #define $ac_func innocuous_$ac_func
16926 /* System header to define __stub macros and hopefully few prototypes,
16927 which can conflict with char $ac_func (); below.
16928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16929 <limits.h> exists even on freestanding compilers. */
16932 # include <limits.h>
16934 # include <assert.h>
16939 /* Override any GCC internal prototype to avoid an error.
16940 Use char because int might match the return type of a GCC
16941 builtin and then its argument prototype would still apply. */
16946 /* The GNU C library defines this for functions which it implements
16947 to always fail with ENOSYS. Some functions are actually named
16948 something starting with __ and the normal name is an alias. */
16949 #if defined __stub_$ac_func || defined __stub___$ac_func
16956 return $ac_func ();
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (ac_try="$ac_link"
16963 case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_link") 2>conftest.er1
16970 grep -v '^ *+' conftest.er1 >conftest.err
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_try") 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try='test -s conftest$ac_exeext'
16986 { (case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_try") 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 eval "$as_ac_var=yes"
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 eval "$as_ac_var=no"
17003 rm -f core conftest.err conftest.$ac_objext \
17004 conftest$ac_exeext conftest.$ac_ext
17006 ac_res=`eval echo '${'$as_ac_var'}'`
17007 { echo "$as_me:$LINENO: result: $ac_res" >&5
17008 echo "${ECHO_T}$ac_res" >&6; }
17009 if test `eval echo '${'$as_ac_var'}'` = yes; then
17010 cat >>confdefs.h <<_ACEOF
17011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17023 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 cat >conftest.$ac_ext <<_ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17039 #define $ac_func innocuous_$ac_func
17041 /* System header to define __stub macros and hopefully few prototypes,
17042 which can conflict with char $ac_func (); below.
17043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17044 <limits.h> exists even on freestanding compilers. */
17047 # include <limits.h>
17049 # include <assert.h>
17054 /* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
17061 /* The GNU C library defines this for functions which it implements
17062 to always fail with ENOSYS. Some functions are actually named
17063 something starting with __ and the normal name is an alias. */
17064 #if defined __stub_$ac_func || defined __stub___$ac_func
17071 return $ac_func ();
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (ac_try="$ac_link"
17078 case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_link") 2>conftest.er1
17085 grep -v '^ *+' conftest.er1 >conftest.err
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
17090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17091 { (case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_try") 2>&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; } &&
17100 { ac_try='test -s conftest$ac_exeext'
17101 { (case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_try") 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
17110 eval "$as_ac_var=yes"
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 eval "$as_ac_var=no"
17118 rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17121 ac_res=`eval echo '${'$as_ac_var'}'`
17122 { echo "$as_me:$LINENO: result: $ac_res" >&5
17123 echo "${ECHO_T}$ac_res" >&6; }
17124 if test `eval echo '${'$as_ac_var'}'` = yes; then
17125 cat >>confdefs.h <<_ACEOF
17126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17135 for ac_func in strerror strerror_r setenv
17137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 cat >conftest.$ac_ext <<_ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17151 #define $ac_func innocuous_$ac_func
17153 /* System header to define __stub macros and hopefully few prototypes,
17154 which can conflict with char $ac_func (); below.
17155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17156 <limits.h> exists even on freestanding compilers. */
17159 # include <limits.h>
17161 # include <assert.h>
17166 /* Override any GCC internal prototype to avoid an error.
17167 Use char because int might match the return type of a GCC
17168 builtin and then its argument prototype would still apply. */
17173 /* The GNU C library defines this for functions which it implements
17174 to always fail with ENOSYS. Some functions are actually named
17175 something starting with __ and the normal name is an alias. */
17176 #if defined __stub_$ac_func || defined __stub___$ac_func
17183 return $ac_func ();
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (ac_try="$ac_link"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_link") 2>conftest.er1
17197 grep -v '^ *+' conftest.er1 >conftest.err
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17203 { (case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208 (eval "$ac_try") 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest$ac_exeext'
17213 { (case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_try") 2>&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 eval "$as_ac_var=yes"
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 eval "$as_ac_var=no"
17230 rm -f core conftest.err conftest.$ac_objext \
17231 conftest$ac_exeext conftest.$ac_ext
17233 ac_res=`eval echo '${'$as_ac_var'}'`
17234 { echo "$as_me:$LINENO: result: $ac_res" >&5
17235 echo "${ECHO_T}$ac_res" >&6; }
17236 if test `eval echo '${'$as_ac_var'}'` = yes; then
17237 cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17248 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17264 #define $ac_func innocuous_$ac_func
17266 /* System header to define __stub macros and hopefully few prototypes,
17267 which can conflict with char $ac_func (); below.
17268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17269 <limits.h> exists even on freestanding compilers. */
17272 # include <limits.h>
17274 # include <assert.h>
17279 /* Override any GCC internal prototype to avoid an error.
17280 Use char because int might match the return type of a GCC
17281 builtin and then its argument prototype would still apply. */
17286 /* The GNU C library defines this for functions which it implements
17287 to always fail with ENOSYS. Some functions are actually named
17288 something starting with __ and the normal name is an alias. */
17289 #if defined __stub_$ac_func || defined __stub___$ac_func
17296 return $ac_func ();
17301 rm -f conftest.$ac_objext conftest$ac_exeext
17302 if { (ac_try="$ac_link"
17303 case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_link") 2>conftest.er1
17310 grep -v '^ *+' conftest.er1 >conftest.err
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
17315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17316 { (case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_try") 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; } &&
17325 { ac_try='test -s conftest$ac_exeext'
17326 { (case "(($ac_try" in
17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_try") 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 eval "$as_ac_var=yes"
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 eval "$as_ac_var=no"
17343 rm -f core conftest.err conftest.$ac_objext \
17344 conftest$ac_exeext conftest.$ac_ext
17346 ac_res=`eval echo '${'$as_ac_var'}'`
17347 { echo "$as_me:$LINENO: result: $ac_res" >&5
17348 echo "${ECHO_T}$ac_res" >&6; }
17349 if test `eval echo '${'$as_ac_var'}'` = yes; then
17350 cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17362 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17378 #define $ac_func innocuous_$ac_func
17380 /* System header to define __stub macros and hopefully few prototypes,
17381 which can conflict with char $ac_func (); below.
17382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383 <limits.h> exists even on freestanding compilers. */
17386 # include <limits.h>
17388 # include <assert.h>
17393 /* Override any GCC internal prototype to avoid an error.
17394 Use char because int might match the return type of a GCC
17395 builtin and then its argument prototype would still apply. */
17400 /* The GNU C library defines this for functions which it implements
17401 to always fail with ENOSYS. Some functions are actually named
17402 something starting with __ and the normal name is an alias. */
17403 #if defined __stub_$ac_func || defined __stub___$ac_func
17410 return $ac_func ();
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (ac_try="$ac_link"
17417 case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_link") 2>conftest.er1
17424 grep -v '^ *+' conftest.er1 >conftest.err
17426 cat conftest.err >&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } &&
17429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17430 { (case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435 (eval "$ac_try") 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest$ac_exeext'
17440 { (case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_try") 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 eval "$as_ac_var=yes"
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 eval "$as_ac_var=no"
17457 rm -f core conftest.err conftest.$ac_objext \
17458 conftest$ac_exeext conftest.$ac_ext
17460 ac_res=`eval echo '${'$as_ac_var'}'`
17461 { echo "$as_me:$LINENO: result: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17463 if test `eval echo '${'$as_ac_var'}'` = yes; then
17464 cat >>confdefs.h <<_ACEOF
17465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17471 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17472 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17473 if test "${llvm_cv_c_printf_a+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 ac_cpp='$CPP $CPPFLAGS'
17478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17482 if test "$cross_compiling" = yes; then
17483 llvmac_cv_c_printf_a=no
17485 cat >conftest.$ac_ext <<_ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h. */
17494 #include <stdlib.h>
17500 volatile double A, B;
17504 sprintf(Buffer, "%a", A);
17508 if (A != 0x1.999999999999ap-4)
17515 rm -f conftest$ac_exeext
17516 if { (ac_try="$ac_link"
17517 case "(($ac_try" in
17518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519 *) ac_try_echo=$ac_try;;
17521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17522 (eval "$ac_link") 2>&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17526 { (case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_try") 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; }; then
17535 llvm_cv_c_printf_a=yes
17537 echo "$as_me: program exited with status $ac_status" >&5
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 ( exit $ac_status )
17542 llvmac_cv_c_printf_a=no
17544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17549 ac_cpp='$CPP $CPPFLAGS'
17550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17555 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17556 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17557 if test "$llvm_cv_c_printf_a" = "yes"; then
17559 cat >>confdefs.h <<\_ACEOF
17560 #define HAVE_PRINTF_A 1
17566 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17567 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17568 if test "${ac_cv_func_rand48+set}" = set; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 ac_cpp='$CXXCPP $CPPFLAGS'
17573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17577 cat >conftest.$ac_ext <<_ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17583 #include <stdlib.h>
17587 srand48(0);lrand48();drand48();
17592 rm -f conftest.$ac_objext
17593 if { (ac_try="$ac_compile"
17594 case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_compile") 2>conftest.er1
17601 grep -v '^ *+' conftest.er1 >conftest.err
17603 cat conftest.err >&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
17606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17607 { (case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_try") 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest.$ac_objext'
17617 { (case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_try") 2>&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
17626 ac_cv_func_rand48=yes
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17631 ac_cv_func_rand48=no
17634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17636 ac_cpp='$CPP $CPPFLAGS'
17637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17642 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17643 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17645 if test "$ac_cv_func_rand48" = "yes" ; then
17647 cat >>confdefs.h <<\_ACEOF
17648 #define HAVE_RAND48 1
17654 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17655 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17656 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 cat >conftest.$ac_ext <<_ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665 $ac_includes_default
17670 char *p = (char *) strerror_s;
17678 rm -f conftest.$ac_objext
17679 if { (ac_try="$ac_compile"
17680 case "(($ac_try" in
17681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682 *) ac_try_echo=$ac_try;;
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685 (eval "$ac_compile") 2>conftest.er1
17687 grep -v '^ *+' conftest.er1 >conftest.err
17689 cat conftest.err >&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } &&
17692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17693 { (case "(($ac_try" in
17694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695 *) ac_try_echo=$ac_try;;
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698 (eval "$ac_try") 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try='test -s conftest.$ac_objext'
17703 { (case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_try") 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_cv_have_decl_strerror_s=yes
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17717 ac_cv_have_decl_strerror_s=no
17720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17722 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17723 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17724 if test $ac_cv_have_decl_strerror_s = yes; then
17726 cat >>confdefs.h <<_ACEOF
17727 #define HAVE_DECL_STRERROR_S 1
17732 cat >>confdefs.h <<_ACEOF
17733 #define HAVE_DECL_STRERROR_S 0
17741 if test "$llvm_cv_os_type" = "MingW" ; then
17742 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17743 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17744 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 ac_check_lib_save_LIBS=$LIBS
17749 cat >conftest.$ac_ext <<_ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17756 /* Override any GCC internal prototype to avoid an error.
17757 Use char because int might match the return type of a GCC
17758 builtin and then its argument prototype would still apply. */
17771 rm -f conftest.$ac_objext conftest$ac_exeext
17772 if { (ac_try="$ac_link"
17773 case "(($ac_try" in
17774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775 *) ac_try_echo=$ac_try;;
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778 (eval "$ac_link") 2>conftest.er1
17780 grep -v '^ *+' conftest.er1 >conftest.err
17782 cat conftest.err >&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
17785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17786 { (case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791 (eval "$ac_try") 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; } &&
17795 { ac_try='test -s conftest$ac_exeext'
17796 { (case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_try") 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_cv_lib_gcc__alloca=yes
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17810 ac_cv_lib_gcc__alloca=no
17813 rm -f core conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
17815 LIBS=$ac_check_lib_save_LIBS
17817 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17818 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17819 if test $ac_cv_lib_gcc__alloca = yes; then
17821 cat >>confdefs.h <<\_ACEOF
17822 #define HAVE__ALLOCA 1
17827 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17828 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17829 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17830 echo $ECHO_N "(cached) $ECHO_C" >&6
17832 ac_check_lib_save_LIBS=$LIBS
17834 cat >conftest.$ac_ext <<_ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17841 /* Override any GCC internal prototype to avoid an error.
17842 Use char because int might match the return type of a GCC
17843 builtin and then its argument prototype would still apply. */
17851 return __alloca ();
17856 rm -f conftest.$ac_objext conftest$ac_exeext
17857 if { (ac_try="$ac_link"
17858 case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_link") 2>conftest.er1
17865 grep -v '^ *+' conftest.er1 >conftest.err
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
17870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17871 { (case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_try") 2>&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; } &&
17880 { ac_try='test -s conftest$ac_exeext'
17881 { (case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_try") 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17890 ac_cv_lib_gcc___alloca=yes
17892 echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17895 ac_cv_lib_gcc___alloca=no
17898 rm -f core conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17902 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17903 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17904 if test $ac_cv_lib_gcc___alloca = yes; then
17906 cat >>confdefs.h <<\_ACEOF
17907 #define HAVE___ALLOCA 1
17912 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17913 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17914 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 ac_check_lib_save_LIBS=$LIBS
17919 cat >conftest.$ac_ext <<_ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17926 /* Override any GCC internal prototype to avoid an error.
17927 Use char because int might match the return type of a GCC
17928 builtin and then its argument prototype would still apply. */
17936 return __chkstk ();
17941 rm -f conftest.$ac_objext conftest$ac_exeext
17942 if { (ac_try="$ac_link"
17943 case "(($ac_try" in
17944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945 *) ac_try_echo=$ac_try;;
17947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17948 (eval "$ac_link") 2>conftest.er1
17950 grep -v '^ *+' conftest.er1 >conftest.err
17952 cat conftest.err >&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
17955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17956 { (case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_try") 2>&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; } &&
17965 { ac_try='test -s conftest$ac_exeext'
17966 { (case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_try") 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17975 ac_cv_lib_gcc___chkstk=yes
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17980 ac_cv_lib_gcc___chkstk=no
17983 rm -f core conftest.err conftest.$ac_objext \
17984 conftest$ac_exeext conftest.$ac_ext
17985 LIBS=$ac_check_lib_save_LIBS
17987 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17988 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17989 if test $ac_cv_lib_gcc___chkstk = yes; then
17991 cat >>confdefs.h <<\_ACEOF
17992 #define HAVE___CHKSTK 1
17997 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17998 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17999 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 ac_check_lib_save_LIBS=$LIBS
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18011 /* Override any GCC internal prototype to avoid an error.
18012 Use char because int might match the return type of a GCC
18013 builtin and then its argument prototype would still apply. */
18021 return ___chkstk ();
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (ac_try="$ac_link"
18028 case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_link") 2>conftest.er1
18035 grep -v '^ *+' conftest.er1 >conftest.err
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18041 { (case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_try") 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest$ac_exeext'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 ac_cv_lib_gcc____chkstk=yes
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 ac_cv_lib_gcc____chkstk=no
18068 rm -f core conftest.err conftest.$ac_objext \
18069 conftest$ac_exeext conftest.$ac_ext
18070 LIBS=$ac_check_lib_save_LIBS
18072 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18073 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18074 if test $ac_cv_lib_gcc____chkstk = yes; then
18076 cat >>confdefs.h <<\_ACEOF
18077 #define HAVE____CHKSTK 1
18083 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18084 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18085 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18086 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 ac_check_lib_save_LIBS=$LIBS
18090 cat >conftest.$ac_ext <<_ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18097 /* Override any GCC internal prototype to avoid an error.
18098 Use char because int might match the return type of a GCC
18099 builtin and then its argument prototype would still apply. */
18107 return __ashldi3 ();
18112 rm -f conftest.$ac_objext conftest$ac_exeext
18113 if { (ac_try="$ac_link"
18114 case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_link") 2>conftest.er1
18121 grep -v '^ *+' conftest.er1 >conftest.err
18123 cat conftest.err >&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); } &&
18126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18127 { (case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_try") 2>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; } &&
18136 { ac_try='test -s conftest$ac_exeext'
18137 { (case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_try") 2>&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; }; then
18146 ac_cv_lib_gcc___ashldi3=yes
18148 echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18151 ac_cv_lib_gcc___ashldi3=no
18154 rm -f core conftest.err conftest.$ac_objext \
18155 conftest$ac_exeext conftest.$ac_ext
18156 LIBS=$ac_check_lib_save_LIBS
18158 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18159 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18160 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18162 cat >>confdefs.h <<\_ACEOF
18163 #define HAVE___ASHLDI3 1
18168 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18169 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18170 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 ac_check_lib_save_LIBS=$LIBS
18175 cat >conftest.$ac_ext <<_ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18182 /* Override any GCC internal prototype to avoid an error.
18183 Use char because int might match the return type of a GCC
18184 builtin and then its argument prototype would still apply. */
18192 return __ashrdi3 ();
18197 rm -f conftest.$ac_objext conftest$ac_exeext
18198 if { (ac_try="$ac_link"
18199 case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_link") 2>conftest.er1
18206 grep -v '^ *+' conftest.er1 >conftest.err
18208 cat conftest.err >&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
18211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18212 { (case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_try") 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; } &&
18221 { ac_try='test -s conftest$ac_exeext'
18222 { (case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_try") 2>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 ac_cv_lib_gcc___ashrdi3=yes
18233 echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18236 ac_cv_lib_gcc___ashrdi3=no
18239 rm -f core conftest.err conftest.$ac_objext \
18240 conftest$ac_exeext conftest.$ac_ext
18241 LIBS=$ac_check_lib_save_LIBS
18243 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18244 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18245 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18247 cat >>confdefs.h <<\_ACEOF
18248 #define HAVE___ASHRDI3 1
18253 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18254 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18255 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18256 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 ac_check_lib_save_LIBS=$LIBS
18260 cat >conftest.$ac_ext <<_ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18267 /* Override any GCC internal prototype to avoid an error.
18268 Use char because int might match the return type of a GCC
18269 builtin and then its argument prototype would still apply. */
18277 return __divdi3 ();
18282 rm -f conftest.$ac_objext conftest$ac_exeext
18283 if { (ac_try="$ac_link"
18284 case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_link") 2>conftest.er1
18291 grep -v '^ *+' conftest.er1 >conftest.err
18293 cat conftest.err >&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } &&
18296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest$ac_exeext'
18307 { (case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_try") 2>&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; }; then
18316 ac_cv_lib_gcc___divdi3=yes
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 ac_cv_lib_gcc___divdi3=no
18324 rm -f core conftest.err conftest.$ac_objext \
18325 conftest$ac_exeext conftest.$ac_ext
18326 LIBS=$ac_check_lib_save_LIBS
18328 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18329 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18330 if test $ac_cv_lib_gcc___divdi3 = yes; then
18332 cat >>confdefs.h <<\_ACEOF
18333 #define HAVE___DIVDI3 1
18338 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18339 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18340 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18343 ac_check_lib_save_LIBS=$LIBS
18345 cat >conftest.$ac_ext <<_ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18352 /* Override any GCC internal prototype to avoid an error.
18353 Use char because int might match the return type of a GCC
18354 builtin and then its argument prototype would still apply. */
18362 return __fixdfdi ();
18367 rm -f conftest.$ac_objext conftest$ac_exeext
18368 if { (ac_try="$ac_link"
18369 case "(($ac_try" in
18370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18371 *) ac_try_echo=$ac_try;;
18373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18374 (eval "$ac_link") 2>conftest.er1
18376 grep -v '^ *+' conftest.er1 >conftest.err
18378 cat conftest.err >&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); } &&
18381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18382 { (case "(($ac_try" in
18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384 *) ac_try_echo=$ac_try;;
18386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18387 (eval "$ac_try") 2>&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; } &&
18391 { ac_try='test -s conftest$ac_exeext'
18392 { (case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_try") 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; }; then
18401 ac_cv_lib_gcc___fixdfdi=yes
18403 echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18406 ac_cv_lib_gcc___fixdfdi=no
18409 rm -f core conftest.err conftest.$ac_objext \
18410 conftest$ac_exeext conftest.$ac_ext
18411 LIBS=$ac_check_lib_save_LIBS
18413 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18414 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18415 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18417 cat >>confdefs.h <<\_ACEOF
18418 #define HAVE___FIXDFDI 1
18423 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18424 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18425 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18428 ac_check_lib_save_LIBS=$LIBS
18430 cat >conftest.$ac_ext <<_ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h. */
18437 /* Override any GCC internal prototype to avoid an error.
18438 Use char because int might match the return type of a GCC
18439 builtin and then its argument prototype would still apply. */
18447 return __fixsfdi ();
18452 rm -f conftest.$ac_objext conftest$ac_exeext
18453 if { (ac_try="$ac_link"
18454 case "(($ac_try" in
18455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456 *) ac_try_echo=$ac_try;;
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459 (eval "$ac_link") 2>conftest.er1
18461 grep -v '^ *+' conftest.er1 >conftest.err
18463 cat conftest.err >&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } &&
18466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18467 { (case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_try") 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; } &&
18476 { ac_try='test -s conftest$ac_exeext'
18477 { (case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_try") 2>&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 ac_cv_lib_gcc___fixsfdi=yes
18488 echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18491 ac_cv_lib_gcc___fixsfdi=no
18494 rm -f core conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
18496 LIBS=$ac_check_lib_save_LIBS
18498 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18499 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18500 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18502 cat >>confdefs.h <<\_ACEOF
18503 #define HAVE___FIXSFDI 1
18508 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18509 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18510 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 ac_check_lib_save_LIBS=$LIBS
18515 cat >conftest.$ac_ext <<_ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18522 /* Override any GCC internal prototype to avoid an error.
18523 Use char because int might match the return type of a GCC
18524 builtin and then its argument prototype would still apply. */
18528 char __floatdidf ();
18532 return __floatdidf ();
18537 rm -f conftest.$ac_objext conftest$ac_exeext
18538 if { (ac_try="$ac_link"
18539 case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_link") 2>conftest.er1
18546 grep -v '^ *+' conftest.er1 >conftest.err
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18552 { (case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_try") 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest$ac_exeext'
18562 { (case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 ac_cv_lib_gcc___floatdidf=yes
18573 echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18576 ac_cv_lib_gcc___floatdidf=no
18579 rm -f core conftest.err conftest.$ac_objext \
18580 conftest$ac_exeext conftest.$ac_ext
18581 LIBS=$ac_check_lib_save_LIBS
18583 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18584 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18585 if test $ac_cv_lib_gcc___floatdidf = yes; then
18587 cat >>confdefs.h <<\_ACEOF
18588 #define HAVE___FLOATDIDF 1
18593 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18594 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18595 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 ac_check_lib_save_LIBS=$LIBS
18600 cat >conftest.$ac_ext <<_ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18607 /* Override any GCC internal prototype to avoid an error.
18608 Use char because int might match the return type of a GCC
18609 builtin and then its argument prototype would still apply. */
18617 return __lshrdi3 ();
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_link") 2>conftest.er1
18631 grep -v '^ *+' conftest.er1 >conftest.err
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18637 { (case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try='test -s conftest$ac_exeext'
18647 { (case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_try") 2>&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 ac_cv_lib_gcc___lshrdi3=yes
18658 echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18661 ac_cv_lib_gcc___lshrdi3=no
18664 rm -f core conftest.err conftest.$ac_objext \
18665 conftest$ac_exeext conftest.$ac_ext
18666 LIBS=$ac_check_lib_save_LIBS
18668 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18669 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18670 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18672 cat >>confdefs.h <<\_ACEOF
18673 #define HAVE___LSHRDI3 1
18678 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18679 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18680 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
18683 ac_check_lib_save_LIBS=$LIBS
18685 cat >conftest.$ac_ext <<_ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h. */
18692 /* Override any GCC internal prototype to avoid an error.
18693 Use char because int might match the return type of a GCC
18694 builtin and then its argument prototype would still apply. */
18702 return __moddi3 ();
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_link") 2>conftest.er1
18716 grep -v '^ *+' conftest.er1 >conftest.err
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
18721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18722 { (case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727 (eval "$ac_try") 2>&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; } &&
18731 { ac_try='test -s conftest$ac_exeext'
18732 { (case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_try") 2>&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; }; then
18741 ac_cv_lib_gcc___moddi3=yes
18743 echo "$as_me: failed program was:" >&5
18744 sed 's/^/| /' conftest.$ac_ext >&5
18746 ac_cv_lib_gcc___moddi3=no
18749 rm -f core conftest.err conftest.$ac_objext \
18750 conftest$ac_exeext conftest.$ac_ext
18751 LIBS=$ac_check_lib_save_LIBS
18753 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18754 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18755 if test $ac_cv_lib_gcc___moddi3 = yes; then
18757 cat >>confdefs.h <<\_ACEOF
18758 #define HAVE___MODDI3 1
18763 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18764 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18765 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 ac_check_lib_save_LIBS=$LIBS
18770 cat >conftest.$ac_ext <<_ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18777 /* Override any GCC internal prototype to avoid an error.
18778 Use char because int might match the return type of a GCC
18779 builtin and then its argument prototype would still apply. */
18787 return __udivdi3 ();
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (ac_try="$ac_link"
18794 case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_link") 2>conftest.er1
18801 grep -v '^ *+' conftest.er1 >conftest.err
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18807 { (case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_try") 2>&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; } &&
18816 { ac_try='test -s conftest$ac_exeext'
18817 { (case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18826 ac_cv_lib_gcc___udivdi3=yes
18828 echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18831 ac_cv_lib_gcc___udivdi3=no
18834 rm -f core conftest.err conftest.$ac_objext \
18835 conftest$ac_exeext conftest.$ac_ext
18836 LIBS=$ac_check_lib_save_LIBS
18838 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18839 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18840 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18842 cat >>confdefs.h <<\_ACEOF
18843 #define HAVE___UDIVDI3 1
18848 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18849 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18850 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18853 ac_check_lib_save_LIBS=$LIBS
18855 cat >conftest.$ac_ext <<_ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h. */
18862 /* Override any GCC internal prototype to avoid an error.
18863 Use char because int might match the return type of a GCC
18864 builtin and then its argument prototype would still apply. */
18872 return __umoddi3 ();
18877 rm -f conftest.$ac_objext conftest$ac_exeext
18878 if { (ac_try="$ac_link"
18879 case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_link") 2>conftest.er1
18886 grep -v '^ *+' conftest.er1 >conftest.err
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18892 { (case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_try") 2>&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; } &&
18901 { ac_try='test -s conftest$ac_exeext'
18902 { (case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_try") 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911 ac_cv_lib_gcc___umoddi3=yes
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 ac_cv_lib_gcc___umoddi3=no
18919 rm -f core conftest.err conftest.$ac_objext \
18920 conftest$ac_exeext conftest.$ac_ext
18921 LIBS=$ac_check_lib_save_LIBS
18923 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18924 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18925 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18927 cat >>confdefs.h <<\_ACEOF
18928 #define HAVE___UMODDI3 1
18934 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18935 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18936 if test "${ac_cv_lib_gcc___main+set}" = set; then
18937 echo $ECHO_N "(cached) $ECHO_C" >&6
18939 ac_check_lib_save_LIBS=$LIBS
18941 cat >conftest.$ac_ext <<_ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18948 /* Override any GCC internal prototype to avoid an error.
18949 Use char because int might match the return type of a GCC
18950 builtin and then its argument prototype would still apply. */
18963 rm -f conftest.$ac_objext conftest$ac_exeext
18964 if { (ac_try="$ac_link"
18965 case "(($ac_try" in
18966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967 *) ac_try_echo=$ac_try;;
18969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970 (eval "$ac_link") 2>conftest.er1
18972 grep -v '^ *+' conftest.er1 >conftest.err
18974 cat conftest.err >&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
18977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18978 { (case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_try") 2>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try='test -s conftest$ac_exeext'
18988 { (case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_try") 2>&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18997 ac_cv_lib_gcc___main=yes
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19002 ac_cv_lib_gcc___main=no
19005 rm -f core conftest.err conftest.$ac_objext \
19006 conftest$ac_exeext conftest.$ac_ext
19007 LIBS=$ac_check_lib_save_LIBS
19009 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19010 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19011 if test $ac_cv_lib_gcc___main = yes; then
19013 cat >>confdefs.h <<\_ACEOF
19014 #define HAVE___MAIN 1
19019 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19020 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19021 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19024 ac_check_lib_save_LIBS=$LIBS
19026 cat >conftest.$ac_ext <<_ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19033 /* Override any GCC internal prototype to avoid an error.
19034 Use char because int might match the return type of a GCC
19035 builtin and then its argument prototype would still apply. */
19043 return __cmpdi2 ();
19048 rm -f conftest.$ac_objext conftest$ac_exeext
19049 if { (ac_try="$ac_link"
19050 case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_link") 2>conftest.er1
19057 grep -v '^ *+' conftest.er1 >conftest.err
19059 cat conftest.err >&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } &&
19062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19063 { (case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_try") 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try='test -s conftest$ac_exeext'
19073 { (case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078 (eval "$ac_try") 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_lib_gcc___cmpdi2=yes
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_cv_lib_gcc___cmpdi2=no
19090 rm -f core conftest.err conftest.$ac_objext \
19091 conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19094 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19095 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19096 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19098 cat >>confdefs.h <<\_ACEOF
19099 #define HAVE___CMPDI2 1
19106 if test "$llvm_cv_os_type" = "MingW" ; then
19107 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19108 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19109 cat >conftest.$ac_ext <<_ACEOF
19110 #include <windows.h>
19111 #include <imagehlp.h>
19112 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19113 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19115 rm -f conftest.$ac_objext
19116 if { (ac_try="$ac_compile"
19117 case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_compile") 2>conftest.er1
19124 grep -v '^ *+' conftest.er1 >conftest.err
19126 cat conftest.err >&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); } &&
19129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19130 { (case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_try") 2>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest.$ac_objext'
19140 { (case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_try") 2>&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19150 { echo "$as_me:$LINENO: result: yes" >&5
19151 echo "${ECHO_T}yes" >&6; }
19152 llvm_cv_win32_elmcb_pcstr="PCSTR"
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19159 { echo "$as_me:$LINENO: result: no" >&5
19160 echo "${ECHO_T}no" >&6; }
19161 llvm_cv_win32_elmcb_pcstr="PSTR"
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167 cat >>confdefs.h <<_ACEOF
19168 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19174 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19175 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19176 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 ac_cpp='$CXXCPP $CPPFLAGS'
19181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19185 cat >conftest.$ac_ext <<_ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h. */
19200 rm -f conftest.$ac_objext
19201 if { (ac_try="$ac_compile"
19202 case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_compile") 2>conftest.er1
19209 grep -v '^ *+' conftest.er1 >conftest.err
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } &&
19214 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19215 { (case "(($ac_try" in
19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220 (eval "$ac_try") 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; } &&
19224 { ac_try='test -s conftest.$ac_objext'
19225 { (case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_try") 2>&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; }; then
19234 ac_cv_func_isnan_in_math_h=yes
19236 echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19239 ac_cv_func_isnan_in_math_h=no
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19244 ac_cpp='$CPP $CPPFLAGS'
19245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19250 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19251 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19254 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE_ISNAN_IN_MATH_H 1
19262 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19263 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19264 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19268 ac_cpp='$CXXCPP $CPPFLAGS'
19269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19273 cat >conftest.$ac_ext <<_ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19288 rm -f conftest.$ac_objext
19289 if { (ac_try="$ac_compile"
19290 case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_compile") 2>conftest.er1
19297 grep -v '^ *+' conftest.er1 >conftest.err
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
19302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest.$ac_objext'
19313 { (case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_try") 2>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 ac_cv_func_isnan_in_cmath=yes
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_cv_func_isnan_in_cmath=no
19330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19332 ac_cpp='$CPP $CPPFLAGS'
19333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19338 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19339 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19341 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19343 cat >>confdefs.h <<\_ACEOF
19344 #define HAVE_ISNAN_IN_CMATH 1
19349 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19350 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19351 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 ac_cpp='$CXXCPP $CPPFLAGS'
19356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19360 cat >conftest.$ac_ext <<_ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19370 float f; std::isnan(f);
19375 rm -f conftest.$ac_objext
19376 if { (ac_try="$ac_compile"
19377 case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_compile") 2>conftest.er1
19384 grep -v '^ *+' conftest.er1 >conftest.err
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19390 { (case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395 (eval "$ac_try") 2>&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; } &&
19399 { ac_try='test -s conftest.$ac_objext'
19400 { (case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 ac_cv_func_std_isnan_in_cmath=yes
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19414 ac_cv_func_std_isnan_in_cmath=no
19417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419 ac_cpp='$CPP $CPPFLAGS'
19420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19425 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19426 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19428 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19430 cat >>confdefs.h <<\_ACEOF
19431 #define HAVE_STD_ISNAN_IN_CMATH 1
19437 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19438 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19439 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 ac_cpp='$CXXCPP $CPPFLAGS'
19444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19448 cat >conftest.$ac_ext <<_ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19463 rm -f conftest.$ac_objext
19464 if { (ac_try="$ac_compile"
19465 case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_compile") 2>conftest.er1
19472 grep -v '^ *+' conftest.er1 >conftest.err
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } &&
19477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19478 { (case "(($ac_try" in
19479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480 *) ac_try_echo=$ac_try;;
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483 (eval "$ac_try") 2>&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; } &&
19487 { ac_try='test -s conftest.$ac_objext'
19488 { (case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_try") 2>&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; }; then
19497 ac_cv_func_isinf_in_math_h=yes
19499 echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19502 ac_cv_func_isinf_in_math_h=no
19505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19507 ac_cpp='$CPP $CPPFLAGS'
19508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19513 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19514 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19516 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19518 cat >>confdefs.h <<\_ACEOF
19519 #define HAVE_ISINF_IN_MATH_H 1
19524 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19525 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19526 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19527 echo $ECHO_N "(cached) $ECHO_C" >&6
19530 ac_cpp='$CXXCPP $CPPFLAGS'
19531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19535 cat >conftest.$ac_ext <<_ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19550 rm -f conftest.$ac_objext
19551 if { (ac_try="$ac_compile"
19552 case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_compile") 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } &&
19564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19565 { (case "(($ac_try" in
19566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567 *) ac_try_echo=$ac_try;;
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570 (eval "$ac_try") 2>&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try='test -s conftest.$ac_objext'
19575 { (case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_try") 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 ac_cv_func_isinf_in_cmath=yes
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_cv_func_isinf_in_cmath=no
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594 ac_cpp='$CPP $CPPFLAGS'
19595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19600 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19601 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19603 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_ISINF_IN_CMATH 1
19611 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19612 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19613 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19617 ac_cpp='$CXXCPP $CPPFLAGS'
19618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19622 cat >conftest.$ac_ext <<_ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19632 float f; std::isinf(f);
19637 rm -f conftest.$ac_objext
19638 if { (ac_try="$ac_compile"
19639 case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_compile") 2>conftest.er1
19646 grep -v '^ *+' conftest.er1 >conftest.err
19648 cat conftest.err >&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } &&
19651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19652 { (case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_try") 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; } &&
19661 { ac_try='test -s conftest.$ac_objext'
19662 { (case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_try") 2>&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 ac_cv_func_std_isinf_in_cmath=yes
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 ac_cv_func_std_isinf_in_cmath=no
19679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19681 ac_cpp='$CPP $CPPFLAGS'
19682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19687 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19688 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19690 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19692 cat >>confdefs.h <<\_ACEOF
19693 #define HAVE_STD_ISINF_IN_CMATH 1
19698 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19699 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19700 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19704 ac_cpp='$CXXCPP $CPPFLAGS'
19705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 #include <ieeefp.h>
19719 float f; finite(f);
19724 rm -f conftest.$ac_objext
19725 if { (ac_try="$ac_compile"
19726 case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_compile") 2>conftest.er1
19733 grep -v '^ *+' conftest.er1 >conftest.err
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
19738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19739 { (case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_try") 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try='test -s conftest.$ac_objext'
19749 { (case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_try") 2>&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then
19758 ac_cv_func_finite_in_ieeefp_h=yes
19760 echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19763 ac_cv_func_finite_in_ieeefp_h=no
19766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768 ac_cpp='$CPP $CPPFLAGS'
19769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19774 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19775 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19777 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19779 cat >>confdefs.h <<\_ACEOF
19780 #define HAVE_FINITE_IN_IEEEFP_H 1
19787 if test "$llvm_cv_platform_type" = "Unix" ; then
19790 for ac_header in stdlib.h unistd.h
19792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 ac_res=`eval echo '${'$as_ac_Header'}'`
19800 { echo "$as_me:$LINENO: result: $ac_res" >&5
19801 echo "${ECHO_T}$ac_res" >&6; }
19803 # Is the header compilable?
19804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19806 cat >conftest.$ac_ext <<_ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19812 $ac_includes_default
19813 #include <$ac_header>
19815 rm -f conftest.$ac_objext
19816 if { (ac_try="$ac_compile"
19817 case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_compile") 2>conftest.er1
19824 grep -v '^ *+' conftest.er1 >conftest.err
19826 cat conftest.err >&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); } &&
19829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19830 { (case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_try") 2>&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; } &&
19839 { ac_try='test -s conftest.$ac_objext'
19840 { (case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_try") 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_header_compiler=yes
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 ac_header_compiler=no
19857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19859 echo "${ECHO_T}$ac_header_compiler" >&6; }
19861 # Is the header present?
19862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19864 cat >conftest.$ac_ext <<_ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 #include <$ac_header>
19872 if { (ac_try="$ac_cpp conftest.$ac_ext"
19873 case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19880 grep -v '^ *+' conftest.er1 >conftest.err
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } >/dev/null; then
19885 if test -s conftest.err; then
19886 ac_cpp_err=$ac_c_preproc_warn_flag
19887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19894 if test -z "$ac_cpp_err"; then
19895 ac_header_preproc=yes
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 ac_header_preproc=no
19903 rm -f conftest.err conftest.$ac_ext
19904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19905 echo "${ECHO_T}$ac_header_preproc" >&6; }
19907 # So? What about this header?
19908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19914 ac_header_preproc=yes
19917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19930 ## ------------------------------ ##
19931 ## Report this to bugs@yourdomain ##
19932 ## ------------------------------ ##
19934 ) | sed "s/^/$as_me: WARNING: /" >&2
19937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 eval "$as_ac_Header=\$ac_header_preproc"
19944 ac_res=`eval echo '${'$as_ac_Header'}'`
19945 { echo "$as_me:$LINENO: result: $ac_res" >&5
19946 echo "${ECHO_T}$ac_res" >&6; }
19949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19950 cat >>confdefs.h <<_ACEOF
19951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19959 for ac_func in getpagesize
19961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 cat >conftest.$ac_ext <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19975 #define $ac_func innocuous_$ac_func
19977 /* System header to define __stub macros and hopefully few prototypes,
19978 which can conflict with char $ac_func (); below.
19979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19980 <limits.h> exists even on freestanding compilers. */
19983 # include <limits.h>
19985 # include <assert.h>
19990 /* Override any GCC internal prototype to avoid an error.
19991 Use char because int might match the return type of a GCC
19992 builtin and then its argument prototype would still apply. */
19997 /* The GNU C library defines this for functions which it implements
19998 to always fail with ENOSYS. Some functions are actually named
19999 something starting with __ and the normal name is an alias. */
20000 #if defined __stub_$ac_func || defined __stub___$ac_func
20007 return $ac_func ();
20012 rm -f conftest.$ac_objext conftest$ac_exeext
20013 if { (ac_try="$ac_link"
20014 case "(($ac_try" in
20015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016 *) ac_try_echo=$ac_try;;
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019 (eval "$ac_link") 2>conftest.er1
20021 grep -v '^ *+' conftest.er1 >conftest.err
20023 cat conftest.err >&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } &&
20026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20027 { (case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_try") 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest$ac_exeext'
20037 { (case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_try") 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; }; then
20046 eval "$as_ac_var=yes"
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20051 eval "$as_ac_var=no"
20054 rm -f core conftest.err conftest.$ac_objext \
20055 conftest$ac_exeext conftest.$ac_ext
20057 ac_res=`eval echo '${'$as_ac_var'}'`
20058 { echo "$as_me:$LINENO: result: $ac_res" >&5
20059 echo "${ECHO_T}$ac_res" >&6; }
20060 if test `eval echo '${'$as_ac_var'}'` = yes; then
20061 cat >>confdefs.h <<_ACEOF
20062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20068 { echo "$as_me:$LINENO: checking for working mmap" >&5
20069 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20070 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 if test "$cross_compiling" = yes; then
20074 ac_cv_func_mmap_fixed_mapped=no
20076 cat >conftest.$ac_ext <<_ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082 $ac_includes_default
20083 /* malloc might have been renamed as rpl_malloc. */
20086 /* Thanks to Mike Haertel and Jim Avera for this test.
20087 Here is a matrix of mmap possibilities:
20088 mmap private not fixed
20089 mmap private fixed at somewhere currently unmapped
20090 mmap private fixed at somewhere already mapped
20091 mmap shared not fixed
20092 mmap shared fixed at somewhere currently unmapped
20093 mmap shared fixed at somewhere already mapped
20094 For private mappings, we should verify that changes cannot be read()
20095 back from the file, nor mmap's back from the file at a different
20096 address. (There have been systems where private was not correctly
20097 implemented like the infamous i386 svr4.0, and systems where the
20098 VM page cache was not coherent with the file system buffer cache
20099 like early versions of FreeBSD and possibly contemporary NetBSD.)
20100 For shared mappings, we should conversely verify that changes get
20101 propagated back to all the places they're supposed to be.
20103 Grep wants private fixed already mapped.
20104 The main things grep needs to know about mmap are:
20105 * does it exist and is it safe to write into the mmap'd area
20106 * how to use it (BSD variants) */
20109 #include <sys/mman.h>
20111 #if !STDC_HEADERS && !HAVE_STDLIB_H
20115 /* This mess was copied from the GNU getpagesize.h. */
20116 #if !HAVE_GETPAGESIZE
20117 /* Assume that all systems that can run configure have sys/param.h. */
20118 # if !HAVE_SYS_PARAM_H
20119 # define HAVE_SYS_PARAM_H 1
20122 # ifdef _SC_PAGESIZE
20123 # define getpagesize() sysconf(_SC_PAGESIZE)
20124 # else /* no _SC_PAGESIZE */
20125 # if HAVE_SYS_PARAM_H
20126 # include <sys/param.h>
20127 # ifdef EXEC_PAGESIZE
20128 # define getpagesize() EXEC_PAGESIZE
20129 # else /* no EXEC_PAGESIZE */
20131 # define getpagesize() NBPG * CLSIZE
20134 # endif /* no CLSIZE */
20135 # else /* no NBPG */
20137 # define getpagesize() NBPC
20138 # else /* no NBPC */
20140 # define getpagesize() PAGESIZE
20141 # endif /* PAGESIZE */
20142 # endif /* no NBPC */
20143 # endif /* no NBPG */
20144 # endif /* no EXEC_PAGESIZE */
20145 # else /* no HAVE_SYS_PARAM_H */
20146 # define getpagesize() 8192 /* punt totally */
20147 # endif /* no HAVE_SYS_PARAM_H */
20148 # endif /* no _SC_PAGESIZE */
20150 #endif /* no HAVE_GETPAGESIZE */
20155 char *data, *data2, *data3;
20159 pagesize = getpagesize ();
20161 /* First, make a file with some known garbage in it. */
20162 data = (char *) malloc (pagesize);
20165 for (i = 0; i < pagesize; ++i)
20166 *(data + i) = rand ();
20168 fd = creat ("conftest.mmap", 0600);
20171 if (write (fd, data, pagesize) != pagesize)
20175 /* Next, try to mmap the file at a fixed address which already has
20176 something else allocated at it. If we can, also make sure that
20177 we see the same garbage. */
20178 fd = open ("conftest.mmap", O_RDWR);
20181 data2 = (char *) malloc (2 * pagesize);
20184 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20185 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20186 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20188 for (i = 0; i < pagesize; ++i)
20189 if (*(data + i) != *(data2 + i))
20192 /* Finally, make sure that changes to the mapped area do not
20193 percolate back to the file as seen by read(). (This is a bug on
20194 some variants of i386 svr4.0.) */
20195 for (i = 0; i < pagesize; ++i)
20196 *(data2 + i) = *(data2 + i) + 1;
20197 data3 = (char *) malloc (pagesize);
20200 if (read (fd, data3, pagesize) != pagesize)
20202 for (i = 0; i < pagesize; ++i)
20203 if (*(data + i) != *(data3 + i))
20209 rm -f conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_link") 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20220 { (case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_try") 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 ac_cv_func_mmap_fixed_mapped=yes
20231 echo "$as_me: program exited with status $ac_status" >&5
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20235 ( exit $ac_status )
20236 ac_cv_func_mmap_fixed_mapped=no
20238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20243 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20244 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20245 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20247 cat >>confdefs.h <<\_ACEOF
20248 #define HAVE_MMAP 1
20252 rm -f conftest.mmap
20254 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20255 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20256 if test "${ac_cv_func_mmap_file+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 ac_cpp='$CPP $CPPFLAGS'
20261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20265 if test "$cross_compiling" = yes; then
20266 ac_cv_func_mmap_file=no
20268 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20276 #include <sys/types.h>
20277 #include <sys/mman.h>
20285 fd = creat ("foo",0777);
20286 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20288 return (fd != (int) MAP_FAILED);
20293 rm -f conftest$ac_exeext
20294 if { (ac_try="$ac_link"
20295 case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300 (eval "$ac_link") 2>&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20304 { (case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309 (eval "$ac_try") 2>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
20313 ac_cv_func_mmap_file=yes
20315 echo "$as_me: program exited with status $ac_status" >&5
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20319 ( exit $ac_status )
20320 ac_cv_func_mmap_file=no
20322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20327 ac_cpp='$CPP $CPPFLAGS'
20328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20334 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20335 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20336 if test "$ac_cv_func_mmap_file" = yes; then
20338 cat >>confdefs.h <<\_ACEOF
20339 #define HAVE_MMAP_FILE
20346 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20347 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20348 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 if test "$llvm_cv_os_type" = "Interix" ; then
20352 ac_cv_need_dev_zero_for_mmap=yes
20354 ac_cv_need_dev_zero_for_mmap=no
20358 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20359 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20360 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20362 cat >>confdefs.h <<\_ACEOF
20363 #define NEED_DEV_ZERO_FOR_MMAP 1
20368 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20370 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20371 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20373 if test "$ac_cv_func_mmap_file" = "no"
20375 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20376 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20380 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20381 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20383 ac_cpp='$CXXCPP $CPPFLAGS'
20384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20395 volatile unsigned long val = 1;
20396 __sync_synchronize();
20397 __sync_val_compare_and_swap(&val, 1, 0);
20398 __sync_add_and_fetch(&val, 1);
20399 __sync_sub_and_fetch(&val, 1);
20404 rm -f conftest.$ac_objext conftest$ac_exeext
20405 if { (ac_try="$ac_link"
20406 case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_link") 2>conftest.er1
20413 grep -v '^ *+' conftest.er1 >conftest.err
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } &&
20418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20419 { (case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_try") 2>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; } &&
20428 { ac_try='test -s conftest$ac_exeext'
20429 { (case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434 (eval "$ac_try") 2>&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); }; }; then
20439 ac_cpp='$CPP $CPPFLAGS'
20440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20444 { echo "$as_me:$LINENO: result: yes" >&5
20445 echo "${ECHO_T}yes" >&6; }
20447 cat >>confdefs.h <<\_ACEOF
20448 #define LLVM_HAS_ATOMICS 1
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 { echo "$as_me:$LINENO: result: no" >&5
20456 echo "${ECHO_T}no" >&6; }
20458 cat >>confdefs.h <<\_ACEOF
20459 #define LLVM_HAS_ATOMICS 0
20462 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20463 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20466 rm -f core conftest.err conftest.$ac_objext \
20467 conftest$ac_exeext conftest.$ac_ext
20470 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20471 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20472 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20473 if test "${llvm_cv_linux_mixed+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 ac_cpp='$CPP $CPPFLAGS'
20478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20482 cat >conftest.$ac_ext <<_ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20489 error: Not x86-64 even if uname says so!
20500 rm -f conftest.$ac_objext
20501 if { (ac_try="$ac_compile"
20502 case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_compile") 2>conftest.er1
20509 grep -v '^ *+' conftest.er1 >conftest.err
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } &&
20514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20515 { (case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_try") 2>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; } &&
20524 { ac_try='test -s conftest.$ac_objext'
20525 { (case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_try") 2>&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; }; then
20534 llvm_cv_linux_mixed=no
20536 echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20539 llvm_cv_linux_mixed=yes
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 ac_cpp='$CPP $CPPFLAGS'
20545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20551 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20552 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20554 if test "$llvm_cv_linux_mixed" = "yes"; then
20555 llvm_cv_target_arch="x86"
20561 for ac_func in __dso_handle
20563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20577 #define $ac_func innocuous_$ac_func
20579 /* System header to define __stub macros and hopefully few prototypes,
20580 which can conflict with char $ac_func (); below.
20581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20582 <limits.h> exists even on freestanding compilers. */
20585 # include <limits.h>
20587 # include <assert.h>
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply. */
20599 /* The GNU C library defines this for functions which it implements
20600 to always fail with ENOSYS. Some functions are actually named
20601 something starting with __ and the normal name is an alias. */
20602 #if defined __stub_$ac_func || defined __stub___$ac_func
20609 return $ac_func ();
20614 rm -f conftest.$ac_objext conftest$ac_exeext
20615 if { (ac_try="$ac_link"
20616 case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621 (eval "$ac_link") 2>conftest.er1
20623 grep -v '^ *+' conftest.er1 >conftest.err
20625 cat conftest.err >&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } &&
20628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20629 { (case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_try") 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; } &&
20638 { ac_try='test -s conftest$ac_exeext'
20639 { (case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_try") 2>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648 eval "$as_ac_var=yes"
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20653 eval "$as_ac_var=no"
20656 rm -f core conftest.err conftest.$ac_objext \
20657 conftest$ac_exeext conftest.$ac_ext
20659 ac_res=`eval echo '${'$as_ac_var'}'`
20660 { echo "$as_me:$LINENO: result: $ac_res" >&5
20661 echo "${ECHO_T}$ac_res" >&6; }
20662 if test `eval echo '${'$as_ac_var'}'` = yes; then
20663 cat >>confdefs.h <<_ACEOF
20664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20671 SHLIBEXT=$libltdl_cv_shlibext
20674 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20677 # Translate the various configuration directories and other basic
20678 # information into substitutions that will end up in Makefile.config.in
20679 # that these configured values can be used by the makefiles
20680 if test "${prefix}" = "NONE" ; then
20681 prefix="/usr/local"
20683 eval LLVM_PREFIX="${prefix}";
20684 eval LLVM_BINDIR="${prefix}/bin";
20685 eval LLVM_DATADIR="${prefix}/share/llvm";
20686 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20687 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20688 eval LLVM_INCLUDEDIR="${prefix}/include";
20689 eval LLVM_INFODIR="${prefix}/info";
20690 eval LLVM_MANDIR="${prefix}/man";
20691 LLVM_CONFIGTIME=`date`
20702 # Place the various directores into the config.h file as #defines so that we
20703 # can know about the installation paths within LLVM.
20705 cat >>confdefs.h <<_ACEOF
20706 #define LLVM_PREFIX "$LLVM_PREFIX"
20710 cat >>confdefs.h <<_ACEOF
20711 #define LLVM_BINDIR "$LLVM_BINDIR"
20715 cat >>confdefs.h <<_ACEOF
20716 #define LLVM_DATADIR "$LLVM_DATADIR"
20720 cat >>confdefs.h <<_ACEOF
20721 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20725 cat >>confdefs.h <<_ACEOF
20726 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20730 cat >>confdefs.h <<_ACEOF
20731 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20735 cat >>confdefs.h <<_ACEOF
20736 #define LLVM_INFODIR "$LLVM_INFODIR"
20740 cat >>confdefs.h <<_ACEOF
20741 #define LLVM_MANDIR "$LLVM_MANDIR"
20745 cat >>confdefs.h <<_ACEOF
20746 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20750 cat >>confdefs.h <<_ACEOF
20751 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20755 # Determine which bindings to build.
20756 if test "$BINDINGS_TO_BUILD" = auto ; then
20757 BINDINGS_TO_BUILD=""
20758 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20759 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20762 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20765 # This isn't really configurey, but it avoids having to repeat the list in
20770 # Do any work necessary to ensure that bindings have what they need.
20771 binding_prereqs_failed=0
20772 for a_binding in $BINDINGS_TO_BUILD ; do
20773 case "$a_binding" in
20775 if test "x$OCAMLC" = x ; then
20776 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20777 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20778 binding_prereqs_failed=1
20780 if test "x$OCAMLDEP" = x ; then
20781 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20782 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20783 binding_prereqs_failed=1
20785 if test "x$OCAMLOPT" = x ; then
20786 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20787 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20789 if test "x$with_ocaml_libdir" != xauto ; then
20790 OCAML_LIBDIR=$with_ocaml_libdir
20793 ocaml_stdlib="`"$OCAMLC" -where`"
20794 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20796 # ocaml stdlib is beneath our prefix; use stdlib
20797 OCAML_LIBDIR=$ocaml_stdlib
20800 # ocaml stdlib is outside our prefix; use libdir/ocaml
20801 OCAML_LIBDIR=${prefix}/lib/ocaml
20808 if test "$binding_prereqs_failed" = 1 ; then
20809 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20810 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20811 { (exit 1); exit 1; }; }
20814 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20815 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20816 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20820 ac_cpp='$CXXCPP $CPPFLAGS'
20821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20825 oldcxxflags="$CXXFLAGS"
20826 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20827 cat >conftest.$ac_ext <<_ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20842 rm -f conftest.$ac_objext
20843 if { (ac_try="$ac_compile"
20844 case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_compile") 2>conftest.er1
20851 grep -v '^ *+' conftest.er1 >conftest.err
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20857 { (case "(($ac_try" in
20858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859 *) ac_try_echo=$ac_try;;
20861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862 (eval "$ac_try") 2>&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; } &&
20866 { ac_try='test -s conftest.$ac_objext'
20867 { (case "(($ac_try" in
20868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869 *) ac_try_echo=$ac_try;;
20871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20872 (eval "$ac_try") 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 llvm_cv_cxx_visibility_inlines_hidden=yes
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20881 llvm_cv_cxx_visibility_inlines_hidden=no
20884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885 CXXFLAGS="$oldcxxflags"
20887 ac_cpp='$CPP $CPPFLAGS'
20888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20894 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20895 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20896 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20897 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20900 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20905 if test "$llvm_cv_link_use_r" = "yes" ; then
20912 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20913 RDYNAMIC="-Wl,-export-dynamic"
20921 ac_config_files="$ac_config_files Makefile.common"
20923 ac_config_files="$ac_config_files Makefile.llvm.config"
20926 ac_config_commands="$ac_config_commands Makefile"
20929 ac_config_commands="$ac_config_commands lib/Makefile"
20932 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20935 ac_config_commands="$ac_config_commands tools/Makefile"
20938 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20942 cat >confcache <<\_ACEOF
20943 # This file is a shell script that caches the results of configure
20944 # tests run on this system so they can be shared between configure
20945 # scripts and configure runs, see configure's option --config-cache.
20946 # It is not useful on other systems. If it contains results you don't
20947 # want to keep, you may remove or edit it.
20949 # config.status only pays attention to the cache file if you give it
20950 # the --recheck option to rerun configure.
20952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20954 # following values.
20958 # The following way of writing the cache mishandles newlines in values,
20959 # but we know of no workaround that is simple, portable, and efficient.
20960 # So, we kill variables containing newlines.
20961 # Ultrix sh set writes to stderr and can't be redirected directly,
20962 # and sets the high bit in the cache file unless we assign to the vars.
20964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20965 eval ac_val=\$$ac_var
20969 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20970 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20973 _ | IFS | as_nl) ;; #(
20974 *) $as_unset $ac_var ;;
20980 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20981 *${as_nl}ac_space=\ *)
20982 # `set' does not quote correctly, so add quotes (double-quote
20983 # substitution turns \\\\ into \\, and sed turns \\ into \).
20986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20989 # `set' quotes correctly as required by POSIX, so do not add quotes.
20990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20999 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21001 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21003 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21004 if test -w "$cache_file"; then
21005 test "x$cache_file" != "x/dev/null" &&
21006 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21007 echo "$as_me: updating cache $cache_file" >&6;}
21008 cat confcache >$cache_file
21010 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21011 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21017 # Let make expand exec_prefix.
21018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21020 # Transform confdefs.h into DEFS.
21021 # Protect against shell expansion while executing Makefile rules.
21022 # Protect against Makefile macro expansion.
21024 # If the first sed substitution is executed (which looks for macros that
21025 # take arguments), then branch to the quote section. Otherwise,
21026 # look for a macro that doesn't take arguments.
21030 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21032 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21036 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21049 DEFS=`sed -n "$ac_script" confdefs.h`
21054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21055 # 1. Remove the extension, and $U if already installed.
21056 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21057 ac_i=`echo "$ac_i" | sed "$ac_script"`
21058 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21059 # will be set to the directory where LIBOBJS objects are built.
21060 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21061 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21063 LIBOBJS=$ac_libobjs
21065 LTLIBOBJS=$ac_ltlibobjs
21068 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21069 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21070 Usually this means the macro was only invoked conditionally." >&5
21071 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21072 Usually this means the macro was only invoked conditionally." >&2;}
21073 { (exit 1); exit 1; }; }
21075 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21076 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21077 Usually this means the macro was only invoked conditionally." >&5
21078 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21079 Usually this means the macro was only invoked conditionally." >&2;}
21080 { (exit 1); exit 1; }; }
21083 : ${CONFIG_STATUS=./config.status}
21084 ac_clean_files_save=$ac_clean_files
21085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21086 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21087 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21088 cat >$CONFIG_STATUS <<_ACEOF
21090 # Generated by $as_me.
21091 # Run this file to recreate the current configuration.
21092 # Compiler output produced by configure, useful for debugging
21093 # configure, is in config.log if it exists.
21096 ac_cs_recheck=false
21098 SHELL=\${CONFIG_SHELL-$SHELL}
21101 cat >>$CONFIG_STATUS <<\_ACEOF
21102 ## --------------------- ##
21103 ## M4sh Initialization. ##
21104 ## --------------------- ##
21106 # Be Bourne compatible
21107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21110 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21111 # is contrary to our usage. Disable this feature.
21112 alias -g '${1+"$@"}'='"$@"'
21113 setopt NO_GLOB_SUBST
21115 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21117 BIN_SH=xpg4; export BIN_SH # for Tru64
21118 DUALCASE=1; export DUALCASE # for MKS sh
21122 # Avoid depending upon Character Ranges.
21123 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21124 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21125 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21126 as_cr_digits='0123456789'
21127 as_cr_alnum=$as_cr_Letters$as_cr_digits
21129 # The user is always right.
21130 if test "${PATH_SEPARATOR+set}" != set; then
21131 echo "#! /bin/sh" >conf$$.sh
21132 echo "exit 0" >>conf$$.sh
21134 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21142 # Support unset when possible.
21143 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21151 # We need space, tab and new line, in precisely that order. Quoting is
21152 # there to prevent editors from complaining about space-tab.
21153 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21154 # splitting by setting IFS to empty value.)
21159 # Find who we are. Look in the path if we contain no directory separator.
21161 *[\\/]* ) as_myself=$0 ;;
21162 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21163 for as_dir in $PATH
21166 test -z "$as_dir" && as_dir=.
21167 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21173 # We did not find ourselves, most probably we were run as `sh COMMAND'
21174 # in which case we are not to be found in the path.
21175 if test "x$as_myself" = x; then
21178 if test ! -f "$as_myself"; then
21179 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21180 { (exit 1); exit 1; }
21183 # Work around bugs in pre-3.0 UWIN ksh.
21184 for as_var in ENV MAIL MAILPATH
21185 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21193 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21194 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21195 LC_TELEPHONE LC_TIME
21197 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21198 eval $as_var=C; export $as_var
21200 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21204 # Required to use basename.
21205 if expr a : '\(a\)' >/dev/null 2>&1 &&
21206 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21212 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21213 as_basename=basename
21219 # Name of the executable.
21220 as_me=`$as_basename -- "$0" ||
21221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21222 X"$0" : 'X\(//\)$' \| \
21223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21225 sed '/^.*\/\([^/][^/]*\)\/*$/{
21244 as_lineno_1=$LINENO
21245 as_lineno_2=$LINENO
21246 test "x$as_lineno_1" != "x$as_lineno_2" &&
21247 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21249 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21250 # uniformly replaced by the line number. The first 'sed' inserts a
21251 # line-number line after each line using $LINENO; the second 'sed'
21252 # does the real work. The second script uses 'N' to pair each
21253 # line-number line with the line containing $LINENO, and appends
21254 # trailing '-' during substitution so that $LINENO is not a special
21255 # case at line end.
21256 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21257 # scripts with optimization help from Paolo Bonzini. Blame Lee
21258 # E. McMahon (1931-1989) for sed's syntax. :-)
21270 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21273 ' >$as_me.lineno &&
21274 chmod +x "$as_me.lineno" ||
21275 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21276 { (exit 1); exit 1; }; }
21278 # Don't try to exec as it changes $[0], causing all sort of problems
21279 # (the dirname of $[0] is not the place where we might find the
21280 # original and so on. Autoconf is especially sensitive to this).
21281 . "./$as_me.lineno"
21282 # Exit status is that of the last command.
21287 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21293 ECHO_C= ECHO_N= ECHO_T=
21294 case `echo -n x` in
21296 case `echo 'x\c'` in
21297 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21304 if expr a : '\(a\)' >/dev/null 2>&1 &&
21305 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21311 rm -f conf$$ conf$$.exe conf$$.file
21312 if test -d conf$$.dir; then
21313 rm -f conf$$.dir/conf$$.file
21319 if ln -s conf$$.file conf$$ 2>/dev/null; then
21321 # ... but there are two gotchas:
21322 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21323 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21324 # In both cases, we have to default to `cp -p'.
21325 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21327 elif ln conf$$.file conf$$ 2>/dev/null; then
21332 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21333 rmdir conf$$.dir 2>/dev/null
21335 if mkdir -p . 2>/dev/null; then
21338 test -d ./-p && rmdir ./-p
21342 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21343 # systems may use methods other than mode bits to determine executability.
21344 cat >conf$$.file <<_ASEOF
21348 chmod +x conf$$.file
21349 if test -x conf$$.file >/dev/null 2>&1; then
21350 as_executable_p="test -x"
21356 # Sed expression to map a string onto a valid CPP name.
21357 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21359 # Sed expression to map a string onto a valid variable name.
21360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21365 # Save the log message, to keep $[0] and so on meaningful, and to
21366 # report actual input values of CONFIG_FILES etc. instead of their
21367 # values after options handling.
21369 This file was extended by [SAMPLE] $as_me [x.xx], which was
21370 generated by GNU Autoconf 2.60. Invocation command line was
21372 CONFIG_FILES = $CONFIG_FILES
21373 CONFIG_HEADERS = $CONFIG_HEADERS
21374 CONFIG_LINKS = $CONFIG_LINKS
21375 CONFIG_COMMANDS = $CONFIG_COMMANDS
21378 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21383 cat >>$CONFIG_STATUS <<_ACEOF
21384 # Files that config.status was made for.
21385 config_files="$ac_config_files"
21386 config_commands="$ac_config_commands"
21390 cat >>$CONFIG_STATUS <<\_ACEOF
21392 \`$as_me' instantiates files from templates according to the
21393 current configuration.
21395 Usage: $0 [OPTIONS] [FILE]...
21397 -h, --help print this help, then exit
21398 -V, --version print version number, then exit
21399 -q, --quiet do not print progress messages
21400 -d, --debug don't remove temporary files
21401 --recheck update $as_me by reconfiguring in the same conditions
21402 --file=FILE[:TEMPLATE]
21403 instantiate the configuration file FILE
21405 Configuration files:
21408 Configuration commands:
21411 Report bugs to <bug-autoconf@gnu.org>."
21414 cat >>$CONFIG_STATUS <<_ACEOF
21416 [SAMPLE] config.status [x.xx]
21417 configured by $0, generated by GNU Autoconf 2.60,
21418 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21420 Copyright (C) 2006 Free Software Foundation, Inc.
21421 This config.status script is free software; the Free Software Foundation
21422 gives unlimited permission to copy, distribute and modify it."
21429 cat >>$CONFIG_STATUS <<\_ACEOF
21430 # If no file are specified by the user, then we need to provide default
21431 # value. By we need to know if files were specified by the user.
21437 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21438 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21449 # Handling of the options.
21450 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21452 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21453 echo "$ac_cs_version"; exit ;;
21454 --debug | --debu | --deb | --de | --d | -d )
21456 --file | --fil | --fi | --f )
21458 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21459 ac_need_defaults=false;;
21460 --he | --h | --help | --hel | -h )
21461 echo "$ac_cs_usage"; exit ;;
21462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21463 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21466 # This is an error.
21467 -*) { echo "$as_me: error: unrecognized option: $1
21468 Try \`$0 --help' for more information." >&2
21469 { (exit 1); exit 1; }; } ;;
21471 *) ac_config_targets="$ac_config_targets $1"
21472 ac_need_defaults=false ;;
21478 ac_configure_extra_args=
21480 if $ac_cs_silent; then
21482 ac_configure_extra_args="$ac_configure_extra_args --silent"
21486 cat >>$CONFIG_STATUS <<_ACEOF
21487 if \$ac_cs_recheck; then
21488 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21489 CONFIG_SHELL=$SHELL
21490 export CONFIG_SHELL
21491 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21495 cat >>$CONFIG_STATUS <<\_ACEOF
21499 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21500 ## Running $as_me. ##
21506 cat >>$CONFIG_STATUS <<_ACEOF
21510 llvm_src="${LLVM_SRC}"
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21516 # Handling of arguments.
21517 for ac_config_target in $ac_config_targets
21519 case $ac_config_target in
21520 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21521 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21522 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21523 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21524 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21525 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21526 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21527 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21529 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21530 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21531 { (exit 1); exit 1; }; };;
21536 # If the user did not use the arguments to specify the items to instantiate,
21537 # then the envvar interface is used. Set only those that are not.
21538 # We use the long form for the default assignment because of an extremely
21539 # bizarre bug on SunOS 4.1.3.
21540 if $ac_need_defaults; then
21541 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21542 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21545 # Have a temporary directory for convenience. Make it in the build tree
21546 # simply because there is no reason against having it here, and in addition,
21547 # creating and moving files from /tmp can sometimes cause problems.
21548 # Hook for its removal unless debugging.
21549 # Note that there is a small window in which the directory will not be cleaned:
21550 # after its creation but before its name has been assigned to `$tmp'.
21554 trap 'exit_status=$?
21555 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21557 trap '{ (exit 1); exit 1; }' 1 2 13 15
21559 # Create a (secure) tmp directory for tmp files.
21562 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21563 test -n "$tmp" && test -d "$tmp"
21566 tmp=./conf$$-$RANDOM
21567 (umask 077 && mkdir "$tmp")
21570 echo "$me: cannot create a temporary directory in ." >&2
21571 { (exit 1); exit 1; }
21575 # Set up the sed scripts for CONFIG_FILES section.
21578 # No need to generate the scripts if there are no CONFIG_FILES.
21579 # This happens for instance when ./config.status config.h
21580 if test -n "$CONFIG_FILES"; then
21587 for ac_last_try in false false false false false :; do
21588 cat >conf$$subs.sed <<_ACEOF
21589 SHELL!$SHELL$ac_delim
21590 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21591 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21592 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21593 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21594 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21595 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21596 exec_prefix!$exec_prefix$ac_delim
21597 prefix!$prefix$ac_delim
21598 program_transform_name!$program_transform_name$ac_delim
21599 bindir!$bindir$ac_delim
21600 sbindir!$sbindir$ac_delim
21601 libexecdir!$libexecdir$ac_delim
21602 datarootdir!$datarootdir$ac_delim
21603 datadir!$datadir$ac_delim
21604 sysconfdir!$sysconfdir$ac_delim
21605 sharedstatedir!$sharedstatedir$ac_delim
21606 localstatedir!$localstatedir$ac_delim
21607 includedir!$includedir$ac_delim
21608 oldincludedir!$oldincludedir$ac_delim
21609 docdir!$docdir$ac_delim
21610 infodir!$infodir$ac_delim
21611 htmldir!$htmldir$ac_delim
21612 dvidir!$dvidir$ac_delim
21613 pdfdir!$pdfdir$ac_delim
21614 psdir!$psdir$ac_delim
21615 libdir!$libdir$ac_delim
21616 localedir!$localedir$ac_delim
21617 mandir!$mandir$ac_delim
21618 DEFS!$DEFS$ac_delim
21619 ECHO_C!$ECHO_C$ac_delim
21620 ECHO_N!$ECHO_N$ac_delim
21621 ECHO_T!$ECHO_T$ac_delim
21622 LIBS!$LIBS$ac_delim
21623 build_alias!$build_alias$ac_delim
21624 host_alias!$host_alias$ac_delim
21625 target_alias!$target_alias$ac_delim
21626 LLVM_SRC!$LLVM_SRC$ac_delim
21627 LLVM_OBJ!$LLVM_OBJ$ac_delim
21628 LLVM_VERSION!$LLVM_VERSION$ac_delim
21630 CFLAGS!$CFLAGS$ac_delim
21631 LDFLAGS!$LDFLAGS$ac_delim
21632 CPPFLAGS!$CPPFLAGS$ac_delim
21633 ac_ct_CC!$ac_ct_CC$ac_delim
21634 EXEEXT!$EXEEXT$ac_delim
21635 OBJEXT!$OBJEXT$ac_delim
21637 CXXFLAGS!$CXXFLAGS$ac_delim
21638 ac_ct_CXX!$ac_ct_CXX$ac_delim
21640 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21641 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21642 subdirs!$subdirs$ac_delim
21643 build!$build$ac_delim
21644 build_cpu!$build_cpu$ac_delim
21645 build_vendor!$build_vendor$ac_delim
21646 build_os!$build_os$ac_delim
21647 host!$host$ac_delim
21648 host_cpu!$host_cpu$ac_delim
21649 host_vendor!$host_vendor$ac_delim
21650 host_os!$host_os$ac_delim
21651 target!$target$ac_delim
21652 target_cpu!$target_cpu$ac_delim
21653 target_vendor!$target_vendor$ac_delim
21654 target_os!$target_os$ac_delim
21656 HOST_OS!$HOST_OS$ac_delim
21657 TARGET_OS!$TARGET_OS$ac_delim
21658 LINKALL!$LINKALL$ac_delim
21659 NOLINKALL!$NOLINKALL$ac_delim
21660 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21661 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21662 ARCH!$ARCH$ac_delim
21663 ENDIAN!$ENDIAN$ac_delim
21664 GREP!$GREP$ac_delim
21665 EGREP!$EGREP$ac_delim
21666 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21667 BUILD_CC!$BUILD_CC$ac_delim
21668 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21669 BUILD_CXX!$BUILD_CXX$ac_delim
21670 CVSBUILD!$CVSBUILD$ac_delim
21671 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21672 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21673 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21674 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21675 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21676 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21677 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21678 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21679 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21680 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21682 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21683 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21684 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21685 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21688 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21690 elif $ac_last_try; then
21691 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21692 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21693 { (exit 1); exit 1; }; }
21695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21699 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21700 if test -n "$ac_eof"; then
21701 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21702 ac_eof=`expr $ac_eof + 1`
21705 cat >>$CONFIG_STATUS <<_ACEOF
21706 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21710 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21711 s/^/s,@/; s/!/@,|#_!!_#|/
21714 s/'"$ac_delim"'$/,g/; t
21716 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21717 ' >>$CONFIG_STATUS <conf$$subs.sed
21718 rm -f conf$$subs.sed
21719 cat >>$CONFIG_STATUS <<_ACEOF
21725 for ac_last_try in false false false false false :; do
21726 cat >conf$$subs.sed <<_ACEOF
21727 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21728 ENABLE_PIC!$ENABLE_PIC$ac_delim
21729 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21730 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21731 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21732 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21733 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21734 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21735 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21736 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21737 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21738 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21739 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21740 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21742 ifGNUmake!$ifGNUmake$ac_delim
21743 LN_S!$LN_S$ac_delim
21746 DATE!$DATE$ac_delim
21747 FIND!$FIND$ac_delim
21748 MKDIR!$MKDIR$ac_delim
21750 RANLIB!$RANLIB$ac_delim
21755 BINPWD!$BINPWD$ac_delim
21756 GRAPHVIZ!$GRAPHVIZ$ac_delim
21759 NEATO!$NEATO$ac_delim
21760 TWOPI!$TWOPI$ac_delim
21761 CIRCO!$CIRCO$ac_delim
21763 DOTTY!$DOTTY$ac_delim
21764 XDOT_PY!$XDOT_PY$ac_delim
21765 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21766 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21767 INSTALL_DATA!$INSTALL_DATA$ac_delim
21768 BZIP2!$BZIP2$ac_delim
21770 DOXYGEN!$DOXYGEN$ac_delim
21771 GROFF!$GROFF$ac_delim
21772 GZIPBIN!$GZIPBIN$ac_delim
21773 POD2HTML!$POD2HTML$ac_delim
21774 POD2MAN!$POD2MAN$ac_delim
21775 PDFROFF!$PDFROFF$ac_delim
21776 RUNTEST!$RUNTEST$ac_delim
21777 TCLSH!$TCLSH$ac_delim
21779 OCAMLC!$OCAMLC$ac_delim
21780 OCAMLOPT!$OCAMLOPT$ac_delim
21781 OCAMLDEP!$OCAMLDEP$ac_delim
21782 OCAMLDOC!$OCAMLDOC$ac_delim
21784 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21785 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21786 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21787 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21788 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21789 LIBADD_DL!$LIBADD_DL$ac_delim
21790 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21791 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21792 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21793 USE_UDIS86!$USE_UDIS86$ac_delim
21794 USE_OPROFILE!$USE_OPROFILE$ac_delim
21795 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21796 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21797 MMAP_FILE!$MMAP_FILE$ac_delim
21798 SHLIBEXT!$SHLIBEXT$ac_delim
21799 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21800 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21801 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21802 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21803 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21804 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21805 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21806 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21807 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21808 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21809 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21810 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21811 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21812 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21813 RPATH!$RPATH$ac_delim
21814 RDYNAMIC!$RDYNAMIC$ac_delim
21815 LIBOBJS!$LIBOBJS$ac_delim
21816 LTLIBOBJS!$LTLIBOBJS$ac_delim
21819 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21821 elif $ac_last_try; then
21822 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21823 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21824 { (exit 1); exit 1; }; }
21826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21830 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21831 if test -n "$ac_eof"; then
21832 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21833 ac_eof=`expr $ac_eof + 1`
21836 cat >>$CONFIG_STATUS <<_ACEOF
21837 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21841 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21842 s/^/s,@/; s/!/@,|#_!!_#|/
21845 s/'"$ac_delim"'$/,g/; t
21847 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21848 ' >>$CONFIG_STATUS <conf$$subs.sed
21849 rm -f conf$$subs.sed
21850 cat >>$CONFIG_STATUS <<_ACEOF
21857 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21858 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21859 # trailing colons and then remove the whole line if VPATH becomes empty
21860 # (actually we leave an empty line to preserve line numbers).
21861 if test "x$srcdir" = x.; then
21862 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21863 s/:*\$(srcdir):*/:/
21864 s/:*\${srcdir}:*/:/
21866 s/^\([^=]*=[ ]*\):*/\1/
21872 cat >>$CONFIG_STATUS <<\_ACEOF
21873 fi # test -n "$CONFIG_FILES"
21876 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21879 :[FHLC]) ac_mode=$ac_tag; continue;;
21881 case $ac_mode$ac_tag in
21883 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21884 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21885 { (exit 1); exit 1; }; };;
21886 :[FH]-) ac_tag=-:-;;
21887 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21904 -) ac_f="$tmp/stdin";;
21905 *) # Look for the file first in the build tree, then in the source tree
21906 # (if the path is not absolute). The absolute path cannot be DOS-style,
21907 # because $ac_f cannot contain `:'.
21911 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21913 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21914 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21915 { (exit 1); exit 1; }; };;
21917 ac_file_inputs="$ac_file_inputs $ac_f"
21920 # Let's still pretend it is `configure' which instantiates (i.e., don't
21921 # use $as_me), people would be surprised to read:
21922 # /* config.h. Generated by config.status. */
21923 configure_input="Generated from "`IFS=:
21924 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21925 if test x"$ac_file" != x-; then
21926 configure_input="$ac_file. $configure_input"
21927 { echo "$as_me:$LINENO: creating $ac_file" >&5
21928 echo "$as_me: creating $ac_file" >&6;}
21932 *:-:* | *:-) cat >"$tmp/stdin";;
21937 ac_dir=`$as_dirname -- "$ac_file" ||
21938 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21939 X"$ac_file" : 'X\(//\)[^/]' \| \
21940 X"$ac_file" : 'X\(//\)$' \| \
21941 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21947 /^X\(\/\/\)[^/].*/{
21962 -*) as_dir=./$as_dir;;
21964 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21968 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21969 *) as_qdir=$as_dir;;
21971 as_dirs="'$as_qdir' $as_dirs"
21972 as_dir=`$as_dirname -- "$as_dir" ||
21973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21974 X"$as_dir" : 'X\(//\)[^/]' \| \
21975 X"$as_dir" : 'X\(//\)$' \| \
21976 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21982 /^X\(\/\/\)[^/].*/{
21995 test -d "$as_dir" && break
21997 test -z "$as_dirs" || eval "mkdir $as_dirs"
21998 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21999 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22000 { (exit 1); exit 1; }; }; }
22004 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22006 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22007 # A ".." for each directory in $ac_dir_suffix.
22008 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22009 case $ac_top_builddir_sub in
22010 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22011 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22014 ac_abs_top_builddir=$ac_pwd
22015 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22016 # for backward compatibility:
22017 ac_top_builddir=$ac_top_build_prefix
22020 .) # We are building in place.
22022 ac_top_srcdir=$ac_top_builddir_sub
22023 ac_abs_top_srcdir=$ac_pwd ;;
22024 [\\/]* | ?:[\\/]* ) # Absolute name.
22025 ac_srcdir=$srcdir$ac_dir_suffix;
22026 ac_top_srcdir=$srcdir
22027 ac_abs_top_srcdir=$srcdir ;;
22028 *) # Relative name.
22029 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22030 ac_top_srcdir=$ac_top_build_prefix$srcdir
22031 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22044 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22048 cat >>$CONFIG_STATUS <<\_ACEOF
22049 # If the template does not know about datarootdir, expand it.
22050 # FIXME: This hack should be removed a few years after 2.60.
22051 ac_datarootdir_hack=; ac_datarootdir_seen=
22053 case `sed -n '/datarootdir/ {
22062 ' $ac_file_inputs` in
22063 *datarootdir*) ac_datarootdir_seen=yes;;
22064 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22065 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22066 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22068 cat >>$CONFIG_STATUS <<_ACEOF
22069 ac_datarootdir_hack='
22070 s&@datadir@&$datadir&g
22071 s&@docdir@&$docdir&g
22072 s&@infodir@&$infodir&g
22073 s&@localedir@&$localedir&g
22074 s&@mandir@&$mandir&g
22075 s&\\\${datarootdir}&$datarootdir&g' ;;
22079 # Neutralize VPATH when `$srcdir' = `.'.
22080 # Shell code in configure.ac might set extrasub.
22081 # FIXME: do we really want to maintain this feature?
22082 cat >>$CONFIG_STATUS <<_ACEOF
22086 cat >>$CONFIG_STATUS <<\_ACEOF
22088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22089 s&@configure_input@&$configure_input&;t t
22090 s&@top_builddir@&$ac_top_builddir_sub&;t t
22091 s&@srcdir@&$ac_srcdir&;t t
22092 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22093 s&@top_srcdir@&$ac_top_srcdir&;t t
22094 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22095 s&@builddir@&$ac_builddir&;t t
22096 s&@abs_builddir@&$ac_abs_builddir&;t t
22097 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22098 s&@INSTALL@&$ac_INSTALL&;t t
22099 $ac_datarootdir_hack
22100 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22102 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22103 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22104 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22105 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22106 which seems to be undefined. Please make sure it is defined." >&5
22107 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22108 which seems to be undefined. Please make sure it is defined." >&2;}
22112 -) cat "$tmp/out"; rm -f "$tmp/out";;
22113 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22118 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22119 echo "$as_me: executing $ac_file commands" >&6;}
22124 case $ac_file$ac_mode in
22125 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22126 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22127 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22128 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22129 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22130 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22131 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22132 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22133 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22134 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22140 { (exit 0); exit 0; }
22142 chmod +x $CONFIG_STATUS
22143 ac_clean_files=$ac_clean_files_save
22146 # configure is writing to config.log, and then calls config.status.
22147 # config.status does its own redirection, appending to config.log.
22148 # Unfortunately, on DOS this fails, as config.log is still kept open
22149 # by configure, so config.status won't be able to write to it; its
22150 # output is simply discarded. So we exec the FD to /dev/null,
22151 # effectively closing config.log, so it can be properly (re)opened and
22152 # appended to by config.status. When coming back to configure, we
22153 # need to make the FD available again.
22154 if test "$no_create" != yes; then
22156 ac_config_status_args=
22157 test "$silent" = yes &&
22158 ac_config_status_args="$ac_config_status_args --quiet"
22160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22163 # would make configure fail if this is the last instruction.
22164 $ac_cs_success || { (exit 1); exit 1; }
22168 # CONFIG_SUBDIRS section.
22170 if test "$no_recursion" != yes; then
22172 # Remove --cache-file and --srcdir arguments so they do not pile up.
22173 ac_sub_configure_args=
22175 eval "set x $ac_configure_args"
22179 if test -n "$ac_prev"; then
22184 -cache-file | --cache-file | --cache-fil | --cache-fi \
22185 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22186 ac_prev=cache_file ;;
22187 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22188 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22191 --config-cache | -C)
22193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22203 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22205 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22209 # Always prepend --prefix to ensure using the same prefix
22210 # in subdir configurations.
22211 ac_arg="--prefix=$prefix"
22213 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22215 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22218 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22220 # Do not complain, so a configure script can configure whichever
22221 # parts of a large source tree are present.
22222 test -d "$srcdir/$ac_dir" || continue
22224 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22225 echo "$as_me:$LINENO: $ac_msg" >&5
22229 -*) as_dir=./$as_dir;;
22231 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22235 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22236 *) as_qdir=$as_dir;;
22238 as_dirs="'$as_qdir' $as_dirs"
22239 as_dir=`$as_dirname -- "$as_dir" ||
22240 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22241 X"$as_dir" : 'X\(//\)[^/]' \| \
22242 X"$as_dir" : 'X\(//\)$' \| \
22243 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22249 /^X\(\/\/\)[^/].*/{
22262 test -d "$as_dir" && break
22264 test -z "$as_dirs" || eval "mkdir $as_dirs"
22265 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22266 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22267 { (exit 1); exit 1; }; }; }
22271 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22273 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22274 # A ".." for each directory in $ac_dir_suffix.
22275 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22276 case $ac_top_builddir_sub in
22277 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22278 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22281 ac_abs_top_builddir=$ac_pwd
22282 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22283 # for backward compatibility:
22284 ac_top_builddir=$ac_top_build_prefix
22287 .) # We are building in place.
22289 ac_top_srcdir=$ac_top_builddir_sub
22290 ac_abs_top_srcdir=$ac_pwd ;;
22291 [\\/]* | ?:[\\/]* ) # Absolute name.
22292 ac_srcdir=$srcdir$ac_dir_suffix;
22293 ac_top_srcdir=$srcdir
22294 ac_abs_top_srcdir=$srcdir ;;
22295 *) # Relative name.
22296 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22297 ac_top_srcdir=$ac_top_build_prefix$srcdir
22298 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22300 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22305 # Check for guested configure; otherwise get Cygnus style configure.
22306 if test -f "$ac_srcdir/configure.gnu"; then
22307 ac_sub_configure=$ac_srcdir/configure.gnu
22308 elif test -f "$ac_srcdir/configure"; then
22309 ac_sub_configure=$ac_srcdir/configure
22310 elif test -f "$ac_srcdir/configure.in"; then
22311 # This should be Cygnus configure.
22312 ac_sub_configure=$ac_aux_dir/configure
22314 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22315 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22319 # The recursion is here.
22320 if test -n "$ac_sub_configure"; then
22321 # Make the cache file name correct relative to the subdirectory.
22322 case $cache_file in
22323 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22324 *) # Relative name.
22325 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22328 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22329 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22330 # The eval makes quoting arguments work.
22331 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22332 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22333 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22334 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22335 { (exit 1); exit 1; }; }