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
708 LLVM_ENUM_ASM_PRINTERS
709 LLVM_ENUM_ASM_PARSERS
710 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
766 COVERED_SWITCH_DEFAULT
787 ENABLE_VISIBILITY_INLINES_HIDDEN
793 ac_precious_vars='build_alias
804 ac_subdirs_all='tools/polly'
806 # Initialize some variables set by options.
808 ac_init_version=false
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
818 program_transform_name=s,x,x,
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\$ac_option
864 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 # Accept the important Cygnus configure options, so we can diagnose typos.
870 case $ac_dashdash$ac_option in
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
892 cache_file=config.cache ;;
894 -datadir | --datadir | --datadi | --datad)
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
906 -disable-* | --disable-*)
907 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
910 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
911 { (exit 1); exit 1; }; }
912 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
913 eval enable_$ac_feature=no ;;
915 -docdir | --docdir | --docdi | --doc | --do)
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 -enable-* | --enable-*)
926 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930 { (exit 1); exit 1; }; }
931 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932 eval enable_$ac_feature=\$ac_optarg ;;
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
947 -help | --help | --hel | --he | -h)
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 htmldir=$ac_optarg ;;
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
977 -libdir | --libdir | --libdi | --libd)
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
989 -localedir | --localedir | --localedi | --localed | --locale)
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1068 -psdir | --psdir | --psdi | --psd | --ps)
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 sbindir=$ac_optarg ;;
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 sharedstatedir=$ac_optarg ;;
1094 -site | --site | --sit)
1096 -site=* | --site=* | --sit=*)
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1123 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1126 { echo "$as_me: error: invalid package name: $ac_package" >&2
1127 { (exit 1); exit 1; }; }
1128 ac_package=`echo $ac_package| sed 's/-/_/g'`
1129 eval with_$ac_package=\$ac_optarg ;;
1131 -without-* | --without-*)
1132 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1135 { echo "$as_me: error: invalid package name: $ac_package" >&2
1136 { (exit 1); exit 1; }; }
1137 ac_package=`echo $ac_package | sed 's/-/_/g'`
1138 eval with_$ac_package=no ;;
1141 # Obsolete; use --with-x.
1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145 | --x-incl | --x-inc | --x-in | --x-i)
1146 ac_prev=x_includes ;;
1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149 x_includes=$ac_optarg ;;
1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153 ac_prev=x_libraries ;;
1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156 x_libraries=$ac_optarg ;;
1158 -*) { echo "$as_me: error: unrecognized option: $ac_option
1159 Try \`$0 --help' for more information." >&2
1160 { (exit 1); exit 1; }; }
1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1167 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1168 { (exit 1); exit 1; }; }
1169 eval $ac_envvar=\$ac_optarg
1170 export $ac_envvar ;;
1173 # FIXME: should be removed in autoconf 3.0.
1174 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1183 if test -n "$ac_prev"; then
1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185 { echo "$as_me: error: missing argument to $ac_option" >&2
1186 { (exit 1); exit 1; }; }
1189 # Be sure to have absolute directory names.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1195 eval ac_val=\$$ac_var
1197 [\\/$]* | ?:[\\/]* ) continue;;
1198 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1201 { (exit 1); exit 1; }; }
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1209 target=$target_alias
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225 test "$silent" = yes && exec 6>/dev/null
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 { echo "$as_me: error: Working directory cannot be determined" >&2
1232 { (exit 1); exit 1; }; }
1233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234 { echo "$as_me: error: pwd does not report name of working directory" >&2
1235 { (exit 1); exit 1; }; }
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$0" ||
1243 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$0" : 'X\(//\)[^/]' \| \
1245 X"$0" : 'X\(//\)$' \| \
1246 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1270 ac_srcdir_defaulted=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1275 { (exit 1); exit 1; }; }
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1280 { (exit 1); exit 1; }; }
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 # Report the --help message.
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1306 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1313 Defaults for the options are specified in brackets.
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1337 For better control, use the options below.
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1364 --build=BUILD configure for building on BUILD [guessed]
1365 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1366 --target=TARGET configure for building compilers for TARGET [HOST]
1370 if test -n "$ac_init_help"; then
1371 case $ac_init_help in
1372 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379 --enable-polly Use polly if available (default is YES)
1380 --enable-libcpp Use libc++ if available (default is NO)
1381 --enable-cxx11 Use c++11 if available (default is NO)
1382 --enable-optimized Compile with optimizations enabled (default is NO)
1383 --enable-profiling Compile with profiling enabled (default is NO)
1384 --enable-assertions Compile with assertion checks enabled (default is
1386 --enable-werror Compile with -Werror enabled (default is NO)
1387 --enable-expensive-checks
1388 Compile with expensive debug checks enabled (default
1390 --enable-debug-runtime Build runtime libs with debug symbols (default is
1392 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1393 optimization is on and YES if it's off)
1394 --enable-jit Enable Just In Time Compiling (default is YES)
1395 --enable-docs Build documents (default is YES)
1396 --enable-doxygen Build doxygen documentation (default is NO)
1397 --enable-threads Use threads if available (default is YES)
1398 --enable-pthreads Use pthreads if available (default is YES)
1399 --enable-zlib Use zlib for compression/decompression if available
1401 --enable-pic Build LLVM with Position Independent Code (default
1403 --enable-shared Build a shared library and link tools against it
1405 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1406 Win32 DLL (default is YES)
1407 --enable-timestamps Enable embedding timestamp information in build
1409 --enable-targets Build specific host targets: all or
1410 target1,target2,... Valid targets are: host, x86,
1411 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1412 xcore, msp430, nvptx, systemz, r600, and cpp
1414 --enable-bindings Build specific language bindings:
1415 all,auto,none,{binding-name} (default=auto)
1416 --enable-terminfo Query the terminfo database if available (default is
1418 --enable-libffi Check for the presence of libffi (default is NO)
1419 --enable-ltdl-install install libltdl
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-llvmsrc Location of LLVM Source Code
1425 --with-llvmobj Location of LLVM Object Code
1426 --with-optimize-option Select the compiler options to use for optimized
1428 --with-extra-options Specify additional options to compile LLVM with
1429 --with-extra-ld-options Specify additional options to link LLVM with
1430 --with-ocaml-libdir Specify install location for ocaml bindings (default
1432 --with-clang-resource-dir
1433 Relative directory from the Clang binary for
1435 --with-c-include-dirs Colon separated list of directories clang will
1437 --with-gcc-toolchain Directory where gcc is installed.
1438 --with-binutils-include Specify path to binutils/include/ containing
1439 plugin-api.h file for gold plugin.
1440 --with-bug-report-url Specify the URL where bug reports should be
1441 submitted (default=http://llvm.org/bugs/)
1442 --with-tclinclude directory where tcl headers are
1443 --with-udis86=<path> Use udis86 external x86 disassembler library
1444 --with-oprofile=<prefix>
1445 Tell OProfile >= 0.9.4 how to symbolize JIT output
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1454 CXX C++ compiler command
1455 CXXFLAGS C++ compiler flags
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1461 Report bugs to <bugs@yourdomain>.
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" || continue
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1489 .) # We are building in place.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1513 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1522 [SAMPLE] configure [x.xx]
1523 generated by GNU Autoconf 2.60
1525 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1526 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1532 cat >config.log <<_ACEOF
1533 This file contains any messages produced by compilers while
1534 running configure, to aid debugging if configure makes a mistake.
1536 It was created by [SAMPLE] $as_me [x.xx], which was
1537 generated by GNU Autoconf 2.60. Invocation command line was
1549 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1550 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1551 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1552 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1553 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1555 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1556 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1558 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1559 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1560 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1561 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1562 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1563 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1564 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 test -z "$as_dir" && as_dir=.
1573 echo "PATH: $as_dir"
1589 # Keep a trace of the command line.
1590 # Strip out --no-create and --no-recursion so they do not pile up.
1591 # Strip out --silent because we don't want to record it for future runs.
1592 # Also quote any args containing shell meta-characters.
1593 # Make two passes to allow for proper duplicate-argument suppression.
1597 ac_must_keep_next=false
1603 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1605 | -silent | --silent | --silen | --sile | --sil)
1608 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1611 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1613 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1614 if test $ac_must_keep_next = true; then
1615 ac_must_keep_next=false # Got value, back to normal.
1618 *=* | --config-cache | -C | -disable-* | --disable-* \
1619 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1620 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1621 | -with-* | --with-* | -without-* | --without-* | --x)
1622 case "$ac_configure_args0 " in
1623 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1626 -* ) ac_must_keep_next=true ;;
1629 ac_configure_args="$ac_configure_args '$ac_arg'"
1634 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1635 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1637 # When interrupted or exit'd, cleanup temporary files, and complete
1638 # config.log. We remove comments because anyway the quotes in there
1639 # would cause problems or look ugly.
1640 # WARNING: Use '\'' to represent an apostrophe within the trap.
1641 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1642 trap 'exit_status=$?
1643 # Save into config.log some information that might help in debugging.
1648 ## ---------------- ##
1649 ## Cache variables. ##
1650 ## ---------------- ##
1653 # The following way of writing the cache mishandles newlines in values,
1655 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1656 eval ac_val=\$$ac_var
1660 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1661 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1664 _ | IFS | as_nl) ;; #(
1665 *) $as_unset $ac_var ;;
1670 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1671 *${as_nl}ac_space=\ *)
1673 "s/'\''/'\''\\\\'\'''\''/g;
1674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1677 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1685 ## ----------------- ##
1686 ## Output variables. ##
1687 ## ----------------- ##
1690 for ac_var in $ac_subst_vars
1692 eval ac_val=\$$ac_var
1694 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1696 echo "$ac_var='\''$ac_val'\''"
1700 if test -n "$ac_subst_files"; then
1702 ## ------------------- ##
1703 ## File substitutions. ##
1704 ## ------------------- ##
1707 for ac_var in $ac_subst_files
1709 eval ac_val=\$$ac_var
1711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713 echo "$ac_var='\''$ac_val'\''"
1718 if test -s confdefs.h; then
1728 test "$ac_signal" != 0 &&
1729 echo "$as_me: caught signal $ac_signal"
1730 echo "$as_me: exit $exit_status"
1732 rm -f core *.core core.conftest.* &&
1733 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1736 for ac_signal in 1 2 13 15; do
1737 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1741 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1742 rm -f -r conftest* confdefs.h
1744 # Predefined preprocessor variables.
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_NAME "$PACKAGE_NAME"
1751 cat >>confdefs.h <<_ACEOF
1752 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1756 cat >>confdefs.h <<_ACEOF
1757 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_STRING "$PACKAGE_STRING"
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1771 # Let the site file select an alternate cache file if it wants to.
1772 # Prefer explicitly selected file to automatically selected ones.
1773 if test -n "$CONFIG_SITE"; then
1774 set x "$CONFIG_SITE"
1775 elif test "x$prefix" != xNONE; then
1776 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1778 set x "$ac_default_prefix/share/config.site" \
1779 "$ac_default_prefix/etc/config.site"
1784 if test -r "$ac_site_file"; then
1785 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1786 echo "$as_me: loading site script $ac_site_file" >&6;}
1787 sed 's/^/| /' "$ac_site_file" >&5
1792 if test -r "$cache_file"; then
1793 # Some versions of bash will fail to source /dev/null (special
1794 # files actually), so we avoid doing that.
1795 if test -f "$cache_file"; then
1796 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1797 echo "$as_me: loading cache $cache_file" >&6;}
1799 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1800 *) . "./$cache_file";;
1804 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1805 echo "$as_me: creating cache $cache_file" >&6;}
1809 # Check that the precious variables saved in the cache have kept the same
1811 ac_cache_corrupted=false
1812 for ac_var in $ac_precious_vars; do
1813 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1814 eval ac_new_set=\$ac_env_${ac_var}_set
1815 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1816 eval ac_new_val=\$ac_env_${ac_var}_value
1817 case $ac_old_set,$ac_new_set in
1819 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1820 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1821 ac_cache_corrupted=: ;;
1823 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1824 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1825 ac_cache_corrupted=: ;;
1828 if test "x$ac_old_val" != "x$ac_new_val"; then
1829 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1830 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1831 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1832 echo "$as_me: former value: $ac_old_val" >&2;}
1833 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1834 echo "$as_me: current value: $ac_new_val" >&2;}
1835 ac_cache_corrupted=:
1838 # Pass precious variables to config.status.
1839 if test "$ac_new_set" = set; then
1841 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1842 *) ac_arg=$ac_var=$ac_new_val ;;
1844 case " $ac_configure_args " in
1845 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1846 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1850 if $ac_cache_corrupted; then
1851 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1852 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1853 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1854 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1855 { (exit 1); exit 1; }; }
1883 ac_cpp='$CPP $CPPFLAGS'
1884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1890 LLVM_SRC_ROOT="../.."
1891 LLVM_OBJ_ROOT="../.."
1893 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1894 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1897 # Check whether --with-llvmsrc was given.
1898 if test "${with_llvmsrc+set}" = set; then
1899 withval=$with_llvmsrc; llvm_src="$withval"
1901 llvm_src="$LLVM_ABS_SRC_ROOT"
1907 # Check whether --with-llvmobj was given.
1908 if test "${with_llvmobj+set}" = set; then
1909 withval=$with_llvmobj; llvm_obj="$withval"
1911 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1916 ac_config_commands="$ac_config_commands setup"
1920 { echo "$as_me:$LINENO: checking llvm-config" >&5
1921 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1922 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1923 if ! test -f "$llvm_config_path" ; then
1924 llvm_config_path="no"
1926 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1927 echo "${ECHO_T}$llvm_config_path" >&6; }
1929 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1930 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1931 if test "$llvm_config_path" != no ; then
1932 llvm_package_version=`$llvm_config_path --version`
1934 llvm_package_version="unknown";
1936 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1937 echo "${ECHO_T}$llvm_package_version" >&6; }
1938 LLVM_VERSION=$llvm_package_version
1944 for ac_dir in autoconf "$srcdir"/autoconf; do
1945 if test -f "$ac_dir/install-sh"; then
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 elif test -f "$ac_dir/install.sh"; then
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 elif test -f "$ac_dir/shtool"; then
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1959 if test -z "$ac_aux_dir"; then
1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982 for ac_prog in clang llvm-gcc gcc
1984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test -n "$CC"; then
2013 { echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6; }
2016 { echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6; }
2021 test -n "$CC" && break
2024 if test -z "$CC"; then
2026 for ac_prog in clang llvm-gcc gcc
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2045 ac_cv_prog_ac_ct_CC="$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6; }
2060 { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2065 test -n "$ac_ct_CC" && break
2068 if test "x$ac_ct_CC" = x; then
2071 case $cross_compiling:$ac_tool_warned in
2073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2074 whose name does not start with the host triplet. If you think this
2075 configuration is useful to you, please write to autoconf@gnu.org." >&5
2076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2077 whose name does not start with the host triplet. If you think this
2078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2079 ac_tool_warned=yes ;;
2086 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&5
2088 echo "$as_me: error: no acceptable C compiler found in \$PATH
2089 See \`config.log' for more details." >&2;}
2090 { (exit 1); exit 1; }; }
2092 # Provide some information about the compiler.
2093 echo "$as_me:$LINENO: checking for C compiler version" >&5
2094 ac_compiler=`set X $ac_compile; echo $2`
2095 { (ac_try="$ac_compiler --version >&5"
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler --version >&5") 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105 { (ac_try="$ac_compiler -v >&5"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -v >&5") 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (ac_try="$ac_compiler -V >&5"
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121 (eval "$ac_compiler -V >&5") 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2126 cat >conftest.$ac_ext <<_ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2146 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2147 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2150 # List of possible output files, starting from the most likely.
2151 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2152 # only as a last resort. b.out is created by i960 compilers.
2153 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2155 # The IRIX 6 linker writes into existing files which may not be
2156 # executable, retaining their permissions. Remove them first so a
2157 # subsequent execution test works.
2159 for ac_file in $ac_files
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2163 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2168 if { (ac_try="$ac_link_default"
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2174 (eval "$ac_link_default") 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; then
2178 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2179 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2180 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2181 # so that the user can short-circuit this test for compilers unknown to
2183 for ac_file in $ac_files
2185 test -f "$ac_file" || continue
2187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2190 # We found the default executable, but exeext='' is most
2194 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 # We set ac_cv_exeext here because the later test for it is not
2199 # safe: cross compilers may not add the suffix if given an `-o'
2200 # argument, so we may need to know it at that point already.
2201 # Even if this section looks crufty: it has the advantage of
2208 test "$ac_cv_exeext" = no && ac_cv_exeext=
2211 echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2214 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: C compiler cannot create executables
2217 See \`config.log' for more details." >&2;}
2218 { (exit 77); exit 77; }; }
2221 ac_exeext=$ac_cv_exeext
2222 { echo "$as_me:$LINENO: result: $ac_file" >&5
2223 echo "${ECHO_T}$ac_file" >&6; }
2225 # Check that the compiler produces executables we can run. If not, either
2226 # the compiler is broken, or we cross compile.
2227 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2228 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2229 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2230 # If not cross compiling, check that we can run a simple program.
2231 if test "$cross_compiling" != yes; then
2232 if { ac_try='./$ac_file'
2233 { (case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_try") 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2244 if test "$cross_compiling" = maybe; then
2247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check that the compiler produces executables we can run. If not, either
2263 # the compiler is broken, or we cross compile.
2264 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2266 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6; }
2269 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2271 if { (ac_try="$ac_link"
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_link") 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; then
2281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2285 for ac_file in conftest.exe conftest conftest.*; do
2286 test -f "$ac_file" || continue
2288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&2;}
2299 { (exit 1); exit 1; }; }
2302 rm -f conftest$ac_cv_exeext
2303 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2306 rm -f conftest.$ac_ext
2307 EXEEXT=$ac_cv_exeext
2309 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2311 if test "${ac_cv_objext+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 cat >conftest.$ac_ext <<_ACEOF
2317 cat confdefs.h >>conftest.$ac_ext
2318 cat >>conftest.$ac_ext <<_ACEOF
2319 /* end confdefs.h. */
2329 rm -f conftest.o conftest.obj
2330 if { (ac_try="$ac_compile"
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336 (eval "$ac_compile") 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
2340 for ac_file in conftest.o conftest.obj conftest.*; do
2341 test -f "$ac_file" || continue;
2343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362 echo "${ECHO_T}$ac_cv_objext" >&6; }
2363 OBJEXT=$ac_cv_objext
2365 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2367 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat >conftest.$ac_ext <<_ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2388 rm -f conftest.$ac_objext
2389 if { (ac_try="$ac_compile"
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_compile") 2>conftest.er1
2397 grep -v '^ *+' conftest.er1 >conftest.err
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_try") 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2434 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2436 GCC=`test $ac_compiler_gnu = yes && echo yes`
2437 ac_test_CFLAGS=${CFLAGS+set}
2438 ac_save_CFLAGS=$CFLAGS
2439 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_cc_g+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 ac_save_c_werror_flag=$ac_c_werror_flag
2445 ac_c_werror_flag=yes
2448 cat >conftest.$ac_ext <<_ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2463 rm -f conftest.$ac_objext
2464 if { (ac_try="$ac_compile"
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_compile") 2>conftest.er1
2472 grep -v '^ *+' conftest.er1 >conftest.err
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; } &&
2487 { ac_try='test -s conftest.$ac_objext'
2488 { (case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_try") 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2503 cat >conftest.$ac_ext <<_ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2518 rm -f conftest.$ac_objext
2519 if { (ac_try="$ac_compile"
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_compile") 2>conftest.er1
2527 grep -v '^ *+' conftest.er1 >conftest.err
2529 cat conftest.err >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2533 { (case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_try") 2>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_try") 2>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 ac_c_werror_flag=$ac_save_c_werror_flag
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_try") 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 ac_c_werror_flag=$ac_save_c_werror_flag
2625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2627 if test "$ac_test_CFLAGS" = set; then
2628 CFLAGS=$ac_save_CFLAGS
2629 elif test $ac_cv_prog_cc_g = yes; then
2630 if test "$GCC" = yes; then
2636 if test "$GCC" = yes; then
2642 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2643 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_cc_c89+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 ac_cv_prog_cc_c89=no
2649 cat >conftest.$ac_ext <<_ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2657 #include <sys/types.h>
2658 #include <sys/stat.h>
2659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2660 struct buf { int x; };
2661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662 static char *e (p, i)
2668 static char *f (char * (*g) (char **, int), char **p, ...)
2673 s = g (p, va_arg (v,int));
2678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2679 function prototypes and stuff, but not '\xHH' hex character constants.
2680 These don't provoke an error unfortunately, instead are silently treated
2681 as 'x'. The following induces an error, until -std is added to get
2682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2683 array size at least. It's necessary to write '\x00'==0 to get something
2684 that's true only with -std. */
2685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2688 inside strings and character constants. */
2690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2692 int test (int i, double x);
2693 struct s1 {int (*f) (int a);};
2694 struct s2 {int (*f) (double a);};
2695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2709 CC="$ac_save_CC $ac_arg"
2710 rm -f conftest.$ac_objext
2711 if { (ac_try="$ac_compile"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compile") 2>conftest.er1
2719 grep -v '^ *+' conftest.er1 >conftest.err
2721 cat conftest.err >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2725 { (case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_try") 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_try") 2>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 ac_cv_prog_cc_c89=$ac_arg
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2752 rm -f core conftest.err conftest.$ac_objext
2753 test "x$ac_cv_prog_cc_c89" != "xno" && break
2755 rm -f conftest.$ac_ext
2760 case "x$ac_cv_prog_cc_c89" in
2762 { echo "$as_me:$LINENO: result: none needed" >&5
2763 echo "${ECHO_T}none needed" >&6; } ;;
2765 { echo "$as_me:$LINENO: result: unsupported" >&5
2766 echo "${ECHO_T}unsupported" >&6; } ;;
2768 CC="$CC $ac_cv_prog_cc_c89"
2769 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 ac_cpp='$CXXCPP $CPPFLAGS'
2782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2785 if test -z "$CXX"; then
2786 if test -n "$CCC"; then
2789 if test -n "$ac_tool_prefix"; then
2790 for ac_prog in clang++ llvm-g++ g++
2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796 if test "${ac_cv_prog_CXX+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 if test -n "$CXX"; then
2800 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test -n "$CXX"; then
2821 { echo "$as_me:$LINENO: result: $CXX" >&5
2822 echo "${ECHO_T}$CXX" >&6; }
2824 { echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6; }
2829 test -n "$CXX" && break
2832 if test -z "$CXX"; then
2834 for ac_prog in clang++ llvm-g++ g++
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 if test -n "$ac_ct_CXX"; then
2844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_ac_ct_CXX="$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2864 if test -n "$ac_ct_CXX"; then
2865 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2866 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2868 { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2873 test -n "$ac_ct_CXX" && break
2876 if test "x$ac_ct_CXX" = x; then
2879 case $cross_compiling:$ac_tool_warned in
2881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet. If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&5
2884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet. If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887 ac_tool_warned=yes ;;
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2897 ac_compiler=`set X $ac_compile; echo $2`
2898 { (ac_try="$ac_compiler --version >&5"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler --version >&5") 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908 { (ac_try="$ac_compiler -v >&5"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -v >&5") 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918 { (ac_try="$ac_compiler -V >&5"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compiler -V >&5") 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2929 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2930 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2961 grep -v '^ *+' conftest.er1 >conftest.err
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2998 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3000 GXX=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CXXFLAGS=${CXXFLAGS+set}
3002 ac_save_CXXFLAGS=$CXXFLAGS
3003 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3004 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cxx_g+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3009 ac_cxx_werror_flag=yes
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_cv_prog_cxx_g=yes
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3091 grep -v '^ *+' conftest.er1 >conftest.err
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3172 ac_cv_prog_cxx_g=yes
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3191 if test "$ac_test_CXXFLAGS" = set; then
3192 CXXFLAGS=$ac_save_CXXFLAGS
3193 elif test $ac_cv_prog_cxx_g = yes; then
3194 if test "$GXX" = yes; then
3200 if test "$GXX" = yes; then
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
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3218 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3219 # On Suns, sometimes $CPP names a directory.
3220 if test -n "$CPP" && test -d "$CPP"; then
3223 if test -z "$CPP"; then
3224 if test "${ac_cv_prog_CPP+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 # Double quotes because CPP needs to be expanded
3228 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3231 for ac_c_preproc_warn_flag in '' yes
3233 # Use a header file that comes with gcc, so configuring glibc
3234 # with a fresh cross-compiler works.
3235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236 # <limits.h> exists even on freestanding compilers.
3237 # On the NeXT, cc -E runs the code through the compiler's parser,
3238 # not just through cpp. "Syntax error" is here to catch this case.
3239 cat >conftest.$ac_ext <<_ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3246 # include <limits.h>
3248 # include <assert.h>
3252 if { (ac_try="$ac_cpp conftest.$ac_ext"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3260 grep -v '^ *+' conftest.er1 >conftest.err
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } >/dev/null; then
3265 if test -s conftest.err; then
3266 ac_cpp_err=$ac_c_preproc_warn_flag
3267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3274 if test -z "$ac_cpp_err"; then
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 # Broken: fails on valid input.
3284 rm -f conftest.err conftest.$ac_ext
3286 # OK, works on sane cases. Now check whether nonexistent headers
3287 # can be detected and how.
3288 cat >conftest.$ac_ext <<_ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294 #include <ac_nonexistent.h>
3296 if { (ac_try="$ac_cpp conftest.$ac_ext"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3304 grep -v '^ *+' conftest.er1 >conftest.err
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } >/dev/null; then
3309 if test -s conftest.err; then
3310 ac_cpp_err=$ac_c_preproc_warn_flag
3311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3318 if test -z "$ac_cpp_err"; then
3319 # Broken: success on invalid input.
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 # Passes both tests.
3330 rm -f conftest.err conftest.$ac_ext
3333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334 rm -f conftest.err conftest.$ac_ext
3335 if $ac_preproc_ok; then
3347 { echo "$as_me:$LINENO: result: $CPP" >&5
3348 echo "${ECHO_T}$CPP" >&6; }
3350 for ac_c_preproc_warn_flag in '' yes
3352 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser,
3357 # not just through cpp. "Syntax error" is here to catch this case.
3358 cat >conftest.$ac_ext <<_ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3365 # include <limits.h>
3367 # include <assert.h>
3371 if { (ac_try="$ac_cpp conftest.$ac_ext"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3379 grep -v '^ *+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3393 if test -z "$ac_cpp_err"; then
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Broken: fails on valid input.
3403 rm -f conftest.err conftest.$ac_ext
3405 # OK, works on sane cases. Now check whether nonexistent headers
3406 # can be detected and how.
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #include <ac_nonexistent.h>
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423 grep -v '^ *+' conftest.er1 >conftest.err
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3437 if test -z "$ac_cpp_err"; then
3438 # Broken: success on invalid input.
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 # Passes both tests.
3449 rm -f conftest.err conftest.$ac_ext
3452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453 rm -f conftest.err conftest.$ac_ext
3454 if $ac_preproc_ok; then
3457 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&5
3459 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3460 See \`config.log' for more details." >&2;}
3461 { (exit 1); exit 1; }; }
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 # Check whether --enable-polly was given.
3474 if test "${enable_polly+set}" = set; then
3475 enableval=$enable_polly;
3480 case "$enableval" in
3485 default) ENABLE_POLLY=1
3487 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3488 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3489 { (exit 1); exit 1; }; } ;;
3493 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3496 subdirs="$subdirs tools/polly"
3501 # Make sure we can run config.sub.
3502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3503 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3504 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3505 { (exit 1); exit 1; }; }
3507 { echo "$as_me:$LINENO: checking build system type" >&5
3508 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3509 if test "${ac_cv_build+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 ac_build_alias=$build_alias
3513 test "x$ac_build_alias" = x &&
3514 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3515 test "x$ac_build_alias" = x &&
3516 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3517 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3518 { (exit 1); exit 1; }; }
3519 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3520 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3521 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3522 { (exit 1); exit 1; }; }
3525 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3526 echo "${ECHO_T}$ac_cv_build" >&6; }
3527 case $ac_cv_build in
3529 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3530 echo "$as_me: error: invalid value of canonical build" >&2;}
3531 { (exit 1); exit 1; }; };;
3534 ac_save_IFS=$IFS; IFS='-'
3540 # Remember, the first character of IFS is used to create $*,
3541 # except with old shells:
3544 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3547 { echo "$as_me:$LINENO: checking host system type" >&5
3548 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3549 if test "${ac_cv_host+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 if test "x$host_alias" = x; then
3553 ac_cv_host=$ac_cv_build
3555 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3556 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3557 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3558 { (exit 1); exit 1; }; }
3562 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3563 echo "${ECHO_T}$ac_cv_host" >&6; }
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3567 echo "$as_me: error: invalid value of canonical host" >&2;}
3568 { (exit 1); exit 1; }; };;
3571 ac_save_IFS=$IFS; IFS='-'
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3581 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3584 { echo "$as_me:$LINENO: checking target system type" >&5
3585 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_target+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 if test "x$target_alias" = x; then
3590 ac_cv_target=$ac_cv_host
3592 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3595 { (exit 1); exit 1; }; }
3599 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3600 echo "${ECHO_T}$ac_cv_target" >&6; }
3601 case $ac_cv_target in
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3604 echo "$as_me: error: invalid value of canonical target" >&2;}
3605 { (exit 1); exit 1; }; };;
3607 target=$ac_cv_target
3608 ac_save_IFS=$IFS; IFS='-'
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3618 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3621 # The aliases save the names the user supplied, while $host etc.
3622 # will get canonicalized.
3623 test -n "$target_alias" &&
3624 test "$program_prefix$program_suffix$program_transform_name" = \
3626 program_prefix=${target_alias}-
3628 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3629 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3630 if test "${llvm_cv_os_type+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 llvm_cv_link_all_option="-Wl,--whole-archive"
3636 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3637 llvm_cv_os_type="AIX"
3638 llvm_cv_platform_type="Unix" ;;
3640 llvm_cv_link_all_option="-Wl,--whole-archive"
3641 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3642 llvm_cv_os_type="IRIX"
3643 llvm_cv_platform_type="Unix" ;;
3645 llvm_cv_link_all_option="-Wl,--whole-archive"
3646 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3647 llvm_cv_os_type="Cygwin"
3648 llvm_cv_platform_type="Unix" ;;
3650 llvm_cv_link_all_option="-Wl,-all_load"
3651 llvm_cv_no_link_all_option="-Wl,-noall_load"
3652 llvm_cv_os_type="Darwin"
3653 llvm_cv_platform_type="Unix" ;;
3655 llvm_cv_link_all_option="-Wl,-all_load"
3656 llvm_cv_no_link_all_option="-Wl,-noall_load"
3657 llvm_cv_os_type="Minix"
3658 llvm_cv_platform_type="Unix" ;;
3659 *-*-freebsd* | *-*-kfreebsd-gnu)
3660 llvm_cv_link_all_option="-Wl,--whole-archive"
3661 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3662 llvm_cv_os_type="FreeBSD"
3663 llvm_cv_platform_type="Unix" ;;
3665 llvm_cv_link_all_option="-Wl,--whole-archive"
3666 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3667 llvm_cv_os_type="OpenBSD"
3668 llvm_cv_platform_type="Unix" ;;
3670 llvm_cv_link_all_option="-Wl,--whole-archive"
3671 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3672 llvm_cv_os_type="NetBSD"
3673 llvm_cv_platform_type="Unix" ;;
3675 llvm_cv_link_all_option="-Wl,--whole-archive"
3676 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3677 llvm_cv_os_type="DragonFly"
3678 llvm_cv_platform_type="Unix" ;;
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="HP-UX"
3683 llvm_cv_platform_type="Unix" ;;
3685 llvm_cv_link_all_option="-Wl,--whole-archive"
3686 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687 llvm_cv_os_type="Interix"
3688 llvm_cv_platform_type="Unix" ;;
3690 llvm_cv_link_all_option="-Wl,--whole-archive"
3691 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692 llvm_cv_os_type="Linux"
3693 llvm_cv_platform_type="Unix" ;;
3695 llvm_cv_link_all_option="-Wl,--whole-archive"
3696 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3697 llvm_cv_os_type="GNU"
3698 llvm_cv_platform_type="Unix" ;;
3700 llvm_cv_link_all_option="-Wl,-z,allextract"
3701 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3702 llvm_cv_os_type="SunOS"
3703 llvm_cv_platform_type="Unix" ;;
3705 llvm_cv_link_all_option="-Wl,-z,allextract"
3706 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3707 llvm_cv_os_type="AuroraUX"
3708 llvm_cv_platform_type="Unix" ;;
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="Win32"
3713 llvm_cv_platform_type="Win32" ;;
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="MingW"
3718 llvm_cv_platform_type="Win32" ;;
3720 llvm_cv_link_all_option="-Wl,--whole-archive"
3721 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722 llvm_cv_os_type="Haiku"
3723 llvm_cv_platform_type="Unix" ;;
3725 llvm_cv_link_all_option="-Wl,--whole-archive"
3726 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727 llvm_cv_os_type="Freestanding"
3728 llvm_cv_platform_type="Unix" ;;
3730 llvm_cv_link_all_option="-Wl,--whole-archive"
3731 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732 llvm_cv_os_type="Freestanding"
3733 llvm_cv_platform_type="Unix" ;;
3735 llvm_cv_link_all_option=""
3736 llvm_cv_no_link_all_option=""
3737 llvm_cv_os_type="Unknown"
3738 llvm_cv_platform_type="Unknown" ;;
3741 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3742 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3744 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3745 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3746 if test "${llvm_cv_target_os_type+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 llvm_cv_target_os_type="AIX" ;;
3753 llvm_cv_target_os_type="IRIX" ;;
3755 llvm_cv_target_os_type="Cygwin" ;;
3757 llvm_cv_target_os_type="Darwin" ;;
3759 llvm_cv_target_os_type="Minix" ;;
3760 *-*-freebsd* | *-*-kfreebsd-gnu)
3761 llvm_cv_target_os_type="FreeBSD" ;;
3763 llvm_cv_target_os_type="OpenBSD" ;;
3765 llvm_cv_target_os_type="NetBSD" ;;
3767 llvm_cv_target_os_type="DragonFly" ;;
3769 llvm_cv_target_os_type="HP-UX" ;;
3771 llvm_cv_target_os_type="Interix" ;;
3773 llvm_cv_target_os_type="Linux" ;;
3775 llvm_cv_target_os_type="GNU" ;;
3777 llvm_cv_target_os_type="SunOS" ;;
3779 llvm_cv_target_os_type="AuroraUX" ;;
3781 llvm_cv_target_os_type="Win32" ;;
3783 llvm_cv_target_os_type="MingW" ;;
3785 llvm_cv_target_os_type="Haiku" ;;
3787 llvm_cv_target_os_type="RTEMS" ;;
3789 llvm_cv_target_os_type="NativeClient" ;;
3791 llvm_cv_target_os_type="Freestanding" ;;
3793 llvm_cv_target_os_type="Unknown" ;;
3796 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3797 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3799 if test "$llvm_cv_os_type" = "Unknown" ; then
3800 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3801 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3802 { (exit 1); exit 1; }; }
3807 HOST_OS=$llvm_cv_os_type
3809 TARGET_OS=$llvm_cv_target_os_type
3812 LINKALL=$llvm_cv_link_all_option
3814 NOLINKALL=$llvm_cv_no_link_all_option
3817 case $llvm_cv_platform_type in
3820 cat >>confdefs.h <<\_ACEOF
3821 #define LLVM_ON_UNIX 1
3831 cat >>confdefs.h <<\_ACEOF
3832 #define LLVM_ON_WIN32 1
3842 { echo "$as_me:$LINENO: checking target architecture" >&5
3843 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3844 if test "${llvm_cv_target_arch+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 i?86-*) llvm_cv_target_arch="x86" ;;
3849 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3850 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3851 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3852 arm*-*) llvm_cv_target_arch="ARM" ;;
3853 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
3854 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3855 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3856 xcore-*) llvm_cv_target_arch="XCore" ;;
3857 msp430-*) llvm_cv_target_arch="MSP430" ;;
3858 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3859 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3860 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3861 *) llvm_cv_target_arch="Unknown" ;;
3864 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3865 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3867 if test "$llvm_cv_target_arch" = "Unknown" ; then
3868 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3869 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3872 # Determine the LLVM native architecture for the target
3873 case "$llvm_cv_target_arch" in
3874 x86) LLVM_NATIVE_ARCH="X86" ;;
3875 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3876 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3879 ARCH=$llvm_cv_target_arch
3884 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3885 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3886 if test "${ac_cv_path_GREP+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 # Extract the first word of "grep ggrep" to use in msg output
3890 if test -z "$GREP"; then
3891 set dummy grep ggrep; ac_prog_name=$2
3892 if test "${ac_cv_path_GREP+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 ac_path_GREP_found=false
3896 # Loop through the user's path and test for each of PROGNAME-LIST
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3901 test -z "$as_dir" && as_dir=.
3902 for ac_prog in grep ggrep; do
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3905 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3906 # Check for GNU ac_path_GREP and select it if it is found.
3907 # Check for GNU $ac_path_GREP
3908 case `"$ac_path_GREP" --version 2>&1` in
3910 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3913 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3916 cat "conftest.in" "conftest.in" >"conftest.tmp"
3917 mv "conftest.tmp" "conftest.in"
3918 cp "conftest.in" "conftest.nl"
3919 echo 'GREP' >> "conftest.nl"
3920 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922 ac_count=`expr $ac_count + 1`
3923 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3924 # Best one so far, save it but keep looking for a better one
3925 ac_cv_path_GREP="$ac_path_GREP"
3926 ac_path_GREP_max=$ac_count
3928 # 10*(2^10) chars as input seems more than enough
3929 test $ac_count -gt 10 && break
3931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3935 $ac_path_GREP_found && break 3
3945 GREP="$ac_cv_path_GREP"
3946 if test -z "$GREP"; then
3947 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3948 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3949 { (exit 1); exit 1; }; }
3953 ac_cv_path_GREP=$GREP
3958 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3959 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3960 GREP="$ac_cv_path_GREP"
3963 { echo "$as_me:$LINENO: checking for egrep" >&5
3964 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3965 if test "${ac_cv_path_EGREP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3969 then ac_cv_path_EGREP="$GREP -E"
3971 # Extract the first word of "egrep" to use in msg output
3972 if test -z "$EGREP"; then
3973 set dummy egrep; ac_prog_name=$2
3974 if test "${ac_cv_path_EGREP+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 ac_path_EGREP_found=false
3978 # Loop through the user's path and test for each of PROGNAME-LIST
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3983 test -z "$as_dir" && as_dir=.
3984 for ac_prog in egrep; do
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3987 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3988 # Check for GNU ac_path_EGREP and select it if it is found.
3989 # Check for GNU $ac_path_EGREP
3990 case `"$ac_path_EGREP" --version 2>&1` in
3992 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3995 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3998 cat "conftest.in" "conftest.in" >"conftest.tmp"
3999 mv "conftest.tmp" "conftest.in"
4000 cp "conftest.in" "conftest.nl"
4001 echo 'EGREP' >> "conftest.nl"
4002 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4004 ac_count=`expr $ac_count + 1`
4005 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4006 # Best one so far, save it but keep looking for a better one
4007 ac_cv_path_EGREP="$ac_path_EGREP"
4008 ac_path_EGREP_max=$ac_count
4010 # 10*(2^10) chars as input seems more than enough
4011 test $ac_count -gt 10 && break
4013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017 $ac_path_EGREP_found && break 3
4027 EGREP="$ac_cv_path_EGREP"
4028 if test -z "$EGREP"; then
4029 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4030 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4031 { (exit 1); exit 1; }; }
4035 ac_cv_path_EGREP=$EGREP
4041 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4042 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4043 EGREP="$ac_cv_path_EGREP"
4046 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4047 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4048 if test "${ac_cv_header_stdc+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 cat >conftest.$ac_ext <<_ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4070 rm -f conftest.$ac_objext
4071 if { (ac_try="$ac_compile"
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_compile") 2>conftest.er1
4079 grep -v '^ *+' conftest.er1 >conftest.err
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } &&
4084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4085 { (case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_try") 2>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_try") 2>&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 ac_cv_header_stdc=yes
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 ac_cv_header_stdc=no
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 if test $ac_cv_header_stdc = yes; then
4115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126 $EGREP "memchr" >/dev/null 2>&1; then
4129 ac_cv_header_stdc=no
4135 if test $ac_cv_header_stdc = yes; then
4136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4137 cat >conftest.$ac_ext <<_ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147 $EGREP "free" >/dev/null 2>&1; then
4150 ac_cv_header_stdc=no
4156 if test $ac_cv_header_stdc = yes; then
4157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4158 if test "$cross_compiling" = yes; then
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4169 #if ((' ' & 0x0FF) == 0x020)
4170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4173 # define ISLOWER(c) \
4174 (('a' <= (c) && (c) <= 'i') \
4175 || ('j' <= (c) && (c) <= 'r') \
4176 || ('s' <= (c) && (c) <= 'z'))
4177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4185 for (i = 0; i < 256; i++)
4186 if (XOR (islower (i), ISLOWER (i))
4187 || toupper (i) != TOUPPER (i))
4192 rm -f conftest$ac_exeext
4193 if { (ac_try="$ac_link"
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_link") 2>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4203 { (case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_try") 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4214 echo "$as_me: program exited with status $ac_status" >&5
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4219 ac_cv_header_stdc=no
4221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4227 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4228 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4229 if test $ac_cv_header_stdc = yes; then
4231 cat >>confdefs.h <<\_ACEOF
4232 #define STDC_HEADERS 1
4237 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4247 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4248 inttypes.h stdint.h unistd.h
4250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 cat >conftest.$ac_ext <<_ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 $ac_includes_default
4264 #include <$ac_header>
4266 rm -f conftest.$ac_objext
4267 if { (ac_try="$ac_compile"
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_compile") 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; } &&
4290 { ac_try='test -s conftest.$ac_objext'
4291 { (case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 eval "$as_ac_Header=yes"
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 eval "$as_ac_Header=no"
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 ac_res=`eval echo '${'$as_ac_Header'}'`
4311 { echo "$as_me:$LINENO: result: $ac_res" >&5
4312 echo "${ECHO_T}$ac_res" >&6; }
4313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4314 cat >>confdefs.h <<_ACEOF
4315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4323 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4324 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4325 if test "${ac_cv_c_bigendian+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 # See if sys/param.h defines the BYTE_ORDER macro.
4329 cat >conftest.$ac_ext <<_ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 #include <sys/types.h>
4336 #include <sys/param.h>
4341 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4349 rm -f conftest.$ac_objext
4350 if { (ac_try="$ac_compile"
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_compile") 2>conftest.er1
4358 grep -v '^ *+' conftest.er1 >conftest.err
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest.$ac_objext'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 # It does; now see whether it defined to BIG_ENDIAN or not.
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 #include <sys/types.h>
4391 #include <sys/param.h>
4396 #if BYTE_ORDER != BIG_ENDIAN
4404 rm -f conftest.$ac_objext
4405 if { (ac_try="$ac_compile"
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411 (eval "$ac_compile") 2>conftest.er1
4413 grep -v '^ *+' conftest.er1 >conftest.err
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4419 { (case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_try") 2>&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; } &&
4428 { ac_try='test -s conftest.$ac_objext'
4429 { (case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_try") 2>&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_cv_c_bigendian=yes
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4443 ac_cv_c_bigendian=no
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 # It does not; compile a test program.
4452 if test "$cross_compiling" = yes; then
4453 # try to guess the endianness by grepping values into an object file
4454 ac_cv_c_bigendian=unknown
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4462 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4463 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4464 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4465 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4466 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4470 _ascii (); _ebcdic ();
4475 rm -f conftest.$ac_objext
4476 if { (ac_try="$ac_compile"
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4482 (eval "$ac_compile") 2>conftest.er1
4484 grep -v '^ *+' conftest.er1 >conftest.err
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4490 { (case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4495 (eval "$ac_try") 2>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; } &&
4499 { ac_try='test -s conftest.$ac_objext'
4500 { (case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_try") 2>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4510 ac_cv_c_bigendian=yes
4512 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4513 if test "$ac_cv_c_bigendian" = unknown; then
4514 ac_cv_c_bigendian=no
4516 # finding both strings is unlikely to happen, but who knows?
4517 ac_cv_c_bigendian=unknown
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 $ac_includes_default
4540 /* Are we little or big endian? From Harbison&Steele. */
4544 char c[sizeof (long int)];
4547 return u.c[sizeof (long int) - 1] == 1;
4553 rm -f conftest$ac_exeext
4554 if { (ac_try="$ac_link"
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_link") 2>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4564 { (case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_try") 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 ac_cv_c_bigendian=no
4575 echo "$as_me: program exited with status $ac_status" >&5
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4580 ac_cv_c_bigendian=yes
4582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4591 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4592 case $ac_cv_c_bigendian in
4600 { { echo "$as_me:$LINENO: error: unknown endianness
4601 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4602 echo "$as_me: error: unknown endianness
4603 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4604 { (exit 1); exit 1; }; } ;;
4608 if test "$cross_compiling" = yes; then
4609 LLVM_CROSS_COMPILING=1
4612 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4613 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4614 if test "${ac_cv_build_exeext+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4618 ac_cv_build_exeext=.exe
4620 ac_build_prefix=${build_alias}-
4622 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4623 set dummy ${ac_build_prefix}gcc; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 if test -n "$BUILD_CC"; then
4630 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 BUILD_CC=$ac_cv_prog_BUILD_CC
4650 if test -n "$BUILD_CC"; then
4651 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4652 echo "${ECHO_T}$BUILD_CC" >&6; }
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4659 if test -z "$BUILD_CC"; then
4660 # Extract the first word of "gcc", so it can be a program name with args.
4661 set dummy gcc; ac_word=$2
4662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 if test -n "$BUILD_CC"; then
4668 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_BUILD_CC="gcc"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 BUILD_CC=$ac_cv_prog_BUILD_CC
4688 if test -n "$BUILD_CC"; then
4689 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4690 echo "${ECHO_T}$BUILD_CC" >&6; }
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4697 if test -z "$BUILD_CC"; then
4698 # Extract the first word of "cc", so it can be a program name with args.
4699 set dummy cc; ac_word=$2
4700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4702 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 if test -n "$BUILD_CC"; then
4706 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4717 ac_prog_rejected=yes
4720 ac_cv_prog_BUILD_CC="cc"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 if test $ac_prog_rejected = yes; then
4729 # We found a bogon in the path, so make sure we never use it.
4730 set dummy $ac_cv_prog_BUILD_CC
4732 if test $# != 0; then
4733 # We chose a different compiler from the bogus one.
4734 # However, it has the same basename, so the bogon will be chosen
4735 # first if we set BUILD_CC to just the basename; use the full file name.
4737 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4742 BUILD_CC=$ac_cv_prog_BUILD_CC
4743 if test -n "$BUILD_CC"; then
4744 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4745 echo "${ECHO_T}$BUILD_CC" >&6; }
4747 { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4754 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4755 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4756 { (exit 1); exit 1; }; }
4757 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4759 echo 'int main () { return 0; }' > conftest.$ac_ext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4762 (eval $ac_build_link) 2>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; then
4766 for file in conftest.*; do
4768 *.c | *.o | *.obj | *.dSYM) ;;
4769 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4773 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4774 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4775 { (exit 1); exit 1; }; }
4778 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4783 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4784 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4785 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4786 ac_build_exeext=$BUILD_EXEEXT
4788 ac_build_prefix=${build_alias}-
4789 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4790 set dummy ${ac_build_prefix}g++; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 if test -n "$BUILD_CXX"; then
4797 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4817 if test -n "$BUILD_CXX"; then
4818 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4819 echo "${ECHO_T}$BUILD_CXX" >&6; }
4821 { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4826 if test -z "$BUILD_CXX"; then
4827 # Extract the first word of "g++", so it can be a program name with args.
4828 set dummy g++; ac_word=$2
4829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 if test -n "$BUILD_CXX"; then
4835 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_BUILD_CXX="g++"
4845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4855 if test -n "$BUILD_CXX"; then
4856 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4857 echo "${ECHO_T}$BUILD_CXX" >&6; }
4859 { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4864 if test -z "$BUILD_CXX"; then
4865 # Extract the first word of "c++", so it can be a program name with args.
4866 set dummy c++; ac_word=$2
4867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 if test -n "$BUILD_CXX"; then
4873 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4884 ac_prog_rejected=yes
4887 ac_cv_prog_BUILD_CXX="c++"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 if test $ac_prog_rejected = yes; then
4896 # We found a bogon in the path, so make sure we never use it.
4897 set dummy $ac_cv_prog_BUILD_CXX
4899 if test $# != 0; then
4900 # We chose a different compiler from the bogus one.
4901 # However, it has the same basename, so the bogon will be chosen
4902 # first if we set BUILD_CXX to just the basename; use the full file name.
4904 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4909 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4910 if test -n "$BUILD_CXX"; then
4911 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4912 echo "${ECHO_T}$BUILD_CXX" >&6; }
4914 { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4922 LLVM_CROSS_COMPILING=0
4926 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4937 # Check whether --enable-libcpp was given.
4938 if test "${enable_libcpp+set}" = set; then
4939 enableval=$enable_libcpp;
4944 case "$enableval" in
4945 yes) ENABLE_LIBCPP=1
4949 default) ENABLE_LIBCPP=0
4951 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4952 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4953 { (exit 1); exit 1; }; } ;;
4956 # Check whether --enable-cxx11 was given.
4957 if test "${enable_cxx11+set}" = set; then
4958 enableval=$enable_cxx11;
4963 case "$enableval" in
4968 default) ENABLE_CXX11=0
4970 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4971 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4972 { (exit 1); exit 1; }; } ;;
4975 # Check whether --enable-optimized was given.
4976 if test "${enable_optimized+set}" = set; then
4977 enableval=$enable_optimized;
4982 if test ${enableval} = "no" ; then
4986 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4990 # Check whether --enable-profiling was given.
4991 if test "${enable_profiling+set}" = set; then
4992 enableval=$enable_profiling;
4997 if test ${enableval} = "no" ; then
5001 ENABLE_PROFILING=ENABLE_PROFILING=1
5005 # Check whether --enable-assertions was given.
5006 if test "${enable_assertions+set}" = set; then
5007 enableval=$enable_assertions;
5012 if test ${enableval} = "yes" ; then
5016 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5020 # Check whether --enable-werror was given.
5021 if test "${enable_werror+set}" = set; then
5022 enableval=$enable_werror;
5027 case "$enableval" in
5028 yes) ENABLE_WERROR=1
5032 default) ENABLE_WERROR=0
5034 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5035 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5036 { (exit 1); exit 1; }; } ;;
5039 # Check whether --enable-expensive-checks was given.
5040 if test "${enable_expensive_checks+set}" = set; then
5041 enableval=$enable_expensive_checks;
5046 if test ${enableval} = "yes" ; then
5047 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5049 EXPENSIVE_CHECKS=yes
5052 ENABLE_EXPENSIVE_CHECKS=
5058 # Check whether --enable-debug-runtime was given.
5059 if test "${enable_debug_runtime+set}" = set; then
5060 enableval=$enable_debug_runtime;
5065 if test ${enableval} = "no" ; then
5069 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5073 # Check whether --enable-debug-symbols was given.
5074 if test "${enable_debug_symbols+set}" = set; then
5075 enableval=$enable_debug_symbols;
5080 if test ${enableval} = "no" ; then
5084 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5088 # Check whether --enable-jit was given.
5089 if test "${enable_jit+set}" = set; then
5090 enableval=$enable_jit;
5095 if test ${enableval} = "no"
5100 case "$llvm_cv_target_arch" in
5101 x86) TARGET_HAS_JIT=1
5103 Sparc) TARGET_HAS_JIT=0
5105 PowerPC) TARGET_HAS_JIT=1
5107 x86_64) TARGET_HAS_JIT=1
5109 ARM) TARGET_HAS_JIT=1
5111 AArch64) TARGET_HAS_JIT=0
5113 Mips) TARGET_HAS_JIT=1
5115 XCore) TARGET_HAS_JIT=0
5117 MSP430) TARGET_HAS_JIT=0
5119 Hexagon) TARGET_HAS_JIT=0
5121 NVPTX) TARGET_HAS_JIT=0
5123 SystemZ) TARGET_HAS_JIT=1
5130 # Check whether --enable-docs was given.
5131 if test "${enable_docs+set}" = set; then
5132 enableval=$enable_docs;
5137 case "$enableval" in
5142 default) ENABLE_DOCS=1
5144 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5145 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5146 { (exit 1); exit 1; }; } ;;
5149 # Check whether --enable-doxygen was given.
5150 if test "${enable_doxygen+set}" = set; then
5151 enableval=$enable_doxygen;
5156 case "$enableval" in
5157 yes) ENABLE_DOXYGEN=1
5159 no) ENABLE_DOXYGEN=0
5161 default) ENABLE_DOXYGEN=0
5163 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5164 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5165 { (exit 1); exit 1; }; } ;;
5168 # Check whether --enable-threads was given.
5169 if test "${enable_threads+set}" = set; then
5170 enableval=$enable_threads;
5175 case "$enableval" in
5176 yes) ENABLE_THREADS=1
5178 no) ENABLE_THREADS=0
5180 default) ENABLE_THREADS=1
5182 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5183 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5184 { (exit 1); exit 1; }; } ;;
5187 cat >>confdefs.h <<_ACEOF
5188 #define ENABLE_THREADS $ENABLE_THREADS
5192 # Check whether --enable-pthreads was given.
5193 if test "${enable_pthreads+set}" = set; then
5194 enableval=$enable_pthreads;
5199 case "$enableval" in
5200 yes) ENABLE_PTHREADS=1
5202 no) ENABLE_PTHREADS=0
5204 default) ENABLE_PTHREADS=1
5206 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5207 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5208 { (exit 1); exit 1; }; } ;;
5211 # Check whether --enable-zlib was given.
5212 if test "${enable_zlib+set}" = set; then
5213 enableval=$enable_zlib;
5218 case "$enableval" in
5219 yes) LLVM_ENABLE_ZLIB=1
5221 no) LLVM_ENABLE_ZLIB=0
5223 default) LLVM_ENABLE_ZLIB=1
5225 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5226 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5227 { (exit 1); exit 1; }; } ;;
5230 cat >>confdefs.h <<_ACEOF
5231 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5235 # Check whether --enable-pic was given.
5236 if test "${enable_pic+set}" = set; then
5237 enableval=$enable_pic;
5242 case "$enableval" in
5247 default) ENABLE_PIC=1
5249 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5250 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5251 { (exit 1); exit 1; }; } ;;
5254 cat >>confdefs.h <<_ACEOF
5255 #define ENABLE_PIC $ENABLE_PIC
5259 # Check whether --enable-shared was given.
5260 if test "${enable_shared+set}" = set; then
5261 enableval=$enable_shared;
5266 case "$enableval" in
5267 yes) ENABLE_SHARED=1
5271 default) ENABLE_SHARED=0
5273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5278 # Check whether --enable-embed-stdcxx was given.
5279 if test "${enable_embed_stdcxx+set}" = set; then
5280 enableval=$enable_embed_stdcxx;
5285 case "$enableval" in
5286 yes) ENABLE_EMBED_STDCXX=1
5288 no) ENABLE_EMBED_STDCXX=0
5290 default) ENABLE_EMBED_STDCXX=1
5292 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5293 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5294 { (exit 1); exit 1; }; } ;;
5297 # Check whether --enable-timestamps was given.
5298 if test "${enable_timestamps+set}" = set; then
5299 enableval=$enable_timestamps;
5304 case "$enableval" in
5305 yes) ENABLE_TIMESTAMPS=1
5307 no) ENABLE_TIMESTAMPS=0
5309 default) ENABLE_TIMESTAMPS=1
5311 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5312 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5313 { (exit 1); exit 1; }; } ;;
5316 cat >>confdefs.h <<_ACEOF
5317 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5322 # Check whether --enable-targets was given.
5323 if test "${enable_targets+set}" = set; then
5324 enableval=$enable_targets;
5329 if test "$enableval" = host-only ; then
5332 case "$enableval" in
5333 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5334 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5336 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5338 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5339 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5340 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5341 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5342 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5343 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5344 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5345 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5346 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5347 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5348 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5349 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5350 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5351 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5352 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5353 host) case "$llvm_cv_target_arch" in
5354 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5355 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5356 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5357 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5358 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5359 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5360 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5361 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5362 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5363 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5364 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5365 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5366 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5367 echo "$as_me: error: Can not set target to build" >&2;}
5368 { (exit 1); exit 1; }; } ;;
5370 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5371 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5372 { (exit 1); exit 1; }; } ;;
5377 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5380 # Determine whether we are building LLVM support for the native architecture.
5381 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5382 for a_target in $TARGETS_TO_BUILD; do
5383 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5389 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5390 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5391 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5392 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5393 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5394 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5396 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5397 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5405 cat >>confdefs.h <<_ACEOF
5406 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5419 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5421 cat >>confdefs.h <<_ACEOF
5422 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5426 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5428 cat >>confdefs.h <<_ACEOF
5429 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5436 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5437 # target feature def files.
5438 LLVM_ENUM_TARGETS=""
5439 LLVM_ENUM_ASM_PRINTERS=""
5440 LLVM_ENUM_ASM_PARSERS=""
5441 LLVM_ENUM_DISASSEMBLERS=""
5442 for target_to_build in $TARGETS_TO_BUILD; do
5443 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5444 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5445 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5447 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5448 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5450 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5451 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5460 # Check whether --with-optimize-option was given.
5461 if test "${with_optimize_option+set}" = set; then
5462 withval=$with_optimize_option;
5467 { echo "$as_me:$LINENO: checking optimization flags" >&5
5468 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5471 case "$llvm_cv_os_type" in
5472 FreeBSD) optimize_option=-O2 ;;
5473 MingW) optimize_option=-O2 ;;
5474 *) optimize_option=-O3 ;;
5476 *) optimize_option="$withval" ;;
5478 OPTIMIZE_OPTION=$optimize_option
5480 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5481 echo "${ECHO_T}$optimize_option" >&6; }
5484 # Check whether --with-extra-options was given.
5485 if test "${with_extra_options+set}" = set; then
5486 withval=$with_extra_options;
5492 default) EXTRA_OPTIONS= ;;
5493 *) EXTRA_OPTIONS=$withval ;;
5495 EXTRA_OPTIONS=$EXTRA_OPTIONS
5499 # Check whether --with-extra-ld-options was given.
5500 if test "${with_extra_ld_options+set}" = set; then
5501 withval=$with_extra_ld_options;
5507 default) EXTRA_LD_OPTIONS= ;;
5508 *) EXTRA_LD_OPTIONS=$withval ;;
5510 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5513 # Check whether --enable-bindings was given.
5514 if test "${enable_bindings+set}" = set; then
5515 enableval=$enable_bindings;
5520 BINDINGS_TO_BUILD=""
5521 case "$enableval" in
5522 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5523 all ) BINDINGS_TO_BUILD="ocaml" ;;
5524 none | no) BINDINGS_TO_BUILD="" ;;
5525 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5526 case "$a_binding" in
5527 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5528 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5529 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5530 { (exit 1); exit 1; }; } ;;
5537 # Check whether --with-ocaml-libdir was given.
5538 if test "${with_ocaml_libdir+set}" = set; then
5539 withval=$with_ocaml_libdir;
5545 auto) with_ocaml_libdir="$withval" ;;
5546 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5547 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5548 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5549 { (exit 1); exit 1; }; } ;;
5553 # Check whether --with-clang-resource-dir was given.
5554 if test "${with_clang_resource_dir+set}" = set; then
5555 withval=$with_clang_resource_dir;
5561 cat >>confdefs.h <<_ACEOF
5562 #define CLANG_RESOURCE_DIR "$withval"
5567 # Check whether --with-c-include-dirs was given.
5568 if test "${with_c_include_dirs+set}" = set; then
5569 withval=$with_c_include_dirs;
5575 cat >>confdefs.h <<_ACEOF
5576 #define C_INCLUDE_DIRS "$withval"
5580 # Clang normally uses the system c++ headers and libraries. With this option,
5581 # clang will use the ones provided by a gcc installation instead. This option should
5582 # be passed the same value that was used with --prefix when configuring gcc.
5584 # Check whether --with-gcc-toolchain was given.
5585 if test "${with_gcc_toolchain+set}" = set; then
5586 withval=$with_gcc_toolchain;
5592 cat >>confdefs.h <<_ACEOF
5593 #define GCC_INSTALL_PREFIX "$withval"
5598 # Check whether --with-binutils-include was given.
5599 if test "${with_binutils_include+set}" = set; then
5600 withval=$with_binutils_include;
5606 default) WITH_BINUTILS_INCDIR=default ;;
5607 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5608 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5609 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5610 { (exit 1); exit 1; }; } ;;
5612 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5613 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5615 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5616 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5617 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5618 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5619 { (exit 1); exit 1; }; };
5624 # Check whether --with-bug-report-url was given.
5625 if test "${with_bug_report_url+set}" = set; then
5626 withval=$with_bug_report_url;
5628 withval="http://llvm.org/bugs/"
5632 cat >>confdefs.h <<_ACEOF
5633 #define BUG_REPORT_URL "$withval"
5637 # Check whether --enable-terminfo was given.
5638 if test "${enable_terminfo+set}" = set; then
5639 enableval=$enable_terminfo; case "$enableval" in
5640 yes) llvm_cv_enable_terminfo="yes" ;;
5641 no) llvm_cv_enable_terminfo="no" ;;
5642 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5643 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5644 { (exit 1); exit 1; }; } ;;
5647 llvm_cv_enable_terminfo="yes"
5651 # Check whether --enable-libffi was given.
5652 if test "${enable_libffi+set}" = set; then
5653 enableval=$enable_libffi; case "$enableval" in
5654 yes) llvm_cv_enable_libffi="yes" ;;
5655 no) llvm_cv_enable_libffi="no" ;;
5656 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5657 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5658 { (exit 1); exit 1; }; } ;;
5661 llvm_cv_enable_libffi=no
5666 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5667 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5668 if test "${lt_cv_path_NM+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 if test -n "$NM"; then
5672 # Let the user override the test.
5675 lt_nm_to_check="${ac_tool_prefix}nm"
5676 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5677 lt_nm_to_check="$lt_nm_to_check nm"
5679 for lt_tmp_nm in $lt_nm_to_check; do
5680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5681 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5683 test -z "$ac_dir" && ac_dir=.
5684 tmp_nm="$ac_dir/$lt_tmp_nm"
5685 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5686 # Check to see if the nm accepts a BSD-compat flag.
5687 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5688 # nm: unknown option "B" ignored
5689 # Tru64's nm complains that /dev/null is an invalid object file
5690 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5691 */dev/null* | *'Invalid file or object type'*)
5692 lt_cv_path_NM="$tmp_nm -B"
5696 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5698 lt_cv_path_NM="$tmp_nm -p"
5702 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5703 continue # so that we can try to find one that supports BSD flags
5712 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5715 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5716 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5721 { echo "$as_me:$LINENO: checking for GNU make" >&5
5722 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5723 if test "${llvm_cv_gnu_make_command+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 llvm_cv_gnu_make_command=''
5727 for a in "$MAKE" make gmake gnumake ; do
5728 if test -z "$a" ; then continue ; fi ;
5729 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5731 llvm_cv_gnu_make_command=$a ;
5736 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5737 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5738 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5742 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5743 echo "${ECHO_T}\"Not found\"" >&6; };
5747 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5748 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5750 if test "$LN_S" = "ln -s"; then
5751 { echo "$as_me:$LINENO: result: yes" >&5
5752 echo "${ECHO_T}yes" >&6; }
5754 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5755 echo "${ECHO_T}no, using $LN_S" >&6; }
5758 # Extract the first word of "cmp", so it can be a program name with args.
5759 set dummy cmp; ac_word=$2
5760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5762 if test "${ac_cv_path_CMP+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5777 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5790 if test -n "$CMP"; then
5791 { echo "$as_me:$LINENO: result: $CMP" >&5
5792 echo "${ECHO_T}$CMP" >&6; }
5794 { echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6; }
5799 # Extract the first word of "cp", so it can be a program name with args.
5800 set dummy cp; ac_word=$2
5801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803 if test "${ac_cv_path_CP+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5831 if test -n "$CP"; then
5832 { echo "$as_me:$LINENO: result: $CP" >&5
5833 echo "${ECHO_T}$CP" >&6; }
5835 { echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6; }
5840 # Extract the first word of "date", so it can be a program name with args.
5841 set dummy date; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_path_DATE+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5859 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5871 DATE=$ac_cv_path_DATE
5872 if test -n "$DATE"; then
5873 { echo "$as_me:$LINENO: result: $DATE" >&5
5874 echo "${ECHO_T}$DATE" >&6; }
5876 { echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6; }
5881 # Extract the first word of "find", so it can be a program name with args.
5882 set dummy find; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_path_FIND+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5912 FIND=$ac_cv_path_FIND
5913 if test -n "$FIND"; then
5914 { echo "$as_me:$LINENO: result: $FIND" >&5
5915 echo "${ECHO_T}$FIND" >&6; }
5917 { echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6; }
5922 # Extract the first word of "grep", so it can be a program name with args.
5923 set dummy grep; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_GREP+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5953 GREP=$ac_cv_path_GREP
5954 if test -n "$GREP"; then
5955 { echo "$as_me:$LINENO: result: $GREP" >&5
5956 echo "${ECHO_T}$GREP" >&6; }
5958 { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5963 # Extract the first word of "mkdir", so it can be a program name with args.
5964 set dummy mkdir; ac_word=$2
5965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967 if test "${ac_cv_path_MKDIR+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5982 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5994 MKDIR=$ac_cv_path_MKDIR
5995 if test -n "$MKDIR"; then
5996 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5997 echo "${ECHO_T}$MKDIR" >&6; }
5999 { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6004 # Extract the first word of "mv", so it can be a program name with args.
6005 set dummy mv; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_path_MV+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6036 if test -n "$MV"; then
6037 { echo "$as_me:$LINENO: result: $MV" >&5
6038 echo "${ECHO_T}$MV" >&6; }
6040 { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6045 if test -n "$ac_tool_prefix"; then
6046 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6047 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_prog_RANLIB+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 if test -n "$RANLIB"; then
6054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 RANLIB=$ac_cv_prog_RANLIB
6074 if test -n "$RANLIB"; then
6075 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6076 echo "${ECHO_T}$RANLIB" >&6; }
6078 { echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6; }
6084 if test -z "$ac_cv_prog_RANLIB"; then
6085 ac_ct_RANLIB=$RANLIB
6086 # Extract the first word of "ranlib", so it can be a program name with args.
6087 set dummy ranlib; ac_word=$2
6088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 if test -n "$ac_ct_RANLIB"; then
6094 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_ac_ct_RANLIB="ranlib"
6104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6114 if test -n "$ac_ct_RANLIB"; then
6115 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6116 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6118 { echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6; }
6122 if test "x$ac_ct_RANLIB" = x; then
6125 case $cross_compiling:$ac_tool_warned in
6127 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6128 whose name does not start with the host triplet. If you think this
6129 configuration is useful to you, please write to autoconf@gnu.org." >&5
6130 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6131 whose name does not start with the host triplet. If you think this
6132 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6133 ac_tool_warned=yes ;;
6135 RANLIB=$ac_ct_RANLIB
6138 RANLIB="$ac_cv_prog_RANLIB"
6141 if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}ar; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_prog_AR+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 if test -n "$AR"; then
6150 ac_cv_prog_AR="$AR" # Let the user override the test.
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_AR="${ac_tool_prefix}ar"
6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 if test -n "$AR"; then
6171 { echo "$as_me:$LINENO: result: $AR" >&5
6172 echo "${ECHO_T}$AR" >&6; }
6174 { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6180 if test -z "$ac_cv_prog_AR"; then
6182 # Extract the first word of "ar", so it can be a program name with args.
6183 set dummy ar; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 if test -n "$ac_ct_AR"; then
6190 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_ac_ct_AR="ar"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6210 if test -n "$ac_ct_AR"; then
6211 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6212 echo "${ECHO_T}$ac_ct_AR" >&6; }
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6218 if test "x$ac_ct_AR" = x; then
6221 case $cross_compiling:$ac_tool_warned in
6223 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6224 whose name does not start with the host triplet. If you think this
6225 configuration is useful to you, please write to autoconf@gnu.org." >&5
6226 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6227 whose name does not start with the host triplet. If you think this
6228 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6229 ac_tool_warned=yes ;;
6237 # Extract the first word of "rm", so it can be a program name with args.
6238 set dummy rm; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_path_RM+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6256 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6269 if test -n "$RM"; then
6270 { echo "$as_me:$LINENO: result: $RM" >&5
6271 echo "${ECHO_T}$RM" >&6; }
6273 { echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6; }
6278 # Extract the first word of "sed", so it can be a program name with args.
6279 set dummy sed; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_path_SED+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6310 if test -n "$SED"; then
6311 { echo "$as_me:$LINENO: result: $SED" >&5
6312 echo "${ECHO_T}$SED" >&6; }
6314 { echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6; }
6319 # Extract the first word of "tar", so it can be a program name with args.
6320 set dummy tar; ac_word=$2
6321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323 if test "${ac_cv_path_TAR+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6351 if test -n "$TAR"; then
6352 { echo "$as_me:$LINENO: result: $TAR" >&5
6353 echo "${ECHO_T}$TAR" >&6; }
6355 { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6360 # Extract the first word of "pwd", so it can be a program name with args.
6361 set dummy pwd; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_BINPWD+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6391 BINPWD=$ac_cv_path_BINPWD
6392 if test -n "$BINPWD"; then
6393 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6394 echo "${ECHO_T}$BINPWD" >&6; }
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6402 # Extract the first word of "Graphviz", so it can be a program name with args.
6403 set dummy Graphviz; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6433 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6434 if test -n "$GRAPHVIZ"; then
6435 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6436 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6438 { echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6; }
6443 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6445 cat >>confdefs.h <<\_ACEOF
6446 #define HAVE_GRAPHVIZ 1
6449 if test "$llvm_cv_os_type" = "MingW" ; then
6450 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6453 cat >>confdefs.h <<_ACEOF
6454 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6458 # Extract the first word of "dot", so it can be a program name with args.
6459 set dummy dot; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_DOT+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6490 if test -n "$DOT"; then
6491 { echo "$as_me:$LINENO: result: $DOT" >&5
6492 echo "${ECHO_T}$DOT" >&6; }
6494 { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6499 if test "$DOT" != "echo dot" ; then
6501 cat >>confdefs.h <<\_ACEOF
6505 if test "$llvm_cv_os_type" = "MingW" ; then
6506 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6509 cat >>confdefs.h <<_ACEOF
6510 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6514 # Extract the first word of "fdp", so it can be a program name with args.
6515 set dummy fdp; ac_word=$2
6516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518 if test "${ac_cv_path_FDP+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6546 if test -n "$FDP"; then
6547 { echo "$as_me:$LINENO: result: $FDP" >&5
6548 echo "${ECHO_T}$FDP" >&6; }
6550 { echo "$as_me:$LINENO: result: no" >&5
6551 echo "${ECHO_T}no" >&6; }
6555 if test "$FDP" != "echo fdp" ; then
6557 cat >>confdefs.h <<\_ACEOF
6561 if test "$llvm_cv_os_type" = "MingW" ; then
6562 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6565 cat >>confdefs.h <<_ACEOF
6566 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6570 # Extract the first word of "neato", so it can be a program name with args.
6571 set dummy neato; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_path_NEATO+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6601 NEATO=$ac_cv_path_NEATO
6602 if test -n "$NEATO"; then
6603 { echo "$as_me:$LINENO: result: $NEATO" >&5
6604 echo "${ECHO_T}$NEATO" >&6; }
6606 { echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6; }
6611 if test "$NEATO" != "echo neato" ; then
6613 cat >>confdefs.h <<\_ACEOF
6614 #define HAVE_NEATO 1
6617 if test "$llvm_cv_os_type" = "MingW" ; then
6618 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6621 cat >>confdefs.h <<_ACEOF
6622 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6626 # Extract the first word of "twopi", so it can be a program name with args.
6627 set dummy twopi; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_TWOPI+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6657 TWOPI=$ac_cv_path_TWOPI
6658 if test -n "$TWOPI"; then
6659 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6660 echo "${ECHO_T}$TWOPI" >&6; }
6662 { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6667 if test "$TWOPI" != "echo twopi" ; then
6669 cat >>confdefs.h <<\_ACEOF
6670 #define HAVE_TWOPI 1
6673 if test "$llvm_cv_os_type" = "MingW" ; then
6674 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6677 cat >>confdefs.h <<_ACEOF
6678 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6682 # Extract the first word of "circo", so it can be a program name with args.
6683 set dummy circo; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_CIRCO+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6713 CIRCO=$ac_cv_path_CIRCO
6714 if test -n "$CIRCO"; then
6715 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6716 echo "${ECHO_T}$CIRCO" >&6; }
6718 { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6723 if test "$CIRCO" != "echo circo" ; then
6725 cat >>confdefs.h <<\_ACEOF
6726 #define HAVE_CIRCO 1
6729 if test "$llvm_cv_os_type" = "MingW" ; then
6730 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6733 cat >>confdefs.h <<_ACEOF
6734 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6738 for ac_prog in gv gsview32
6740 # Extract the first word of "$ac_prog", so it can be a program name with args.
6741 set dummy $ac_prog; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_GV+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 if test -n "$GV"; then
6772 { echo "$as_me:$LINENO: result: $GV" >&5
6773 echo "${ECHO_T}$GV" >&6; }
6775 { echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6; }
6780 test -n "$GV" && break
6782 test -n "$GV" || GV="echo gv"
6784 if test "$GV" != "echo gv" ; then
6786 cat >>confdefs.h <<\_ACEOF
6790 if test "$llvm_cv_os_type" = "MingW" ; then
6791 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6794 cat >>confdefs.h <<_ACEOF
6795 #define LLVM_PATH_GV "$GV${EXEEXT}"
6799 # Extract the first word of "dotty", so it can be a program name with args.
6800 set dummy dotty; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_path_DOTTY+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6818 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6830 DOTTY=$ac_cv_path_DOTTY
6831 if test -n "$DOTTY"; then
6832 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6833 echo "${ECHO_T}$DOTTY" >&6; }
6835 { echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6; }
6840 if test "$DOTTY" != "echo dotty" ; then
6842 cat >>confdefs.h <<\_ACEOF
6843 #define HAVE_DOTTY 1
6846 if test "$llvm_cv_os_type" = "MingW" ; then
6847 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6850 cat >>confdefs.h <<_ACEOF
6851 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6855 # Extract the first word of "xdot.py", so it can be a program name with args.
6856 set dummy xdot.py; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6886 XDOT_PY=$ac_cv_path_XDOT_PY
6887 if test -n "$XDOT_PY"; then
6888 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6889 echo "${ECHO_T}$XDOT_PY" >&6; }
6891 { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6896 if test "$XDOT_PY" != "echo xdot.py" ; then
6898 cat >>confdefs.h <<\_ACEOF
6899 #define HAVE_XDOT_PY 1
6902 if test "$llvm_cv_os_type" = "MingW" ; then
6903 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6906 cat >>confdefs.h <<_ACEOF
6907 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6912 # Find a good install program. We prefer a C program (faster),
6913 # so one script is as good as another. But avoid the broken or
6914 # incompatible versions:
6915 # SysV /etc/install, /usr/sbin/install
6916 # SunOS /usr/etc/install
6917 # IRIX /sbin/install
6919 # AmigaOS /C/install, which installs bootblocks on floppy discs
6920 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6921 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6922 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6923 # OS/2's system install, which has a completely different semantic
6924 # ./install, which can be erroneously created by make from ./install.sh.
6925 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6926 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6927 if test -z "$INSTALL"; then
6928 if test "${ac_cv_path_install+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 # Account for people who put trailing slashes in PATH elements.
6938 ./ | .// | /cC/* | \
6939 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6940 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6943 # OSF1 and SCO ODT 3.0 have their own names for install.
6944 # Don't use installbsd from OSF since it installs stuff as root
6946 for ac_prog in ginstall scoinst install; do
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6949 if test $ac_prog = install &&
6950 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6951 # AIX install. It has an incompatible calling convention.
6953 elif test $ac_prog = install &&
6954 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6955 # program-specific install script used by HP pwplus--don't use.
6958 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6971 if test "${ac_cv_path_install+set}" = set; then
6972 INSTALL=$ac_cv_path_install
6974 # As a last resort, use the slow shell script. Don't cache a
6975 # value for INSTALL within a source directory, because that will
6976 # break other packages using the cache if that directory is
6977 # removed, or if the value is a relative name.
6978 INSTALL=$ac_install_sh
6981 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6982 echo "${ECHO_T}$INSTALL" >&6; }
6984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6985 # It thinks the first close brace ends the variable substitution.
6986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6993 [\\/$]* | ?:[\\/]* ) ;;
6994 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6997 # Extract the first word of "bzip2", so it can be a program name with args.
6998 set dummy bzip2; ac_word=$2
6999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001 if test "${ac_cv_path_BZIP2+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7016 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 BZIP2=$ac_cv_path_BZIP2
7028 if test -n "$BZIP2"; then
7029 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7030 echo "${ECHO_T}$BZIP2" >&6; }
7032 { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7037 # Extract the first word of "cat", so it can be a program name with args.
7038 set dummy cat; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_CAT+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 if test -n "$CAT"; then
7069 { echo "$as_me:$LINENO: result: $CAT" >&5
7070 echo "${ECHO_T}$CAT" >&6; }
7072 { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7077 # Extract the first word of "doxygen", so it can be a program name with args.
7078 set dummy doxygen; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 DOXYGEN=$ac_cv_path_DOXYGEN
7108 if test -n "$DOXYGEN"; then
7109 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7110 echo "${ECHO_T}$DOXYGEN" >&6; }
7112 { echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6; }
7117 # Extract the first word of "groff", so it can be a program name with args.
7118 set dummy groff; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_path_GROFF+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 GROFF=$ac_cv_path_GROFF
7148 if test -n "$GROFF"; then
7149 { echo "$as_me:$LINENO: result: $GROFF" >&5
7150 echo "${ECHO_T}$GROFF" >&6; }
7152 { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7157 # Extract the first word of "gzip", so it can be a program name with args.
7158 set dummy gzip; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 GZIPBIN=$ac_cv_path_GZIPBIN
7188 if test -n "$GZIPBIN"; then
7189 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7190 echo "${ECHO_T}$GZIPBIN" >&6; }
7192 { echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6; }
7197 # Extract the first word of "pod2html", so it can be a program name with args.
7198 set dummy pod2html; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_path_POD2HTML+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 POD2HTML=$ac_cv_path_POD2HTML
7228 if test -n "$POD2HTML"; then
7229 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7230 echo "${ECHO_T}$POD2HTML" >&6; }
7232 { echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6; }
7237 # Extract the first word of "pod2man", so it can be a program name with args.
7238 set dummy pod2man; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_POD2MAN+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 POD2MAN=$ac_cv_path_POD2MAN
7268 if test -n "$POD2MAN"; then
7269 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7270 echo "${ECHO_T}$POD2MAN" >&6; }
7272 { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7277 # Extract the first word of "pdfroff", so it can be a program name with args.
7278 set dummy pdfroff; ac_word=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_PDFROFF+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 PDFROFF=$ac_cv_path_PDFROFF
7308 if test -n "$PDFROFF"; then
7309 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7310 echo "${ECHO_T}$PDFROFF" >&6; }
7312 { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7317 # Extract the first word of "runtest", so it can be a program name with args.
7318 set dummy runtest; ac_word=$2
7319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7321 if test "${ac_cv_path_RUNTEST+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7336 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 RUNTEST=$ac_cv_path_RUNTEST
7348 if test -n "$RUNTEST"; then
7349 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7350 echo "${ECHO_T}$RUNTEST" >&6; }
7352 { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7359 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7360 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7362 # Check whether --with-tclinclude was given.
7363 if test "${with_tclinclude+set}" = set; then
7364 withval=$with_tclinclude; with_tclinclude=${withval}
7369 if test "${ac_cv_path_tclsh+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 if test x"${with_tclinclude}" != x ; then
7374 if test -f ${with_tclinclude}/tclsh ; then
7375 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7376 elif test -f ${with_tclinclude}/src/tclsh ; then
7377 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7379 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7380 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7381 { (exit 1); exit 1; }; }
7387 if test x"${ac_cv_path_tclsh}" = x ; then
7388 { echo "$as_me:$LINENO: result: none" >&5
7389 echo "${ECHO_T}none" >&6; }
7390 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
7392 # Extract the first word of "$ac_prog", so it can be a program name with args.
7393 set dummy $ac_prog; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_TCLSH+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 TCLSH=$ac_cv_path_TCLSH
7423 if test -n "$TCLSH"; then
7424 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7425 echo "${ECHO_T}$TCLSH" >&6; }
7427 { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7432 test -n "$TCLSH" && break
7435 if test x"${TCLSH}" = x ; then
7436 ac_cv_path_tclsh='';
7438 ac_cv_path_tclsh="${TCLSH}";
7441 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7442 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7443 TCLSH="${ac_cv_path_tclsh}"
7447 # Extract the first word of "zip", so it can be a program name with args.
7448 set dummy zip; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_ZIP+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 if test -n "$ZIP"; then
7479 { echo "$as_me:$LINENO: result: $ZIP" >&5
7480 echo "${ECHO_T}$ZIP" >&6; }
7482 { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7487 for ac_prog in ocamlc
7489 # Extract the first word of "$ac_prog", so it can be a program name with args.
7490 set dummy $ac_prog; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_OCAMLC+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 OCAMLC=$ac_cv_path_OCAMLC
7520 if test -n "$OCAMLC"; then
7521 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7522 echo "${ECHO_T}$OCAMLC" >&6; }
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7529 test -n "$OCAMLC" && break
7532 for ac_prog in ocamlopt
7534 # Extract the first word of "$ac_prog", so it can be a program name with args.
7535 set dummy $ac_prog; ac_word=$2
7536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 OCAMLOPT=$ac_cv_path_OCAMLOPT
7565 if test -n "$OCAMLOPT"; then
7566 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7567 echo "${ECHO_T}$OCAMLOPT" >&6; }
7569 { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7574 test -n "$OCAMLOPT" && break
7577 for ac_prog in ocamldep
7579 # Extract the first word of "$ac_prog", so it can be a program name with args.
7580 set dummy $ac_prog; ac_word=$2
7581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7583 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 OCAMLDEP=$ac_cv_path_OCAMLDEP
7610 if test -n "$OCAMLDEP"; then
7611 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7612 echo "${ECHO_T}$OCAMLDEP" >&6; }
7614 { echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6; }
7619 test -n "$OCAMLDEP" && break
7622 for ac_prog in ocamldoc
7624 # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 OCAMLDOC=$ac_cv_path_OCAMLDOC
7655 if test -n "$OCAMLDOC"; then
7656 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7657 echo "${ECHO_T}$OCAMLDOC" >&6; }
7659 { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7664 test -n "$OCAMLDOC" && break
7667 for ac_prog in gas as
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_GAS+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 if test -n "$GAS"; then
7701 { echo "$as_me:$LINENO: result: $GAS" >&5
7702 echo "${ECHO_T}$GAS" >&6; }
7704 { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7709 test -n "$GAS" && break
7713 { echo "$as_me:$LINENO: checking for linker version" >&5
7714 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7715 if test "${llvm_cv_link_version+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 version_string="$(ld -v 2>&1 | head -1)"
7722 if (echo "$version_string" | grep -q "ld64"); then
7723 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7725 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7729 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7730 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7732 cat >>confdefs.h <<_ACEOF
7733 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7738 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7739 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7740 if test "${llvm_cv_link_use_r+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 ac_cpp='$CPP $CPPFLAGS'
7745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750 CFLAGS="$CFLAGS -Wl,-R."
7751 cat >conftest.$ac_ext <<_ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7766 rm -f conftest.$ac_objext conftest$ac_exeext
7767 if { (ac_try="$ac_link"
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773 (eval "$ac_link") 2>conftest.er1
7775 grep -v '^ *+' conftest.er1 >conftest.err
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7781 { (case "(($ac_try" in
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_try") 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; } &&
7790 { ac_try='test -s conftest$ac_exeext'
7791 { (case "(($ac_try" in
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796 (eval "$ac_try") 2>&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 llvm_cv_link_use_r=yes
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7805 llvm_cv_link_use_r=no
7808 rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7812 ac_cpp='$CPP $CPPFLAGS'
7813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7820 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7821 if test "$llvm_cv_link_use_r" = yes ; then
7823 cat >>confdefs.h <<\_ACEOF
7824 #define HAVE_LINK_R 1
7830 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7831 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7832 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 ac_cpp='$CPP $CPPFLAGS'
7837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7842 CFLAGS="$CFLAGS -rdynamic"
7843 cat >conftest.$ac_ext <<_ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7858 rm -f conftest.$ac_objext conftest$ac_exeext
7859 if { (ac_try="$ac_link"
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_link") 2>conftest.er1
7867 grep -v '^ *+' conftest.er1 >conftest.err
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7873 { (case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_try") 2>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; } &&
7882 { ac_try='test -s conftest$ac_exeext'
7883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 llvm_cv_link_use_export_dynamic=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 llvm_cv_link_use_export_dynamic=no
7900 rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7904 ac_cpp='$CPP $CPPFLAGS'
7905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7912 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7913 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7915 cat >>confdefs.h <<\_ACEOF
7916 #define HAVE_LINK_EXPORT_DYNAMIC 1
7922 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7923 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7924 if test "${llvm_cv_link_use_version_script+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935 # The following code is from the autoconf manual,
7936 # "11.13: Limitations of Usual Tools".
7937 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7938 # Use mktemp if possible; otherwise fall back on mkdir,
7939 # with $RANDOM to make collisions less likely.
7943 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7945 test -n "$tmp" && test -d "$tmp"
7947 tmp=$TMPDIR/foo$$-$RANDOM
7948 (umask 077 && mkdir "$tmp")
7951 echo "{" > "$tmp/export.map"
7952 echo " global: main;" >> "$tmp/export.map"
7953 echo " local: *;" >> "$tmp/export.map"
7954 echo "};" >> "$tmp/export.map"
7956 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7957 cat >conftest.$ac_ext <<_ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (ac_try="$ac_link"
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979 (eval "$ac_link") 2>conftest.er1
7981 grep -v '^ *+' conftest.er1 >conftest.err
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7987 { (case "(($ac_try" in
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_try") 2>&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; } &&
7996 { ac_try='test -s conftest$ac_exeext'
7997 { (case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_try") 2>&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
8006 llvm_cv_link_use_version_script=yes
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8011 llvm_cv_link_use_version_script=no
8014 rm -f core conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
8016 rm "$tmp/export.map"
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8027 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8028 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8029 if test "$llvm_cv_link_use_version_script" = yes ; then
8030 HAVE_LINK_VERSION_SCRIPT=1
8037 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8038 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8039 if test "${ac_cv_c_const+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8052 /* FIXME: Include the comments suggested by Paul. */
8054 /* Ultrix mips cc rejects this. */
8055 typedef int charset[2];
8057 /* SunOS 4.1.1 cc rejects this. */
8058 char const *const *ccp;
8060 /* NEC SVR4.0.2 mips cc rejects this. */
8061 struct point {int x, y;};
8062 static struct point const zero = {0,0};
8063 /* AIX XL C 1.02.0.0 rejects this.
8064 It does not let you subtract one const X* pointer from another in
8065 an arm of an if-expression whose if-part is not a constant
8067 const char *g = "string";
8068 ccp = &g + (g ? g-g : 0);
8069 /* HPUX 7.0 cc rejects these. */
8072 ccp = (char const *const *) p;
8073 { /* SCO 3.2v4 cc rejects this. */
8075 char const *s = 0 ? (char *) 0 : (char const *) 0;
8080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8082 const int *foo = &x[0];
8085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8086 typedef const int *iptr;
8090 { /* AIX XL C 1.02.0.0 rejects this saying
8091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8092 struct s { int j; const int *ap[3]; };
8093 struct s *b; b->j = 5;
8095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8099 return !x[0] && !zero.x;
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121 { (case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_try") 2>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_try") 2>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8151 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8152 if test $ac_cv_c_const = no; then
8154 cat >>confdefs.h <<\_ACEOF
8166 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8167 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8168 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8169 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 cat >conftest.$ac_ext <<_ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 #include <sys/types.h>
8191 rm -f conftest.$ac_objext
8192 if { (ac_try="$ac_compile"
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_compile") 2>conftest.er1
8200 grep -v '^ *+' conftest.er1 >conftest.err
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8206 { (case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_try") 2>&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try='test -s conftest.$ac_objext'
8216 { (case "(($ac_try" in
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_try") 2>&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; }; then
8225 eval "$as_ac_Header=yes"
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 eval "$as_ac_Header=no"
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 ac_res=`eval echo '${'$as_ac_Header'}'`
8236 { echo "$as_me:$LINENO: result: $ac_res" >&5
8237 echo "${ECHO_T}$ac_res" >&6; }
8238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8243 ac_header_dirent=$ac_hdr; break
8247 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8248 if test $ac_header_dirent = dirent.h; then
8249 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8250 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8251 if test "${ac_cv_search_opendir+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 ac_func_search_save_LIBS=$LIBS
8255 cat >conftest.$ac_ext <<_ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8262 /* Override any GCC internal prototype to avoid an error.
8263 Use char because int might match the return type of a GCC
8264 builtin and then its argument prototype would still apply. */
8277 for ac_lib in '' dir; do
8278 if test -z "$ac_lib"; then
8279 ac_res="none required"
8282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8284 rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (ac_try="$ac_link"
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_link") 2>conftest.er1
8293 grep -v '^ *+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299 { (case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_try") 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; } &&
8308 { ac_try='test -s conftest$ac_exeext'
8309 { (case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_try") 2>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_cv_search_opendir=$ac_res
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8326 rm -f core conftest.err conftest.$ac_objext \
8328 if test "${ac_cv_search_opendir+set}" = set; then
8332 if test "${ac_cv_search_opendir+set}" = set; then
8335 ac_cv_search_opendir=no
8338 LIBS=$ac_func_search_save_LIBS
8340 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8341 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8342 ac_res=$ac_cv_search_opendir
8343 if test "$ac_res" != no; then
8344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8349 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8350 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8351 if test "${ac_cv_search_opendir+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 ac_func_search_save_LIBS=$LIBS
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8362 /* Override any GCC internal prototype to avoid an error.
8363 Use char because int might match the return type of a GCC
8364 builtin and then its argument prototype would still apply. */
8377 for ac_lib in '' x; do
8378 if test -z "$ac_lib"; then
8379 ac_res="none required"
8382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (ac_try="$ac_link"
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_link") 2>conftest.er1
8393 grep -v '^ *+' conftest.er1 >conftest.err
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8399 { (case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_try") 2>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; } &&
8408 { ac_try='test -s conftest$ac_exeext'
8409 { (case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_try") 2>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 ac_cv_search_opendir=$ac_res
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8426 rm -f core conftest.err conftest.$ac_objext \
8428 if test "${ac_cv_search_opendir+set}" = set; then
8432 if test "${ac_cv_search_opendir+set}" = set; then
8435 ac_cv_search_opendir=no
8438 LIBS=$ac_func_search_save_LIBS
8440 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8441 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8442 ac_res=$ac_cv_search_opendir
8443 if test "$ac_res" != no; then
8444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8451 for ac_header in dlfcn.h
8453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 ac_res=`eval echo '${'$as_ac_Header'}'`
8461 { echo "$as_me:$LINENO: result: $ac_res" >&5
8462 echo "${ECHO_T}$ac_res" >&6; }
8464 # Is the header compilable?
8465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8467 cat >conftest.$ac_ext <<_ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #include <$ac_header>
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_compile") 2>conftest.er1
8485 grep -v '^ *+' conftest.er1 >conftest.err
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491 { (case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_try") 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest.$ac_objext'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_try") 2>&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_header_compiler=yes
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_header_compiler=no
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8520 echo "${ECHO_T}$ac_header_compiler" >&6; }
8522 # Is the header present?
8523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 #include <$ac_header>
8533 if { (ac_try="$ac_cpp conftest.$ac_ext"
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8541 grep -v '^ *+' conftest.er1 >conftest.err
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } >/dev/null; then
8546 if test -s conftest.err; then
8547 ac_cpp_err=$ac_c_preproc_warn_flag
8548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8555 if test -z "$ac_cpp_err"; then
8556 ac_header_preproc=yes
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 ac_header_preproc=no
8564 rm -f conftest.err conftest.$ac_ext
8565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8566 echo "${ECHO_T}$ac_header_preproc" >&6; }
8568 # So? What about this header?
8569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8575 ac_header_preproc=yes
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8591 ## ------------------------------ ##
8592 ## Report this to bugs@yourdomain ##
8593 ## ------------------------------ ##
8595 ) | sed "s/^/$as_me: WARNING: /" >&2
8598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 eval "$as_ac_Header=\$ac_header_preproc"
8605 ac_res=`eval echo '${'$as_ac_Header'}'`
8606 { echo "$as_me:$LINENO: result: $ac_res" >&5
8607 echo "${ECHO_T}$ac_res" >&6; }
8610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8611 cat >>confdefs.h <<_ACEOF
8612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8619 # Check whether --enable-ltdl-install was given.
8620 if test "${enable_ltdl_install+set}" = set; then
8621 enableval=$enable_ltdl_install;
8627 if test x"${enable_ltdl_install-no}" != xno; then
8629 INSTALL_LTDL_FALSE='#'
8631 INSTALL_LTDL_TRUE='#'
8637 if test x"${enable_ltdl_convenience-no}" != xno; then
8638 CONVENIENCE_LTDL_TRUE=
8639 CONVENIENCE_LTDL_FALSE='#'
8641 CONVENIENCE_LTDL_TRUE='#'
8642 CONVENIENCE_LTDL_FALSE=
8646 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8647 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8649 libname_spec='lib$name'
8657 shlibpath_overrides_runpath=unknown
8659 dynamic_linker="$host_os ld.so"
8660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8661 if test "$GCC" = yes; then
8662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8663 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8664 # if the path contains ";" then we assume it to be the separator
8665 # otherwise default to the standard path separator (i.e. ":") - it is
8666 # assumed that no part of a normal pathname contains ";" but that should
8667 # okay in the real world where ";" in dirpaths is itself problematic.
8668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8675 need_lib_prefix=unknown
8676 hardcode_into_libs=no
8678 # when you set need_version to no, make sure it does not cause -set_version
8679 # flags to be left without arguments
8680 need_version=unknown
8685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8686 shlibpath_var=LIBPATH
8688 # AIX 3 has no versioning support, so we append a major version to the name.
8689 soname_spec='${libname}${release}${shared_ext}$major'
8696 hardcode_into_libs=yes
8697 if test "$host_cpu" = ia64; then
8698 # AIX 5 supports IA64
8699 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8700 shlibpath_var=LD_LIBRARY_PATH
8702 # With GCC up to 2.95.x, collect2 would create an import file
8703 # for dependence libraries. The import file would start with
8704 # the line `#! .'. This would cause the generated library to
8705 # depend on `.', always an invalid library. This was fixed in
8706 # development snapshots of GCC prior to 3.0.
8708 aix4 | aix4.[01] | aix4.[01].*)
8709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8711 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8718 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8719 # soname into executable. Probably we can add versioning support to
8720 # collect2, so additional links can be useful in future.
8721 if test "$aix_use_runtimelinking" = yes; then
8722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8723 # instead of lib<name>.a to let people know that these are not
8724 # typical AIX shared libraries.
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8727 # We preserve .a as extension for shared libraries through AIX4.2
8728 # and later when we are not doing run time linking.
8729 library_names_spec='${libname}${release}.a $libname.a'
8730 soname_spec='${libname}${release}${shared_ext}$major'
8732 shlibpath_var=LIBPATH
8737 library_names_spec='$libname.ixlibrary $libname.a'
8738 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8739 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'
8743 library_names_spec='${libname}${shared_ext}'
8744 dynamic_linker="$host_os ld.so"
8745 shlibpath_var=LIBRARY_PATH
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8754 shlibpath_var=LD_LIBRARY_PATH
8755 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8756 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8757 # the default ld.so.conf also contains /usr/contrib/lib and
8758 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8759 # libtool to hard-code these into programs
8762 cygwin* | mingw* | pw32*)
8763 version_type=windows
8768 case $GCC,$host_os in
8769 yes,cygwin* | yes,mingw* | yes,pw32*)
8770 library_names_spec='$libname.dll.a'
8771 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8772 postinstall_cmds='base_file=`basename \${file}`~
8773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8774 dldir=$destdir/`dirname \$dlpath`~
8775 test -d \$dldir || mkdir -p \$dldir~
8776 $install_prog $dir/$dlname \$dldir/$dlname~
8777 chmod a+x \$dldir/$dlname'
8778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8779 dlpath=$dir/\$dldll~
8781 shlibpath_overrides_runpath=yes
8785 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8786 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8787 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8790 # MinGW DLLs use traditional 'lib' prefix
8791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8792 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8793 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8794 # It is most probably a Windows format PATH printed by
8795 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8796 # path with ; separators, and with drive letters. We can handle the
8797 # drive letters (cygwin fileutils understands them), so leave them,
8798 # especially as we might pass files found there to a mingw objdump,
8799 # which wouldn't understand a cygwinified path. Ahh.
8800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8806 # pw32 DLLs use 'pw' prefix rather than 'lib'
8807 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8813 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8816 dynamic_linker='Win32 ld.exe'
8817 # FIXME: first we should search . and the directory the executable is in
8821 darwin* | rhapsody*)
8822 dynamic_linker="$host_os dyld"
8826 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8827 soname_spec='${libname}${release}${major}$shared_ext'
8828 shlibpath_overrides_runpath=yes
8829 shlibpath_var=DYLD_LIBRARY_PATH
8830 shrext_cmds='.dylib'
8831 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8832 if test "$GCC" = yes; then
8833 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"`
8835 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 shlibpath_var=LD_LIBRARY_PATH
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 shlibpath_var=LD_LIBRARY_PATH
8860 shlibpath_overrides_runpath=no
8861 hardcode_into_libs=yes
8862 dynamic_linker='GNU ld.so'
8865 freebsd* | dragonfly*)
8866 # DragonFly does not have aout. When/if they implement a new
8867 # versioning mechanism, adjust this.
8868 if test -x /usr/bin/objformat; then
8869 objformat=`/usr/bin/objformat`
8872 freebsd[123].*) objformat=aout ;;
8876 version_type=freebsd-$objformat
8877 case $version_type in
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8888 shlibpath_var=LD_LIBRARY_PATH
8891 shlibpath_overrides_runpath=yes
8893 freebsd3.[01]* | freebsdelf3.[01]*)
8894 shlibpath_overrides_runpath=yes
8895 hardcode_into_libs=yes
8897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8899 shlibpath_overrides_runpath=no
8900 hardcode_into_libs=yes
8902 freebsd*) # from 4.6 on
8903 shlibpath_overrides_runpath=yes
8904 hardcode_into_libs=yes
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 hardcode_into_libs=yes
8919 hpux9* | hpux10* | hpux11*)
8920 # Give a soname corresponding to the major version so that dld.sl refuses to
8921 # link against other versions.
8928 hardcode_into_libs=yes
8929 dynamic_linker="$host_os dld.so"
8930 shlibpath_var=LD_LIBRARY_PATH
8931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 if test "X$HPUX_IA64_MODE" = X32; then
8935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8943 hardcode_into_libs=yes
8944 dynamic_linker="$host_os dld.sl"
8945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8954 dynamic_linker="$host_os dld.sl"
8955 shlibpath_var=SHLIB_PATH
8956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8962 postinstall_cmds='chmod 555 $lib'
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=no
8974 hardcode_into_libs=yes
8977 irix5* | irix6* | nonstopux*)
8979 nonstopux*) version_type=nonstopux ;;
8981 if test "$lt_cv_prog_gnu_ld" = yes; then
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8992 irix5* | nonstopux*)
8996 case $LD in # libtool.m4 will add one of these switches to LD
8997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8998 libsuff= shlibsuff= libmagic=32-bit;;
8999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9000 libsuff=32 shlibsuff=N32 libmagic=N32;;
9001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9002 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9003 *) libsuff= shlibsuff= libmagic=never-match;;
9007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9008 shlibpath_overrides_runpath=no
9009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9011 hardcode_into_libs=yes
9014 # No shared lib support for Linux oldld, aout, or coff.
9015 linux*oldld* | linux*aout* | linux*coff*)
9019 # This must be Linux ELF.
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025 soname_spec='${libname}${release}${shared_ext}$major'
9026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=no
9029 # This implies no fast_install, which is unacceptable.
9030 # Some rework will be needed to allow for fast_install
9031 # before this can be enabled.
9032 hardcode_into_libs=yes
9034 # Append ld.so.conf contents to the search path
9035 if test -f /etc/ld.so.conf; then
9036 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' ' '`
9037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9040 # We used to test for /lib/ld.so.1 and disable shared libraries on
9041 # powerpc, because MkLinux only supported shared libraries with the
9042 # GNU dynamic linker. Since this was broken with cross compilers,
9043 # most powerpc-linux boxes support dynamic linking these days and
9044 # people can always --disable-shared, the test was removed, and we
9045 # assume the GNU/Linux dynamic linker is in use.
9046 dynamic_linker='GNU/Linux ld.so'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=no
9057 hardcode_into_libs=yes
9058 dynamic_linker='GNU ld.so'
9065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068 dynamic_linker='NetBSD (a.out) ld.so'
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 dynamic_linker='NetBSD ld.elf_so'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9076 hardcode_into_libs=yes
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=yes
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=yes
9098 sys_lib_dlsearch_path_spec="/usr/lib"
9100 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9102 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9103 *) need_version=no ;;
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9110 openbsd2.[89] | openbsd2.[89].*)
9111 shlibpath_overrides_runpath=no
9114 shlibpath_overrides_runpath=yes
9118 shlibpath_overrides_runpath=yes
9123 libname_spec='$name'
9126 library_names_spec='$libname${shared_ext} $libname.a'
9127 dynamic_linker='OS/2 ld.exe'
9128 shlibpath_var=LIBPATH
9131 osf3* | osf4* | osf5*)
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9139 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 shlibpath_overrides_runpath=yes
9150 hardcode_into_libs=yes
9151 # ldd complains unless libraries are executable
9152 postinstall_cmds='chmod +x $lib'
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9159 shlibpath_var=LD_LIBRARY_PATH
9160 shlibpath_overrides_runpath=yes
9161 if test "$with_gnu_ld" = yes; then
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 case $host_vendor in
9174 shlibpath_overrides_runpath=no
9176 export_dynamic_flag_spec='${wl}-Blargedynsym'
9177 runpath_var=LD_RUN_PATH
9185 shlibpath_overrides_runpath=no
9186 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9192 if test -d /usr/nec ;then
9194 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9195 soname_spec='$libname${shared_ext}.$major'
9196 shlibpath_var=LD_LIBRARY_PATH
9200 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9201 version_type=freebsd-elf
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 hardcode_into_libs=yes
9208 if test "$with_gnu_ld" = yes; then
9209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9210 shlibpath_overrides_runpath=no
9212 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9213 shlibpath_overrides_runpath=yes
9216 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9220 sys_lib_dlsearch_path_spec='/usr/lib'
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9234 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9235 echo "${ECHO_T}$dynamic_linker" >&6; }
9236 test "$dynamic_linker" = no && can_build_shared=no
9238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9239 if test "$GCC" = yes; then
9240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9244 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9245 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9246 if test "${libltdl_cv_shlibext+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 eval libltdl_cv_shlibext=$shrext_cmds
9254 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9255 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9256 if test -n "$libltdl_cv_shlibext"; then
9258 cat >>confdefs.h <<_ACEOF
9259 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9265 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9266 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9267 if test "${libltdl_cv_sys_search_path+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9272 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9273 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9274 if test -n "$libltdl_cv_sys_search_path"; then
9276 for dir in $libltdl_cv_sys_search_path; do
9277 if test -z "$sys_search_path"; then
9278 sys_search_path="$dir"
9280 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9284 cat >>confdefs.h <<_ACEOF
9285 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9290 { echo "$as_me:$LINENO: checking for objdir" >&5
9291 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9292 if test "${libltdl_cv_objdir+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 libltdl_cv_objdir="$objdir"
9296 if test -n "$objdir"; then
9299 rm -f .libs 2>/dev/null
9300 mkdir .libs 2>/dev/null
9301 if test -d .libs; then
9302 libltdl_cv_objdir=.libs
9304 # MS-DOS does not allow filenames that begin with a dot.
9305 libltdl_cv_objdir=_libs
9307 rmdir .libs 2>/dev/null
9311 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9312 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9314 cat >>confdefs.h <<_ACEOF
9315 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9323 # Check for command to grab the raw symbol name followed by C symbol from nm.
9324 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9325 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9326 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 # These are sane defaults that work on at least a few old systems.
9331 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9333 # Character class describing NM global symbol codes.
9334 symcode='[BCDEGRST]'
9336 # Regexp to match symbols that can be accessed directly from C.
9337 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9339 # Transform an extracted symbol line into a proper C declaration
9340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9342 # Transform an extracted symbol line into symbol name and symbol address
9343 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'"
9345 # Define system-specific variables.
9350 cygwin* | mingw* | pw32*)
9351 symcode='[ABCDGISTW]'
9353 hpux*) # Its linker distinguishes data from code symbols
9354 if test "$host_cpu" = ia64; then
9355 symcode='[ABCDEGRST]'
9357 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9358 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'"
9361 if test "$host_cpu" = ia64; then
9362 symcode='[ABCDGIRSTW]'
9363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9364 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'"
9368 symcode='[BCDEGRST]'
9371 symcode='[BCDEGQRST]'
9382 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9390 # Handle CRLF in mingw tool chain
9394 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9398 # If we're using GNU nm, then use its standard symbol codes.
9399 case `$NM -V 2>&1` in
9400 *GNU* | *'with BFD'*)
9401 symcode='[ABCDGIRSTW]' ;;
9404 # Try without a prefix undercore, then with it.
9405 for ac_symprfx in "" "_"; do
9407 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9408 symxfrm="\\1 $ac_symprfx\\2 \\2"
9410 # Write the raw and C identifiers.
9411 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9413 # Check to see that the pipe works correctly.
9417 cat > conftest.$ac_ext <<EOF
9422 void nm_test_func(){}
9426 int main(){nm_test_var='a';nm_test_func();return(0);}
9429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9430 (eval $ac_compile) 2>&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; then
9434 # Now try to grab the symbols.
9436 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9437 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } && test -s "$nlist"; then
9441 # Try sorting and uniquifying the output.
9442 if sort "$nlist" | uniq > "$nlist"T; then
9443 mv -f "$nlist"T "$nlist"
9448 # Make sure that we snagged all the symbols we need.
9449 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9450 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9451 cat <<EOF > conftest.$ac_ext
9457 # Now generate the symbol file.
9458 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9460 cat <<EOF >> conftest.$ac_ext
9461 #if defined (__STDC__) && __STDC__
9462 # define lt_ptr_t void *
9464 # define lt_ptr_t char *
9468 /* The mapping between symbol names and symbols. */
9473 lt_preloaded_symbols[] =
9476 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9477 cat <<\EOF >> conftest.$ac_ext
9485 # Now try linking the two files.
9486 mv conftest.$ac_objext conftstm.$ac_objext
9487 lt_save_LIBS="$LIBS"
9488 lt_save_CFLAGS="$CFLAGS"
9489 LIBS="conftstm.$ac_objext"
9490 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9498 LIBS="$lt_save_LIBS"
9499 CFLAGS="$lt_save_CFLAGS"
9501 echo "cannot find nm_test_func in $nlist" >&5
9504 echo "cannot find nm_test_var in $nlist" >&5
9507 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9510 echo "$progname: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9513 rm -f conftest* conftst*
9515 # Do not use the global_symbol_pipe unless it works.
9516 if test "$pipe_works" = yes; then
9519 lt_cv_sys_global_symbol_pipe=
9525 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9526 lt_cv_sys_global_symbol_to_cdecl=
9528 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9529 { echo "$as_me:$LINENO: result: failed" >&5
9530 echo "${ECHO_T}failed" >&6; }
9532 { echo "$as_me:$LINENO: result: ok" >&5
9533 echo "${ECHO_T}ok" >&6; }
9537 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9538 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9539 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9543 libltdl_cv_preloaded_symbols=yes
9545 libltdl_cv_preloaded_symbols=no
9549 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9550 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9551 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9553 cat >>confdefs.h <<\_ACEOF
9554 #define HAVE_PRELOADED_SYMBOLS 1
9562 ac_cpp='$CPP $CPPFLAGS'
9563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9568 { echo "$as_me:$LINENO: checking for shl_load" >&5
9569 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9570 if test "${ac_cv_func_shl_load+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9581 #define shl_load innocuous_shl_load
9583 /* System header to define __stub macros and hopefully few prototypes,
9584 which can conflict with char shl_load (); below.
9585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9586 <limits.h> exists even on freestanding compilers. */
9589 # include <limits.h>
9591 # include <assert.h>
9596 /* Override any GCC internal prototype to avoid an error.
9597 Use char because int might match the return type of a GCC
9598 builtin and then its argument prototype would still apply. */
9603 /* The GNU C library defines this for functions which it implements
9604 to always fail with ENOSYS. Some functions are actually named
9605 something starting with __ and the normal name is an alias. */
9606 #if defined __stub_shl_load || defined __stub___shl_load
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_link") 2>conftest.er1
9627 grep -v '^ *+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9633 { (case "(($ac_try" in
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_try") 2>&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_try") 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 ac_cv_func_shl_load=yes
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 ac_cv_func_shl_load=no
9660 rm -f core conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9664 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9665 if test $ac_cv_func_shl_load = yes; then
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_SHL_LOAD 1
9672 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9673 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9674 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 ac_check_lib_save_LIBS=$LIBS
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9686 /* Override any GCC internal prototype to avoid an error.
9687 Use char because int might match the return type of a GCC
9688 builtin and then its argument prototype would still apply. */
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_link") 2>conftest.er1
9710 grep -v '^ *+' conftest.er1 >conftest.err
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716 { (case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_try") 2>&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest$ac_exeext'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_lib_dld_shl_load=yes
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 ac_cv_lib_dld_shl_load=no
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9747 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9748 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9749 if test $ac_cv_lib_dld_shl_load = yes; then
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_SHL_LOAD 1
9755 LIBADD_DL="$LIBADD_DL -ldld"
9757 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9758 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9759 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 ac_check_lib_save_LIBS=$LIBS
9764 cat >conftest.$ac_ext <<_ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9771 /* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
9795 grep -v '^ *+' conftest.er1 >conftest.err
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801 { (case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_try") 2>&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; } &&
9810 { ac_try='test -s conftest$ac_exeext'
9811 { (case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_try") 2>&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_lib_dl_dlopen=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 ac_cv_lib_dl_dlopen=no
9828 rm -f core conftest.err conftest.$ac_objext \
9829 conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9832 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9833 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9834 if test $ac_cv_lib_dl_dlopen = yes; then
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_LIBDL 1
9840 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9860 rm -f conftest.$ac_objext conftest$ac_exeext
9861 if { (ac_try="$ac_link"
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_link") 2>conftest.er1
9869 grep -v '^ *+' conftest.er1 >conftest.err
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9875 { (case "(($ac_try" in
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_try") 2>&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; } &&
9884 { ac_try='test -s conftest$ac_exeext'
9885 { (case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_try") 2>&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9895 cat >>confdefs.h <<\_ACEOF
9896 #define HAVE_LIBDL 1
9898 libltdl_cv_func_dlopen="yes"
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9904 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9905 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 ac_check_lib_save_LIBS=$LIBS
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 /* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947 { (case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_try") 2>&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_lib_svld_dlopen=yes
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 ac_cv_lib_svld_dlopen=no
9974 rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9979 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9980 if test $ac_cv_lib_svld_dlopen = yes; then
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_LIBDL 1
9986 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9988 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9989 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9990 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 ac_check_lib_save_LIBS=$LIBS
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10002 /* Override any GCC internal prototype to avoid an error.
10003 Use char because int might match the return type of a GCC
10004 builtin and then its argument prototype would still apply. */
10012 return dld_link ();
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (ac_try="$ac_link"
10019 case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024 (eval "$ac_link") 2>conftest.er1
10026 grep -v '^ *+' conftest.er1 >conftest.err
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10032 { (case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037 (eval "$ac_try") 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try='test -s conftest$ac_exeext'
10042 { (case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_try") 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_cv_lib_dld_dld_link=yes
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_cv_lib_dld_dld_link=no
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10063 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10064 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10065 if test $ac_cv_lib_dld_dld_link = yes; then
10067 cat >>confdefs.h <<\_ACEOF
10071 LIBADD_DL="$LIBADD_DL -ldld"
10073 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10074 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10075 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10086 #define _dyld_func_lookup innocuous__dyld_func_lookup
10088 /* System header to define __stub macros and hopefully few prototypes,
10089 which can conflict with char _dyld_func_lookup (); below.
10090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10091 <limits.h> exists even on freestanding compilers. */
10094 # include <limits.h>
10096 # include <assert.h>
10099 #undef _dyld_func_lookup
10101 /* Override any GCC internal prototype to avoid an error.
10102 Use char because int might match the return type of a GCC
10103 builtin and then its argument prototype would still apply. */
10107 char _dyld_func_lookup ();
10108 /* The GNU C library defines this for functions which it implements
10109 to always fail with ENOSYS. Some functions are actually named
10110 something starting with __ and the normal name is an alias. */
10111 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10118 return _dyld_func_lookup ();
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_link") 2>conftest.er1
10132 grep -v '^ *+' conftest.er1 >conftest.err
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } &&
10137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest$ac_exeext'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_cv_func__dyld_func_lookup=yes
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_cv_func__dyld_func_lookup=no
10165 rm -f core conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10168 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10169 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10170 if test $ac_cv_func__dyld_func_lookup = yes; then
10172 cat >>confdefs.h <<\_ACEOF
10173 #define HAVE_DYLD 1
10187 rm -f core conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10199 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10201 lt_save_LIBS="$LIBS"
10202 LIBS="$LIBS $LIBADD_DL"
10204 for ac_func in dlerror
10206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 cat >conftest.$ac_ext <<_ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10220 #define $ac_func innocuous_$ac_func
10222 /* System header to define __stub macros and hopefully few prototypes,
10223 which can conflict with char $ac_func (); below.
10224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10225 <limits.h> exists even on freestanding compilers. */
10228 # include <limits.h>
10230 # include <assert.h>
10235 /* Override any GCC internal prototype to avoid an error.
10236 Use char because int might match the return type of a GCC
10237 builtin and then its argument prototype would still apply. */
10242 /* The GNU C library defines this for functions which it implements
10243 to always fail with ENOSYS. Some functions are actually named
10244 something starting with __ and the normal name is an alias. */
10245 #if defined __stub_$ac_func || defined __stub___$ac_func
10252 return $ac_func ();
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (ac_try="$ac_link"
10259 case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264 (eval "$ac_link") 2>conftest.er1
10266 grep -v '^ *+' conftest.er1 >conftest.err
10268 cat conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } &&
10271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10272 { (case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_try") 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try='test -s conftest$ac_exeext'
10282 { (case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_try") 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
10291 eval "$as_ac_var=yes"
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10296 eval "$as_ac_var=no"
10299 rm -f core conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
10302 ac_res=`eval echo '${'$as_ac_var'}'`
10303 { echo "$as_me:$LINENO: result: $ac_res" >&5
10304 echo "${ECHO_T}$ac_res" >&6; }
10305 if test `eval echo '${'$as_ac_var'}'` = yes; then
10306 cat >>confdefs.h <<_ACEOF
10307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10313 LIBS="$lt_save_LIBS"
10316 ac_cpp='$CPP $CPPFLAGS'
10317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10323 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10324 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10325 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 ac_cv_sys_symbol_underscore=no
10329 cat > conftest.$ac_ext <<EOF
10330 void nm_test_func(){}
10331 int main(){nm_test_func;return 0;}
10333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10334 (eval $ac_compile) 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; then
10338 # Now try to grab the symbols.
10339 ac_nlist=conftest.nm
10340 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10341 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } && test -s "$ac_nlist"; then
10345 # See whether the symbols have a leading underscore.
10346 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10347 ac_cv_sys_symbol_underscore=yes
10349 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10352 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10356 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10359 echo "configure: failed program was:" >&5
10365 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10366 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10369 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10370 if test x"$libltdl_cv_func_dlopen" = xyes ||
10371 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10372 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10373 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10374 if test "${libltdl_cv_need_uscore+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 libltdl_cv_need_uscore=unknown
10379 LIBS="$LIBS $LIBADD_DL"
10380 if test "$cross_compiling" = yes; then :
10381 libltdl_cv_need_uscore=cross
10383 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10384 lt_status=$lt_dlunknown
10385 cat > conftest.$ac_ext <<EOF
10386 #line 10386 "configure"
10387 #include "confdefs.h"
10396 # define LT_DLGLOBAL RTLD_GLOBAL
10399 # define LT_DLGLOBAL DL_GLOBAL
10401 # define LT_DLGLOBAL 0
10405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10406 find out it does not work in some platform. */
10407 #ifndef LT_DLLAZY_OR_NOW
10409 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10412 # define LT_DLLAZY_OR_NOW DL_LAZY
10415 # define LT_DLLAZY_OR_NOW RTLD_NOW
10418 # define LT_DLLAZY_OR_NOW DL_NOW
10420 # define LT_DLLAZY_OR_NOW 0
10428 extern "C" void exit (int);
10431 void fnord() { int i=42;}
10434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10435 int status = $lt_dlunknown;
10439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10440 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10441 /* dlclose (self); */
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450 (eval $ac_link) 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10454 (./conftest; exit; ) >&5 2>/dev/null
10456 case x$lt_status in
10457 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10458 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10459 x$lt_dlunknown|x*) ;;
10462 # compilation failed
10471 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10472 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10476 if test x"$libltdl_cv_need_uscore" = xyes; then
10478 cat >>confdefs.h <<\_ACEOF
10479 #define NEED_USCORE 1
10485 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10486 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10487 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 # PORTME does your system automatically load deplibs for dlopen?
10491 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10492 # For now, we just catch OSes we know something about -- in the
10493 # future, we'll try test this programmatically.
10494 libltdl_cv_sys_dlopen_deplibs=unknown
10496 aix3*|aix4.1.*|aix4.2.*)
10497 # Unknown whether this is true for these versions of AIX, but
10498 # we want this `case' here to explicitly catch those versions.
10499 libltdl_cv_sys_dlopen_deplibs=unknown
10502 libltdl_cv_sys_dlopen_deplibs=yes
10505 # Assuming the user has installed a libdl from somewhere, this is true
10506 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10507 libltdl_cv_sys_dlopen_deplibs=yes
10509 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10510 # GNU and its variants, using gnu ld.so (Glibc)
10511 libltdl_cv_sys_dlopen_deplibs=yes
10514 libltdl_cv_sys_dlopen_deplibs=yes
10517 libltdl_cv_sys_dlopen_deplibs=yes
10519 irix[12345]*|irix6.[01]*)
10520 # Catch all versions of IRIX before 6.2, and indicate that we don't
10521 # know how it worked for any of those versions.
10522 libltdl_cv_sys_dlopen_deplibs=unknown
10525 # The case above catches anything before 6.2, and it's known that
10526 # at 6.2 and later dlopen does load deplibs.
10527 libltdl_cv_sys_dlopen_deplibs=yes
10530 libltdl_cv_sys_dlopen_deplibs=yes
10533 libltdl_cv_sys_dlopen_deplibs=yes
10536 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10537 # it did *not* use an RPATH in a shared library to find objects the
10538 # library depends on, so we explicitly say `no'.
10539 libltdl_cv_sys_dlopen_deplibs=no
10541 osf5.0|osf5.0a|osf5.1)
10542 # dlopen *does* load deplibs and with the right loader patch applied
10543 # it even uses RPATH in a shared library to search for shared objects
10544 # that the library depends on, but there's no easy way to know if that
10545 # patch is installed. Since this is the case, all we can really
10546 # say is unknown -- it depends on the patch being installed. If
10547 # it is, this changes to `yes'. Without it, it would be `no'.
10548 libltdl_cv_sys_dlopen_deplibs=unknown
10551 # the two cases above should catch all versions of osf <= 5.1. Read
10552 # the comments above for what we know about them.
10553 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10554 # is used to find them so we can finally say `yes'.
10555 libltdl_cv_sys_dlopen_deplibs=yes
10558 libltdl_cv_sys_dlopen_deplibs=yes
10560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10561 libltdl_cv_sys_dlopen_deplibs=yes
10566 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10567 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10568 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10570 cat >>confdefs.h <<\_ACEOF
10571 #define LTDL_DLOPEN_DEPLIBS 1
10577 for ac_header in argz.h
10579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 ac_res=`eval echo '${'$as_ac_Header'}'`
10587 { echo "$as_me:$LINENO: result: $ac_res" >&5
10588 echo "${ECHO_T}$ac_res" >&6; }
10590 # Is the header compilable?
10591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10593 cat >conftest.$ac_ext <<_ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599 $ac_includes_default
10600 #include <$ac_header>
10602 rm -f conftest.$ac_objext
10603 if { (ac_try="$ac_compile"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_compile") 2>conftest.er1
10611 grep -v '^ *+' conftest.er1 >conftest.err
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10617 { (case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_try") 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; } &&
10626 { ac_try='test -s conftest.$ac_objext'
10627 { (case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_try") 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_header_compiler=yes
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10641 ac_header_compiler=no
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10646 echo "${ECHO_T}$ac_header_compiler" >&6; }
10648 # Is the header present?
10649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10651 cat >conftest.$ac_ext <<_ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10657 #include <$ac_header>
10659 if { (ac_try="$ac_cpp conftest.$ac_ext"
10660 case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10667 grep -v '^ *+' conftest.er1 >conftest.err
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } >/dev/null; then
10672 if test -s conftest.err; then
10673 ac_cpp_err=$ac_c_preproc_warn_flag
10674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10681 if test -z "$ac_cpp_err"; then
10682 ac_header_preproc=yes
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 ac_header_preproc=no
10690 rm -f conftest.err conftest.$ac_ext
10691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10692 echo "${ECHO_T}$ac_header_preproc" >&6; }
10694 # So? What about this header?
10695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10701 ac_header_preproc=yes
10704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10717 ## ------------------------------ ##
10718 ## Report this to bugs@yourdomain ##
10719 ## ------------------------------ ##
10721 ) | sed "s/^/$as_me: WARNING: /" >&2
10724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 eval "$as_ac_Header=\$ac_header_preproc"
10731 ac_res=`eval echo '${'$as_ac_Header'}'`
10732 { echo "$as_me:$LINENO: result: $ac_res" >&5
10733 echo "${ECHO_T}$ac_res" >&6; }
10736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10737 cat >>confdefs.h <<_ACEOF
10738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10746 { echo "$as_me:$LINENO: checking for error_t" >&5
10747 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10748 if test "${ac_cv_type_error_t+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 cat >conftest.$ac_ext <<_ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10761 typedef error_t ac__type_new_;
10765 if ((ac__type_new_ *) 0)
10767 if (sizeof (ac__type_new_))
10773 rm -f conftest.$ac_objext
10774 if { (ac_try="$ac_compile"
10775 case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_compile") 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788 { (case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_try") 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest.$ac_objext'
10798 { (case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_try") 2>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; }; then
10807 ac_cv_type_error_t=yes
10809 echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10812 ac_cv_type_error_t=no
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10818 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10819 if test $ac_cv_type_error_t = yes; then
10821 cat >>confdefs.h <<_ACEOF
10822 #define HAVE_ERROR_T 1
10828 cat >>confdefs.h <<\_ACEOF
10829 #define error_t int
10840 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 cat >conftest.$ac_ext <<_ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10856 #define $ac_func innocuous_$ac_func
10858 /* System header to define __stub macros and hopefully few prototypes,
10859 which can conflict with char $ac_func (); below.
10860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10861 <limits.h> exists even on freestanding compilers. */
10864 # include <limits.h>
10866 # include <assert.h>
10871 /* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10878 /* The GNU C library defines this for functions which it implements
10879 to always fail with ENOSYS. Some functions are actually named
10880 something starting with __ and the normal name is an alias. */
10881 #if defined __stub_$ac_func || defined __stub___$ac_func
10888 return $ac_func ();
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (ac_try="$ac_link"
10895 case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_link") 2>conftest.er1
10902 grep -v '^ *+' conftest.er1 >conftest.err
10904 cat conftest.err >&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); } &&
10907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10908 { (case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_try") 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; } &&
10917 { ac_try='test -s conftest$ac_exeext'
10918 { (case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_try") 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; }; then
10927 eval "$as_ac_var=yes"
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10932 eval "$as_ac_var=no"
10935 rm -f core conftest.err conftest.$ac_objext \
10936 conftest$ac_exeext conftest.$ac_ext
10938 ac_res=`eval echo '${'$as_ac_var'}'`
10939 { echo "$as_me:$LINENO: result: $ac_res" >&5
10940 echo "${ECHO_T}$ac_res" >&6; }
10941 if test `eval echo '${'$as_ac_var'}'` = yes; then
10942 cat >>confdefs.h <<_ACEOF
10943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10975 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 ac_res=`eval echo '${'$as_ac_Header'}'`
10986 { echo "$as_me:$LINENO: result: $ac_res" >&5
10987 echo "${ECHO_T}$ac_res" >&6; }
10989 # Is the header compilable?
10990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 $ac_includes_default
10999 #include <$ac_header>
11001 rm -f conftest.$ac_objext
11002 if { (ac_try="$ac_compile"
11003 case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_compile") 2>conftest.er1
11010 grep -v '^ *+' conftest.er1 >conftest.err
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11016 { (case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_try") 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 ac_header_compiler=yes
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 ac_header_compiler=no
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11045 echo "${ECHO_T}$ac_header_compiler" >&6; }
11047 # Is the header present?
11048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11050 cat >conftest.$ac_ext <<_ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 #include <$ac_header>
11058 if { (ac_try="$ac_cpp conftest.$ac_ext"
11059 case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11066 grep -v '^ *+' conftest.er1 >conftest.err
11068 cat conftest.err >&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } >/dev/null; then
11071 if test -s conftest.err; then
11072 ac_cpp_err=$ac_c_preproc_warn_flag
11073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11080 if test -z "$ac_cpp_err"; then
11081 ac_header_preproc=yes
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_header_preproc=no
11089 rm -f conftest.err conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11091 echo "${ECHO_T}$ac_header_preproc" >&6; }
11093 # So? What about this header?
11094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11100 ac_header_preproc=yes
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11116 ## ------------------------------ ##
11117 ## Report this to bugs@yourdomain ##
11118 ## ------------------------------ ##
11120 ) | sed "s/^/$as_me: WARNING: /" >&2
11123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 eval "$as_ac_Header=\$ac_header_preproc"
11130 ac_res=`eval echo '${'$as_ac_Header'}'`
11131 { echo "$as_me:$LINENO: result: $ac_res" >&5
11132 echo "${ECHO_T}$ac_res" >&6; }
11135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11136 cat >>confdefs.h <<_ACEOF
11137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11148 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 ac_res=`eval echo '${'$as_ac_Header'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11161 # Is the header compilable?
11162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11164 cat >conftest.$ac_ext <<_ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 $ac_includes_default
11171 #include <$ac_header>
11173 rm -f conftest.$ac_objext
11174 if { (ac_try="$ac_compile"
11175 case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_compile") 2>conftest.er1
11182 grep -v '^ *+' conftest.er1 >conftest.err
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; } &&
11197 { ac_try='test -s conftest.$ac_objext'
11198 { (case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_try") 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_header_compiler=yes
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_header_compiler=no
11215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11217 echo "${ECHO_T}$ac_header_compiler" >&6; }
11219 # Is the header present?
11220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11222 cat >conftest.$ac_ext <<_ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11228 #include <$ac_header>
11230 if { (ac_try="$ac_cpp conftest.$ac_ext"
11231 case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11238 grep -v '^ *+' conftest.er1 >conftest.err
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } >/dev/null; then
11243 if test -s conftest.err; then
11244 ac_cpp_err=$ac_c_preproc_warn_flag
11245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11252 if test -z "$ac_cpp_err"; then
11253 ac_header_preproc=yes
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_header_preproc=no
11261 rm -f conftest.err conftest.$ac_ext
11262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11263 echo "${ECHO_T}$ac_header_preproc" >&6; }
11265 # So? What about this header?
11266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11272 ac_header_preproc=yes
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11288 ## ------------------------------ ##
11289 ## Report this to bugs@yourdomain ##
11290 ## ------------------------------ ##
11292 ) | sed "s/^/$as_me: WARNING: /" >&2
11295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 eval "$as_ac_Header=\$ac_header_preproc"
11302 ac_res=`eval echo '${'$as_ac_Header'}'`
11303 { echo "$as_me:$LINENO: result: $ac_res" >&5
11304 echo "${ECHO_T}$ac_res" >&6; }
11307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11308 cat >>confdefs.h <<_ACEOF
11309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11318 for ac_header in string.h strings.h
11320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 ac_res=`eval echo '${'$as_ac_Header'}'`
11328 { echo "$as_me:$LINENO: result: $ac_res" >&5
11329 echo "${ECHO_T}$ac_res" >&6; }
11331 # Is the header compilable?
11332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11334 cat >conftest.$ac_ext <<_ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 $ac_includes_default
11341 #include <$ac_header>
11343 rm -f conftest.$ac_objext
11344 if { (ac_try="$ac_compile"
11345 case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_compile") 2>conftest.er1
11352 grep -v '^ *+' conftest.er1 >conftest.err
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } &&
11357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11358 { (case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_try") 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; } &&
11367 { ac_try='test -s conftest.$ac_objext'
11368 { (case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_try") 2>&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; }; then
11377 ac_header_compiler=yes
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11382 ac_header_compiler=no
11385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11387 echo "${ECHO_T}$ac_header_compiler" >&6; }
11389 # Is the header present?
11390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11392 cat >conftest.$ac_ext <<_ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398 #include <$ac_header>
11400 if { (ac_try="$ac_cpp conftest.$ac_ext"
11401 case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11408 grep -v '^ *+' conftest.er1 >conftest.err
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } >/dev/null; then
11413 if test -s conftest.err; then
11414 ac_cpp_err=$ac_c_preproc_warn_flag
11415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11422 if test -z "$ac_cpp_err"; then
11423 ac_header_preproc=yes
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_header_preproc=no
11431 rm -f conftest.err conftest.$ac_ext
11432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11433 echo "${ECHO_T}$ac_header_preproc" >&6; }
11435 # So? What about this header?
11436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11442 ac_header_preproc=yes
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11458 ## ------------------------------ ##
11459 ## Report this to bugs@yourdomain ##
11460 ## ------------------------------ ##
11462 ) | sed "s/^/$as_me: WARNING: /" >&2
11465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 eval "$as_ac_Header=\$ac_header_preproc"
11472 ac_res=`eval echo '${'$as_ac_Header'}'`
11473 { echo "$as_me:$LINENO: result: $ac_res" >&5
11474 echo "${ECHO_T}$ac_res" >&6; }
11477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11478 cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11489 for ac_func in strchr index
11491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11505 #define $ac_func innocuous_$ac_func
11507 /* System header to define __stub macros and hopefully few prototypes,
11508 which can conflict with char $ac_func (); below.
11509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510 <limits.h> exists even on freestanding compilers. */
11513 # include <limits.h>
11515 # include <assert.h>
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11527 /* The GNU C library defines this for functions which it implements
11528 to always fail with ENOSYS. Some functions are actually named
11529 something starting with __ and the normal name is an alias. */
11530 #if defined __stub_$ac_func || defined __stub___$ac_func
11537 return $ac_func ();
11542 rm -f conftest.$ac_objext conftest$ac_exeext
11543 if { (ac_try="$ac_link"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_link") 2>conftest.er1
11551 grep -v '^ *+' conftest.er1 >conftest.err
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11557 { (case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_try") 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; } &&
11566 { ac_try='test -s conftest$ac_exeext'
11567 { (case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_try") 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 eval "$as_ac_var=yes"
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 eval "$as_ac_var=no"
11584 rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
11587 ac_res=`eval echo '${'$as_ac_var'}'`
11588 { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11590 if test `eval echo '${'$as_ac_var'}'` = yes; then
11591 cat >>confdefs.h <<_ACEOF
11592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11600 for ac_func in strrchr rindex
11602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 cat >conftest.$ac_ext <<_ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11616 #define $ac_func innocuous_$ac_func
11618 /* System header to define __stub macros and hopefully few prototypes,
11619 which can conflict with char $ac_func (); below.
11620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11621 <limits.h> exists even on freestanding compilers. */
11624 # include <limits.h>
11626 # include <assert.h>
11631 /* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11638 /* The GNU C library defines this for functions which it implements
11639 to always fail with ENOSYS. Some functions are actually named
11640 something starting with __ and the normal name is an alias. */
11641 #if defined __stub_$ac_func || defined __stub___$ac_func
11648 return $ac_func ();
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (ac_try="$ac_link"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_link") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668 { (case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_try") 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest$ac_exeext'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 eval "$as_ac_var=yes"
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 eval "$as_ac_var=no"
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11698 ac_res=`eval echo '${'$as_ac_var'}'`
11699 { echo "$as_me:$LINENO: result: $ac_res" >&5
11700 echo "${ECHO_T}$ac_res" >&6; }
11701 if test `eval echo '${'$as_ac_var'}'` = yes; then
11702 cat >>confdefs.h <<_ACEOF
11703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11711 for ac_func in memcpy bcopy
11713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 cat >conftest.$ac_ext <<_ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11727 #define $ac_func innocuous_$ac_func
11729 /* System header to define __stub macros and hopefully few prototypes,
11730 which can conflict with char $ac_func (); below.
11731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11732 <limits.h> exists even on freestanding compilers. */
11735 # include <limits.h>
11737 # include <assert.h>
11742 /* Override any GCC internal prototype to avoid an error.
11743 Use char because int might match the return type of a GCC
11744 builtin and then its argument prototype would still apply. */
11749 /* The GNU C library defines this for functions which it implements
11750 to always fail with ENOSYS. Some functions are actually named
11751 something starting with __ and the normal name is an alias. */
11752 #if defined __stub_$ac_func || defined __stub___$ac_func
11759 return $ac_func ();
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (ac_try="$ac_link"
11766 case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_link") 2>conftest.er1
11773 grep -v '^ *+' conftest.er1 >conftest.err
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11779 { (case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_try") 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; } &&
11788 { ac_try='test -s conftest$ac_exeext'
11789 { (case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_try") 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; }; then
11798 eval "$as_ac_var=yes"
11800 echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11803 eval "$as_ac_var=no"
11806 rm -f core conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11809 ac_res=`eval echo '${'$as_ac_var'}'`
11810 { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11812 if test `eval echo '${'$as_ac_var'}'` = yes; then
11813 cat >>confdefs.h <<_ACEOF
11814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11822 for ac_func in memmove strcmp
11824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 cat >conftest.$ac_ext <<_ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11838 #define $ac_func innocuous_$ac_func
11840 /* System header to define __stub macros and hopefully few prototypes,
11841 which can conflict with char $ac_func (); below.
11842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11843 <limits.h> exists even on freestanding compilers. */
11846 # include <limits.h>
11848 # include <assert.h>
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11860 /* The GNU C library defines this for functions which it implements
11861 to always fail with ENOSYS. Some functions are actually named
11862 something starting with __ and the normal name is an alias. */
11863 #if defined __stub_$ac_func || defined __stub___$ac_func
11870 return $ac_func ();
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (ac_try="$ac_link"
11877 case "(($ac_try" in
11878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_link") 2>conftest.er1
11884 grep -v '^ *+' conftest.er1 >conftest.err
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11890 { (case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_try") 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest$ac_exeext'
11900 { (case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_try") 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 eval "$as_ac_var=yes"
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11914 eval "$as_ac_var=no"
11917 rm -f core conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11920 ac_res=`eval echo '${'$as_ac_var'}'`
11921 { echo "$as_me:$LINENO: result: $ac_res" >&5
11922 echo "${ECHO_T}$ac_res" >&6; }
11923 if test `eval echo '${'$as_ac_var'}'` = yes; then
11924 cat >>confdefs.h <<_ACEOF
11925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11934 for ac_func in closedir opendir readdir
11936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11950 #define $ac_func innocuous_$ac_func
11952 /* System header to define __stub macros and hopefully few prototypes,
11953 which can conflict with char $ac_func (); below.
11954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955 <limits.h> exists even on freestanding compilers. */
11958 # include <limits.h>
11960 # include <assert.h>
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11972 /* The GNU C library defines this for functions which it implements
11973 to always fail with ENOSYS. Some functions are actually named
11974 something starting with __ and the normal name is an alias. */
11975 #if defined __stub_$ac_func || defined __stub___$ac_func
11982 return $ac_func ();
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_link") 2>conftest.er1
11996 grep -v '^ *+' conftest.er1 >conftest.err
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try='test -s conftest$ac_exeext'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 eval "$as_ac_var=yes"
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 eval "$as_ac_var=no"
12029 rm -f core conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12032 ac_res=`eval echo '${'$as_ac_var'}'`
12033 { echo "$as_me:$LINENO: result: $ac_res" >&5
12034 echo "${ECHO_T}$ac_res" >&6; }
12035 if test `eval echo '${'$as_ac_var'}'` = yes; then
12036 cat >>confdefs.h <<_ACEOF
12037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12045 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12046 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12059 if test "$GCC" != "yes" && test "$ICC" != "yes"
12061 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12062 echo "$as_me: error: gcc|icc required but not found" >&2;}
12063 { (exit 1); exit 1; }; }
12066 if test "$GXX" != "yes" && test "$IXX" != "yes"
12068 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12069 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12070 { (exit 1); exit 1; }; }
12073 if test "$GCC" = "yes"
12075 cat >conftest.$ac_ext <<_ACEOF
12076 #if !defined(__GNUC__) || __GNUC__ < 3
12077 #error Unsupported GCC version
12081 rm -f conftest.$ac_objext
12082 if { (ac_try="$ac_compile"
12083 case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_compile") 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest.$ac_objext'
12106 { (case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_try") 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12120 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12121 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12122 { (exit 1); exit 1; }; }
12125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12128 if test -z "$llvm_cv_gnu_make_command"
12130 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12131 echo "$as_me: error: GNU Make required but not found" >&2;}
12132 { (exit 1); exit 1; }; }
12135 { echo "$as_me:$LINENO: result: ok" >&5
12136 echo "${ECHO_T}ok" >&6; }
12138 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12139 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12140 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12142 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12144 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12146 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12147 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12151 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12152 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12153 if test "${ac_cv_lib_m_sin+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 ac_check_lib_save_LIBS=$LIBS
12158 cat >conftest.$ac_ext <<_ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12180 rm -f conftest.$ac_objext conftest$ac_exeext
12181 if { (ac_try="$ac_link"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_link") 2>conftest.er1
12189 grep -v '^ *+' conftest.er1 >conftest.err
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest$ac_exeext'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_cv_lib_m_sin=yes
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12222 rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12226 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12227 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12228 if test $ac_cv_lib_m_sin = yes; then
12229 cat >>confdefs.h <<_ACEOF
12230 #define HAVE_LIBM 1
12237 if test "$llvm_cv_os_type" = "MingW" ; then
12239 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12240 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12241 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-limagehlp $LIBS"
12246 cat >conftest.$ac_ext <<_ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (ac_try="$ac_link"
12264 case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_link") 2>conftest.er1
12271 grep -v '^ *+' conftest.er1 >conftest.err
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12277 { (case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_try") 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest$ac_exeext'
12287 { (case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_try") 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_cv_lib_imagehlp_main=yes
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 ac_cv_lib_imagehlp_main=no
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12308 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12309 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12310 if test $ac_cv_lib_imagehlp_main = yes; then
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_LIBIMAGEHLP 1
12315 LIBS="-limagehlp $LIBS"
12320 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12321 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12322 if test "${ac_cv_lib_psapi_main+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lpsapi $LIBS"
12327 cat >conftest.$ac_ext <<_ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (ac_try="$ac_link"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_link") 2>conftest.er1
12352 grep -v '^ *+' conftest.er1 >conftest.err
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12358 { (case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_try") 2>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; } &&
12367 { ac_try='test -s conftest$ac_exeext'
12368 { (case "(($ac_try" in
12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_try") 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 ac_cv_lib_psapi_main=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_cv_lib_psapi_main=no
12385 rm -f core conftest.err conftest.$ac_objext \
12386 conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12389 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12390 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12391 if test $ac_cv_lib_psapi_main = yes; then
12392 cat >>confdefs.h <<_ACEOF
12393 #define HAVE_LIBPSAPI 1
12396 LIBS="-lpsapi $LIBS"
12402 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12403 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12404 if test "${ac_cv_search_dlopen+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 ac_func_search_save_LIBS=$LIBS
12408 cat >conftest.$ac_ext <<_ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12430 for ac_lib in '' dl; do
12431 if test -z "$ac_lib"; then
12432 ac_res="none required"
12435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
12439 case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_link") 2>conftest.er1
12446 grep -v '^ *+' conftest.er1 >conftest.err
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12452 { (case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_try") 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_try") 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 ac_cv_search_dlopen=$ac_res
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12479 rm -f core conftest.err conftest.$ac_objext \
12481 if test "${ac_cv_search_dlopen+set}" = set; then
12485 if test "${ac_cv_search_dlopen+set}" = set; then
12488 ac_cv_search_dlopen=no
12490 rm conftest.$ac_ext
12491 LIBS=$ac_func_search_save_LIBS
12493 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12494 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12495 ac_res=$ac_cv_search_dlopen
12496 if test "$ac_res" != no; then
12497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12499 cat >>confdefs.h <<\_ACEOF
12500 #define HAVE_DLOPEN 1
12504 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12505 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12509 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12510 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12511 if test "${ac_cv_search_clock_gettime+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 ac_func_search_save_LIBS=$LIBS
12515 cat >conftest.$ac_ext <<_ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12522 /* Override any GCC internal prototype to avoid an error.
12523 Use char because int might match the return type of a GCC
12524 builtin and then its argument prototype would still apply. */
12528 char clock_gettime ();
12532 return clock_gettime ();
12537 for ac_lib in '' rt; do
12538 if test -z "$ac_lib"; then
12539 ac_res="none required"
12542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12544 rm -f conftest.$ac_objext conftest$ac_exeext
12545 if { (ac_try="$ac_link"
12546 case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_link") 2>conftest.er1
12553 grep -v '^ *+' conftest.er1 >conftest.err
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12559 { (case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_try") 2>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } &&
12568 { ac_try='test -s conftest$ac_exeext'
12569 { (case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_try") 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 ac_cv_search_clock_gettime=$ac_res
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12586 rm -f core conftest.err conftest.$ac_objext \
12588 if test "${ac_cv_search_clock_gettime+set}" = set; then
12592 if test "${ac_cv_search_clock_gettime+set}" = set; then
12595 ac_cv_search_clock_gettime=no
12597 rm conftest.$ac_ext
12598 LIBS=$ac_func_search_save_LIBS
12600 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12601 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12602 ac_res=$ac_cv_search_clock_gettime
12603 if test "$ac_res" != no; then
12604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12609 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12610 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12611 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12612 if test "${ac_cv_search_setupterm+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 ac_func_search_save_LIBS=$LIBS
12616 cat >conftest.$ac_ext <<_ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12623 /* Override any GCC internal prototype to avoid an error.
12624 Use char because int might match the return type of a GCC
12625 builtin and then its argument prototype would still apply. */
12633 return setupterm ();
12638 for ac_lib in '' tinfo curses ncurses ncursesw; do
12639 if test -z "$ac_lib"; then
12640 ac_res="none required"
12643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12645 rm -f conftest.$ac_objext conftest$ac_exeext
12646 if { (ac_try="$ac_link"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_link") 2>conftest.er1
12654 grep -v '^ *+' conftest.er1 >conftest.err
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
12659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12660 { (case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_try") 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; } &&
12669 { ac_try='test -s conftest$ac_exeext'
12670 { (case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675 (eval "$ac_try") 2>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; }; then
12679 ac_cv_search_setupterm=$ac_res
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12687 rm -f core conftest.err conftest.$ac_objext \
12689 if test "${ac_cv_search_setupterm+set}" = set; then
12693 if test "${ac_cv_search_setupterm+set}" = set; then
12696 ac_cv_search_setupterm=no
12698 rm conftest.$ac_ext
12699 LIBS=$ac_func_search_save_LIBS
12701 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12702 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12703 ac_res=$ac_cv_search_setupterm
12704 if test "$ac_res" != no; then
12705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12707 cat >>confdefs.h <<\_ACEOF
12708 #define HAVE_TERMINFO 1
12715 if test "$llvm_cv_enable_libffi" = "yes" ; then
12716 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12717 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12718 if test "${ac_cv_search_ffi_call+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 ac_func_search_save_LIBS=$LIBS
12722 cat >conftest.$ac_ext <<_ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12729 /* Override any GCC internal prototype to avoid an error.
12730 Use char because int might match the return type of a GCC
12731 builtin and then its argument prototype would still apply. */
12739 return ffi_call ();
12744 for ac_lib in '' ffi; do
12745 if test -z "$ac_lib"; then
12746 ac_res="none required"
12749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12751 rm -f conftest.$ac_objext conftest$ac_exeext
12752 if { (ac_try="$ac_link"
12753 case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_link") 2>conftest.er1
12760 grep -v '^ *+' conftest.er1 >conftest.err
12762 cat conftest.err >&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12766 { (case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_try") 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; } &&
12775 { ac_try='test -s conftest$ac_exeext'
12776 { (case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_try") 2>&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; }; then
12785 ac_cv_search_ffi_call=$ac_res
12787 echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.$ac_ext >&5
12793 rm -f core conftest.err conftest.$ac_objext \
12795 if test "${ac_cv_search_ffi_call+set}" = set; then
12799 if test "${ac_cv_search_ffi_call+set}" = set; then
12802 ac_cv_search_ffi_call=no
12804 rm conftest.$ac_ext
12805 LIBS=$ac_func_search_save_LIBS
12807 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12808 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12809 ac_res=$ac_cv_search_ffi_call
12810 if test "$ac_res" != no; then
12811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12813 cat >>confdefs.h <<\_ACEOF
12814 #define HAVE_FFI_CALL 1
12818 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12819 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12820 { (exit 1); exit 1; }; }
12825 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12826 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12827 if test "${ac_cv_search_mallinfo+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 ac_func_search_save_LIBS=$LIBS
12831 cat >conftest.$ac_ext <<_ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12838 /* Override any GCC internal prototype to avoid an error.
12839 Use char because int might match the return type of a GCC
12840 builtin and then its argument prototype would still apply. */
12848 return mallinfo ();
12853 for ac_lib in '' malloc; do
12854 if test -z "$ac_lib"; then
12855 ac_res="none required"
12858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12860 rm -f conftest.$ac_objext conftest$ac_exeext
12861 if { (ac_try="$ac_link"
12862 case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_link") 2>conftest.er1
12869 grep -v '^ *+' conftest.er1 >conftest.err
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12875 { (case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_try") 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } &&
12884 { ac_try='test -s conftest$ac_exeext'
12885 { (case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_try") 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_cv_search_mallinfo=$ac_res
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12902 rm -f core conftest.err conftest.$ac_objext \
12904 if test "${ac_cv_search_mallinfo+set}" = set; then
12908 if test "${ac_cv_search_mallinfo+set}" = set; then
12911 ac_cv_search_mallinfo=no
12913 rm conftest.$ac_ext
12914 LIBS=$ac_func_search_save_LIBS
12916 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12917 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12918 ac_res=$ac_cv_search_mallinfo
12919 if test "$ac_res" != no; then
12920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12922 cat >>confdefs.h <<\_ACEOF
12923 #define HAVE_MALLINFO 1
12929 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12931 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12932 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12933 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 ac_check_lib_save_LIBS=$LIBS
12937 LIBS="-lpthread $LIBS"
12938 cat >conftest.$ac_ext <<_ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12945 /* Override any GCC internal prototype to avoid an error.
12946 Use char because int might match the return type of a GCC
12947 builtin and then its argument prototype would still apply. */
12951 char pthread_mutex_init ();
12955 return pthread_mutex_init ();
12960 rm -f conftest.$ac_objext conftest$ac_exeext
12961 if { (ac_try="$ac_link"
12962 case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_link") 2>conftest.er1
12969 grep -v '^ *+' conftest.er1 >conftest.err
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
12974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12975 { (case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_try") 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest$ac_exeext'
12985 { (case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_try") 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 ac_cv_lib_pthread_pthread_mutex_init=yes
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12999 ac_cv_lib_pthread_pthread_mutex_init=no
13002 rm -f core conftest.err conftest.$ac_objext \
13003 conftest$ac_exeext conftest.$ac_ext
13004 LIBS=$ac_check_lib_save_LIBS
13006 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13007 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13008 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13009 cat >>confdefs.h <<_ACEOF
13010 #define HAVE_LIBPTHREAD 1
13013 LIBS="-lpthread $LIBS"
13017 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13018 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13019 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 ac_func_search_save_LIBS=$LIBS
13023 cat >conftest.$ac_ext <<_ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13030 /* Override any GCC internal prototype to avoid an error.
13031 Use char because int might match the return type of a GCC
13032 builtin and then its argument prototype would still apply. */
13036 char pthread_mutex_lock ();
13040 return pthread_mutex_lock ();
13045 for ac_lib in '' pthread; do
13046 if test -z "$ac_lib"; then
13047 ac_res="none required"
13050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (ac_try="$ac_link"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_link") 2>conftest.er1
13061 grep -v '^ *+' conftest.er1 >conftest.err
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
13066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13067 { (case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_try") 2>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; } &&
13076 { ac_try='test -s conftest$ac_exeext'
13077 { (case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_try") 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13086 ac_cv_search_pthread_mutex_lock=$ac_res
13088 echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13094 rm -f core conftest.err conftest.$ac_objext \
13096 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13100 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13103 ac_cv_search_pthread_mutex_lock=no
13105 rm conftest.$ac_ext
13106 LIBS=$ac_func_search_save_LIBS
13108 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13109 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13110 ac_res=$ac_cv_search_pthread_mutex_lock
13111 if test "$ac_res" != no; then
13112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13114 cat >>confdefs.h <<\_ACEOF
13115 #define HAVE_PTHREAD_MUTEX_LOCK 1
13120 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13121 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13122 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 ac_func_search_save_LIBS=$LIBS
13126 cat >conftest.$ac_ext <<_ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h. */
13133 /* Override any GCC internal prototype to avoid an error.
13134 Use char because int might match the return type of a GCC
13135 builtin and then its argument prototype would still apply. */
13139 char pthread_rwlock_init ();
13143 return pthread_rwlock_init ();
13148 for ac_lib in '' pthread; do
13149 if test -z "$ac_lib"; then
13150 ac_res="none required"
13153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13155 rm -f conftest.$ac_objext conftest$ac_exeext
13156 if { (ac_try="$ac_link"
13157 case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_link") 2>conftest.er1
13164 grep -v '^ *+' conftest.er1 >conftest.err
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
13169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13170 { (case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_try") 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } &&
13179 { ac_try='test -s conftest$ac_exeext'
13180 { (case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_try") 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_cv_search_pthread_rwlock_init=$ac_res
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13197 rm -f core conftest.err conftest.$ac_objext \
13199 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13203 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13206 ac_cv_search_pthread_rwlock_init=no
13208 rm conftest.$ac_ext
13209 LIBS=$ac_func_search_save_LIBS
13211 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13212 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13213 ac_res=$ac_cv_search_pthread_rwlock_init
13214 if test "$ac_res" != no; then
13215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13217 cat >>confdefs.h <<\_ACEOF
13218 #define HAVE_PTHREAD_RWLOCK_INIT 1
13223 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13224 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13225 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 ac_func_search_save_LIBS=$LIBS
13229 cat >conftest.$ac_ext <<_ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h. */
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13242 char pthread_getspecific ();
13246 return pthread_getspecific ();
13251 for ac_lib in '' pthread; do
13252 if test -z "$ac_lib"; then
13253 ac_res="none required"
13256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13258 rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_link") 2>conftest.er1
13267 grep -v '^ *+' conftest.er1 >conftest.err
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
13272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13282 { ac_try='test -s conftest$ac_exeext'
13283 { (case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_try") 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_cv_search_pthread_getspecific=$ac_res
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13300 rm -f core conftest.err conftest.$ac_objext \
13302 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13306 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13309 ac_cv_search_pthread_getspecific=no
13311 rm conftest.$ac_ext
13312 LIBS=$ac_func_search_save_LIBS
13314 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13315 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13316 ac_res=$ac_cv_search_pthread_getspecific
13317 if test "$ac_res" != no; then
13318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13320 cat >>confdefs.h <<\_ACEOF
13321 #define HAVE_PTHREAD_GETSPECIFIC 1
13328 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13330 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13331 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13332 if test "${ac_cv_lib_z_compress2+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 ac_check_lib_save_LIBS=$LIBS
13337 cat >conftest.$ac_ext <<_ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13354 return compress2 ();
13359 rm -f conftest.$ac_objext conftest$ac_exeext
13360 if { (ac_try="$ac_link"
13361 case "(($ac_try" in
13362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363 *) ac_try_echo=$ac_try;;
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366 (eval "$ac_link") 2>conftest.er1
13368 grep -v '^ *+' conftest.er1 >conftest.err
13370 cat conftest.err >&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } &&
13373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; } &&
13383 { ac_try='test -s conftest$ac_exeext'
13384 { (case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_try") 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_cv_lib_z_compress2=yes
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13398 ac_cv_lib_z_compress2=no
13401 rm -f core conftest.err conftest.$ac_objext \
13402 conftest$ac_exeext conftest.$ac_ext
13403 LIBS=$ac_check_lib_save_LIBS
13405 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13406 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13407 if test $ac_cv_lib_z_compress2 = yes; then
13408 cat >>confdefs.h <<_ACEOF
13409 #define HAVE_LIBZ 1
13419 # Check whether --with-udis86 was given.
13420 if test "${with_udis86+set}" = set; then
13421 withval=$with_udis86;
13426 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13429 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13430 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13431 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-ludis86 $LIBS"
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13443 /* Override any GCC internal prototype to avoid an error.
13444 Use char because int might match the return type of a GCC
13445 builtin and then its argument prototype would still apply. */
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (ac_try="$ac_link"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_link") 2>conftest.er1
13467 grep -v '^ *+' conftest.er1 >conftest.err
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13473 { (case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478 (eval "$ac_try") 2>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest$ac_exeext'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_cv_lib_udis86_ud_init=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_cv_lib_udis86_ud_init=no
13500 rm -f core conftest.err conftest.$ac_objext \
13501 conftest$ac_exeext conftest.$ac_ext
13502 LIBS=$ac_check_lib_save_LIBS
13504 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13505 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13506 if test $ac_cv_lib_udis86_ud_init = yes; then
13507 cat >>confdefs.h <<_ACEOF
13508 #define HAVE_LIBUDIS86 1
13511 LIBS="-ludis86 $LIBS"
13515 echo "Error! You need to have libudis86 around."
13527 cat >>confdefs.h <<_ACEOF
13528 #define USE_UDIS86 $USE_UDIS86
13533 # Check whether --with-oprofile was given.
13534 if test "${with_oprofile+set}" = set; then
13535 withval=$with_oprofile;
13539 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13540 no) llvm_cv_oppath=
13543 *) llvm_cv_oppath="${withval}/lib/oprofile"
13544 CPPFLAGS="-I${withval}/include";;
13546 if test -n "$llvm_cv_oppath" ; then
13547 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13548 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13549 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13550 if test "${ac_cv_search_bfd_init+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 ac_func_search_save_LIBS=$LIBS
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13561 /* Override any GCC internal prototype to avoid an error.
13562 Use char because int might match the return type of a GCC
13563 builtin and then its argument prototype would still apply. */
13571 return bfd_init ();
13576 for ac_lib in '' bfd; do
13577 if test -z "$ac_lib"; then
13578 ac_res="none required"
13581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13583 rm -f conftest.$ac_objext conftest$ac_exeext
13584 if { (ac_try="$ac_link"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_link") 2>conftest.er1
13592 grep -v '^ *+' conftest.er1 >conftest.err
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } &&
13597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13598 { (case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_try") 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; } &&
13607 { ac_try='test -s conftest$ac_exeext'
13608 { (case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_try") 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13617 ac_cv_search_bfd_init=$ac_res
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13625 rm -f core conftest.err conftest.$ac_objext \
13627 if test "${ac_cv_search_bfd_init+set}" = set; then
13631 if test "${ac_cv_search_bfd_init+set}" = set; then
13634 ac_cv_search_bfd_init=no
13636 rm conftest.$ac_ext
13637 LIBS=$ac_func_search_save_LIBS
13639 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13640 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13641 ac_res=$ac_cv_search_bfd_init
13642 if test "$ac_res" != no; then
13643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13647 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13648 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13649 if test "${ac_cv_search_op_open_agent+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 ac_func_search_save_LIBS=$LIBS
13653 cat >conftest.$ac_ext <<_ACEOF
13656 cat confdefs.h >>conftest.$ac_ext
13657 cat >>conftest.$ac_ext <<_ACEOF
13658 /* end confdefs.h. */
13660 /* Override any GCC internal prototype to avoid an error.
13661 Use char because int might match the return type of a GCC
13662 builtin and then its argument prototype would still apply. */
13666 char op_open_agent ();
13670 return op_open_agent ();
13675 for ac_lib in '' opagent; do
13676 if test -z "$ac_lib"; then
13677 ac_res="none required"
13680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13682 rm -f conftest.$ac_objext conftest$ac_exeext
13683 if { (ac_try="$ac_link"
13684 case "(($ac_try" in
13685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13686 *) ac_try_echo=$ac_try;;
13688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13689 (eval "$ac_link") 2>conftest.er1
13691 grep -v '^ *+' conftest.er1 >conftest.err
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } &&
13696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13697 { (case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_try") 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; } &&
13706 { ac_try='test -s conftest$ac_exeext'
13707 { (case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_try") 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; }; then
13716 ac_cv_search_op_open_agent=$ac_res
13718 echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13724 rm -f core conftest.err conftest.$ac_objext \
13726 if test "${ac_cv_search_op_open_agent+set}" = set; then
13730 if test "${ac_cv_search_op_open_agent+set}" = set; then
13733 ac_cv_search_op_open_agent=no
13735 rm conftest.$ac_ext
13736 LIBS=$ac_func_search_save_LIBS
13738 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13739 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13740 ac_res=$ac_cv_search_op_open_agent
13741 if test "$ac_res" != no; then
13742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13746 echo "Error! You need to have libopagent around."
13751 if test "${ac_cv_header_opagent_h+set}" = set; then
13752 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13753 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13754 if test "${ac_cv_header_opagent_h+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13758 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13760 # Is the header compilable?
13761 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13762 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13763 cat >conftest.$ac_ext <<_ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 $ac_includes_default
13770 #include <opagent.h>
13772 rm -f conftest.$ac_objext
13773 if { (ac_try="$ac_compile"
13774 case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_compile") 2>conftest.er1
13781 grep -v '^ *+' conftest.er1 >conftest.err
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13787 { (case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_try") 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; } &&
13796 { ac_try='test -s conftest.$ac_objext'
13797 { (case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_try") 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13806 ac_header_compiler=yes
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13811 ac_header_compiler=no
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13816 echo "${ECHO_T}$ac_header_compiler" >&6; }
13818 # Is the header present?
13819 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13820 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13821 cat >conftest.$ac_ext <<_ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 #include <opagent.h>
13829 if { (ac_try="$ac_cpp conftest.$ac_ext"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13837 grep -v '^ *+' conftest.er1 >conftest.err
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } >/dev/null; then
13842 if test -s conftest.err; then
13843 ac_cpp_err=$ac_c_preproc_warn_flag
13844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13851 if test -z "$ac_cpp_err"; then
13852 ac_header_preproc=yes
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13857 ac_header_preproc=no
13860 rm -f conftest.err conftest.$ac_ext
13861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13862 echo "${ECHO_T}$ac_header_preproc" >&6; }
13864 # So? What about this header?
13865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13867 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13868 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13870 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13871 ac_header_preproc=yes
13874 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13875 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13876 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13877 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13878 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13879 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13880 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13881 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13882 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13883 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13884 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13885 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13887 ## ------------------------------ ##
13888 ## Report this to bugs@yourdomain ##
13889 ## ------------------------------ ##
13891 ) | sed "s/^/$as_me: WARNING: /" >&2
13894 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13895 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13896 if test "${ac_cv_header_opagent_h+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 ac_cv_header_opagent_h=$ac_header_preproc
13901 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13902 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13905 if test $ac_cv_header_opagent_h = yes; then
13909 echo "Error! You need to have opagent.h around."
13925 cat >>confdefs.h <<_ACEOF
13926 #define USE_OPROFILE $USE_OPROFILE
13936 ac_header_dirent=no
13937 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13938 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13939 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13940 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 cat >conftest.$ac_ext <<_ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 #include <sys/types.h>
13962 rm -f conftest.$ac_objext
13963 if { (ac_try="$ac_compile"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_compile") 2>conftest.er1
13971 grep -v '^ *+' conftest.er1 >conftest.err
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } &&
13976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13977 { (case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_try") 2>&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; } &&
13986 { ac_try='test -s conftest.$ac_objext'
13987 { (case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_try") 2>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 eval "$as_ac_Header=yes"
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14001 eval "$as_ac_Header=no"
14004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14006 ac_res=`eval echo '${'$as_ac_Header'}'`
14007 { echo "$as_me:$LINENO: result: $ac_res" >&5
14008 echo "${ECHO_T}$ac_res" >&6; }
14009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14010 cat >>confdefs.h <<_ACEOF
14011 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14014 ac_header_dirent=$ac_hdr; break
14018 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14019 if test $ac_header_dirent = dirent.h; then
14020 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14021 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14022 if test "${ac_cv_search_opendir+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 ac_func_search_save_LIBS=$LIBS
14026 cat >conftest.$ac_ext <<_ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14033 /* Override any GCC internal prototype to avoid an error.
14034 Use char because int might match the return type of a GCC
14035 builtin and then its argument prototype would still apply. */
14048 for ac_lib in '' dir; do
14049 if test -z "$ac_lib"; then
14050 ac_res="none required"
14053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14055 rm -f conftest.$ac_objext conftest$ac_exeext
14056 if { (ac_try="$ac_link"
14057 case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_link") 2>conftest.er1
14064 grep -v '^ *+' conftest.er1 >conftest.err
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14070 { (case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_try") 2>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; } &&
14079 { ac_try='test -s conftest$ac_exeext'
14080 { (case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_try") 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14089 ac_cv_search_opendir=$ac_res
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14097 rm -f core conftest.err conftest.$ac_objext \
14099 if test "${ac_cv_search_opendir+set}" = set; then
14103 if test "${ac_cv_search_opendir+set}" = set; then
14106 ac_cv_search_opendir=no
14108 rm conftest.$ac_ext
14109 LIBS=$ac_func_search_save_LIBS
14111 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14112 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14113 ac_res=$ac_cv_search_opendir
14114 if test "$ac_res" != no; then
14115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14120 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14121 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14122 if test "${ac_cv_search_opendir+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 ac_func_search_save_LIBS=$LIBS
14126 cat >conftest.$ac_ext <<_ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14133 /* Override any GCC internal prototype to avoid an error.
14134 Use char because int might match the return type of a GCC
14135 builtin and then its argument prototype would still apply. */
14148 for ac_lib in '' x; do
14149 if test -z "$ac_lib"; then
14150 ac_res="none required"
14153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_link") 2>conftest.er1
14164 grep -v '^ *+' conftest.er1 >conftest.err
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14170 { (case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_try") 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; } &&
14179 { ac_try='test -s conftest$ac_exeext'
14180 { (case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_try") 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
14189 ac_cv_search_opendir=$ac_res
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14197 rm -f core conftest.err conftest.$ac_objext \
14199 if test "${ac_cv_search_opendir+set}" = set; then
14203 if test "${ac_cv_search_opendir+set}" = set; then
14206 ac_cv_search_opendir=no
14208 rm conftest.$ac_ext
14209 LIBS=$ac_func_search_save_LIBS
14211 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14212 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14213 ac_res=$ac_cv_search_opendir
14214 if test "$ac_res" != no; then
14215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14221 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14222 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14223 if test "${ac_cv_header_mmap_anon+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 ac_cpp='$CPP $CPPFLAGS'
14228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14232 cat >conftest.$ac_ext <<_ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 #include <sys/mman.h>
14239 #include <unistd.h>
14244 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256 (eval "$ac_compile") 2>conftest.er1
14258 grep -v '^ *+' conftest.er1 >conftest.err
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14264 { (case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_try") 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest.$ac_objext'
14274 { (case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_try") 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }; then
14283 ac_cv_header_mmap_anon=yes
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14288 ac_cv_header_mmap_anon=no
14291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293 ac_cpp='$CPP $CPPFLAGS'
14294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14300 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14301 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14302 if test "$ac_cv_header_mmap_anon" = yes; then
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_MMAP_ANONYMOUS 1
14310 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14311 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14312 if test "${ac_cv_header_stat_broken+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 cat >conftest.$ac_ext <<_ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 #include <sys/types.h>
14322 #include <sys/stat.h>
14324 #if defined S_ISBLK && defined S_IFDIR
14325 # if S_ISBLK (S_IFDIR)
14330 #if defined S_ISBLK && defined S_IFCHR
14331 # if S_ISBLK (S_IFCHR)
14336 #if defined S_ISLNK && defined S_IFREG
14337 # if S_ISLNK (S_IFREG)
14342 #if defined S_ISSOCK && defined S_IFREG
14343 # if S_ISSOCK (S_IFREG)
14349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14350 $EGREP "You lose" >/dev/null 2>&1; then
14351 ac_cv_header_stat_broken=yes
14353 ac_cv_header_stat_broken=no
14358 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14359 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14360 if test $ac_cv_header_stat_broken = yes; then
14362 cat >>confdefs.h <<\_ACEOF
14363 #define STAT_MACROS_BROKEN 1
14368 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14369 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14370 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 #include <sys/types.h>
14380 #include <sys/wait.h>
14381 #ifndef WEXITSTATUS
14382 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14385 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14393 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14398 rm -f conftest.$ac_objext
14399 if { (ac_try="$ac_compile"
14400 case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_compile") 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14413 { (case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_try") 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest.$ac_objext'
14423 { (case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_try") 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_cv_header_sys_wait_h=yes
14434 echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14437 ac_cv_header_sys_wait_h=no
14440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14442 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14443 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14444 if test $ac_cv_header_sys_wait_h = yes; then
14446 cat >>confdefs.h <<\_ACEOF
14447 #define HAVE_SYS_WAIT_H 1
14452 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14453 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14454 if test "${ac_cv_header_time+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #include <sys/types.h>
14464 #include <sys/time.h>
14470 if ((struct tm *) 0)
14476 rm -f conftest.$ac_objext
14477 if { (ac_try="$ac_compile"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_compile") 2>conftest.er1
14485 grep -v '^ *+' conftest.er1 >conftest.err
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
14490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14491 { (case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_try") 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; } &&
14500 { ac_try='test -s conftest.$ac_objext'
14501 { (case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_try") 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14510 ac_cv_header_time=yes
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 ac_cv_header_time=no
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14521 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14522 if test $ac_cv_header_time = yes; then
14524 cat >>confdefs.h <<\_ACEOF
14525 #define TIME_WITH_SYS_TIME 1
14537 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14546 ac_res=`eval echo '${'$as_ac_Header'}'`
14547 { echo "$as_me:$LINENO: result: $ac_res" >&5
14548 echo "${ECHO_T}$ac_res" >&6; }
14550 # Is the header compilable?
14551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14553 cat >conftest.$ac_ext <<_ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14559 $ac_includes_default
14560 #include <$ac_header>
14562 rm -f conftest.$ac_objext
14563 if { (ac_try="$ac_compile"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_compile") 2>conftest.er1
14571 grep -v '^ *+' conftest.er1 >conftest.err
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14577 { (case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_try") 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; } &&
14586 { ac_try='test -s conftest.$ac_objext'
14587 { (case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_try") 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 ac_header_compiler=yes
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14601 ac_header_compiler=no
14604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14606 echo "${ECHO_T}$ac_header_compiler" >&6; }
14608 # Is the header present?
14609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14611 cat >conftest.$ac_ext <<_ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14617 #include <$ac_header>
14619 if { (ac_try="$ac_cpp conftest.$ac_ext"
14620 case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14627 grep -v '^ *+' conftest.er1 >conftest.err
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } >/dev/null; then
14632 if test -s conftest.err; then
14633 ac_cpp_err=$ac_c_preproc_warn_flag
14634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14641 if test -z "$ac_cpp_err"; then
14642 ac_header_preproc=yes
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_header_preproc=no
14650 rm -f conftest.err conftest.$ac_ext
14651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14652 echo "${ECHO_T}$ac_header_preproc" >&6; }
14654 # So? What about this header?
14655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14661 ac_header_preproc=yes
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14677 ## ------------------------------ ##
14678 ## Report this to bugs@yourdomain ##
14679 ## ------------------------------ ##
14681 ) | sed "s/^/$as_me: WARNING: /" >&2
14684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 eval "$as_ac_Header=\$ac_header_preproc"
14691 ac_res=`eval echo '${'$as_ac_Header'}'`
14692 { echo "$as_me:$LINENO: result: $ac_res" >&5
14693 echo "${ECHO_T}$ac_res" >&6; }
14696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14697 cat >>confdefs.h <<_ACEOF
14698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14711 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14718 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 ac_res=`eval echo '${'$as_ac_Header'}'`
14721 { echo "$as_me:$LINENO: result: $ac_res" >&5
14722 echo "${ECHO_T}$ac_res" >&6; }
14724 # Is the header compilable?
14725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14727 cat >conftest.$ac_ext <<_ACEOF
14730 cat confdefs.h >>conftest.$ac_ext
14731 cat >>conftest.$ac_ext <<_ACEOF
14732 /* end confdefs.h. */
14733 $ac_includes_default
14734 #include <$ac_header>
14736 rm -f conftest.$ac_objext
14737 if { (ac_try="$ac_compile"
14738 case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_compile") 2>conftest.er1
14745 grep -v '^ *+' conftest.er1 >conftest.err
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14751 { (case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_try") 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } &&
14760 { ac_try='test -s conftest.$ac_objext'
14761 { (case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_try") 2>&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14770 ac_header_compiler=yes
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 ac_header_compiler=no
14778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14780 echo "${ECHO_T}$ac_header_compiler" >&6; }
14782 # Is the header present?
14783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14785 cat >conftest.$ac_ext <<_ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 #include <$ac_header>
14793 if { (ac_try="$ac_cpp conftest.$ac_ext"
14794 case "(($ac_try" in
14795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796 *) ac_try_echo=$ac_try;;
14798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14801 grep -v '^ *+' conftest.er1 >conftest.err
14803 cat conftest.err >&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } >/dev/null; then
14806 if test -s conftest.err; then
14807 ac_cpp_err=$ac_c_preproc_warn_flag
14808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14815 if test -z "$ac_cpp_err"; then
14816 ac_header_preproc=yes
14818 echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14821 ac_header_preproc=no
14824 rm -f conftest.err conftest.$ac_ext
14825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14826 echo "${ECHO_T}$ac_header_preproc" >&6; }
14828 # So? What about this header?
14829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14835 ac_header_preproc=yes
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14851 ## ------------------------------ ##
14852 ## Report this to bugs@yourdomain ##
14853 ## ------------------------------ ##
14855 ) | sed "s/^/$as_me: WARNING: /" >&2
14858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 eval "$as_ac_Header=\$ac_header_preproc"
14865 ac_res=`eval echo '${'$as_ac_Header'}'`
14866 { echo "$as_me:$LINENO: result: $ac_res" >&5
14867 echo "${ECHO_T}$ac_res" >&6; }
14870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14871 cat >>confdefs.h <<_ACEOF
14872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14881 for ac_header in utime.h windows.h
14883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 ac_res=`eval echo '${'$as_ac_Header'}'`
14891 { echo "$as_me:$LINENO: result: $ac_res" >&5
14892 echo "${ECHO_T}$ac_res" >&6; }
14894 # Is the header compilable?
14895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14897 cat >conftest.$ac_ext <<_ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 $ac_includes_default
14904 #include <$ac_header>
14906 rm -f conftest.$ac_objext
14907 if { (ac_try="$ac_compile"
14908 case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_compile") 2>conftest.er1
14915 grep -v '^ *+' conftest.er1 >conftest.err
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14921 { (case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_try") 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; } &&
14930 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14940 ac_header_compiler=yes
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_header_compiler=no
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14950 echo "${ECHO_T}$ac_header_compiler" >&6; }
14952 # Is the header present?
14953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14955 cat >conftest.$ac_ext <<_ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include <$ac_header>
14963 if { (ac_try="$ac_cpp conftest.$ac_ext"
14964 case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } >/dev/null; then
14976 if test -s conftest.err; then
14977 ac_cpp_err=$ac_c_preproc_warn_flag
14978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14985 if test -z "$ac_cpp_err"; then
14986 ac_header_preproc=yes
14988 echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14991 ac_header_preproc=no
14994 rm -f conftest.err conftest.$ac_ext
14995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14996 echo "${ECHO_T}$ac_header_preproc" >&6; }
14998 # So? What about this header?
14999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15005 ac_header_preproc=yes
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15021 ## ------------------------------ ##
15022 ## Report this to bugs@yourdomain ##
15023 ## ------------------------------ ##
15025 ) | sed "s/^/$as_me: WARNING: /" >&2
15028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 eval "$as_ac_Header=\$ac_header_preproc"
15035 ac_res=`eval echo '${'$as_ac_Header'}'`
15036 { echo "$as_me:$LINENO: result: $ac_res" >&5
15037 echo "${ECHO_T}$ac_res" >&6; }
15040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15054 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 ac_res=`eval echo '${'$as_ac_Header'}'`
15064 { echo "$as_me:$LINENO: result: $ac_res" >&5
15065 echo "${ECHO_T}$ac_res" >&6; }
15067 # Is the header compilable?
15068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 $ac_includes_default
15077 #include <$ac_header>
15079 rm -f conftest.$ac_objext
15080 if { (ac_try="$ac_compile"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_compile") 2>conftest.er1
15088 grep -v '^ *+' conftest.er1 >conftest.err
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
15093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15094 { (case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099 (eval "$ac_try") 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; } &&
15103 { ac_try='test -s conftest.$ac_objext'
15104 { (case "(($ac_try" in
15105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106 *) ac_try_echo=$ac_try;;
15108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109 (eval "$ac_try") 2>&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113 ac_header_compiler=yes
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 ac_header_compiler=no
15121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15123 echo "${ECHO_T}$ac_header_compiler" >&6; }
15125 # Is the header present?
15126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15128 cat >conftest.$ac_ext <<_ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 #include <$ac_header>
15136 if { (ac_try="$ac_cpp conftest.$ac_ext"
15137 case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15144 grep -v '^ *+' conftest.er1 >conftest.err
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } >/dev/null; then
15149 if test -s conftest.err; then
15150 ac_cpp_err=$ac_c_preproc_warn_flag
15151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15158 if test -z "$ac_cpp_err"; then
15159 ac_header_preproc=yes
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 ac_header_preproc=no
15167 rm -f conftest.err conftest.$ac_ext
15168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15169 echo "${ECHO_T}$ac_header_preproc" >&6; }
15171 # So? What about this header?
15172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15178 ac_header_preproc=yes
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15194 ## ------------------------------ ##
15195 ## Report this to bugs@yourdomain ##
15196 ## ------------------------------ ##
15198 ) | sed "s/^/$as_me: WARNING: /" >&2
15201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 eval "$as_ac_Header=\$ac_header_preproc"
15208 ac_res=`eval echo '${'$as_ac_Header'}'`
15209 { echo "$as_me:$LINENO: result: $ac_res" >&5
15210 echo "${ECHO_T}$ac_res" >&6; }
15213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15214 cat >>confdefs.h <<_ACEOF
15215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15226 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 ac_res=`eval echo '${'$as_ac_Header'}'`
15236 { echo "$as_me:$LINENO: result: $ac_res" >&5
15237 echo "${ECHO_T}$ac_res" >&6; }
15239 # Is the header compilable?
15240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15249 #include <$ac_header>
15251 rm -f conftest.$ac_objext
15252 if { (ac_try="$ac_compile"
15253 case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258 (eval "$ac_compile") 2>conftest.er1
15260 grep -v '^ *+' conftest.er1 >conftest.err
15262 cat conftest.err >&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } &&
15265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15266 { (case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_try") 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_try") 2>&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; }; then
15285 ac_header_compiler=yes
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 ac_header_compiler=no
15293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15295 echo "${ECHO_T}$ac_header_compiler" >&6; }
15297 # Is the header present?
15298 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15300 cat >conftest.$ac_ext <<_ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15306 #include <$ac_header>
15308 if { (ac_try="$ac_cpp conftest.$ac_ext"
15309 case "(($ac_try" in
15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311 *) ac_try_echo=$ac_try;;
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15316 grep -v '^ *+' conftest.er1 >conftest.err
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } >/dev/null; then
15321 if test -s conftest.err; then
15322 ac_cpp_err=$ac_c_preproc_warn_flag
15323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15330 if test -z "$ac_cpp_err"; then
15331 ac_header_preproc=yes
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ac_header_preproc=no
15339 rm -f conftest.err conftest.$ac_ext
15340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15341 echo "${ECHO_T}$ac_header_preproc" >&6; }
15343 # So? What about this header?
15344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15350 ac_header_preproc=yes
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15366 ## ------------------------------ ##
15367 ## Report this to bugs@yourdomain ##
15368 ## ------------------------------ ##
15370 ) | sed "s/^/$as_me: WARNING: /" >&2
15373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15378 eval "$as_ac_Header=\$ac_header_preproc"
15380 ac_res=`eval echo '${'$as_ac_Header'}'`
15381 { echo "$as_me:$LINENO: result: $ac_res" >&5
15382 echo "${ECHO_T}$ac_res" >&6; }
15385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15386 cat >>confdefs.h <<_ACEOF
15387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15395 for ac_header in valgrind/valgrind.h
15397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 ac_res=`eval echo '${'$as_ac_Header'}'`
15405 { echo "$as_me:$LINENO: result: $ac_res" >&5
15406 echo "${ECHO_T}$ac_res" >&6; }
15408 # Is the header compilable?
15409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15411 cat >conftest.$ac_ext <<_ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417 $ac_includes_default
15418 #include <$ac_header>
15420 rm -f conftest.$ac_objext
15421 if { (ac_try="$ac_compile"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_compile") 2>conftest.er1
15429 grep -v '^ *+' conftest.er1 >conftest.err
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15435 { (case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_try") 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest.$ac_objext'
15445 { (case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_try") 2>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
15454 ac_header_compiler=yes
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 ac_header_compiler=no
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15464 echo "${ECHO_T}$ac_header_compiler" >&6; }
15466 # Is the header present?
15467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15469 cat >conftest.$ac_ext <<_ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 #include <$ac_header>
15477 if { (ac_try="$ac_cpp conftest.$ac_ext"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15485 grep -v '^ *+' conftest.er1 >conftest.err
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } >/dev/null; then
15490 if test -s conftest.err; then
15491 ac_cpp_err=$ac_c_preproc_warn_flag
15492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15499 if test -z "$ac_cpp_err"; then
15500 ac_header_preproc=yes
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_header_preproc=no
15508 rm -f conftest.err conftest.$ac_ext
15509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15510 echo "${ECHO_T}$ac_header_preproc" >&6; }
15512 # So? What about this header?
15513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15519 ac_header_preproc=yes
15522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15535 ## ------------------------------ ##
15536 ## Report this to bugs@yourdomain ##
15537 ## ------------------------------ ##
15539 ) | sed "s/^/$as_me: WARNING: /" >&2
15542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 eval "$as_ac_Header=\$ac_header_preproc"
15549 ac_res=`eval echo '${'$as_ac_Header'}'`
15550 { echo "$as_me:$LINENO: result: $ac_res" >&5
15551 echo "${ECHO_T}$ac_res" >&6; }
15554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15555 cat >>confdefs.h <<_ACEOF
15556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15564 for ac_header in fenv.h
15566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15573 ac_res=`eval echo '${'$as_ac_Header'}'`
15574 { echo "$as_me:$LINENO: result: $ac_res" >&5
15575 echo "${ECHO_T}$ac_res" >&6; }
15577 # Is the header compilable?
15578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15580 cat >conftest.$ac_ext <<_ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586 $ac_includes_default
15587 #include <$ac_header>
15589 rm -f conftest.$ac_objext
15590 if { (ac_try="$ac_compile"
15591 case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_compile") 2>conftest.er1
15598 grep -v '^ *+' conftest.er1 >conftest.err
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15604 { (case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_try") 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; } &&
15613 { ac_try='test -s conftest.$ac_objext'
15614 { (case "(($ac_try" in
15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15619 (eval "$ac_try") 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; }; then
15623 ac_header_compiler=yes
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15628 ac_header_compiler=no
15631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15633 echo "${ECHO_T}$ac_header_compiler" >&6; }
15635 # Is the header present?
15636 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <$ac_header>
15646 if { (ac_try="$ac_cpp conftest.$ac_ext"
15647 case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15654 grep -v '^ *+' conftest.er1 >conftest.err
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } >/dev/null; then
15659 if test -s conftest.err; then
15660 ac_cpp_err=$ac_c_preproc_warn_flag
15661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15668 if test -z "$ac_cpp_err"; then
15669 ac_header_preproc=yes
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 ac_header_preproc=no
15677 rm -f conftest.err conftest.$ac_ext
15678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15679 echo "${ECHO_T}$ac_header_preproc" >&6; }
15681 # So? What about this header?
15682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15688 ac_header_preproc=yes
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15704 ## ------------------------------ ##
15705 ## Report this to bugs@yourdomain ##
15706 ## ------------------------------ ##
15708 ) | sed "s/^/$as_me: WARNING: /" >&2
15711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15716 eval "$as_ac_Header=\$ac_header_preproc"
15718 ac_res=`eval echo '${'$as_ac_Header'}'`
15719 { echo "$as_me:$LINENO: result: $ac_res" >&5
15720 echo "${ECHO_T}$ac_res" >&6; }
15723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15724 cat >>confdefs.h <<_ACEOF
15725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15732 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15734 for ac_header in pthread.h
15736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744 { echo "$as_me:$LINENO: result: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15747 # Is the header compilable?
15748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 $ac_includes_default
15757 #include <$ac_header>
15759 rm -f conftest.$ac_objext
15760 if { (ac_try="$ac_compile"
15761 case "(($ac_try" in
15762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763 *) ac_try_echo=$ac_try;;
15765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15766 (eval "$ac_compile") 2>conftest.er1
15768 grep -v '^ *+' conftest.er1 >conftest.err
15770 cat conftest.err >&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15774 { (case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_try") 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest.$ac_objext'
15784 { (case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_try") 2>&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_header_compiler=yes
15795 echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15798 ac_header_compiler=no
15801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15803 echo "${ECHO_T}$ac_header_compiler" >&6; }
15805 # Is the header present?
15806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15808 cat >conftest.$ac_ext <<_ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15814 #include <$ac_header>
15816 if { (ac_try="$ac_cpp conftest.$ac_ext"
15817 case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15824 grep -v '^ *+' conftest.er1 >conftest.err
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } >/dev/null; then
15829 if test -s conftest.err; then
15830 ac_cpp_err=$ac_c_preproc_warn_flag
15831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15838 if test -z "$ac_cpp_err"; then
15839 ac_header_preproc=yes
15841 echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15844 ac_header_preproc=no
15847 rm -f conftest.err conftest.$ac_ext
15848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15849 echo "${ECHO_T}$ac_header_preproc" >&6; }
15851 # So? What about this header?
15852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15858 ac_header_preproc=yes
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15874 ## ------------------------------ ##
15875 ## Report this to bugs@yourdomain ##
15876 ## ------------------------------ ##
15878 ) | sed "s/^/$as_me: WARNING: /" >&2
15881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 eval "$as_ac_Header=\$ac_header_preproc"
15888 ac_res=`eval echo '${'$as_ac_Header'}'`
15889 { echo "$as_me:$LINENO: result: $ac_res" >&5
15890 echo "${ECHO_T}$ac_res" >&6; }
15893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15894 cat >>confdefs.h <<_ACEOF
15895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15910 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
15912 for ac_header in zlib.h
15914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 ac_res=`eval echo '${'$as_ac_Header'}'`
15922 { echo "$as_me:$LINENO: result: $ac_res" >&5
15923 echo "${ECHO_T}$ac_res" >&6; }
15925 # Is the header compilable?
15926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15928 cat >conftest.$ac_ext <<_ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 $ac_includes_default
15935 #include <$ac_header>
15937 rm -f conftest.$ac_objext
15938 if { (ac_try="$ac_compile"
15939 case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_compile") 2>conftest.er1
15946 grep -v '^ *+' conftest.er1 >conftest.err
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15952 { (case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_try") 2>&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest.$ac_objext'
15962 { (case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_try") 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_header_compiler=yes
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_header_compiler=no
15979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15981 echo "${ECHO_T}$ac_header_compiler" >&6; }
15983 # Is the header present?
15984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15986 cat >conftest.$ac_ext <<_ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 #include <$ac_header>
15994 if { (ac_try="$ac_cpp conftest.$ac_ext"
15995 case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16002 grep -v '^ *+' conftest.er1 >conftest.err
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } >/dev/null; then
16007 if test -s conftest.err; then
16008 ac_cpp_err=$ac_c_preproc_warn_flag
16009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16016 if test -z "$ac_cpp_err"; then
16017 ac_header_preproc=yes
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16022 ac_header_preproc=no
16025 rm -f conftest.err conftest.$ac_ext
16026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16027 echo "${ECHO_T}$ac_header_preproc" >&6; }
16029 # So? What about this header?
16030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16036 ac_header_preproc=yes
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16052 ## ------------------------------ ##
16053 ## Report this to bugs@yourdomain ##
16054 ## ------------------------------ ##
16056 ) | sed "s/^/$as_me: WARNING: /" >&2
16059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16064 eval "$as_ac_Header=\$ac_header_preproc"
16066 ac_res=`eval echo '${'$as_ac_Header'}'`
16067 { echo "$as_me:$LINENO: result: $ac_res" >&5
16068 echo "${ECHO_T}$ac_res" >&6; }
16071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16072 cat >>confdefs.h <<_ACEOF
16073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16089 if test "$llvm_cv_enable_libffi" = "yes" ; then
16092 for ac_header in ffi.h ffi/ffi.h
16094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 ac_res=`eval echo '${'$as_ac_Header'}'`
16102 { echo "$as_me:$LINENO: result: $ac_res" >&5
16103 echo "${ECHO_T}$ac_res" >&6; }
16105 # Is the header compilable?
16106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16108 cat >conftest.$ac_ext <<_ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h. */
16114 $ac_includes_default
16115 #include <$ac_header>
16117 rm -f conftest.$ac_objext
16118 if { (ac_try="$ac_compile"
16119 case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_compile") 2>conftest.er1
16126 grep -v '^ *+' conftest.er1 >conftest.err
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } &&
16141 { ac_try='test -s conftest.$ac_objext'
16142 { (case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_try") 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_header_compiler=yes
16153 echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16156 ac_header_compiler=no
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16161 echo "${ECHO_T}$ac_header_compiler" >&6; }
16163 # Is the header present?
16164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16166 cat >conftest.$ac_ext <<_ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172 #include <$ac_header>
16174 if { (ac_try="$ac_cpp conftest.$ac_ext"
16175 case "(($ac_try" in
16176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177 *) ac_try_echo=$ac_try;;
16179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16182 grep -v '^ *+' conftest.er1 >conftest.err
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } >/dev/null; then
16187 if test -s conftest.err; then
16188 ac_cpp_err=$ac_c_preproc_warn_flag
16189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16196 if test -z "$ac_cpp_err"; then
16197 ac_header_preproc=yes
16199 echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16202 ac_header_preproc=no
16205 rm -f conftest.err conftest.$ac_ext
16206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16207 echo "${ECHO_T}$ac_header_preproc" >&6; }
16209 # So? What about this header?
16210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16216 ac_header_preproc=yes
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16232 ## ------------------------------ ##
16233 ## Report this to bugs@yourdomain ##
16234 ## ------------------------------ ##
16236 ) | sed "s/^/$as_me: WARNING: /" >&2
16239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 eval "$as_ac_Header=\$ac_header_preproc"
16246 ac_res=`eval echo '${'$as_ac_Header'}'`
16247 { echo "$as_me:$LINENO: result: $ac_res" >&5
16248 echo "${ECHO_T}$ac_res" >&6; }
16251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16252 cat >>confdefs.h <<_ACEOF
16253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16263 for ac_header in CrashReporterClient.h
16265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 ac_res=`eval echo '${'$as_ac_Header'}'`
16273 { echo "$as_me:$LINENO: result: $ac_res" >&5
16274 echo "${ECHO_T}$ac_res" >&6; }
16276 # Is the header compilable?
16277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 $ac_includes_default
16286 #include <$ac_header>
16288 rm -f conftest.$ac_objext
16289 if { (ac_try="$ac_compile"
16290 case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_compile") 2>conftest.er1
16297 grep -v '^ *+' conftest.er1 >conftest.err
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
16302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16303 { (case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_try") 2>&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; } &&
16312 { ac_try='test -s conftest.$ac_objext'
16313 { (case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_try") 2>&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 ac_header_compiler=yes
16324 echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16327 ac_header_compiler=no
16330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16332 echo "${ECHO_T}$ac_header_compiler" >&6; }
16334 # Is the header present?
16335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16337 cat >conftest.$ac_ext <<_ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 #include <$ac_header>
16345 if { (ac_try="$ac_cpp conftest.$ac_ext"
16346 case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16353 grep -v '^ *+' conftest.er1 >conftest.err
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } >/dev/null; then
16358 if test -s conftest.err; then
16359 ac_cpp_err=$ac_c_preproc_warn_flag
16360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16367 if test -z "$ac_cpp_err"; then
16368 ac_header_preproc=yes
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 ac_header_preproc=no
16376 rm -f conftest.err conftest.$ac_ext
16377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16378 echo "${ECHO_T}$ac_header_preproc" >&6; }
16380 # So? What about this header?
16381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16387 ac_header_preproc=yes
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16403 ## ------------------------------ ##
16404 ## Report this to bugs@yourdomain ##
16405 ## ------------------------------ ##
16407 ) | sed "s/^/$as_me: WARNING: /" >&2
16410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 eval "$as_ac_Header=\$ac_header_preproc"
16417 ac_res=`eval echo '${'$as_ac_Header'}'`
16418 { echo "$as_me:$LINENO: result: $ac_res" >&5
16419 echo "${ECHO_T}$ac_res" >&6; }
16422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16423 cat >>confdefs.h <<_ACEOF
16424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16432 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16433 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16434 cat >conftest.$ac_ext <<_ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16440 extern const char *__crashreporter_info__;
16442 __crashreporter_info__ = "test";
16447 rm -f conftest.$ac_objext conftest$ac_exeext
16448 if { (ac_try="$ac_link"
16449 case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_link") 2>conftest.er1
16456 grep -v '^ *+' conftest.er1 >conftest.err
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16462 { (case "(($ac_try" in
16463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464 *) ac_try_echo=$ac_try;;
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467 (eval "$ac_try") 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; } &&
16471 { ac_try='test -s conftest$ac_exeext'
16472 { (case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_try") 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 { echo "$as_me:$LINENO: result: yes" >&5
16482 echo "${ECHO_T}yes" >&6; }
16484 cat >>confdefs.h <<\_ACEOF
16485 #define HAVE_CRASHREPORTER_INFO 1
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 { echo "$as_me:$LINENO: result: no" >&5
16493 echo "${ECHO_T}no" >&6; }
16495 cat >>confdefs.h <<\_ACEOF
16496 #define HAVE_CRASHREPORTER_INFO 0
16501 rm -f core conftest.err conftest.$ac_objext \
16502 conftest$ac_exeext conftest.$ac_ext
16507 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16508 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16509 if test "${ac_cv_huge_val_sanity+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 ac_cpp='$CXXCPP $CPPFLAGS'
16515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16519 ac_save_CXXFLAGS=$CXXFLAGS
16520 CXXFLAGS="$CXXFLAGS -pedantic"
16521 if test "$cross_compiling" = yes; then
16522 ac_cv_huge_val_sanity=yes
16524 cat >conftest.$ac_ext <<_ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16534 double x = HUGE_VAL; return x != x;
16539 rm -f conftest$ac_exeext
16540 if { (ac_try="$ac_link"
16541 case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_link") 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16550 { (case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555 (eval "$ac_try") 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16559 ac_cv_huge_val_sanity=yes
16561 echo "$as_me: program exited with status $ac_status" >&5
16562 echo "$as_me: failed program was:" >&5
16563 sed 's/^/| /' conftest.$ac_ext >&5
16565 ( exit $ac_status )
16566 ac_cv_huge_val_sanity=no
16568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16572 CXXFLAGS=$ac_save_CXXFLAGS
16574 ac_cpp='$CPP $CPPFLAGS'
16575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16581 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16582 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16583 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16586 { echo "$as_me:$LINENO: checking for pid_t" >&5
16587 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16588 if test "${ac_cv_type_pid_t+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 cat >conftest.$ac_ext <<_ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h. */
16597 $ac_includes_default
16598 typedef pid_t ac__type_new_;
16602 if ((ac__type_new_ *) 0)
16604 if (sizeof (ac__type_new_))
16610 rm -f conftest.$ac_objext
16611 if { (ac_try="$ac_compile"
16612 case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_compile") 2>conftest.er1
16619 grep -v '^ *+' conftest.er1 >conftest.err
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16625 { (case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_try") 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest.$ac_objext'
16635 { (case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_type_pid_t=yes
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_cv_type_pid_t=no
16652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16654 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16655 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16656 if test $ac_cv_type_pid_t = yes; then
16660 cat >>confdefs.h <<_ACEOF
16666 { echo "$as_me:$LINENO: checking for size_t" >&5
16667 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16668 if test "${ac_cv_type_size_t+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 cat >conftest.$ac_ext <<_ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16677 $ac_includes_default
16678 typedef size_t ac__type_new_;
16682 if ((ac__type_new_ *) 0)
16684 if (sizeof (ac__type_new_))
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16699 grep -v '^ *+' conftest.er1 >conftest.err
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_type_size_t=yes
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 ac_cv_type_size_t=no
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16735 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16736 if test $ac_cv_type_size_t = yes; then
16740 cat >>confdefs.h <<_ACEOF
16741 #define size_t unsigned int
16747 cat >>confdefs.h <<_ACEOF
16748 #define RETSIGTYPE void
16751 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16752 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16753 if test "${ac_cv_struct_tm+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 cat >conftest.$ac_ext <<_ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 #include <sys/types.h>
16768 struct tm *tp; tp->tm_sec;
16773 rm -f conftest.$ac_objext
16774 if { (ac_try="$ac_compile"
16775 case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_compile") 2>conftest.er1
16782 grep -v '^ *+' conftest.er1 >conftest.err
16784 cat conftest.err >&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } &&
16787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16788 { (case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793 (eval "$ac_try") 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest.$ac_objext'
16798 { (case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_try") 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_cv_struct_tm=time.h
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16812 ac_cv_struct_tm=sys/time.h
16815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16818 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16819 if test $ac_cv_struct_tm = sys/time.h; then
16821 cat >>confdefs.h <<\_ACEOF
16822 #define TM_IN_SYS_TIME 1
16827 { echo "$as_me:$LINENO: checking for int64_t" >&5
16828 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16829 if test "${ac_cv_type_int64_t+set}" = set; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 cat >conftest.$ac_ext <<_ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16838 $ac_includes_default
16839 typedef int64_t ac__type_new_;
16843 if ((ac__type_new_ *) 0)
16845 if (sizeof (ac__type_new_))
16851 rm -f conftest.$ac_objext
16852 if { (ac_try="$ac_compile"
16853 case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_compile") 2>conftest.er1
16860 grep -v '^ *+' conftest.er1 >conftest.err
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest.$ac_objext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_type_int64_t=yes
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16890 ac_cv_type_int64_t=no
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16896 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16897 if test $ac_cv_type_int64_t = yes; then
16899 cat >>confdefs.h <<_ACEOF
16900 #define HAVE_INT64_T 1
16905 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16906 echo "$as_me: error: Type int64_t required but not found" >&2;}
16907 { (exit 1); exit 1; }; }
16910 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16911 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16912 if test "${ac_cv_type_uint64_t+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 cat >conftest.$ac_ext <<_ACEOF
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h. */
16921 $ac_includes_default
16922 typedef uint64_t ac__type_new_;
16926 if ((ac__type_new_ *) 0)
16928 if (sizeof (ac__type_new_))
16934 rm -f conftest.$ac_objext
16935 if { (ac_try="$ac_compile"
16936 case "(($ac_try" in
16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938 *) ac_try_echo=$ac_try;;
16940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941 (eval "$ac_compile") 2>conftest.er1
16943 grep -v '^ *+' conftest.er1 >conftest.err
16945 cat conftest.err >&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
16948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16949 { (case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_try") 2>&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; } &&
16958 { ac_try='test -s conftest.$ac_objext'
16959 { (case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_try") 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_type_uint64_t=yes
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 ac_cv_type_uint64_t=no
16976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16978 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16979 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16980 if test $ac_cv_type_uint64_t = yes; then
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_UINT64_T 1
16988 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16989 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16990 if test "${ac_cv_type_u_int64_t+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 $ac_includes_default
17000 typedef u_int64_t ac__type_new_;
17004 if ((ac__type_new_ *) 0)
17006 if (sizeof (ac__type_new_))
17012 rm -f conftest.$ac_objext
17013 if { (ac_try="$ac_compile"
17014 case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_compile") 2>conftest.er1
17021 grep -v '^ *+' conftest.er1 >conftest.err
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17027 { (case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_try") 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; } &&
17036 { ac_try='test -s conftest.$ac_objext'
17037 { (case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_try") 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 ac_cv_type_u_int64_t=yes
17048 echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17051 ac_cv_type_u_int64_t=no
17054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17056 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17057 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17058 if test $ac_cv_type_u_int64_t = yes; then
17060 cat >>confdefs.h <<_ACEOF
17061 #define HAVE_U_INT64_T 1
17066 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17067 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17068 { (exit 1); exit 1; }; }
17082 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17090 cat >conftest.$ac_ext <<_ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17098 #define $ac_func innocuous_$ac_func
17100 /* System header to define __stub macros and hopefully few prototypes,
17101 which can conflict with char $ac_func (); below.
17102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17103 <limits.h> exists even on freestanding compilers. */
17106 # include <limits.h>
17108 # include <assert.h>
17113 /* Override any GCC internal prototype to avoid an error.
17114 Use char because int might match the return type of a GCC
17115 builtin and then its argument prototype would still apply. */
17120 /* The GNU C library defines this for functions which it implements
17121 to always fail with ENOSYS. Some functions are actually named
17122 something starting with __ and the normal name is an alias. */
17123 #if defined __stub_$ac_func || defined __stub___$ac_func
17130 return $ac_func ();
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
17144 grep -v '^ *+' conftest.er1 >conftest.err
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150 { (case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_try") 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest$ac_exeext'
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 eval "$as_ac_var=yes"
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 eval "$as_ac_var=no"
17177 rm -f core conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17180 ac_res=`eval echo '${'$as_ac_var'}'`
17181 { echo "$as_me:$LINENO: result: $ac_res" >&5
17182 echo "${ECHO_T}$ac_res" >&6; }
17183 if test `eval echo '${'$as_ac_var'}'` = yes; then
17184 cat >>confdefs.h <<_ACEOF
17185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17195 for ac_func in powf fmodf strtof round
17197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 cat >conftest.$ac_ext <<_ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17211 #define $ac_func innocuous_$ac_func
17213 /* System header to define __stub macros and hopefully few prototypes,
17214 which can conflict with char $ac_func (); below.
17215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17216 <limits.h> exists even on freestanding compilers. */
17219 # include <limits.h>
17221 # include <assert.h>
17226 /* Override any GCC internal prototype to avoid an error.
17227 Use char because int might match the return type of a GCC
17228 builtin and then its argument prototype would still apply. */
17233 /* The GNU C library defines this for functions which it implements
17234 to always fail with ENOSYS. Some functions are actually named
17235 something starting with __ and the normal name is an alias. */
17236 #if defined __stub_$ac_func || defined __stub___$ac_func
17243 return $ac_func ();
17248 rm -f conftest.$ac_objext conftest$ac_exeext
17249 if { (ac_try="$ac_link"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_link") 2>conftest.er1
17257 grep -v '^ *+' conftest.er1 >conftest.err
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest$ac_exeext'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 eval "$as_ac_var=yes"
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 eval "$as_ac_var=no"
17290 rm -f core conftest.err conftest.$ac_objext \
17291 conftest$ac_exeext conftest.$ac_ext
17293 ac_res=`eval echo '${'$as_ac_var'}'`
17294 { echo "$as_me:$LINENO: result: $ac_res" >&5
17295 echo "${ECHO_T}$ac_res" >&6; }
17296 if test `eval echo '${'$as_ac_var'}'` = yes; then
17297 cat >>confdefs.h <<_ACEOF
17298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17309 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 cat >conftest.$ac_ext <<_ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h. */
17323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17325 #define $ac_func innocuous_$ac_func
17327 /* System header to define __stub macros and hopefully few prototypes,
17328 which can conflict with char $ac_func (); below.
17329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17330 <limits.h> exists even on freestanding compilers. */
17333 # include <limits.h>
17335 # include <assert.h>
17340 /* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17347 /* The GNU C library defines this for functions which it implements
17348 to always fail with ENOSYS. Some functions are actually named
17349 something starting with __ and the normal name is an alias. */
17350 #if defined __stub_$ac_func || defined __stub___$ac_func
17357 return $ac_func ();
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_link") 2>conftest.er1
17371 grep -v '^ *+' conftest.er1 >conftest.err
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } &&
17386 { ac_try='test -s conftest$ac_exeext'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 eval "$as_ac_var=yes"
17398 echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17401 eval "$as_ac_var=no"
17404 rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17407 ac_res=`eval echo '${'$as_ac_var'}'`
17408 { echo "$as_me:$LINENO: result: $ac_res" >&5
17409 echo "${ECHO_T}$ac_res" >&6; }
17410 if test `eval echo '${'$as_ac_var'}'` = yes; then
17411 cat >>confdefs.h <<_ACEOF
17412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17421 for ac_func in isatty mkdtemp mkstemp
17423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 cat >conftest.$ac_ext <<_ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17437 #define $ac_func innocuous_$ac_func
17439 /* System header to define __stub macros and hopefully few prototypes,
17440 which can conflict with char $ac_func (); below.
17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442 <limits.h> exists even on freestanding compilers. */
17445 # include <limits.h>
17447 # include <assert.h>
17452 /* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
17459 /* The GNU C library defines this for functions which it implements
17460 to always fail with ENOSYS. Some functions are actually named
17461 something starting with __ and the normal name is an alias. */
17462 #if defined __stub_$ac_func || defined __stub___$ac_func
17469 return $ac_func ();
17474 rm -f conftest.$ac_objext conftest$ac_exeext
17475 if { (ac_try="$ac_link"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_link") 2>conftest.er1
17483 grep -v '^ *+' conftest.er1 >conftest.err
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_try") 2>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 eval "$as_ac_var=yes"
17510 echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17513 eval "$as_ac_var=no"
17516 rm -f core conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17519 ac_res=`eval echo '${'$as_ac_var'}'`
17520 { echo "$as_me:$LINENO: result: $ac_res" >&5
17521 echo "${ECHO_T}$ac_res" >&6; }
17522 if test `eval echo '${'$as_ac_var'}'` = yes; then
17523 cat >>confdefs.h <<_ACEOF
17524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17536 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 cat >conftest.$ac_ext <<_ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17552 #define $ac_func innocuous_$ac_func
17554 /* System header to define __stub macros and hopefully few prototypes,
17555 which can conflict with char $ac_func (); below.
17556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17557 <limits.h> exists even on freestanding compilers. */
17560 # include <limits.h>
17562 # include <assert.h>
17567 /* Override any GCC internal prototype to avoid an error.
17568 Use char because int might match the return type of a GCC
17569 builtin and then its argument prototype would still apply. */
17574 /* The GNU C library defines this for functions which it implements
17575 to always fail with ENOSYS. Some functions are actually named
17576 something starting with __ and the normal name is an alias. */
17577 #if defined __stub_$ac_func || defined __stub___$ac_func
17584 return $ac_func ();
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (ac_try="$ac_link"
17591 case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_link") 2>conftest.er1
17598 grep -v '^ *+' conftest.er1 >conftest.err
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
17603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try='test -s conftest$ac_exeext'
17614 { (case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_try") 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623 eval "$as_ac_var=yes"
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 eval "$as_ac_var=no"
17631 rm -f core conftest.err conftest.$ac_objext \
17632 conftest$ac_exeext conftest.$ac_ext
17634 ac_res=`eval echo '${'$as_ac_var'}'`
17635 { echo "$as_me:$LINENO: result: $ac_res" >&5
17636 echo "${ECHO_T}$ac_res" >&6; }
17637 if test `eval echo '${'$as_ac_var'}'` = yes; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17648 for ac_func in strerror strerror_r setenv
17650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 cat >conftest.$ac_ext <<_ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17664 #define $ac_func innocuous_$ac_func
17666 /* System header to define __stub macros and hopefully few prototypes,
17667 which can conflict with char $ac_func (); below.
17668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17669 <limits.h> exists even on freestanding compilers. */
17672 # include <limits.h>
17674 # include <assert.h>
17679 /* Override any GCC internal prototype to avoid an error.
17680 Use char because int might match the return type of a GCC
17681 builtin and then its argument prototype would still apply. */
17686 /* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
17689 #if defined __stub_$ac_func || defined __stub___$ac_func
17696 return $ac_func ();
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest$ac_exeext'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 eval "$as_ac_var=yes"
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 eval "$as_ac_var=no"
17743 rm -f core conftest.err conftest.$ac_objext \
17744 conftest$ac_exeext conftest.$ac_ext
17746 ac_res=`eval echo '${'$as_ac_var'}'`
17747 { echo "$as_me:$LINENO: result: $ac_res" >&5
17748 echo "${ECHO_T}$ac_res" >&6; }
17749 if test `eval echo '${'$as_ac_var'}'` = yes; then
17750 cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17761 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 cat >conftest.$ac_ext <<_ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17777 #define $ac_func innocuous_$ac_func
17779 /* System header to define __stub macros and hopefully few prototypes,
17780 which can conflict with char $ac_func (); below.
17781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17782 <limits.h> exists even on freestanding compilers. */
17785 # include <limits.h>
17787 # include <assert.h>
17792 /* Override any GCC internal prototype to avoid an error.
17793 Use char because int might match the return type of a GCC
17794 builtin and then its argument prototype would still apply. */
17799 /* The GNU C library defines this for functions which it implements
17800 to always fail with ENOSYS. Some functions are actually named
17801 something starting with __ and the normal name is an alias. */
17802 #if defined __stub_$ac_func || defined __stub___$ac_func
17809 return $ac_func ();
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_link") 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest$ac_exeext'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 eval "$as_ac_var=yes"
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 eval "$as_ac_var=no"
17856 rm -f core conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
17859 ac_res=`eval echo '${'$as_ac_var'}'`
17860 { echo "$as_me:$LINENO: result: $ac_res" >&5
17861 echo "${ECHO_T}$ac_res" >&6; }
17862 if test `eval echo '${'$as_ac_var'}'` = yes; then
17863 cat >>confdefs.h <<_ACEOF
17864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17875 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 cat >conftest.$ac_ext <<_ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17891 #define $ac_func innocuous_$ac_func
17893 /* System header to define __stub macros and hopefully few prototypes,
17894 which can conflict with char $ac_func (); below.
17895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17896 <limits.h> exists even on freestanding compilers. */
17899 # include <limits.h>
17901 # include <assert.h>
17906 /* Override any GCC internal prototype to avoid an error.
17907 Use char because int might match the return type of a GCC
17908 builtin and then its argument prototype would still apply. */
17913 /* The GNU C library defines this for functions which it implements
17914 to always fail with ENOSYS. Some functions are actually named
17915 something starting with __ and the normal name is an alias. */
17916 #if defined __stub_$ac_func || defined __stub___$ac_func
17923 return $ac_func ();
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (ac_try="$ac_link"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_link") 2>conftest.er1
17937 grep -v '^ *+' conftest.er1 >conftest.err
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try='test -s conftest$ac_exeext'
17953 { (case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_try") 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; }; then
17962 eval "$as_ac_var=yes"
17964 echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17967 eval "$as_ac_var=no"
17970 rm -f core conftest.err conftest.$ac_objext \
17971 conftest$ac_exeext conftest.$ac_ext
17973 ac_res=`eval echo '${'$as_ac_var'}'`
17974 { echo "$as_me:$LINENO: result: $ac_res" >&5
17975 echo "${ECHO_T}$ac_res" >&6; }
17976 if test `eval echo '${'$as_ac_var'}'` = yes; then
17977 cat >>confdefs.h <<_ACEOF
17978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17984 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17985 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17986 if test "${llvm_cv_c_printf_a+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17990 ac_cpp='$CPP $CPPFLAGS'
17991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17995 if test "$cross_compiling" = yes; then
17996 llvmac_cv_c_printf_a=no
17998 cat >conftest.$ac_ext <<_ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18007 #include <stdlib.h>
18013 volatile double A, B;
18017 sprintf(Buffer, "%a", A);
18021 if (A != 0x1.999999999999ap-4)
18028 rm -f conftest$ac_exeext
18029 if { (ac_try="$ac_link"
18030 case "(($ac_try" in
18031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18032 *) ac_try_echo=$ac_try;;
18034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18035 (eval "$ac_link") 2>&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18039 { (case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_try") 2>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048 llvm_cv_c_printf_a=yes
18050 echo "$as_me: program exited with status $ac_status" >&5
18051 echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18054 ( exit $ac_status )
18055 llvmac_cv_c_printf_a=no
18057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18062 ac_cpp='$CPP $CPPFLAGS'
18063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18068 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18069 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18070 if test "$llvm_cv_c_printf_a" = "yes"; then
18072 cat >>confdefs.h <<\_ACEOF
18073 #define HAVE_PRINTF_A 1
18079 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18080 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18081 if test "${ac_cv_func_rand48+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18085 ac_cpp='$CXXCPP $CPPFLAGS'
18086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18090 cat >conftest.$ac_ext <<_ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18096 #include <stdlib.h>
18100 srand48(0);lrand48();drand48();
18105 rm -f conftest.$ac_objext
18106 if { (ac_try="$ac_compile"
18107 case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_compile") 2>conftest.er1
18114 grep -v '^ *+' conftest.er1 >conftest.err
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18120 { (case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_try") 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
18130 { (case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_try") 2>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; }; then
18139 ac_cv_func_rand48=yes
18141 echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18144 ac_cv_func_rand48=no
18147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149 ac_cpp='$CPP $CPPFLAGS'
18150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18155 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18156 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18158 if test "$ac_cv_func_rand48" = "yes" ; then
18160 cat >>confdefs.h <<\_ACEOF
18161 #define HAVE_RAND48 1
18167 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18168 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18169 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18172 cat >conftest.$ac_ext <<_ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 $ac_includes_default
18183 char *p = (char *) strerror_s;
18191 rm -f conftest.$ac_objext
18192 if { (ac_try="$ac_compile"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_compile") 2>conftest.er1
18200 grep -v '^ *+' conftest.er1 >conftest.err
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } &&
18205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18206 { (case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_try") 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest.$ac_objext'
18216 { (case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_try") 2>&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
18225 ac_cv_have_decl_strerror_s=yes
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18230 ac_cv_have_decl_strerror_s=no
18233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18236 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18237 if test $ac_cv_have_decl_strerror_s = yes; then
18239 cat >>confdefs.h <<_ACEOF
18240 #define HAVE_DECL_STRERROR_S 1
18245 cat >>confdefs.h <<_ACEOF
18246 #define HAVE_DECL_STRERROR_S 0
18254 if test "$llvm_cv_os_type" = "MingW" ; then
18255 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18256 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18257 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 ac_check_lib_save_LIBS=$LIBS
18262 cat >conftest.$ac_ext <<_ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h. */
18269 /* Override any GCC internal prototype to avoid an error.
18270 Use char because int might match the return type of a GCC
18271 builtin and then its argument prototype would still apply. */
18284 rm -f conftest.$ac_objext conftest$ac_exeext
18285 if { (ac_try="$ac_link"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_link") 2>conftest.er1
18293 grep -v '^ *+' conftest.er1 >conftest.err
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } &&
18298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18299 { (case "(($ac_try" in
18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301 *) ac_try_echo=$ac_try;;
18303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304 (eval "$ac_try") 2>&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest$ac_exeext'
18309 { (case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_try") 2>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 ac_cv_lib_gcc__alloca=yes
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 ac_cv_lib_gcc__alloca=no
18326 rm -f core conftest.err conftest.$ac_objext \
18327 conftest$ac_exeext conftest.$ac_ext
18328 LIBS=$ac_check_lib_save_LIBS
18330 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18331 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18332 if test $ac_cv_lib_gcc__alloca = yes; then
18334 cat >>confdefs.h <<\_ACEOF
18335 #define HAVE__ALLOCA 1
18340 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18341 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18342 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18343 echo $ECHO_N "(cached) $ECHO_C" >&6
18345 ac_check_lib_save_LIBS=$LIBS
18347 cat >conftest.$ac_ext <<_ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18354 /* Override any GCC internal prototype to avoid an error.
18355 Use char because int might match the return type of a GCC
18356 builtin and then its argument prototype would still apply. */
18364 return __alloca ();
18369 rm -f conftest.$ac_objext conftest$ac_exeext
18370 if { (ac_try="$ac_link"
18371 case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376 (eval "$ac_link") 2>conftest.er1
18378 grep -v '^ *+' conftest.er1 >conftest.err
18380 cat conftest.err >&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
18383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18384 { (case "(($ac_try" in
18385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386 *) ac_try_echo=$ac_try;;
18388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18389 (eval "$ac_try") 2>&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; } &&
18393 { ac_try='test -s conftest$ac_exeext'
18394 { (case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399 (eval "$ac_try") 2>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; }; then
18403 ac_cv_lib_gcc___alloca=yes
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18408 ac_cv_lib_gcc___alloca=no
18411 rm -f core conftest.err conftest.$ac_objext \
18412 conftest$ac_exeext conftest.$ac_ext
18413 LIBS=$ac_check_lib_save_LIBS
18415 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18416 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18417 if test $ac_cv_lib_gcc___alloca = yes; then
18419 cat >>confdefs.h <<\_ACEOF
18420 #define HAVE___ALLOCA 1
18425 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18426 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18427 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18430 ac_check_lib_save_LIBS=$LIBS
18432 cat >conftest.$ac_ext <<_ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18439 /* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
18449 return __chkstk ();
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (ac_try="$ac_link"
18456 case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_link") 2>conftest.er1
18463 grep -v '^ *+' conftest.er1 >conftest.err
18465 cat conftest.err >&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
18468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18469 { (case "(($ac_try" in
18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474 (eval "$ac_try") 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest$ac_exeext'
18479 { (case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_try") 2>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 ac_cv_lib_gcc___chkstk=yes
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 ac_cv_lib_gcc___chkstk=no
18496 rm -f core conftest.err conftest.$ac_objext \
18497 conftest$ac_exeext conftest.$ac_ext
18498 LIBS=$ac_check_lib_save_LIBS
18500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18501 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18502 if test $ac_cv_lib_gcc___chkstk = yes; then
18504 cat >>confdefs.h <<\_ACEOF
18505 #define HAVE___CHKSTK 1
18510 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18511 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18512 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 ac_check_lib_save_LIBS=$LIBS
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18524 /* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */
18534 return ___chkstk ();
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (ac_try="$ac_link"
18541 case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546 (eval "$ac_link") 2>conftest.er1
18548 grep -v '^ *+' conftest.er1 >conftest.err
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
18553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18554 { (case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_try") 2>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; } &&
18563 { ac_try='test -s conftest$ac_exeext'
18564 { (case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_try") 2>&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 ac_cv_lib_gcc____chkstk=yes
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18578 ac_cv_lib_gcc____chkstk=no
18581 rm -f core conftest.err conftest.$ac_objext \
18582 conftest$ac_exeext conftest.$ac_ext
18583 LIBS=$ac_check_lib_save_LIBS
18585 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18586 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18587 if test $ac_cv_lib_gcc____chkstk = yes; then
18589 cat >>confdefs.h <<\_ACEOF
18590 #define HAVE____CHKSTK 1
18596 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18597 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18598 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18601 ac_check_lib_save_LIBS=$LIBS
18603 cat >conftest.$ac_ext <<_ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18610 /* Override any GCC internal prototype to avoid an error.
18611 Use char because int might match the return type of a GCC
18612 builtin and then its argument prototype would still apply. */
18620 return __ashldi3 ();
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (ac_try="$ac_link"
18627 case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_link") 2>conftest.er1
18634 grep -v '^ *+' conftest.er1 >conftest.err
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
18639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18640 { (case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645 (eval "$ac_try") 2>&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; } &&
18649 { ac_try='test -s conftest$ac_exeext'
18650 { (case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_try") 2>&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18659 ac_cv_lib_gcc___ashldi3=yes
18661 echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18664 ac_cv_lib_gcc___ashldi3=no
18667 rm -f core conftest.err conftest.$ac_objext \
18668 conftest$ac_exeext conftest.$ac_ext
18669 LIBS=$ac_check_lib_save_LIBS
18671 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18672 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18673 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18675 cat >>confdefs.h <<\_ACEOF
18676 #define HAVE___ASHLDI3 1
18681 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18682 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18683 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18686 ac_check_lib_save_LIBS=$LIBS
18688 cat >conftest.$ac_ext <<_ACEOF
18691 cat confdefs.h >>conftest.$ac_ext
18692 cat >>conftest.$ac_ext <<_ACEOF
18693 /* end confdefs.h. */
18695 /* Override any GCC internal prototype to avoid an error.
18696 Use char because int might match the return type of a GCC
18697 builtin and then its argument prototype would still apply. */
18705 return __ashrdi3 ();
18710 rm -f conftest.$ac_objext conftest$ac_exeext
18711 if { (ac_try="$ac_link"
18712 case "(($ac_try" in
18713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714 *) ac_try_echo=$ac_try;;
18716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717 (eval "$ac_link") 2>conftest.er1
18719 grep -v '^ *+' conftest.er1 >conftest.err
18721 cat conftest.err >&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } &&
18724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18725 { (case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_try") 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; } &&
18734 { ac_try='test -s conftest$ac_exeext'
18735 { (case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_try") 2>&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 ac_cv_lib_gcc___ashrdi3=yes
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18749 ac_cv_lib_gcc___ashrdi3=no
18752 rm -f core conftest.err conftest.$ac_objext \
18753 conftest$ac_exeext conftest.$ac_ext
18754 LIBS=$ac_check_lib_save_LIBS
18756 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18757 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18758 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18760 cat >>confdefs.h <<\_ACEOF
18761 #define HAVE___ASHRDI3 1
18766 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18767 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18768 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18769 echo $ECHO_N "(cached) $ECHO_C" >&6
18771 ac_check_lib_save_LIBS=$LIBS
18773 cat >conftest.$ac_ext <<_ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18780 /* Override any GCC internal prototype to avoid an error.
18781 Use char because int might match the return type of a GCC
18782 builtin and then its argument prototype would still apply. */
18790 return __divdi3 ();
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
18804 grep -v '^ *+' conftest.er1 >conftest.err
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } &&
18809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18810 { (case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_try") 2>&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; } &&
18819 { ac_try='test -s conftest$ac_exeext'
18820 { (case "(($ac_try" in
18821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822 *) ac_try_echo=$ac_try;;
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_try") 2>&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; }; then
18829 ac_cv_lib_gcc___divdi3=yes
18831 echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.$ac_ext >&5
18834 ac_cv_lib_gcc___divdi3=no
18837 rm -f core conftest.err conftest.$ac_objext \
18838 conftest$ac_exeext conftest.$ac_ext
18839 LIBS=$ac_check_lib_save_LIBS
18841 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18842 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18843 if test $ac_cv_lib_gcc___divdi3 = yes; then
18845 cat >>confdefs.h <<\_ACEOF
18846 #define HAVE___DIVDI3 1
18851 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18852 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18853 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18856 ac_check_lib_save_LIBS=$LIBS
18858 cat >conftest.$ac_ext <<_ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18865 /* Override any GCC internal prototype to avoid an error.
18866 Use char because int might match the return type of a GCC
18867 builtin and then its argument prototype would still apply. */
18875 return __fixdfdi ();
18880 rm -f conftest.$ac_objext conftest$ac_exeext
18881 if { (ac_try="$ac_link"
18882 case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_link") 2>conftest.er1
18889 grep -v '^ *+' conftest.er1 >conftest.err
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
18894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18895 { (case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_try") 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; } &&
18904 { ac_try='test -s conftest$ac_exeext'
18905 { (case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_try") 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 ac_cv_lib_gcc___fixdfdi=yes
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18919 ac_cv_lib_gcc___fixdfdi=no
18922 rm -f core conftest.err conftest.$ac_objext \
18923 conftest$ac_exeext conftest.$ac_ext
18924 LIBS=$ac_check_lib_save_LIBS
18926 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18927 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18928 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18930 cat >>confdefs.h <<\_ACEOF
18931 #define HAVE___FIXDFDI 1
18936 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18937 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18938 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 ac_check_lib_save_LIBS=$LIBS
18943 cat >conftest.$ac_ext <<_ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18950 /* Override any GCC internal prototype to avoid an error.
18951 Use char because int might match the return type of a GCC
18952 builtin and then its argument prototype would still apply. */
18960 return __fixsfdi ();
18965 rm -f conftest.$ac_objext conftest$ac_exeext
18966 if { (ac_try="$ac_link"
18967 case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_link") 2>conftest.er1
18974 grep -v '^ *+' conftest.er1 >conftest.err
18976 cat conftest.err >&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); } &&
18979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18980 { (case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_try") 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; } &&
18989 { ac_try='test -s conftest$ac_exeext'
18990 { (case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_try") 2>&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; }; then
18999 ac_cv_lib_gcc___fixsfdi=yes
19001 echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 ac_cv_lib_gcc___fixsfdi=no
19007 rm -f core conftest.err conftest.$ac_objext \
19008 conftest$ac_exeext conftest.$ac_ext
19009 LIBS=$ac_check_lib_save_LIBS
19011 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19012 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19013 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19015 cat >>confdefs.h <<\_ACEOF
19016 #define HAVE___FIXSFDI 1
19021 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19022 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19023 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19026 ac_check_lib_save_LIBS=$LIBS
19028 cat >conftest.$ac_ext <<_ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19035 /* Override any GCC internal prototype to avoid an error.
19036 Use char because int might match the return type of a GCC
19037 builtin and then its argument prototype would still apply. */
19041 char __floatdidf ();
19045 return __floatdidf ();
19050 rm -f conftest.$ac_objext conftest$ac_exeext
19051 if { (ac_try="$ac_link"
19052 case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_link") 2>conftest.er1
19059 grep -v '^ *+' conftest.er1 >conftest.err
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
19064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19065 { (case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_try") 2>&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; } &&
19074 { ac_try='test -s conftest$ac_exeext'
19075 { (case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_try") 2>&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; }; then
19084 ac_cv_lib_gcc___floatdidf=yes
19086 echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19089 ac_cv_lib_gcc___floatdidf=no
19092 rm -f core conftest.err conftest.$ac_objext \
19093 conftest$ac_exeext conftest.$ac_ext
19094 LIBS=$ac_check_lib_save_LIBS
19096 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19097 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19098 if test $ac_cv_lib_gcc___floatdidf = yes; then
19100 cat >>confdefs.h <<\_ACEOF
19101 #define HAVE___FLOATDIDF 1
19106 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19107 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19108 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 ac_check_lib_save_LIBS=$LIBS
19113 cat >conftest.$ac_ext <<_ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19120 /* Override any GCC internal prototype to avoid an error.
19121 Use char because int might match the return type of a GCC
19122 builtin and then its argument prototype would still apply. */
19130 return __lshrdi3 ();
19135 rm -f conftest.$ac_objext conftest$ac_exeext
19136 if { (ac_try="$ac_link"
19137 case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142 (eval "$ac_link") 2>conftest.er1
19144 grep -v '^ *+' conftest.er1 >conftest.err
19146 cat conftest.err >&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } &&
19149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19150 { (case "(($ac_try" in
19151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152 *) ac_try_echo=$ac_try;;
19154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155 (eval "$ac_try") 2>&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; } &&
19159 { ac_try='test -s conftest$ac_exeext'
19160 { (case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_try") 2>&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; }; then
19169 ac_cv_lib_gcc___lshrdi3=yes
19171 echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19174 ac_cv_lib_gcc___lshrdi3=no
19177 rm -f core conftest.err conftest.$ac_objext \
19178 conftest$ac_exeext conftest.$ac_ext
19179 LIBS=$ac_check_lib_save_LIBS
19181 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19182 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19183 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19185 cat >>confdefs.h <<\_ACEOF
19186 #define HAVE___LSHRDI3 1
19191 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19192 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19193 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19196 ac_check_lib_save_LIBS=$LIBS
19198 cat >conftest.$ac_ext <<_ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h. */
19205 /* Override any GCC internal prototype to avoid an error.
19206 Use char because int might match the return type of a GCC
19207 builtin and then its argument prototype would still apply. */
19215 return __moddi3 ();
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (ac_try="$ac_link"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_link") 2>conftest.er1
19229 grep -v '^ *+' conftest.er1 >conftest.err
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
19234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19235 { (case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_try") 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest$ac_exeext'
19245 { (case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_try") 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 ac_cv_lib_gcc___moddi3=yes
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 ac_cv_lib_gcc___moddi3=no
19262 rm -f core conftest.err conftest.$ac_objext \
19263 conftest$ac_exeext conftest.$ac_ext
19264 LIBS=$ac_check_lib_save_LIBS
19266 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19267 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19268 if test $ac_cv_lib_gcc___moddi3 = yes; then
19270 cat >>confdefs.h <<\_ACEOF
19271 #define HAVE___MODDI3 1
19276 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19277 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19278 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 ac_check_lib_save_LIBS=$LIBS
19283 cat >conftest.$ac_ext <<_ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19290 /* Override any GCC internal prototype to avoid an error.
19291 Use char because int might match the return type of a GCC
19292 builtin and then its argument prototype would still apply. */
19300 return __udivdi3 ();
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (ac_try="$ac_link"
19307 case "(($ac_try" in
19308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309 *) ac_try_echo=$ac_try;;
19311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312 (eval "$ac_link") 2>conftest.er1
19314 grep -v '^ *+' conftest.er1 >conftest.err
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19320 { (case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_try") 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; } &&
19329 { ac_try='test -s conftest$ac_exeext'
19330 { (case "(($ac_try" in
19331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332 *) ac_try_echo=$ac_try;;
19334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335 (eval "$ac_try") 2>&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; }; then
19339 ac_cv_lib_gcc___udivdi3=yes
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 ac_cv_lib_gcc___udivdi3=no
19347 rm -f core conftest.err conftest.$ac_objext \
19348 conftest$ac_exeext conftest.$ac_ext
19349 LIBS=$ac_check_lib_save_LIBS
19351 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19352 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19353 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19355 cat >>confdefs.h <<\_ACEOF
19356 #define HAVE___UDIVDI3 1
19361 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19362 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19363 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 ac_check_lib_save_LIBS=$LIBS
19368 cat >conftest.$ac_ext <<_ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19375 /* Override any GCC internal prototype to avoid an error.
19376 Use char because int might match the return type of a GCC
19377 builtin and then its argument prototype would still apply. */
19385 return __umoddi3 ();
19390 rm -f conftest.$ac_objext conftest$ac_exeext
19391 if { (ac_try="$ac_link"
19392 case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397 (eval "$ac_link") 2>conftest.er1
19399 grep -v '^ *+' conftest.er1 >conftest.err
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19405 { (case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_try") 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; } &&
19414 { ac_try='test -s conftest$ac_exeext'
19415 { (case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_try") 2>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
19424 ac_cv_lib_gcc___umoddi3=yes
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 ac_cv_lib_gcc___umoddi3=no
19432 rm -f core conftest.err conftest.$ac_objext \
19433 conftest$ac_exeext conftest.$ac_ext
19434 LIBS=$ac_check_lib_save_LIBS
19436 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19437 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19438 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE___UMODDI3 1
19447 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19448 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19449 if test "${ac_cv_lib_gcc___main+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 ac_check_lib_save_LIBS=$LIBS
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19461 /* Override any GCC internal prototype to avoid an error.
19462 Use char because int might match the return type of a GCC
19463 builtin and then its argument prototype would still apply. */
19476 rm -f conftest.$ac_objext conftest$ac_exeext
19477 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19485 grep -v '^ *+' conftest.er1 >conftest.err
19487 cat conftest.err >&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } &&
19490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19491 { (case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_try") 2>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; } &&
19500 { ac_try='test -s conftest$ac_exeext'
19501 { (case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_try") 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 ac_cv_lib_gcc___main=yes
19512 echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19515 ac_cv_lib_gcc___main=no
19518 rm -f core conftest.err conftest.$ac_objext \
19519 conftest$ac_exeext conftest.$ac_ext
19520 LIBS=$ac_check_lib_save_LIBS
19522 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19523 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19524 if test $ac_cv_lib_gcc___main = yes; then
19526 cat >>confdefs.h <<\_ACEOF
19527 #define HAVE___MAIN 1
19532 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19533 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19534 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19537 ac_check_lib_save_LIBS=$LIBS
19539 cat >conftest.$ac_ext <<_ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19546 /* Override any GCC internal prototype to avoid an error.
19547 Use char because int might match the return type of a GCC
19548 builtin and then its argument prototype would still apply. */
19556 return __cmpdi2 ();
19561 rm -f conftest.$ac_objext conftest$ac_exeext
19562 if { (ac_try="$ac_link"
19563 case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_link") 2>conftest.er1
19570 grep -v '^ *+' conftest.er1 >conftest.err
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
19575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19576 { (case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_try") 2>&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; } &&
19585 { ac_try='test -s conftest$ac_exeext'
19586 { (case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_try") 2>&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_cv_lib_gcc___cmpdi2=yes
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19600 ac_cv_lib_gcc___cmpdi2=no
19603 rm -f core conftest.err conftest.$ac_objext \
19604 conftest$ac_exeext conftest.$ac_ext
19605 LIBS=$ac_check_lib_save_LIBS
19607 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19608 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19609 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE___CMPDI2 1
19619 if test "$llvm_cv_os_type" = "MingW" ; then
19620 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19621 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19622 cat >conftest.$ac_ext <<_ACEOF
19623 #include <windows.h>
19624 #include <imagehlp.h>
19625 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19626 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19628 rm -f conftest.$ac_objext
19629 if { (ac_try="$ac_compile"
19630 case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_compile") 2>conftest.er1
19637 grep -v '^ *+' conftest.er1 >conftest.err
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
19642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19643 { (case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_try") 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try='test -s conftest.$ac_objext'
19653 { (case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_try") 2>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19663 { echo "$as_me:$LINENO: result: yes" >&5
19664 echo "${ECHO_T}yes" >&6; }
19665 llvm_cv_win32_elmcb_pcstr="PCSTR"
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19672 { echo "$as_me:$LINENO: result: no" >&5
19673 echo "${ECHO_T}no" >&6; }
19674 llvm_cv_win32_elmcb_pcstr="PSTR"
19678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19680 cat >>confdefs.h <<_ACEOF
19681 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19687 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19688 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19689 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19693 ac_cpp='$CXXCPP $CPPFLAGS'
19694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19698 cat >conftest.$ac_ext <<_ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19713 rm -f conftest.$ac_objext
19714 if { (ac_try="$ac_compile"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_compile") 2>conftest.er1
19722 grep -v '^ *+' conftest.er1 >conftest.err
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } &&
19727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19728 { (case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_try") 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; } &&
19737 { ac_try='test -s conftest.$ac_objext'
19738 { (case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_try") 2>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747 ac_cv_func_isnan_in_math_h=yes
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19752 ac_cv_func_isnan_in_math_h=no
19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19757 ac_cpp='$CPP $CPPFLAGS'
19758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19763 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19764 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19767 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19769 cat >>confdefs.h <<\_ACEOF
19770 #define HAVE_ISNAN_IN_MATH_H 1
19775 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19776 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19777 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19781 ac_cpp='$CXXCPP $CPPFLAGS'
19782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19786 cat >conftest.$ac_ext <<_ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19801 rm -f conftest.$ac_objext
19802 if { (ac_try="$ac_compile"
19803 case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_compile") 2>conftest.er1
19810 grep -v '^ *+' conftest.er1 >conftest.err
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
19815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19816 { (case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_try") 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest.$ac_objext'
19826 { (case "(($ac_try" in
19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831 (eval "$ac_try") 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
19835 ac_cv_func_isnan_in_cmath=yes
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19840 ac_cv_func_isnan_in_cmath=no
19843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845 ac_cpp='$CPP $CPPFLAGS'
19846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19851 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19852 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19854 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19856 cat >>confdefs.h <<\_ACEOF
19857 #define HAVE_ISNAN_IN_CMATH 1
19862 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19863 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19864 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 ac_cpp='$CXXCPP $CPPFLAGS'
19869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19873 cat >conftest.$ac_ext <<_ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19883 float f; std::isnan(f);
19888 rm -f conftest.$ac_objext
19889 if { (ac_try="$ac_compile"
19890 case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_compile") 2>conftest.er1
19897 grep -v '^ *+' conftest.er1 >conftest.err
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } &&
19902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19903 { (case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_try") 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; } &&
19912 { ac_try='test -s conftest.$ac_objext'
19913 { (case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918 (eval "$ac_try") 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 ac_cv_func_std_isnan_in_cmath=yes
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_cv_func_std_isnan_in_cmath=no
19930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932 ac_cpp='$CPP $CPPFLAGS'
19933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19938 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19939 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19941 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19943 cat >>confdefs.h <<\_ACEOF
19944 #define HAVE_STD_ISNAN_IN_CMATH 1
19950 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19951 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19952 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19956 ac_cpp='$CXXCPP $CPPFLAGS'
19957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19961 cat >conftest.$ac_ext <<_ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_compile") 2>conftest.er1
19985 grep -v '^ *+' conftest.er1 >conftest.err
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } &&
19990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest.$ac_objext'
20001 { (case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_try") 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 ac_cv_func_isinf_in_math_h=yes
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ac_cv_func_isinf_in_math_h=no
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020 ac_cpp='$CPP $CPPFLAGS'
20021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20026 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20027 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20029 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20031 cat >>confdefs.h <<\_ACEOF
20032 #define HAVE_ISINF_IN_MATH_H 1
20037 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20038 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20039 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 ac_cpp='$CXXCPP $CPPFLAGS'
20044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20063 rm -f conftest.$ac_objext
20064 if { (ac_try="$ac_compile"
20065 case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_compile") 2>conftest.er1
20072 grep -v '^ *+' conftest.er1 >conftest.err
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } &&
20077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20078 { (case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_try") 2>&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; } &&
20087 { ac_try='test -s conftest.$ac_objext'
20088 { (case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_try") 2>&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; }; then
20097 ac_cv_func_isinf_in_cmath=yes
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20102 ac_cv_func_isinf_in_cmath=no
20105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20107 ac_cpp='$CPP $CPPFLAGS'
20108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20113 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20114 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20116 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20118 cat >>confdefs.h <<\_ACEOF
20119 #define HAVE_ISINF_IN_CMATH 1
20124 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20125 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20126 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 ac_cpp='$CXXCPP $CPPFLAGS'
20131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20135 cat >conftest.$ac_ext <<_ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20145 float f; std::isinf(f);
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_compile") 2>conftest.er1
20159 grep -v '^ *+' conftest.er1 >conftest.err
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } &&
20164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20165 { (case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_try") 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; } &&
20174 { ac_try='test -s conftest.$ac_objext'
20175 { (case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_try") 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; }; then
20184 ac_cv_func_std_isinf_in_cmath=yes
20186 echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20189 ac_cv_func_std_isinf_in_cmath=no
20192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20194 ac_cpp='$CPP $CPPFLAGS'
20195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20200 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20201 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20203 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20205 cat >>confdefs.h <<\_ACEOF
20206 #define HAVE_STD_ISINF_IN_CMATH 1
20211 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20212 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20213 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 ac_cpp='$CXXCPP $CPPFLAGS'
20218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20222 cat >conftest.$ac_ext <<_ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20228 #include <ieeefp.h>
20232 float f; finite(f);
20237 rm -f conftest.$ac_objext
20238 if { (ac_try="$ac_compile"
20239 case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_compile") 2>conftest.er1
20246 grep -v '^ *+' conftest.er1 >conftest.err
20248 cat conftest.err >&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); } &&
20251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20252 { (case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_try") 2>&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; } &&
20261 { ac_try='test -s conftest.$ac_objext'
20262 { (case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_try") 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; }; then
20271 ac_cv_func_finite_in_ieeefp_h=yes
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ac_cv_func_finite_in_ieeefp_h=no
20279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281 ac_cpp='$CPP $CPPFLAGS'
20282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20287 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20288 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20290 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20292 cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_FINITE_IN_IEEEFP_H 1
20300 if test "$llvm_cv_platform_type" = "Unix" ; then
20303 for ac_header in stdlib.h unistd.h
20305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 ac_res=`eval echo '${'$as_ac_Header'}'`
20313 { echo "$as_me:$LINENO: result: $ac_res" >&5
20314 echo "${ECHO_T}$ac_res" >&6; }
20316 # Is the header compilable?
20317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20319 cat >conftest.$ac_ext <<_ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325 $ac_includes_default
20326 #include <$ac_header>
20328 rm -f conftest.$ac_objext
20329 if { (ac_try="$ac_compile"
20330 case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_compile") 2>conftest.er1
20337 grep -v '^ *+' conftest.er1 >conftest.err
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } &&
20342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20343 { (case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_try") 2>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; } &&
20352 { ac_try='test -s conftest.$ac_objext'
20353 { (case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_try") 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_header_compiler=yes
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_header_compiler=no
20370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20372 echo "${ECHO_T}$ac_header_compiler" >&6; }
20374 # Is the header present?
20375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20377 cat >conftest.$ac_ext <<_ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20383 #include <$ac_header>
20385 if { (ac_try="$ac_cpp conftest.$ac_ext"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20393 grep -v '^ *+' conftest.er1 >conftest.err
20395 cat conftest.err >&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } >/dev/null; then
20398 if test -s conftest.err; then
20399 ac_cpp_err=$ac_c_preproc_warn_flag
20400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20407 if test -z "$ac_cpp_err"; then
20408 ac_header_preproc=yes
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20413 ac_header_preproc=no
20416 rm -f conftest.err conftest.$ac_ext
20417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20418 echo "${ECHO_T}$ac_header_preproc" >&6; }
20420 # So? What about this header?
20421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20427 ac_header_preproc=yes
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20443 ## ------------------------------ ##
20444 ## Report this to bugs@yourdomain ##
20445 ## ------------------------------ ##
20447 ) | sed "s/^/$as_me: WARNING: /" >&2
20450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 eval "$as_ac_Header=\$ac_header_preproc"
20457 ac_res=`eval echo '${'$as_ac_Header'}'`
20458 { echo "$as_me:$LINENO: result: $ac_res" >&5
20459 echo "${ECHO_T}$ac_res" >&6; }
20462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20463 cat >>confdefs.h <<_ACEOF
20464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20472 for ac_func in getpagesize
20474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20478 echo $ECHO_N "(cached) $ECHO_C" >&6
20480 cat >conftest.$ac_ext <<_ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20488 #define $ac_func innocuous_$ac_func
20490 /* System header to define __stub macros and hopefully few prototypes,
20491 which can conflict with char $ac_func (); below.
20492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20493 <limits.h> exists even on freestanding compilers. */
20496 # include <limits.h>
20498 # include <assert.h>
20503 /* Override any GCC internal prototype to avoid an error.
20504 Use char because int might match the return type of a GCC
20505 builtin and then its argument prototype would still apply. */
20510 /* The GNU C library defines this for functions which it implements
20511 to always fail with ENOSYS. Some functions are actually named
20512 something starting with __ and the normal name is an alias. */
20513 #if defined __stub_$ac_func || defined __stub___$ac_func
20520 return $ac_func ();
20525 rm -f conftest.$ac_objext conftest$ac_exeext
20526 if { (ac_try="$ac_link"
20527 case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_link") 2>conftest.er1
20534 grep -v '^ *+' conftest.er1 >conftest.err
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20540 { (case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_try") 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; } &&
20549 { ac_try='test -s conftest$ac_exeext'
20550 { (case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555 (eval "$ac_try") 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
20559 eval "$as_ac_var=yes"
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 eval "$as_ac_var=no"
20567 rm -f core conftest.err conftest.$ac_objext \
20568 conftest$ac_exeext conftest.$ac_ext
20570 ac_res=`eval echo '${'$as_ac_var'}'`
20571 { echo "$as_me:$LINENO: result: $ac_res" >&5
20572 echo "${ECHO_T}$ac_res" >&6; }
20573 if test `eval echo '${'$as_ac_var'}'` = yes; then
20574 cat >>confdefs.h <<_ACEOF
20575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20581 { echo "$as_me:$LINENO: checking for working mmap" >&5
20582 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20583 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20584 echo $ECHO_N "(cached) $ECHO_C" >&6
20586 if test "$cross_compiling" = yes; then
20587 ac_cv_func_mmap_fixed_mapped=no
20589 cat >conftest.$ac_ext <<_ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 $ac_includes_default
20596 /* malloc might have been renamed as rpl_malloc. */
20599 /* Thanks to Mike Haertel and Jim Avera for this test.
20600 Here is a matrix of mmap possibilities:
20601 mmap private not fixed
20602 mmap private fixed at somewhere currently unmapped
20603 mmap private fixed at somewhere already mapped
20604 mmap shared not fixed
20605 mmap shared fixed at somewhere currently unmapped
20606 mmap shared fixed at somewhere already mapped
20607 For private mappings, we should verify that changes cannot be read()
20608 back from the file, nor mmap's back from the file at a different
20609 address. (There have been systems where private was not correctly
20610 implemented like the infamous i386 svr4.0, and systems where the
20611 VM page cache was not coherent with the file system buffer cache
20612 like early versions of FreeBSD and possibly contemporary NetBSD.)
20613 For shared mappings, we should conversely verify that changes get
20614 propagated back to all the places they're supposed to be.
20616 Grep wants private fixed already mapped.
20617 The main things grep needs to know about mmap are:
20618 * does it exist and is it safe to write into the mmap'd area
20619 * how to use it (BSD variants) */
20622 #include <sys/mman.h>
20624 #if !STDC_HEADERS && !HAVE_STDLIB_H
20628 /* This mess was copied from the GNU getpagesize.h. */
20629 #if !HAVE_GETPAGESIZE
20630 /* Assume that all systems that can run configure have sys/param.h. */
20631 # if !HAVE_SYS_PARAM_H
20632 # define HAVE_SYS_PARAM_H 1
20635 # ifdef _SC_PAGESIZE
20636 # define getpagesize() sysconf(_SC_PAGESIZE)
20637 # else /* no _SC_PAGESIZE */
20638 # if HAVE_SYS_PARAM_H
20639 # include <sys/param.h>
20640 # ifdef EXEC_PAGESIZE
20641 # define getpagesize() EXEC_PAGESIZE
20642 # else /* no EXEC_PAGESIZE */
20644 # define getpagesize() NBPG * CLSIZE
20647 # endif /* no CLSIZE */
20648 # else /* no NBPG */
20650 # define getpagesize() NBPC
20651 # else /* no NBPC */
20653 # define getpagesize() PAGESIZE
20654 # endif /* PAGESIZE */
20655 # endif /* no NBPC */
20656 # endif /* no NBPG */
20657 # endif /* no EXEC_PAGESIZE */
20658 # else /* no HAVE_SYS_PARAM_H */
20659 # define getpagesize() 8192 /* punt totally */
20660 # endif /* no HAVE_SYS_PARAM_H */
20661 # endif /* no _SC_PAGESIZE */
20663 #endif /* no HAVE_GETPAGESIZE */
20668 char *data, *data2, *data3;
20672 pagesize = getpagesize ();
20674 /* First, make a file with some known garbage in it. */
20675 data = (char *) malloc (pagesize);
20678 for (i = 0; i < pagesize; ++i)
20679 *(data + i) = rand ();
20681 fd = creat ("conftest.mmap", 0600);
20684 if (write (fd, data, pagesize) != pagesize)
20688 /* Next, try to mmap the file at a fixed address which already has
20689 something else allocated at it. If we can, also make sure that
20690 we see the same garbage. */
20691 fd = open ("conftest.mmap", O_RDWR);
20694 data2 = (char *) malloc (2 * pagesize);
20697 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20698 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20699 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20701 for (i = 0; i < pagesize; ++i)
20702 if (*(data + i) != *(data2 + i))
20705 /* Finally, make sure that changes to the mapped area do not
20706 percolate back to the file as seen by read(). (This is a bug on
20707 some variants of i386 svr4.0.) */
20708 for (i = 0; i < pagesize; ++i)
20709 *(data2 + i) = *(data2 + i) + 1;
20710 data3 = (char *) malloc (pagesize);
20713 if (read (fd, data3, pagesize) != pagesize)
20715 for (i = 0; i < pagesize; ++i)
20716 if (*(data + i) != *(data3 + i))
20722 rm -f conftest$ac_exeext
20723 if { (ac_try="$ac_link"
20724 case "(($ac_try" in
20725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726 *) ac_try_echo=$ac_try;;
20728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20729 (eval "$ac_link") 2>&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20733 { (case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_try") 2>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 ac_cv_func_mmap_fixed_mapped=yes
20744 echo "$as_me: program exited with status $ac_status" >&5
20745 echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20748 ( exit $ac_status )
20749 ac_cv_func_mmap_fixed_mapped=no
20751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20756 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20757 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20758 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_MMAP 1
20765 rm -f conftest.mmap
20767 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20768 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20769 if test "${ac_cv_func_mmap_file+set}" = set; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 ac_cpp='$CPP $CPPFLAGS'
20774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20778 if test "$cross_compiling" = yes; then
20779 ac_cv_func_mmap_file=no
20781 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20789 #include <sys/types.h>
20790 #include <sys/mman.h>
20798 fd = creat ("foo",0777);
20799 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20801 return (fd != (int) MAP_FAILED);
20806 rm -f conftest$ac_exeext
20807 if { (ac_try="$ac_link"
20808 case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813 (eval "$ac_link") 2>&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20817 { (case "(($ac_try" in
20818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819 *) ac_try_echo=$ac_try;;
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822 (eval "$ac_try") 2>&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 ac_cv_func_mmap_file=yes
20828 echo "$as_me: program exited with status $ac_status" >&5
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 ( exit $ac_status )
20833 ac_cv_func_mmap_file=no
20835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20840 ac_cpp='$CPP $CPPFLAGS'
20841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20847 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20848 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20849 if test "$ac_cv_func_mmap_file" = yes; then
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_MMAP_FILE
20859 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20860 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20861 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 if test "$llvm_cv_os_type" = "Interix" ; then
20865 ac_cv_need_dev_zero_for_mmap=yes
20867 ac_cv_need_dev_zero_for_mmap=no
20871 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20872 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20873 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20875 cat >>confdefs.h <<\_ACEOF
20876 #define NEED_DEV_ZERO_FOR_MMAP 1
20881 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20883 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20884 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20886 if test "$ac_cv_func_mmap_file" = "no"
20888 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20889 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20893 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20894 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20896 ac_cpp='$CXXCPP $CPPFLAGS'
20897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20901 cat >conftest.$ac_ext <<_ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h. */
20908 volatile unsigned long val = 1;
20909 __sync_synchronize();
20910 __sync_val_compare_and_swap(&val, 1, 0);
20911 __sync_add_and_fetch(&val, 1);
20912 __sync_sub_and_fetch(&val, 1);
20917 rm -f conftest.$ac_objext conftest$ac_exeext
20918 if { (ac_try="$ac_link"
20919 case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20924 (eval "$ac_link") 2>conftest.er1
20926 grep -v '^ *+' conftest.er1 >conftest.err
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
20931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20932 { (case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20937 (eval "$ac_try") 2>&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; } &&
20941 { ac_try='test -s conftest$ac_exeext'
20942 { (case "(($ac_try" in
20943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944 *) ac_try_echo=$ac_try;;
20946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947 (eval "$ac_try") 2>&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
20952 ac_cpp='$CPP $CPPFLAGS'
20953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20957 { echo "$as_me:$LINENO: result: yes" >&5
20958 echo "${ECHO_T}yes" >&6; }
20960 cat >>confdefs.h <<\_ACEOF
20961 #define LLVM_HAS_ATOMICS 1
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20968 { echo "$as_me:$LINENO: result: no" >&5
20969 echo "${ECHO_T}no" >&6; }
20971 cat >>confdefs.h <<\_ACEOF
20972 #define LLVM_HAS_ATOMICS 0
20975 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20976 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20979 rm -f core conftest.err conftest.$ac_objext \
20980 conftest$ac_exeext conftest.$ac_ext
20983 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20984 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20985 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20986 if test "${llvm_cv_linux_mixed+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20990 ac_cpp='$CPP $CPPFLAGS'
20991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20995 cat >conftest.$ac_ext <<_ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21002 error: Not x86-64 even if uname says so!
21013 rm -f conftest.$ac_objext
21014 if { (ac_try="$ac_compile"
21015 case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_compile") 2>conftest.er1
21022 grep -v '^ *+' conftest.er1 >conftest.err
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
21027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21028 { (case "(($ac_try" in
21029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030 *) ac_try_echo=$ac_try;;
21032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033 (eval "$ac_try") 2>&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest.$ac_objext'
21038 { (case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_try") 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
21047 llvm_cv_linux_mixed=no
21049 echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21052 llvm_cv_linux_mixed=yes
21055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21057 ac_cpp='$CPP $CPPFLAGS'
21058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21064 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21065 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21067 if test "$llvm_cv_linux_mixed" = "yes"; then
21068 llvm_cv_target_arch="x86"
21074 for ac_func in __dso_handle
21076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 cat >conftest.$ac_ext <<_ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h. */
21088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21090 #define $ac_func innocuous_$ac_func
21092 /* System header to define __stub macros and hopefully few prototypes,
21093 which can conflict with char $ac_func (); below.
21094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21095 <limits.h> exists even on freestanding compilers. */
21098 # include <limits.h>
21100 # include <assert.h>
21105 /* Override any GCC internal prototype to avoid an error.
21106 Use char because int might match the return type of a GCC
21107 builtin and then its argument prototype would still apply. */
21112 /* The GNU C library defines this for functions which it implements
21113 to always fail with ENOSYS. Some functions are actually named
21114 something starting with __ and the normal name is an alias. */
21115 #if defined __stub_$ac_func || defined __stub___$ac_func
21122 return $ac_func ();
21127 rm -f conftest.$ac_objext conftest$ac_exeext
21128 if { (ac_try="$ac_link"
21129 case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_link") 2>conftest.er1
21136 grep -v '^ *+' conftest.er1 >conftest.err
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } &&
21141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21142 { (case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_try") 2>&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; } &&
21151 { ac_try='test -s conftest$ac_exeext'
21152 { (case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_try") 2>&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; }; then
21161 eval "$as_ac_var=yes"
21163 echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21166 eval "$as_ac_var=no"
21169 rm -f core conftest.err conftest.$ac_objext \
21170 conftest$ac_exeext conftest.$ac_ext
21172 ac_res=`eval echo '${'$as_ac_var'}'`
21173 { echo "$as_me:$LINENO: result: $ac_res" >&5
21174 echo "${ECHO_T}$ac_res" >&6; }
21175 if test `eval echo '${'$as_ac_var'}'` = yes; then
21176 cat >>confdefs.h <<_ACEOF
21177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21184 SHLIBEXT=$libltdl_cv_shlibext
21187 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21190 # Translate the various configuration directories and other basic
21191 # information into substitutions that will end up in Makefile.config.in
21192 # that these configured values can be used by the makefiles
21193 if test "${prefix}" = "NONE" ; then
21194 prefix="/usr/local"
21196 eval LLVM_PREFIX="${prefix}";
21197 eval LLVM_BINDIR="${prefix}/bin";
21198 eval LLVM_DATADIR="${prefix}/share/llvm";
21199 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21200 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21201 eval LLVM_INCLUDEDIR="${prefix}/include";
21202 eval LLVM_INFODIR="${prefix}/info";
21203 eval LLVM_MANDIR="${prefix}/man";
21204 LLVM_CONFIGTIME=`date`
21215 # Place the various directores into the config.h file as #defines so that we
21216 # can know about the installation paths within LLVM.
21218 cat >>confdefs.h <<_ACEOF
21219 #define LLVM_PREFIX "$LLVM_PREFIX"
21223 cat >>confdefs.h <<_ACEOF
21224 #define LLVM_BINDIR "$LLVM_BINDIR"
21228 cat >>confdefs.h <<_ACEOF
21229 #define LLVM_DATADIR "$LLVM_DATADIR"
21233 cat >>confdefs.h <<_ACEOF
21234 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21238 cat >>confdefs.h <<_ACEOF
21239 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21243 cat >>confdefs.h <<_ACEOF
21244 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21248 cat >>confdefs.h <<_ACEOF
21249 #define LLVM_INFODIR "$LLVM_INFODIR"
21253 cat >>confdefs.h <<_ACEOF
21254 #define LLVM_MANDIR "$LLVM_MANDIR"
21258 cat >>confdefs.h <<_ACEOF
21259 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21263 cat >>confdefs.h <<_ACEOF
21264 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21268 # Determine which bindings to build.
21269 if test "$BINDINGS_TO_BUILD" = auto ; then
21270 BINDINGS_TO_BUILD=""
21271 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21272 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21275 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21278 # This isn't really configurey, but it avoids having to repeat the list in
21283 # Do any work necessary to ensure that bindings have what they need.
21284 binding_prereqs_failed=0
21285 for a_binding in $BINDINGS_TO_BUILD ; do
21286 case "$a_binding" in
21288 if test "x$OCAMLC" = x ; then
21289 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21290 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21291 binding_prereqs_failed=1
21293 if test "x$OCAMLDEP" = x ; then
21294 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21295 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21296 binding_prereqs_failed=1
21298 if test "x$OCAMLOPT" = x ; then
21299 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21300 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21302 if test "x$with_ocaml_libdir" != xauto ; then
21303 OCAML_LIBDIR=$with_ocaml_libdir
21306 ocaml_stdlib="`"$OCAMLC" -where`"
21307 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21309 # ocaml stdlib is beneath our prefix; use stdlib
21310 OCAML_LIBDIR=$ocaml_stdlib
21313 # ocaml stdlib is outside our prefix; use libdir/ocaml
21314 OCAML_LIBDIR=${prefix}/lib/ocaml
21321 if test "$binding_prereqs_failed" = 1 ; then
21322 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21323 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21324 { (exit 1); exit 1; }; }
21327 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21328 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21329 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 ac_cpp='$CXXCPP $CPPFLAGS'
21334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21338 oldcxxflags="$CXXFLAGS"
21339 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21340 cat >conftest.$ac_ext <<_ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21355 rm -f conftest.$ac_objext
21356 if { (ac_try="$ac_compile"
21357 case "(($ac_try" in
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359 *) ac_try_echo=$ac_try;;
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362 (eval "$ac_compile") 2>conftest.er1
21364 grep -v '^ *+' conftest.er1 >conftest.err
21366 cat conftest.err >&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } &&
21369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21370 { (case "(($ac_try" in
21371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372 *) ac_try_echo=$ac_try;;
21374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21375 (eval "$ac_try") 2>&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; } &&
21379 { ac_try='test -s conftest.$ac_objext'
21380 { (case "(($ac_try" in
21381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382 *) ac_try_echo=$ac_try;;
21384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385 (eval "$ac_try") 2>&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; }; then
21389 llvm_cv_cxx_visibility_inlines_hidden=yes
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21394 llvm_cv_cxx_visibility_inlines_hidden=no
21397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398 CXXFLAGS="$oldcxxflags"
21400 ac_cpp='$CPP $CPPFLAGS'
21401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21407 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21408 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21409 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21410 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21413 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21418 if test "$llvm_cv_link_use_r" = "yes" ; then
21425 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21426 RDYNAMIC="-rdynamic"
21434 ac_config_files="$ac_config_files Makefile.common"
21436 ac_config_files="$ac_config_files Makefile.llvm.config"
21439 ac_config_commands="$ac_config_commands Makefile"
21442 ac_config_commands="$ac_config_commands lib/Makefile"
21445 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21448 ac_config_commands="$ac_config_commands tools/Makefile"
21451 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21455 cat >confcache <<\_ACEOF
21456 # This file is a shell script that caches the results of configure
21457 # tests run on this system so they can be shared between configure
21458 # scripts and configure runs, see configure's option --config-cache.
21459 # It is not useful on other systems. If it contains results you don't
21460 # want to keep, you may remove or edit it.
21462 # config.status only pays attention to the cache file if you give it
21463 # the --recheck option to rerun configure.
21465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21467 # following values.
21471 # The following way of writing the cache mishandles newlines in values,
21472 # but we know of no workaround that is simple, portable, and efficient.
21473 # So, we kill variables containing newlines.
21474 # Ultrix sh set writes to stderr and can't be redirected directly,
21475 # and sets the high bit in the cache file unless we assign to the vars.
21477 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21478 eval ac_val=\$$ac_var
21482 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21483 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21486 _ | IFS | as_nl) ;; #(
21487 *) $as_unset $ac_var ;;
21493 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21494 *${as_nl}ac_space=\ *)
21495 # `set' does not quote correctly, so add quotes (double-quote
21496 # substitution turns \\\\ into \\, and sed turns \\ into \).
21499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21502 # `set' quotes correctly as required by POSIX, so do not add quotes.
21503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21514 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21516 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21517 if test -w "$cache_file"; then
21518 test "x$cache_file" != "x/dev/null" &&
21519 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21520 echo "$as_me: updating cache $cache_file" >&6;}
21521 cat confcache >$cache_file
21523 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21524 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21530 # Let make expand exec_prefix.
21531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21533 # Transform confdefs.h into DEFS.
21534 # Protect against shell expansion while executing Makefile rules.
21535 # Protect against Makefile macro expansion.
21537 # If the first sed substitution is executed (which looks for macros that
21538 # take arguments), then branch to the quote section. Otherwise,
21539 # look for a macro that doesn't take arguments.
21543 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21545 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21549 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21562 DEFS=`sed -n "$ac_script" confdefs.h`
21567 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21568 # 1. Remove the extension, and $U if already installed.
21569 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21570 ac_i=`echo "$ac_i" | sed "$ac_script"`
21571 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21572 # will be set to the directory where LIBOBJS objects are built.
21573 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21574 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21576 LIBOBJS=$ac_libobjs
21578 LTLIBOBJS=$ac_ltlibobjs
21581 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21582 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21583 Usually this means the macro was only invoked conditionally." >&5
21584 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21585 Usually this means the macro was only invoked conditionally." >&2;}
21586 { (exit 1); exit 1; }; }
21588 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21589 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21590 Usually this means the macro was only invoked conditionally." >&5
21591 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21592 Usually this means the macro was only invoked conditionally." >&2;}
21593 { (exit 1); exit 1; }; }
21596 : ${CONFIG_STATUS=./config.status}
21597 ac_clean_files_save=$ac_clean_files
21598 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21599 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21600 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21601 cat >$CONFIG_STATUS <<_ACEOF
21603 # Generated by $as_me.
21604 # Run this file to recreate the current configuration.
21605 # Compiler output produced by configure, useful for debugging
21606 # configure, is in config.log if it exists.
21609 ac_cs_recheck=false
21611 SHELL=\${CONFIG_SHELL-$SHELL}
21614 cat >>$CONFIG_STATUS <<\_ACEOF
21615 ## --------------------- ##
21616 ## M4sh Initialization. ##
21617 ## --------------------- ##
21619 # Be Bourne compatible
21620 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21623 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21624 # is contrary to our usage. Disable this feature.
21625 alias -g '${1+"$@"}'='"$@"'
21626 setopt NO_GLOB_SUBST
21628 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21630 BIN_SH=xpg4; export BIN_SH # for Tru64
21631 DUALCASE=1; export DUALCASE # for MKS sh
21635 # Avoid depending upon Character Ranges.
21636 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21637 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21638 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21639 as_cr_digits='0123456789'
21640 as_cr_alnum=$as_cr_Letters$as_cr_digits
21642 # The user is always right.
21643 if test "${PATH_SEPARATOR+set}" != set; then
21644 echo "#! /bin/sh" >conf$$.sh
21645 echo "exit 0" >>conf$$.sh
21647 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21655 # Support unset when possible.
21656 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21664 # We need space, tab and new line, in precisely that order. Quoting is
21665 # there to prevent editors from complaining about space-tab.
21666 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21667 # splitting by setting IFS to empty value.)
21672 # Find who we are. Look in the path if we contain no directory separator.
21674 *[\\/]* ) as_myself=$0 ;;
21675 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21676 for as_dir in $PATH
21679 test -z "$as_dir" && as_dir=.
21680 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21686 # We did not find ourselves, most probably we were run as `sh COMMAND'
21687 # in which case we are not to be found in the path.
21688 if test "x$as_myself" = x; then
21691 if test ! -f "$as_myself"; then
21692 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21693 { (exit 1); exit 1; }
21696 # Work around bugs in pre-3.0 UWIN ksh.
21697 for as_var in ENV MAIL MAILPATH
21698 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21706 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21707 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21708 LC_TELEPHONE LC_TIME
21710 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21711 eval $as_var=C; export $as_var
21713 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21717 # Required to use basename.
21718 if expr a : '\(a\)' >/dev/null 2>&1 &&
21719 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21725 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21726 as_basename=basename
21732 # Name of the executable.
21733 as_me=`$as_basename -- "$0" ||
21734 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21735 X"$0" : 'X\(//\)$' \| \
21736 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21738 sed '/^.*\/\([^/][^/]*\)\/*$/{
21757 as_lineno_1=$LINENO
21758 as_lineno_2=$LINENO
21759 test "x$as_lineno_1" != "x$as_lineno_2" &&
21760 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21762 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21763 # uniformly replaced by the line number. The first 'sed' inserts a
21764 # line-number line after each line using $LINENO; the second 'sed'
21765 # does the real work. The second script uses 'N' to pair each
21766 # line-number line with the line containing $LINENO, and appends
21767 # trailing '-' during substitution so that $LINENO is not a special
21768 # case at line end.
21769 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21770 # scripts with optimization help from Paolo Bonzini. Blame Lee
21771 # E. McMahon (1931-1989) for sed's syntax. :-)
21783 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21786 ' >$as_me.lineno &&
21787 chmod +x "$as_me.lineno" ||
21788 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21789 { (exit 1); exit 1; }; }
21791 # Don't try to exec as it changes $[0], causing all sort of problems
21792 # (the dirname of $[0] is not the place where we might find the
21793 # original and so on. Autoconf is especially sensitive to this).
21794 . "./$as_me.lineno"
21795 # Exit status is that of the last command.
21800 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21806 ECHO_C= ECHO_N= ECHO_T=
21807 case `echo -n x` in
21809 case `echo 'x\c'` in
21810 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21817 if expr a : '\(a\)' >/dev/null 2>&1 &&
21818 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21824 rm -f conf$$ conf$$.exe conf$$.file
21825 if test -d conf$$.dir; then
21826 rm -f conf$$.dir/conf$$.file
21832 if ln -s conf$$.file conf$$ 2>/dev/null; then
21834 # ... but there are two gotchas:
21835 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21836 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21837 # In both cases, we have to default to `cp -p'.
21838 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21840 elif ln conf$$.file conf$$ 2>/dev/null; then
21845 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21846 rmdir conf$$.dir 2>/dev/null
21848 if mkdir -p . 2>/dev/null; then
21851 test -d ./-p && rmdir ./-p
21855 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21856 # systems may use methods other than mode bits to determine executability.
21857 cat >conf$$.file <<_ASEOF
21861 chmod +x conf$$.file
21862 if test -x conf$$.file >/dev/null 2>&1; then
21863 as_executable_p="test -x"
21869 # Sed expression to map a string onto a valid CPP name.
21870 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21872 # Sed expression to map a string onto a valid variable name.
21873 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21878 # Save the log message, to keep $[0] and so on meaningful, and to
21879 # report actual input values of CONFIG_FILES etc. instead of their
21880 # values after options handling.
21882 This file was extended by [SAMPLE] $as_me [x.xx], which was
21883 generated by GNU Autoconf 2.60. Invocation command line was
21885 CONFIG_FILES = $CONFIG_FILES
21886 CONFIG_HEADERS = $CONFIG_HEADERS
21887 CONFIG_LINKS = $CONFIG_LINKS
21888 CONFIG_COMMANDS = $CONFIG_COMMANDS
21891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21896 cat >>$CONFIG_STATUS <<_ACEOF
21897 # Files that config.status was made for.
21898 config_files="$ac_config_files"
21899 config_commands="$ac_config_commands"
21903 cat >>$CONFIG_STATUS <<\_ACEOF
21905 \`$as_me' instantiates files from templates according to the
21906 current configuration.
21908 Usage: $0 [OPTIONS] [FILE]...
21910 -h, --help print this help, then exit
21911 -V, --version print version number, then exit
21912 -q, --quiet do not print progress messages
21913 -d, --debug don't remove temporary files
21914 --recheck update $as_me by reconfiguring in the same conditions
21915 --file=FILE[:TEMPLATE]
21916 instantiate the configuration file FILE
21918 Configuration files:
21921 Configuration commands:
21924 Report bugs to <bug-autoconf@gnu.org>."
21927 cat >>$CONFIG_STATUS <<_ACEOF
21929 [SAMPLE] config.status [x.xx]
21930 configured by $0, generated by GNU Autoconf 2.60,
21931 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21933 Copyright (C) 2006 Free Software Foundation, Inc.
21934 This config.status script is free software; the Free Software Foundation
21935 gives unlimited permission to copy, distribute and modify it."
21942 cat >>$CONFIG_STATUS <<\_ACEOF
21943 # If no file are specified by the user, then we need to provide default
21944 # value. By we need to know if files were specified by the user.
21950 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21951 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21962 # Handling of the options.
21963 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21965 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21966 echo "$ac_cs_version"; exit ;;
21967 --debug | --debu | --deb | --de | --d | -d )
21969 --file | --fil | --fi | --f )
21971 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21972 ac_need_defaults=false;;
21973 --he | --h | --help | --hel | -h )
21974 echo "$ac_cs_usage"; exit ;;
21975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21976 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21979 # This is an error.
21980 -*) { echo "$as_me: error: unrecognized option: $1
21981 Try \`$0 --help' for more information." >&2
21982 { (exit 1); exit 1; }; } ;;
21984 *) ac_config_targets="$ac_config_targets $1"
21985 ac_need_defaults=false ;;
21991 ac_configure_extra_args=
21993 if $ac_cs_silent; then
21995 ac_configure_extra_args="$ac_configure_extra_args --silent"
21999 cat >>$CONFIG_STATUS <<_ACEOF
22000 if \$ac_cs_recheck; then
22001 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22002 CONFIG_SHELL=$SHELL
22003 export CONFIG_SHELL
22004 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22008 cat >>$CONFIG_STATUS <<\_ACEOF
22012 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22013 ## Running $as_me. ##
22019 cat >>$CONFIG_STATUS <<_ACEOF
22023 llvm_src="${LLVM_SRC}"
22027 cat >>$CONFIG_STATUS <<\_ACEOF
22029 # Handling of arguments.
22030 for ac_config_target in $ac_config_targets
22032 case $ac_config_target in
22033 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22034 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
22035 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
22036 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22037 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22038 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
22039 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22040 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
22042 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22043 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22044 { (exit 1); exit 1; }; };;
22049 # If the user did not use the arguments to specify the items to instantiate,
22050 # then the envvar interface is used. Set only those that are not.
22051 # We use the long form for the default assignment because of an extremely
22052 # bizarre bug on SunOS 4.1.3.
22053 if $ac_need_defaults; then
22054 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22055 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22058 # Have a temporary directory for convenience. Make it in the build tree
22059 # simply because there is no reason against having it here, and in addition,
22060 # creating and moving files from /tmp can sometimes cause problems.
22061 # Hook for its removal unless debugging.
22062 # Note that there is a small window in which the directory will not be cleaned:
22063 # after its creation but before its name has been assigned to `$tmp'.
22067 trap 'exit_status=$?
22068 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22070 trap '{ (exit 1); exit 1; }' 1 2 13 15
22072 # Create a (secure) tmp directory for tmp files.
22075 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22076 test -n "$tmp" && test -d "$tmp"
22079 tmp=./conf$$-$RANDOM
22080 (umask 077 && mkdir "$tmp")
22083 echo "$me: cannot create a temporary directory in ." >&2
22084 { (exit 1); exit 1; }
22088 # Set up the sed scripts for CONFIG_FILES section.
22091 # No need to generate the scripts if there are no CONFIG_FILES.
22092 # This happens for instance when ./config.status config.h
22093 if test -n "$CONFIG_FILES"; then
22100 for ac_last_try in false false false false false :; do
22101 cat >conf$$subs.sed <<_ACEOF
22102 SHELL!$SHELL$ac_delim
22103 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22104 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22105 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22106 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22107 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22108 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22109 exec_prefix!$exec_prefix$ac_delim
22110 prefix!$prefix$ac_delim
22111 program_transform_name!$program_transform_name$ac_delim
22112 bindir!$bindir$ac_delim
22113 sbindir!$sbindir$ac_delim
22114 libexecdir!$libexecdir$ac_delim
22115 datarootdir!$datarootdir$ac_delim
22116 datadir!$datadir$ac_delim
22117 sysconfdir!$sysconfdir$ac_delim
22118 sharedstatedir!$sharedstatedir$ac_delim
22119 localstatedir!$localstatedir$ac_delim
22120 includedir!$includedir$ac_delim
22121 oldincludedir!$oldincludedir$ac_delim
22122 docdir!$docdir$ac_delim
22123 infodir!$infodir$ac_delim
22124 htmldir!$htmldir$ac_delim
22125 dvidir!$dvidir$ac_delim
22126 pdfdir!$pdfdir$ac_delim
22127 psdir!$psdir$ac_delim
22128 libdir!$libdir$ac_delim
22129 localedir!$localedir$ac_delim
22130 mandir!$mandir$ac_delim
22131 DEFS!$DEFS$ac_delim
22132 ECHO_C!$ECHO_C$ac_delim
22133 ECHO_N!$ECHO_N$ac_delim
22134 ECHO_T!$ECHO_T$ac_delim
22135 LIBS!$LIBS$ac_delim
22136 build_alias!$build_alias$ac_delim
22137 host_alias!$host_alias$ac_delim
22138 target_alias!$target_alias$ac_delim
22139 LLVM_SRC!$LLVM_SRC$ac_delim
22140 LLVM_OBJ!$LLVM_OBJ$ac_delim
22141 LLVM_VERSION!$LLVM_VERSION$ac_delim
22143 CFLAGS!$CFLAGS$ac_delim
22144 LDFLAGS!$LDFLAGS$ac_delim
22145 CPPFLAGS!$CPPFLAGS$ac_delim
22146 ac_ct_CC!$ac_ct_CC$ac_delim
22147 EXEEXT!$EXEEXT$ac_delim
22148 OBJEXT!$OBJEXT$ac_delim
22150 CXXFLAGS!$CXXFLAGS$ac_delim
22151 ac_ct_CXX!$ac_ct_CXX$ac_delim
22153 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22154 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22155 subdirs!$subdirs$ac_delim
22156 build!$build$ac_delim
22157 build_cpu!$build_cpu$ac_delim
22158 build_vendor!$build_vendor$ac_delim
22159 build_os!$build_os$ac_delim
22160 host!$host$ac_delim
22161 host_cpu!$host_cpu$ac_delim
22162 host_vendor!$host_vendor$ac_delim
22163 host_os!$host_os$ac_delim
22164 target!$target$ac_delim
22165 target_cpu!$target_cpu$ac_delim
22166 target_vendor!$target_vendor$ac_delim
22167 target_os!$target_os$ac_delim
22169 HOST_OS!$HOST_OS$ac_delim
22170 TARGET_OS!$TARGET_OS$ac_delim
22171 LINKALL!$LINKALL$ac_delim
22172 NOLINKALL!$NOLINKALL$ac_delim
22173 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22174 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22175 ARCH!$ARCH$ac_delim
22176 ENDIAN!$ENDIAN$ac_delim
22177 GREP!$GREP$ac_delim
22178 EGREP!$EGREP$ac_delim
22179 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22180 BUILD_CC!$BUILD_CC$ac_delim
22181 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22182 BUILD_CXX!$BUILD_CXX$ac_delim
22183 CVSBUILD!$CVSBUILD$ac_delim
22184 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22185 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22186 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22187 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22188 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22189 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22190 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22191 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22192 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22193 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22195 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22196 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22197 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22198 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22201 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22203 elif $ac_last_try; then
22204 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22205 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22206 { (exit 1); exit 1; }; }
22208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22212 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22213 if test -n "$ac_eof"; then
22214 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22215 ac_eof=`expr $ac_eof + 1`
22218 cat >>$CONFIG_STATUS <<_ACEOF
22219 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22220 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22223 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22224 s/^/s,@/; s/!/@,|#_!!_#|/
22227 s/'"$ac_delim"'$/,g/; t
22229 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22230 ' >>$CONFIG_STATUS <conf$$subs.sed
22231 rm -f conf$$subs.sed
22232 cat >>$CONFIG_STATUS <<_ACEOF
22238 for ac_last_try in false false false false false :; do
22239 cat >conf$$subs.sed <<_ACEOF
22240 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22241 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22242 ENABLE_PIC!$ENABLE_PIC$ac_delim
22243 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22244 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22245 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22246 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22247 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22248 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22249 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22250 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22251 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22252 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22253 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22254 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22256 ifGNUmake!$ifGNUmake$ac_delim
22257 LN_S!$LN_S$ac_delim
22260 DATE!$DATE$ac_delim
22261 FIND!$FIND$ac_delim
22262 MKDIR!$MKDIR$ac_delim
22264 RANLIB!$RANLIB$ac_delim
22269 BINPWD!$BINPWD$ac_delim
22270 GRAPHVIZ!$GRAPHVIZ$ac_delim
22273 NEATO!$NEATO$ac_delim
22274 TWOPI!$TWOPI$ac_delim
22275 CIRCO!$CIRCO$ac_delim
22277 DOTTY!$DOTTY$ac_delim
22278 XDOT_PY!$XDOT_PY$ac_delim
22279 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22280 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22281 INSTALL_DATA!$INSTALL_DATA$ac_delim
22282 BZIP2!$BZIP2$ac_delim
22284 DOXYGEN!$DOXYGEN$ac_delim
22285 GROFF!$GROFF$ac_delim
22286 GZIPBIN!$GZIPBIN$ac_delim
22287 POD2HTML!$POD2HTML$ac_delim
22288 POD2MAN!$POD2MAN$ac_delim
22289 PDFROFF!$PDFROFF$ac_delim
22290 RUNTEST!$RUNTEST$ac_delim
22291 TCLSH!$TCLSH$ac_delim
22293 OCAMLC!$OCAMLC$ac_delim
22294 OCAMLOPT!$OCAMLOPT$ac_delim
22295 OCAMLDEP!$OCAMLDEP$ac_delim
22296 OCAMLDOC!$OCAMLDOC$ac_delim
22298 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22299 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22300 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22301 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22302 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22303 LIBADD_DL!$LIBADD_DL$ac_delim
22304 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22305 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22306 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22307 USE_UDIS86!$USE_UDIS86$ac_delim
22308 USE_OPROFILE!$USE_OPROFILE$ac_delim
22309 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22310 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
22311 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22312 MMAP_FILE!$MMAP_FILE$ac_delim
22313 SHLIBEXT!$SHLIBEXT$ac_delim
22314 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22315 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22316 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22317 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22318 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22319 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22320 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22321 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22322 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22323 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22324 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22325 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22326 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22327 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22328 RPATH!$RPATH$ac_delim
22329 RDYNAMIC!$RDYNAMIC$ac_delim
22330 LIBOBJS!$LIBOBJS$ac_delim
22331 LTLIBOBJS!$LTLIBOBJS$ac_delim
22334 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22336 elif $ac_last_try; then
22337 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22338 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22339 { (exit 1); exit 1; }; }
22341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22345 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22346 if test -n "$ac_eof"; then
22347 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22348 ac_eof=`expr $ac_eof + 1`
22351 cat >>$CONFIG_STATUS <<_ACEOF
22352 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22356 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22357 s/^/s,@/; s/!/@,|#_!!_#|/
22360 s/'"$ac_delim"'$/,g/; t
22362 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22363 ' >>$CONFIG_STATUS <conf$$subs.sed
22364 rm -f conf$$subs.sed
22365 cat >>$CONFIG_STATUS <<_ACEOF
22372 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22373 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22374 # trailing colons and then remove the whole line if VPATH becomes empty
22375 # (actually we leave an empty line to preserve line numbers).
22376 if test "x$srcdir" = x.; then
22377 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22378 s/:*\$(srcdir):*/:/
22379 s/:*\${srcdir}:*/:/
22381 s/^\([^=]*=[ ]*\):*/\1/
22387 cat >>$CONFIG_STATUS <<\_ACEOF
22388 fi # test -n "$CONFIG_FILES"
22391 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
22394 :[FHLC]) ac_mode=$ac_tag; continue;;
22396 case $ac_mode$ac_tag in
22398 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22399 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22400 { (exit 1); exit 1; }; };;
22401 :[FH]-) ac_tag=-:-;;
22402 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22419 -) ac_f="$tmp/stdin";;
22420 *) # Look for the file first in the build tree, then in the source tree
22421 # (if the path is not absolute). The absolute path cannot be DOS-style,
22422 # because $ac_f cannot contain `:'.
22426 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22428 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22429 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22430 { (exit 1); exit 1; }; };;
22432 ac_file_inputs="$ac_file_inputs $ac_f"
22435 # Let's still pretend it is `configure' which instantiates (i.e., don't
22436 # use $as_me), people would be surprised to read:
22437 # /* config.h. Generated by config.status. */
22438 configure_input="Generated from "`IFS=:
22439 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22440 if test x"$ac_file" != x-; then
22441 configure_input="$ac_file. $configure_input"
22442 { echo "$as_me:$LINENO: creating $ac_file" >&5
22443 echo "$as_me: creating $ac_file" >&6;}
22447 *:-:* | *:-) cat >"$tmp/stdin";;
22452 ac_dir=`$as_dirname -- "$ac_file" ||
22453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22454 X"$ac_file" : 'X\(//\)[^/]' \| \
22455 X"$ac_file" : 'X\(//\)$' \| \
22456 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22462 /^X\(\/\/\)[^/].*/{
22477 -*) as_dir=./$as_dir;;
22479 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22483 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22484 *) as_qdir=$as_dir;;
22486 as_dirs="'$as_qdir' $as_dirs"
22487 as_dir=`$as_dirname -- "$as_dir" ||
22488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22489 X"$as_dir" : 'X\(//\)[^/]' \| \
22490 X"$as_dir" : 'X\(//\)$' \| \
22491 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22497 /^X\(\/\/\)[^/].*/{
22510 test -d "$as_dir" && break
22512 test -z "$as_dirs" || eval "mkdir $as_dirs"
22513 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22514 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22515 { (exit 1); exit 1; }; }; }
22519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22522 # A ".." for each directory in $ac_dir_suffix.
22523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22524 case $ac_top_builddir_sub in
22525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22529 ac_abs_top_builddir=$ac_pwd
22530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22531 # for backward compatibility:
22532 ac_top_builddir=$ac_top_build_prefix
22535 .) # We are building in place.
22537 ac_top_srcdir=$ac_top_builddir_sub
22538 ac_abs_top_srcdir=$ac_pwd ;;
22539 [\\/]* | ?:[\\/]* ) # Absolute name.
22540 ac_srcdir=$srcdir$ac_dir_suffix;
22541 ac_top_srcdir=$srcdir
22542 ac_abs_top_srcdir=$srcdir ;;
22543 *) # Relative name.
22544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22545 ac_top_srcdir=$ac_top_build_prefix$srcdir
22546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22558 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22559 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22563 cat >>$CONFIG_STATUS <<\_ACEOF
22564 # If the template does not know about datarootdir, expand it.
22565 # FIXME: This hack should be removed a few years after 2.60.
22566 ac_datarootdir_hack=; ac_datarootdir_seen=
22568 case `sed -n '/datarootdir/ {
22577 ' $ac_file_inputs` in
22578 *datarootdir*) ac_datarootdir_seen=yes;;
22579 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22580 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22581 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22583 cat >>$CONFIG_STATUS <<_ACEOF
22584 ac_datarootdir_hack='
22585 s&@datadir@&$datadir&g
22586 s&@docdir@&$docdir&g
22587 s&@infodir@&$infodir&g
22588 s&@localedir@&$localedir&g
22589 s&@mandir@&$mandir&g
22590 s&\\\${datarootdir}&$datarootdir&g' ;;
22594 # Neutralize VPATH when `$srcdir' = `.'.
22595 # Shell code in configure.ac might set extrasub.
22596 # FIXME: do we really want to maintain this feature?
22597 cat >>$CONFIG_STATUS <<_ACEOF
22601 cat >>$CONFIG_STATUS <<\_ACEOF
22603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22604 s&@configure_input@&$configure_input&;t t
22605 s&@top_builddir@&$ac_top_builddir_sub&;t t
22606 s&@srcdir@&$ac_srcdir&;t t
22607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22608 s&@top_srcdir@&$ac_top_srcdir&;t t
22609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22610 s&@builddir@&$ac_builddir&;t t
22611 s&@abs_builddir@&$ac_abs_builddir&;t t
22612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22613 s&@INSTALL@&$ac_INSTALL&;t t
22614 $ac_datarootdir_hack
22615 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22617 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22618 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22620 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22621 which seems to be undefined. Please make sure it is defined." >&5
22622 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22623 which seems to be undefined. Please make sure it is defined." >&2;}
22627 -) cat "$tmp/out"; rm -f "$tmp/out";;
22628 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22633 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22634 echo "$as_me: executing $ac_file commands" >&6;}
22639 case $ac_file$ac_mode in
22640 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22642 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22643 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22644 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22645 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22646 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22647 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22648 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22649 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22655 { (exit 0); exit 0; }
22657 chmod +x $CONFIG_STATUS
22658 ac_clean_files=$ac_clean_files_save
22661 # configure is writing to config.log, and then calls config.status.
22662 # config.status does its own redirection, appending to config.log.
22663 # Unfortunately, on DOS this fails, as config.log is still kept open
22664 # by configure, so config.status won't be able to write to it; its
22665 # output is simply discarded. So we exec the FD to /dev/null,
22666 # effectively closing config.log, so it can be properly (re)opened and
22667 # appended to by config.status. When coming back to configure, we
22668 # need to make the FD available again.
22669 if test "$no_create" != yes; then
22671 ac_config_status_args=
22672 test "$silent" = yes &&
22673 ac_config_status_args="$ac_config_status_args --quiet"
22675 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22678 # would make configure fail if this is the last instruction.
22679 $ac_cs_success || { (exit 1); exit 1; }
22683 # CONFIG_SUBDIRS section.
22685 if test "$no_recursion" != yes; then
22687 # Remove --cache-file and --srcdir arguments so they do not pile up.
22688 ac_sub_configure_args=
22690 eval "set x $ac_configure_args"
22694 if test -n "$ac_prev"; then
22699 -cache-file | --cache-file | --cache-fil | --cache-fi \
22700 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22701 ac_prev=cache_file ;;
22702 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22703 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22706 --config-cache | -C)
22708 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22710 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22712 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22714 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22718 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22720 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22724 # Always prepend --prefix to ensure using the same prefix
22725 # in subdir configurations.
22726 ac_arg="--prefix=$prefix"
22728 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22730 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22733 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22735 # Do not complain, so a configure script can configure whichever
22736 # parts of a large source tree are present.
22737 test -d "$srcdir/$ac_dir" || continue
22739 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22740 echo "$as_me:$LINENO: $ac_msg" >&5
22744 -*) as_dir=./$as_dir;;
22746 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22750 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22751 *) as_qdir=$as_dir;;
22753 as_dirs="'$as_qdir' $as_dirs"
22754 as_dir=`$as_dirname -- "$as_dir" ||
22755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22756 X"$as_dir" : 'X\(//\)[^/]' \| \
22757 X"$as_dir" : 'X\(//\)$' \| \
22758 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22764 /^X\(\/\/\)[^/].*/{
22777 test -d "$as_dir" && break
22779 test -z "$as_dirs" || eval "mkdir $as_dirs"
22780 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22781 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22782 { (exit 1); exit 1; }; }; }
22786 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22788 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22789 # A ".." for each directory in $ac_dir_suffix.
22790 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22791 case $ac_top_builddir_sub in
22792 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22793 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22796 ac_abs_top_builddir=$ac_pwd
22797 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22798 # for backward compatibility:
22799 ac_top_builddir=$ac_top_build_prefix
22802 .) # We are building in place.
22804 ac_top_srcdir=$ac_top_builddir_sub
22805 ac_abs_top_srcdir=$ac_pwd ;;
22806 [\\/]* | ?:[\\/]* ) # Absolute name.
22807 ac_srcdir=$srcdir$ac_dir_suffix;
22808 ac_top_srcdir=$srcdir
22809 ac_abs_top_srcdir=$srcdir ;;
22810 *) # Relative name.
22811 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22812 ac_top_srcdir=$ac_top_build_prefix$srcdir
22813 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22815 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22820 # Check for guested configure; otherwise get Cygnus style configure.
22821 if test -f "$ac_srcdir/configure.gnu"; then
22822 ac_sub_configure=$ac_srcdir/configure.gnu
22823 elif test -f "$ac_srcdir/configure"; then
22824 ac_sub_configure=$ac_srcdir/configure
22825 elif test -f "$ac_srcdir/configure.in"; then
22826 # This should be Cygnus configure.
22827 ac_sub_configure=$ac_aux_dir/configure
22829 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22830 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22834 # The recursion is here.
22835 if test -n "$ac_sub_configure"; then
22836 # Make the cache file name correct relative to the subdirectory.
22837 case $cache_file in
22838 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22839 *) # Relative name.
22840 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22843 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22844 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22845 # The eval makes quoting arguments work.
22846 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22847 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22848 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22849 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22850 { (exit 1); exit 1; }; }