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"
12401 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12402 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12403 if test "${ac_cv_lib_shell32_main+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-lshell32 $LIBS"
12408 cat >conftest.$ac_ext <<_ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12424 rm -f conftest.$ac_objext conftest$ac_exeext
12425 if { (ac_try="$ac_link"
12426 case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_link") 2>conftest.er1
12433 grep -v '^ *+' conftest.er1 >conftest.err
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } &&
12438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; } &&
12448 { ac_try='test -s conftest$ac_exeext'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 ac_cv_lib_shell32_main=yes
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12463 ac_cv_lib_shell32_main=no
12466 rm -f core conftest.err conftest.$ac_objext \
12467 conftest$ac_exeext conftest.$ac_ext
12468 LIBS=$ac_check_lib_save_LIBS
12470 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12471 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12472 if test $ac_cv_lib_shell32_main = yes; then
12473 cat >>confdefs.h <<_ACEOF
12474 #define HAVE_LIBSHELL32 1
12477 LIBS="-lshell32 $LIBS"
12483 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12484 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12485 if test "${ac_cv_search_dlopen+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 ac_func_search_save_LIBS=$LIBS
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12496 /* Override any GCC internal prototype to avoid an error.
12497 Use char because int might match the return type of a GCC
12498 builtin and then its argument prototype would still apply. */
12511 for ac_lib in '' dl; do
12512 if test -z "$ac_lib"; then
12513 ac_res="none required"
12516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (ac_try="$ac_link"
12520 case "(($ac_try" in
12521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522 *) ac_try_echo=$ac_try;;
12524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525 (eval "$ac_link") 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12533 { (case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_try") 2>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try='test -s conftest$ac_exeext'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_try") 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_search_dlopen=$ac_res
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12560 rm -f core conftest.err conftest.$ac_objext \
12562 if test "${ac_cv_search_dlopen+set}" = set; then
12566 if test "${ac_cv_search_dlopen+set}" = set; then
12569 ac_cv_search_dlopen=no
12571 rm conftest.$ac_ext
12572 LIBS=$ac_func_search_save_LIBS
12574 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12575 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12576 ac_res=$ac_cv_search_dlopen
12577 if test "$ac_res" != no; then
12578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12580 cat >>confdefs.h <<\_ACEOF
12581 #define HAVE_DLOPEN 1
12585 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12586 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12590 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12591 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12592 if test "${ac_cv_search_clock_gettime+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 ac_func_search_save_LIBS=$LIBS
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12603 /* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12609 char clock_gettime ();
12613 return clock_gettime ();
12618 for ac_lib in '' rt; do
12619 if test -z "$ac_lib"; then
12620 ac_res="none required"
12623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_link") 2>conftest.er1
12634 grep -v '^ *+' conftest.er1 >conftest.err
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest$ac_exeext'
12650 { (case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_try") 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 ac_cv_search_clock_gettime=$ac_res
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12667 rm -f core conftest.err conftest.$ac_objext \
12669 if test "${ac_cv_search_clock_gettime+set}" = set; then
12673 if test "${ac_cv_search_clock_gettime+set}" = set; then
12676 ac_cv_search_clock_gettime=no
12678 rm conftest.$ac_ext
12679 LIBS=$ac_func_search_save_LIBS
12681 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12682 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12683 ac_res=$ac_cv_search_clock_gettime
12684 if test "$ac_res" != no; then
12685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12690 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12691 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12692 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12693 if test "${ac_cv_search_setupterm+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 ac_func_search_save_LIBS=$LIBS
12697 cat >conftest.$ac_ext <<_ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12704 /* Override any GCC internal prototype to avoid an error.
12705 Use char because int might match the return type of a GCC
12706 builtin and then its argument prototype would still apply. */
12714 return setupterm ();
12719 for ac_lib in '' tinfo curses ncurses ncursesw; do
12720 if test -z "$ac_lib"; then
12721 ac_res="none required"
12724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12726 rm -f conftest.$ac_objext conftest$ac_exeext
12727 if { (ac_try="$ac_link"
12728 case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_link") 2>conftest.er1
12735 grep -v '^ *+' conftest.er1 >conftest.err
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
12740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12741 { (case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_try") 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; } &&
12750 { ac_try='test -s conftest$ac_exeext'
12751 { (case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_try") 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 ac_cv_search_setupterm=$ac_res
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12768 rm -f core conftest.err conftest.$ac_objext \
12770 if test "${ac_cv_search_setupterm+set}" = set; then
12774 if test "${ac_cv_search_setupterm+set}" = set; then
12777 ac_cv_search_setupterm=no
12779 rm conftest.$ac_ext
12780 LIBS=$ac_func_search_save_LIBS
12782 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12783 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12784 ac_res=$ac_cv_search_setupterm
12785 if test "$ac_res" != no; then
12786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12788 cat >>confdefs.h <<\_ACEOF
12789 #define HAVE_TERMINFO 1
12796 if test "$llvm_cv_enable_libffi" = "yes" ; then
12797 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12798 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12799 if test "${ac_cv_search_ffi_call+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 ac_func_search_save_LIBS=$LIBS
12803 cat >conftest.$ac_ext <<_ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12820 return ffi_call ();
12825 for ac_lib in '' ffi; do
12826 if test -z "$ac_lib"; then
12827 ac_res="none required"
12830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (ac_try="$ac_link"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_link") 2>conftest.er1
12841 grep -v '^ *+' conftest.er1 >conftest.err
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 ac_cv_search_ffi_call=$ac_res
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12874 rm -f core conftest.err conftest.$ac_objext \
12876 if test "${ac_cv_search_ffi_call+set}" = set; then
12880 if test "${ac_cv_search_ffi_call+set}" = set; then
12883 ac_cv_search_ffi_call=no
12885 rm conftest.$ac_ext
12886 LIBS=$ac_func_search_save_LIBS
12888 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12889 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12890 ac_res=$ac_cv_search_ffi_call
12891 if test "$ac_res" != no; then
12892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12894 cat >>confdefs.h <<\_ACEOF
12895 #define HAVE_FFI_CALL 1
12899 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12900 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12901 { (exit 1); exit 1; }; }
12906 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12907 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12908 if test "${ac_cv_search_mallinfo+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 ac_func_search_save_LIBS=$LIBS
12912 cat >conftest.$ac_ext <<_ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h. */
12919 /* Override any GCC internal prototype to avoid an error.
12920 Use char because int might match the return type of a GCC
12921 builtin and then its argument prototype would still apply. */
12929 return mallinfo ();
12934 for ac_lib in '' malloc; do
12935 if test -z "$ac_lib"; then
12936 ac_res="none required"
12939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (ac_try="$ac_link"
12943 case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948 (eval "$ac_link") 2>conftest.er1
12950 grep -v '^ *+' conftest.er1 >conftest.err
12952 cat conftest.err >&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12956 { (case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_try") 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest$ac_exeext'
12966 { (case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_try") 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_cv_search_mallinfo=$ac_res
12977 echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12983 rm -f core conftest.err conftest.$ac_objext \
12985 if test "${ac_cv_search_mallinfo+set}" = set; then
12989 if test "${ac_cv_search_mallinfo+set}" = set; then
12992 ac_cv_search_mallinfo=no
12994 rm conftest.$ac_ext
12995 LIBS=$ac_func_search_save_LIBS
12997 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12998 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12999 ac_res=$ac_cv_search_mallinfo
13000 if test "$ac_res" != no; then
13001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13003 cat >>confdefs.h <<\_ACEOF
13004 #define HAVE_MALLINFO 1
13010 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13012 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13013 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13014 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 ac_check_lib_save_LIBS=$LIBS
13018 LIBS="-lpthread $LIBS"
13019 cat >conftest.$ac_ext <<_ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13032 char pthread_mutex_init ();
13036 return pthread_mutex_init ();
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_link") 2>conftest.er1
13050 grep -v '^ *+' conftest.er1 >conftest.err
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13056 { (case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_try") 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest$ac_exeext'
13066 { (case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_try") 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_cv_lib_pthread_pthread_mutex_init=yes
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 ac_cv_lib_pthread_pthread_mutex_init=no
13083 rm -f core conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13085 LIBS=$ac_check_lib_save_LIBS
13087 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13088 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13089 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13090 cat >>confdefs.h <<_ACEOF
13091 #define HAVE_LIBPTHREAD 1
13094 LIBS="-lpthread $LIBS"
13098 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13099 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13100 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 ac_func_search_save_LIBS=$LIBS
13104 cat >conftest.$ac_ext <<_ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13111 /* Override any GCC internal prototype to avoid an error.
13112 Use char because int might match the return type of a GCC
13113 builtin and then its argument prototype would still apply. */
13117 char pthread_mutex_lock ();
13121 return pthread_mutex_lock ();
13126 for ac_lib in '' pthread; do
13127 if test -z "$ac_lib"; then
13128 ac_res="none required"
13131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13133 rm -f conftest.$ac_objext conftest$ac_exeext
13134 if { (ac_try="$ac_link"
13135 case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_link") 2>conftest.er1
13142 grep -v '^ *+' conftest.er1 >conftest.err
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest$ac_exeext'
13158 { (case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_try") 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13167 ac_cv_search_pthread_mutex_lock=$ac_res
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13175 rm -f core conftest.err conftest.$ac_objext \
13177 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13181 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13184 ac_cv_search_pthread_mutex_lock=no
13186 rm conftest.$ac_ext
13187 LIBS=$ac_func_search_save_LIBS
13189 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13190 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13191 ac_res=$ac_cv_search_pthread_mutex_lock
13192 if test "$ac_res" != no; then
13193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13195 cat >>confdefs.h <<\_ACEOF
13196 #define HAVE_PTHREAD_MUTEX_LOCK 1
13201 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13202 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13203 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 ac_func_search_save_LIBS=$LIBS
13207 cat >conftest.$ac_ext <<_ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13214 /* Override any GCC internal prototype to avoid an error.
13215 Use char because int might match the return type of a GCC
13216 builtin and then its argument prototype would still apply. */
13220 char pthread_rwlock_init ();
13224 return pthread_rwlock_init ();
13229 for ac_lib in '' pthread; do
13230 if test -z "$ac_lib"; then
13231 ac_res="none required"
13234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13236 rm -f conftest.$ac_objext conftest$ac_exeext
13237 if { (ac_try="$ac_link"
13238 case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_link") 2>conftest.er1
13245 grep -v '^ *+' conftest.er1 >conftest.err
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13251 { (case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_try") 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; } &&
13260 { ac_try='test -s conftest$ac_exeext'
13261 { (case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_try") 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270 ac_cv_search_pthread_rwlock_init=$ac_res
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13278 rm -f core conftest.err conftest.$ac_objext \
13280 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13284 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13287 ac_cv_search_pthread_rwlock_init=no
13289 rm conftest.$ac_ext
13290 LIBS=$ac_func_search_save_LIBS
13292 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13293 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13294 ac_res=$ac_cv_search_pthread_rwlock_init
13295 if test "$ac_res" != no; then
13296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13298 cat >>confdefs.h <<\_ACEOF
13299 #define HAVE_PTHREAD_RWLOCK_INIT 1
13304 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13305 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13306 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 ac_func_search_save_LIBS=$LIBS
13310 cat >conftest.$ac_ext <<_ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13317 /* Override any GCC internal prototype to avoid an error.
13318 Use char because int might match the return type of a GCC
13319 builtin and then its argument prototype would still apply. */
13323 char pthread_getspecific ();
13327 return pthread_getspecific ();
13332 for ac_lib in '' pthread; do
13333 if test -z "$ac_lib"; then
13334 ac_res="none required"
13337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13339 rm -f conftest.$ac_objext conftest$ac_exeext
13340 if { (ac_try="$ac_link"
13341 case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_link") 2>conftest.er1
13348 grep -v '^ *+' conftest.er1 >conftest.err
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
13353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13354 { (case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_try") 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; } &&
13363 { ac_try='test -s conftest$ac_exeext'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 ac_cv_search_pthread_getspecific=$ac_res
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13381 rm -f core conftest.err conftest.$ac_objext \
13383 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13387 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13390 ac_cv_search_pthread_getspecific=no
13392 rm conftest.$ac_ext
13393 LIBS=$ac_func_search_save_LIBS
13395 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13396 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13397 ac_res=$ac_cv_search_pthread_getspecific
13398 if test "$ac_res" != no; then
13399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13401 cat >>confdefs.h <<\_ACEOF
13402 #define HAVE_PTHREAD_GETSPECIFIC 1
13409 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13411 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13412 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13413 if test "${ac_cv_lib_z_compress2+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 ac_check_lib_save_LIBS=$LIBS
13418 cat >conftest.$ac_ext <<_ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13425 /* Override any GCC internal prototype to avoid an error.
13426 Use char because int might match the return type of a GCC
13427 builtin and then its argument prototype would still apply. */
13435 return compress2 ();
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (ac_try="$ac_link"
13442 case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447 (eval "$ac_link") 2>conftest.er1
13449 grep -v '^ *+' conftest.er1 >conftest.err
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
13454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13455 { (case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_try") 2>&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; } &&
13464 { ac_try='test -s conftest$ac_exeext'
13465 { (case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_try") 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_lib_z_compress2=yes
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13479 ac_cv_lib_z_compress2=no
13482 rm -f core conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13486 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13487 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13488 if test $ac_cv_lib_z_compress2 = yes; then
13489 cat >>confdefs.h <<_ACEOF
13490 #define HAVE_LIBZ 1
13500 # Check whether --with-udis86 was given.
13501 if test "${with_udis86+set}" = set; then
13502 withval=$with_udis86;
13507 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13510 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13511 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13512 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 ac_check_lib_save_LIBS=$LIBS
13516 LIBS="-ludis86 $LIBS"
13517 cat >conftest.$ac_ext <<_ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13524 /* Override any GCC internal prototype to avoid an error.
13525 Use char because int might match the return type of a GCC
13526 builtin and then its argument prototype would still apply. */
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (ac_try="$ac_link"
13541 case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_link") 2>conftest.er1
13548 grep -v '^ *+' conftest.er1 >conftest.err
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
13553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13554 { (case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_try") 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest$ac_exeext'
13564 { (case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569 (eval "$ac_try") 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_lib_udis86_ud_init=yes
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_cv_lib_udis86_ud_init=no
13581 rm -f core conftest.err conftest.$ac_objext \
13582 conftest$ac_exeext conftest.$ac_ext
13583 LIBS=$ac_check_lib_save_LIBS
13585 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13586 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13587 if test $ac_cv_lib_udis86_ud_init = yes; then
13588 cat >>confdefs.h <<_ACEOF
13589 #define HAVE_LIBUDIS86 1
13592 LIBS="-ludis86 $LIBS"
13596 echo "Error! You need to have libudis86 around."
13608 cat >>confdefs.h <<_ACEOF
13609 #define USE_UDIS86 $USE_UDIS86
13614 # Check whether --with-oprofile was given.
13615 if test "${with_oprofile+set}" = set; then
13616 withval=$with_oprofile;
13620 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13621 no) llvm_cv_oppath=
13624 *) llvm_cv_oppath="${withval}/lib/oprofile"
13625 CPPFLAGS="-I${withval}/include";;
13627 if test -n "$llvm_cv_oppath" ; then
13628 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13629 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13630 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13631 if test "${ac_cv_search_bfd_init+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 ac_func_search_save_LIBS=$LIBS
13635 cat >conftest.$ac_ext <<_ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13642 /* Override any GCC internal prototype to avoid an error.
13643 Use char because int might match the return type of a GCC
13644 builtin and then its argument prototype would still apply. */
13652 return bfd_init ();
13657 for ac_lib in '' bfd; do
13658 if test -z "$ac_lib"; then
13659 ac_res="none required"
13662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (ac_try="$ac_link"
13666 case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_link") 2>conftest.er1
13673 grep -v '^ *+' conftest.er1 >conftest.err
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
13678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13679 { (case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_try") 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
13688 { ac_try='test -s conftest$ac_exeext'
13689 { (case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_try") 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
13698 ac_cv_search_bfd_init=$ac_res
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13706 rm -f core conftest.err conftest.$ac_objext \
13708 if test "${ac_cv_search_bfd_init+set}" = set; then
13712 if test "${ac_cv_search_bfd_init+set}" = set; then
13715 ac_cv_search_bfd_init=no
13717 rm conftest.$ac_ext
13718 LIBS=$ac_func_search_save_LIBS
13720 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13721 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13722 ac_res=$ac_cv_search_bfd_init
13723 if test "$ac_res" != no; then
13724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13728 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13729 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13730 if test "${ac_cv_search_op_open_agent+set}" = set; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 ac_func_search_save_LIBS=$LIBS
13734 cat >conftest.$ac_ext <<_ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13741 /* Override any GCC internal prototype to avoid an error.
13742 Use char because int might match the return type of a GCC
13743 builtin and then its argument prototype would still apply. */
13747 char op_open_agent ();
13751 return op_open_agent ();
13756 for ac_lib in '' opagent; do
13757 if test -z "$ac_lib"; then
13758 ac_res="none required"
13761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13763 rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (ac_try="$ac_link"
13765 case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_link") 2>conftest.er1
13772 grep -v '^ *+' conftest.er1 >conftest.err
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } &&
13787 { ac_try='test -s conftest$ac_exeext'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 ac_cv_search_op_open_agent=$ac_res
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13805 rm -f core conftest.err conftest.$ac_objext \
13807 if test "${ac_cv_search_op_open_agent+set}" = set; then
13811 if test "${ac_cv_search_op_open_agent+set}" = set; then
13814 ac_cv_search_op_open_agent=no
13816 rm conftest.$ac_ext
13817 LIBS=$ac_func_search_save_LIBS
13819 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13820 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13821 ac_res=$ac_cv_search_op_open_agent
13822 if test "$ac_res" != no; then
13823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13827 echo "Error! You need to have libopagent around."
13832 if test "${ac_cv_header_opagent_h+set}" = set; then
13833 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13834 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13835 if test "${ac_cv_header_opagent_h+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13839 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13841 # Is the header compilable?
13842 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13843 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13844 cat >conftest.$ac_ext <<_ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13850 $ac_includes_default
13851 #include <opagent.h>
13853 rm -f conftest.$ac_objext
13854 if { (ac_try="$ac_compile"
13855 case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_compile") 2>conftest.er1
13862 grep -v '^ *+' conftest.er1 >conftest.err
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13868 { (case "(($ac_try" in
13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870 *) ac_try_echo=$ac_try;;
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873 (eval "$ac_try") 2>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; } &&
13877 { ac_try='test -s conftest.$ac_objext'
13878 { (case "(($ac_try" in
13879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880 *) ac_try_echo=$ac_try;;
13882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13883 (eval "$ac_try") 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 ac_header_compiler=yes
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13892 ac_header_compiler=no
13895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13897 echo "${ECHO_T}$ac_header_compiler" >&6; }
13899 # Is the header present?
13900 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13901 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13908 #include <opagent.h>
13910 if { (ac_try="$ac_cpp conftest.$ac_ext"
13911 case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13918 grep -v '^ *+' conftest.er1 >conftest.err
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } >/dev/null; then
13923 if test -s conftest.err; then
13924 ac_cpp_err=$ac_c_preproc_warn_flag
13925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13932 if test -z "$ac_cpp_err"; then
13933 ac_header_preproc=yes
13935 echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13938 ac_header_preproc=no
13941 rm -f conftest.err conftest.$ac_ext
13942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13943 echo "${ECHO_T}$ac_header_preproc" >&6; }
13945 # So? What about this header?
13946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13948 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13949 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13950 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13951 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13952 ac_header_preproc=yes
13955 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13956 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13957 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13958 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13960 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13962 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13964 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13966 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13968 ## ------------------------------ ##
13969 ## Report this to bugs@yourdomain ##
13970 ## ------------------------------ ##
13972 ) | sed "s/^/$as_me: WARNING: /" >&2
13975 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13976 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13977 if test "${ac_cv_header_opagent_h+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 ac_cv_header_opagent_h=$ac_header_preproc
13982 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13983 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13986 if test $ac_cv_header_opagent_h = yes; then
13990 echo "Error! You need to have opagent.h around."
14006 cat >>confdefs.h <<_ACEOF
14007 #define USE_OPROFILE $USE_OPROFILE
14017 ac_header_dirent=no
14018 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14019 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14020 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14021 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 cat >conftest.$ac_ext <<_ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h. */
14031 #include <sys/types.h>
14043 rm -f conftest.$ac_objext
14044 if { (ac_try="$ac_compile"
14045 case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_compile") 2>conftest.er1
14052 grep -v '^ *+' conftest.er1 >conftest.err
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } &&
14057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14058 { (case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_try") 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; } &&
14067 { ac_try='test -s conftest.$ac_objext'
14068 { (case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_try") 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14077 eval "$as_ac_Header=yes"
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14082 eval "$as_ac_Header=no"
14085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 ac_res=`eval echo '${'$as_ac_Header'}'`
14088 { echo "$as_me:$LINENO: result: $ac_res" >&5
14089 echo "${ECHO_T}$ac_res" >&6; }
14090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14091 cat >>confdefs.h <<_ACEOF
14092 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14095 ac_header_dirent=$ac_hdr; break
14099 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14100 if test $ac_header_dirent = dirent.h; then
14101 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14102 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14103 if test "${ac_cv_search_opendir+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 ac_func_search_save_LIBS=$LIBS
14107 cat >conftest.$ac_ext <<_ACEOF
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h. */
14114 /* Override any GCC internal prototype to avoid an error.
14115 Use char because int might match the return type of a GCC
14116 builtin and then its argument prototype would still apply. */
14129 for ac_lib in '' dir; do
14130 if test -z "$ac_lib"; then
14131 ac_res="none required"
14134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14136 rm -f conftest.$ac_objext conftest$ac_exeext
14137 if { (ac_try="$ac_link"
14138 case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_link") 2>conftest.er1
14145 grep -v '^ *+' conftest.er1 >conftest.err
14147 cat conftest.err >&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } &&
14150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14151 { (case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_try") 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; } &&
14160 { ac_try='test -s conftest$ac_exeext'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_try") 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
14170 ac_cv_search_opendir=$ac_res
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14178 rm -f core conftest.err conftest.$ac_objext \
14180 if test "${ac_cv_search_opendir+set}" = set; then
14184 if test "${ac_cv_search_opendir+set}" = set; then
14187 ac_cv_search_opendir=no
14189 rm conftest.$ac_ext
14190 LIBS=$ac_func_search_save_LIBS
14192 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14193 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14194 ac_res=$ac_cv_search_opendir
14195 if test "$ac_res" != no; then
14196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14201 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14203 if test "${ac_cv_search_opendir+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 ac_func_search_save_LIBS=$LIBS
14207 cat >conftest.$ac_ext <<_ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h. */
14214 /* Override any GCC internal prototype to avoid an error.
14215 Use char because int might match the return type of a GCC
14216 builtin and then its argument prototype would still apply. */
14229 for ac_lib in '' x; do
14230 if test -z "$ac_lib"; then
14231 ac_res="none required"
14234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14236 rm -f conftest.$ac_objext conftest$ac_exeext
14237 if { (ac_try="$ac_link"
14238 case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_link") 2>conftest.er1
14245 grep -v '^ *+' conftest.er1 >conftest.err
14247 cat conftest.err >&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest$ac_exeext'
14261 { (case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_try") 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 ac_cv_search_opendir=$ac_res
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14278 rm -f core conftest.err conftest.$ac_objext \
14280 if test "${ac_cv_search_opendir+set}" = set; then
14284 if test "${ac_cv_search_opendir+set}" = set; then
14287 ac_cv_search_opendir=no
14289 rm conftest.$ac_ext
14290 LIBS=$ac_func_search_save_LIBS
14292 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14293 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14294 ac_res=$ac_cv_search_opendir
14295 if test "$ac_res" != no; then
14296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14302 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14303 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14304 if test "${ac_cv_header_mmap_anon+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 ac_cpp='$CPP $CPPFLAGS'
14309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14313 cat >conftest.$ac_ext <<_ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 #include <sys/mman.h>
14320 #include <unistd.h>
14325 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14330 rm -f conftest.$ac_objext
14331 if { (ac_try="$ac_compile"
14332 case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_compile") 2>conftest.er1
14339 grep -v '^ *+' conftest.er1 >conftest.err
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } &&
14344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14345 { (case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_try") 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest.$ac_objext'
14355 { (case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_try") 2>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 ac_cv_header_mmap_anon=yes
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14369 ac_cv_header_mmap_anon=no
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14374 ac_cpp='$CPP $CPPFLAGS'
14375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14381 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14382 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14383 if test "$ac_cv_header_mmap_anon" = yes; then
14385 cat >>confdefs.h <<\_ACEOF
14386 #define HAVE_MMAP_ANONYMOUS 1
14391 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14392 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14393 if test "${ac_cv_header_stat_broken+set}" = set; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14396 cat >conftest.$ac_ext <<_ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h. */
14402 #include <sys/types.h>
14403 #include <sys/stat.h>
14405 #if defined S_ISBLK && defined S_IFDIR
14406 # if S_ISBLK (S_IFDIR)
14411 #if defined S_ISBLK && defined S_IFCHR
14412 # if S_ISBLK (S_IFCHR)
14417 #if defined S_ISLNK && defined S_IFREG
14418 # if S_ISLNK (S_IFREG)
14423 #if defined S_ISSOCK && defined S_IFREG
14424 # if S_ISSOCK (S_IFREG)
14430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14431 $EGREP "You lose" >/dev/null 2>&1; then
14432 ac_cv_header_stat_broken=yes
14434 ac_cv_header_stat_broken=no
14439 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14440 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14441 if test $ac_cv_header_stat_broken = yes; then
14443 cat >>confdefs.h <<\_ACEOF
14444 #define STAT_MACROS_BROKEN 1
14449 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14450 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14451 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 cat >conftest.$ac_ext <<_ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14460 #include <sys/types.h>
14461 #include <sys/wait.h>
14462 #ifndef WEXITSTATUS
14463 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14466 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14474 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14479 rm -f conftest.$ac_objext
14480 if { (ac_try="$ac_compile"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_compile") 2>conftest.er1
14488 grep -v '^ *+' conftest.er1 >conftest.err
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
14493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14494 { (case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_try") 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; } &&
14503 { ac_try='test -s conftest.$ac_objext'
14504 { (case "(($ac_try" in
14505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506 *) ac_try_echo=$ac_try;;
14508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509 (eval "$ac_try") 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_cv_header_sys_wait_h=yes
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 ac_cv_header_sys_wait_h=no
14521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14524 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14525 if test $ac_cv_header_sys_wait_h = yes; then
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE_SYS_WAIT_H 1
14533 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14534 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14535 if test "${ac_cv_header_time+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 #include <sys/types.h>
14545 #include <sys/time.h>
14551 if ((struct tm *) 0)
14557 rm -f conftest.$ac_objext
14558 if { (ac_try="$ac_compile"
14559 case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_compile") 2>conftest.er1
14566 grep -v '^ *+' conftest.er1 >conftest.err
14568 cat conftest.err >&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } &&
14571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14572 { (case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577 (eval "$ac_try") 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try='test -s conftest.$ac_objext'
14582 { (case "(($ac_try" in
14583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14584 *) ac_try_echo=$ac_try;;
14586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14587 (eval "$ac_try") 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; }; then
14591 ac_cv_header_time=yes
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 ac_cv_header_time=no
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14602 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14603 if test $ac_cv_header_time = yes; then
14605 cat >>confdefs.h <<\_ACEOF
14606 #define TIME_WITH_SYS_TIME 1
14618 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 ac_res=`eval echo '${'$as_ac_Header'}'`
14628 { echo "$as_me:$LINENO: result: $ac_res" >&5
14629 echo "${ECHO_T}$ac_res" >&6; }
14631 # Is the header compilable?
14632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14634 cat >conftest.$ac_ext <<_ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h. */
14640 $ac_includes_default
14641 #include <$ac_header>
14643 rm -f conftest.$ac_objext
14644 if { (ac_try="$ac_compile"
14645 case "(($ac_try" in
14646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647 *) ac_try_echo=$ac_try;;
14649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650 (eval "$ac_compile") 2>conftest.er1
14652 grep -v '^ *+' conftest.er1 >conftest.err
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14658 { (case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_try") 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest.$ac_objext'
14668 { (case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_try") 2>&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_header_compiler=yes
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_header_compiler=no
14685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14687 echo "${ECHO_T}$ac_header_compiler" >&6; }
14689 # Is the header present?
14690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #include <$ac_header>
14700 if { (ac_try="$ac_cpp conftest.$ac_ext"
14701 case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } >/dev/null; then
14713 if test -s conftest.err; then
14714 ac_cpp_err=$ac_c_preproc_warn_flag
14715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14722 if test -z "$ac_cpp_err"; then
14723 ac_header_preproc=yes
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14728 ac_header_preproc=no
14731 rm -f conftest.err conftest.$ac_ext
14732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14733 echo "${ECHO_T}$ac_header_preproc" >&6; }
14735 # So? What about this header?
14736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14742 ac_header_preproc=yes
14745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14758 ## ------------------------------ ##
14759 ## Report this to bugs@yourdomain ##
14760 ## ------------------------------ ##
14762 ) | sed "s/^/$as_me: WARNING: /" >&2
14765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 eval "$as_ac_Header=\$ac_header_preproc"
14772 ac_res=`eval echo '${'$as_ac_Header'}'`
14773 { echo "$as_me:$LINENO: result: $ac_res" >&5
14774 echo "${ECHO_T}$ac_res" >&6; }
14777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14778 cat >>confdefs.h <<_ACEOF
14779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14792 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14801 ac_res=`eval echo '${'$as_ac_Header'}'`
14802 { echo "$as_me:$LINENO: result: $ac_res" >&5
14803 echo "${ECHO_T}$ac_res" >&6; }
14805 # Is the header compilable?
14806 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14808 cat >conftest.$ac_ext <<_ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14814 $ac_includes_default
14815 #include <$ac_header>
14817 rm -f conftest.$ac_objext
14818 if { (ac_try="$ac_compile"
14819 case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_compile") 2>conftest.er1
14826 grep -v '^ *+' conftest.er1 >conftest.err
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
14831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14832 { (case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_try") 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; } &&
14841 { ac_try='test -s conftest.$ac_objext'
14842 { (case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_try") 2>&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }; then
14851 ac_header_compiler=yes
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_header_compiler=no
14859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14861 echo "${ECHO_T}$ac_header_compiler" >&6; }
14863 # Is the header present?
14864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14866 cat >conftest.$ac_ext <<_ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14872 #include <$ac_header>
14874 if { (ac_try="$ac_cpp conftest.$ac_ext"
14875 case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14882 grep -v '^ *+' conftest.er1 >conftest.err
14884 cat conftest.err >&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } >/dev/null; then
14887 if test -s conftest.err; then
14888 ac_cpp_err=$ac_c_preproc_warn_flag
14889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14896 if test -z "$ac_cpp_err"; then
14897 ac_header_preproc=yes
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14902 ac_header_preproc=no
14905 rm -f conftest.err conftest.$ac_ext
14906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14907 echo "${ECHO_T}$ac_header_preproc" >&6; }
14909 # So? What about this header?
14910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14916 ac_header_preproc=yes
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14932 ## ------------------------------ ##
14933 ## Report this to bugs@yourdomain ##
14934 ## ------------------------------ ##
14936 ) | sed "s/^/$as_me: WARNING: /" >&2
14939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 eval "$as_ac_Header=\$ac_header_preproc"
14946 ac_res=`eval echo '${'$as_ac_Header'}'`
14947 { echo "$as_me:$LINENO: result: $ac_res" >&5
14948 echo "${ECHO_T}$ac_res" >&6; }
14951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14952 cat >>confdefs.h <<_ACEOF
14953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14962 for ac_header in utime.h windows.h
14964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 ac_res=`eval echo '${'$as_ac_Header'}'`
14972 { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14975 # Is the header compilable?
14976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14978 cat >conftest.$ac_ext <<_ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 $ac_includes_default
14985 #include <$ac_header>
14987 rm -f conftest.$ac_objext
14988 if { (ac_try="$ac_compile"
14989 case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_compile") 2>conftest.er1
14996 grep -v '^ *+' conftest.er1 >conftest.err
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15002 { (case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_try") 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest.$ac_objext'
15012 { (case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_try") 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 ac_header_compiler=yes
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15026 ac_header_compiler=no
15029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15031 echo "${ECHO_T}$ac_header_compiler" >&6; }
15033 # Is the header present?
15034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15036 cat >conftest.$ac_ext <<_ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 #include <$ac_header>
15044 if { (ac_try="$ac_cpp conftest.$ac_ext"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15052 grep -v '^ *+' conftest.er1 >conftest.err
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } >/dev/null; then
15057 if test -s conftest.err; then
15058 ac_cpp_err=$ac_c_preproc_warn_flag
15059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15066 if test -z "$ac_cpp_err"; then
15067 ac_header_preproc=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_header_preproc=no
15075 rm -f conftest.err conftest.$ac_ext
15076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15077 echo "${ECHO_T}$ac_header_preproc" >&6; }
15079 # So? What about this header?
15080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15086 ac_header_preproc=yes
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15102 ## ------------------------------ ##
15103 ## Report this to bugs@yourdomain ##
15104 ## ------------------------------ ##
15106 ) | sed "s/^/$as_me: WARNING: /" >&2
15109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 eval "$as_ac_Header=\$ac_header_preproc"
15116 ac_res=`eval echo '${'$as_ac_Header'}'`
15117 { echo "$as_me:$LINENO: result: $ac_res" >&5
15118 echo "${ECHO_T}$ac_res" >&6; }
15121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15122 cat >>confdefs.h <<_ACEOF
15123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15135 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 ac_res=`eval echo '${'$as_ac_Header'}'`
15145 { echo "$as_me:$LINENO: result: $ac_res" >&5
15146 echo "${ECHO_T}$ac_res" >&6; }
15148 # Is the header compilable?
15149 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 $ac_includes_default
15158 #include <$ac_header>
15160 rm -f conftest.$ac_objext
15161 if { (ac_try="$ac_compile"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_compile") 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15175 { (case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_try") 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_try") 2>&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; }; then
15194 ac_header_compiler=yes
15196 echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15199 ac_header_compiler=no
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15204 echo "${ECHO_T}$ac_header_compiler" >&6; }
15206 # Is the header present?
15207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15209 cat >conftest.$ac_ext <<_ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15215 #include <$ac_header>
15217 if { (ac_try="$ac_cpp conftest.$ac_ext"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15225 grep -v '^ *+' conftest.er1 >conftest.err
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } >/dev/null; then
15230 if test -s conftest.err; then
15231 ac_cpp_err=$ac_c_preproc_warn_flag
15232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15239 if test -z "$ac_cpp_err"; then
15240 ac_header_preproc=yes
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 ac_header_preproc=no
15248 rm -f conftest.err conftest.$ac_ext
15249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15250 echo "${ECHO_T}$ac_header_preproc" >&6; }
15252 # So? What about this header?
15253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15259 ac_header_preproc=yes
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15269 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15275 ## ------------------------------ ##
15276 ## Report this to bugs@yourdomain ##
15277 ## ------------------------------ ##
15279 ) | sed "s/^/$as_me: WARNING: /" >&2
15282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 eval "$as_ac_Header=\$ac_header_preproc"
15289 ac_res=`eval echo '${'$as_ac_Header'}'`
15290 { echo "$as_me:$LINENO: result: $ac_res" >&5
15291 echo "${ECHO_T}$ac_res" >&6; }
15294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15295 cat >>confdefs.h <<_ACEOF
15296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15307 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 ac_res=`eval echo '${'$as_ac_Header'}'`
15317 { echo "$as_me:$LINENO: result: $ac_res" >&5
15318 echo "${ECHO_T}$ac_res" >&6; }
15320 # Is the header compilable?
15321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15323 cat >conftest.$ac_ext <<_ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 $ac_includes_default
15330 #include <$ac_header>
15332 rm -f conftest.$ac_objext
15333 if { (ac_try="$ac_compile"
15334 case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_compile") 2>conftest.er1
15341 grep -v '^ *+' conftest.er1 >conftest.err
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } &&
15346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15347 { (case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_try") 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest.$ac_objext'
15357 { (case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_try") 2>&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_header_compiler=yes
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 ac_header_compiler=no
15374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15376 echo "${ECHO_T}$ac_header_compiler" >&6; }
15378 # Is the header present?
15379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 #include <$ac_header>
15389 if { (ac_try="$ac_cpp conftest.$ac_ext"
15390 case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15397 grep -v '^ *+' conftest.er1 >conftest.err
15399 cat conftest.err >&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } >/dev/null; then
15402 if test -s conftest.err; then
15403 ac_cpp_err=$ac_c_preproc_warn_flag
15404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15411 if test -z "$ac_cpp_err"; then
15412 ac_header_preproc=yes
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15417 ac_header_preproc=no
15420 rm -f conftest.err conftest.$ac_ext
15421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15422 echo "${ECHO_T}$ac_header_preproc" >&6; }
15424 # So? What about this header?
15425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15431 ac_header_preproc=yes
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15447 ## ------------------------------ ##
15448 ## Report this to bugs@yourdomain ##
15449 ## ------------------------------ ##
15451 ) | sed "s/^/$as_me: WARNING: /" >&2
15454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 eval "$as_ac_Header=\$ac_header_preproc"
15461 ac_res=`eval echo '${'$as_ac_Header'}'`
15462 { echo "$as_me:$LINENO: result: $ac_res" >&5
15463 echo "${ECHO_T}$ac_res" >&6; }
15466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15467 cat >>confdefs.h <<_ACEOF
15468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15476 for ac_header in valgrind/valgrind.h
15478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 ac_res=`eval echo '${'$as_ac_Header'}'`
15486 { echo "$as_me:$LINENO: result: $ac_res" >&5
15487 echo "${ECHO_T}$ac_res" >&6; }
15489 # Is the header compilable?
15490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15492 cat >conftest.$ac_ext <<_ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 $ac_includes_default
15499 #include <$ac_header>
15501 rm -f conftest.$ac_objext
15502 if { (ac_try="$ac_compile"
15503 case "(($ac_try" in
15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505 *) ac_try_echo=$ac_try;;
15507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508 (eval "$ac_compile") 2>conftest.er1
15510 grep -v '^ *+' conftest.er1 >conftest.err
15512 cat conftest.err >&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
15515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15516 { (case "(($ac_try" in
15517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521 (eval "$ac_try") 2>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); }; } &&
15525 { ac_try='test -s conftest.$ac_objext'
15526 { (case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_try") 2>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15535 ac_header_compiler=yes
15537 echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15540 ac_header_compiler=no
15543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15545 echo "${ECHO_T}$ac_header_compiler" >&6; }
15547 # Is the header present?
15548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15550 cat >conftest.$ac_ext <<_ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15556 #include <$ac_header>
15558 if { (ac_try="$ac_cpp conftest.$ac_ext"
15559 case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15566 grep -v '^ *+' conftest.er1 >conftest.err
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } >/dev/null; then
15571 if test -s conftest.err; then
15572 ac_cpp_err=$ac_c_preproc_warn_flag
15573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15580 if test -z "$ac_cpp_err"; then
15581 ac_header_preproc=yes
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ac_header_preproc=no
15589 rm -f conftest.err conftest.$ac_ext
15590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15591 echo "${ECHO_T}$ac_header_preproc" >&6; }
15593 # So? What about this header?
15594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15600 ac_header_preproc=yes
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15616 ## ------------------------------ ##
15617 ## Report this to bugs@yourdomain ##
15618 ## ------------------------------ ##
15620 ) | sed "s/^/$as_me: WARNING: /" >&2
15623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 eval "$as_ac_Header=\$ac_header_preproc"
15630 ac_res=`eval echo '${'$as_ac_Header'}'`
15631 { echo "$as_me:$LINENO: result: $ac_res" >&5
15632 echo "${ECHO_T}$ac_res" >&6; }
15635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15636 cat >>confdefs.h <<_ACEOF
15637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15645 for ac_header in fenv.h
15647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15654 ac_res=`eval echo '${'$as_ac_Header'}'`
15655 { echo "$as_me:$LINENO: result: $ac_res" >&5
15656 echo "${ECHO_T}$ac_res" >&6; }
15658 # Is the header compilable?
15659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15661 cat >conftest.$ac_ext <<_ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667 $ac_includes_default
15668 #include <$ac_header>
15670 rm -f conftest.$ac_objext
15671 if { (ac_try="$ac_compile"
15672 case "(($ac_try" in
15673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674 *) ac_try_echo=$ac_try;;
15676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15677 (eval "$ac_compile") 2>conftest.er1
15679 grep -v '^ *+' conftest.er1 >conftest.err
15681 cat conftest.err >&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15685 { (case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_try") 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest.$ac_objext'
15695 { (case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_try") 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 ac_header_compiler=yes
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15709 ac_header_compiler=no
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15714 echo "${ECHO_T}$ac_header_compiler" >&6; }
15716 # Is the header present?
15717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15719 cat >conftest.$ac_ext <<_ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15725 #include <$ac_header>
15727 if { (ac_try="$ac_cpp conftest.$ac_ext"
15728 case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15735 grep -v '^ *+' conftest.er1 >conftest.err
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } >/dev/null; then
15740 if test -s conftest.err; then
15741 ac_cpp_err=$ac_c_preproc_warn_flag
15742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15749 if test -z "$ac_cpp_err"; then
15750 ac_header_preproc=yes
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_header_preproc=no
15758 rm -f conftest.err conftest.$ac_ext
15759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15760 echo "${ECHO_T}$ac_header_preproc" >&6; }
15762 # So? What about this header?
15763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15769 ac_header_preproc=yes
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15785 ## ------------------------------ ##
15786 ## Report this to bugs@yourdomain ##
15787 ## ------------------------------ ##
15789 ) | sed "s/^/$as_me: WARNING: /" >&2
15792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 eval "$as_ac_Header=\$ac_header_preproc"
15799 ac_res=`eval echo '${'$as_ac_Header'}'`
15800 { echo "$as_me:$LINENO: result: $ac_res" >&5
15801 echo "${ECHO_T}$ac_res" >&6; }
15804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15813 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15815 for ac_header in pthread.h
15817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825 { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15828 # Is the header compilable?
15829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15831 cat >conftest.$ac_ext <<_ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 $ac_includes_default
15838 #include <$ac_header>
15840 rm -f conftest.$ac_objext
15841 if { (ac_try="$ac_compile"
15842 case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_compile") 2>conftest.er1
15849 grep -v '^ *+' conftest.er1 >conftest.err
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15855 { (case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860 (eval "$ac_try") 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_try") 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 ac_header_compiler=yes
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_header_compiler=no
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15884 echo "${ECHO_T}$ac_header_compiler" >&6; }
15886 # Is the header present?
15887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <$ac_header>
15897 if { (ac_try="$ac_cpp conftest.$ac_ext"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15905 grep -v '^ *+' conftest.er1 >conftest.err
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } >/dev/null; then
15910 if test -s conftest.err; then
15911 ac_cpp_err=$ac_c_preproc_warn_flag
15912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15919 if test -z "$ac_cpp_err"; then
15920 ac_header_preproc=yes
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_header_preproc=no
15928 rm -f conftest.err conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15930 echo "${ECHO_T}$ac_header_preproc" >&6; }
15932 # So? What about this header?
15933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15939 ac_header_preproc=yes
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15955 ## ------------------------------ ##
15956 ## Report this to bugs@yourdomain ##
15957 ## ------------------------------ ##
15959 ) | sed "s/^/$as_me: WARNING: /" >&2
15962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 eval "$as_ac_Header=\$ac_header_preproc"
15969 ac_res=`eval echo '${'$as_ac_Header'}'`
15970 { echo "$as_me:$LINENO: result: $ac_res" >&5
15971 echo "${ECHO_T}$ac_res" >&6; }
15974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15975 cat >>confdefs.h <<_ACEOF
15976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15991 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
15993 for ac_header in zlib.h
15995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 ac_res=`eval echo '${'$as_ac_Header'}'`
16003 { echo "$as_me:$LINENO: result: $ac_res" >&5
16004 echo "${ECHO_T}$ac_res" >&6; }
16006 # Is the header compilable?
16007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16009 cat >conftest.$ac_ext <<_ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 $ac_includes_default
16016 #include <$ac_header>
16018 rm -f conftest.$ac_objext
16019 if { (ac_try="$ac_compile"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_compile") 2>conftest.er1
16027 grep -v '^ *+' conftest.er1 >conftest.err
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
16032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16033 { (case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_try") 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_try") 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 ac_header_compiler=yes
16054 echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16057 ac_header_compiler=no
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16062 echo "${ECHO_T}$ac_header_compiler" >&6; }
16064 # Is the header present?
16065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16067 cat >conftest.$ac_ext <<_ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 #include <$ac_header>
16075 if { (ac_try="$ac_cpp conftest.$ac_ext"
16076 case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16083 grep -v '^ *+' conftest.er1 >conftest.err
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } >/dev/null; then
16088 if test -s conftest.err; then
16089 ac_cpp_err=$ac_c_preproc_warn_flag
16090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16097 if test -z "$ac_cpp_err"; then
16098 ac_header_preproc=yes
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16103 ac_header_preproc=no
16106 rm -f conftest.err conftest.$ac_ext
16107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16108 echo "${ECHO_T}$ac_header_preproc" >&6; }
16110 # So? What about this header?
16111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16117 ac_header_preproc=yes
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16133 ## ------------------------------ ##
16134 ## Report this to bugs@yourdomain ##
16135 ## ------------------------------ ##
16137 ) | sed "s/^/$as_me: WARNING: /" >&2
16140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 eval "$as_ac_Header=\$ac_header_preproc"
16147 ac_res=`eval echo '${'$as_ac_Header'}'`
16148 { echo "$as_me:$LINENO: result: $ac_res" >&5
16149 echo "${ECHO_T}$ac_res" >&6; }
16152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16153 cat >>confdefs.h <<_ACEOF
16154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16170 if test "$llvm_cv_enable_libffi" = "yes" ; then
16173 for ac_header in ffi.h ffi/ffi.h
16175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 ac_res=`eval echo '${'$as_ac_Header'}'`
16183 { echo "$as_me:$LINENO: result: $ac_res" >&5
16184 echo "${ECHO_T}$ac_res" >&6; }
16186 # Is the header compilable?
16187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16189 cat >conftest.$ac_ext <<_ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 $ac_includes_default
16196 #include <$ac_header>
16198 rm -f conftest.$ac_objext
16199 if { (ac_try="$ac_compile"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
16212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16213 { (case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_try") 2>&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
16223 { (case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_try") 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; }; then
16232 ac_header_compiler=yes
16234 echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16237 ac_header_compiler=no
16240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16242 echo "${ECHO_T}$ac_header_compiler" >&6; }
16244 # Is the header present?
16245 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16247 cat >conftest.$ac_ext <<_ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 #include <$ac_header>
16255 if { (ac_try="$ac_cpp conftest.$ac_ext"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16263 grep -v '^ *+' conftest.er1 >conftest.err
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } >/dev/null; then
16268 if test -s conftest.err; then
16269 ac_cpp_err=$ac_c_preproc_warn_flag
16270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16277 if test -z "$ac_cpp_err"; then
16278 ac_header_preproc=yes
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16283 ac_header_preproc=no
16286 rm -f conftest.err conftest.$ac_ext
16287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16288 echo "${ECHO_T}$ac_header_preproc" >&6; }
16290 # So? What about this header?
16291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16297 ac_header_preproc=yes
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16313 ## ------------------------------ ##
16314 ## Report this to bugs@yourdomain ##
16315 ## ------------------------------ ##
16317 ) | sed "s/^/$as_me: WARNING: /" >&2
16320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 eval "$as_ac_Header=\$ac_header_preproc"
16327 ac_res=`eval echo '${'$as_ac_Header'}'`
16328 { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16333 cat >>confdefs.h <<_ACEOF
16334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16344 for ac_header in CrashReporterClient.h
16346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 ac_res=`eval echo '${'$as_ac_Header'}'`
16354 { echo "$as_me:$LINENO: result: $ac_res" >&5
16355 echo "${ECHO_T}$ac_res" >&6; }
16357 # Is the header compilable?
16358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16360 cat >conftest.$ac_ext <<_ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16366 $ac_includes_default
16367 #include <$ac_header>
16369 rm -f conftest.$ac_objext
16370 if { (ac_try="$ac_compile"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_compile") 2>conftest.er1
16378 grep -v '^ *+' conftest.er1 >conftest.err
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
16383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16384 { (case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_try") 2>&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; } &&
16393 { ac_try='test -s conftest.$ac_objext'
16394 { (case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399 (eval "$ac_try") 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16403 ac_header_compiler=yes
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16408 ac_header_compiler=no
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16413 echo "${ECHO_T}$ac_header_compiler" >&6; }
16415 # Is the header present?
16416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16418 cat >conftest.$ac_ext <<_ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 #include <$ac_header>
16426 if { (ac_try="$ac_cpp conftest.$ac_ext"
16427 case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16434 grep -v '^ *+' conftest.er1 >conftest.err
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } >/dev/null; then
16439 if test -s conftest.err; then
16440 ac_cpp_err=$ac_c_preproc_warn_flag
16441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16448 if test -z "$ac_cpp_err"; then
16449 ac_header_preproc=yes
16451 echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16454 ac_header_preproc=no
16457 rm -f conftest.err conftest.$ac_ext
16458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16459 echo "${ECHO_T}$ac_header_preproc" >&6; }
16461 # So? What about this header?
16462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16468 ac_header_preproc=yes
16471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16484 ## ------------------------------ ##
16485 ## Report this to bugs@yourdomain ##
16486 ## ------------------------------ ##
16488 ) | sed "s/^/$as_me: WARNING: /" >&2
16491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16496 eval "$as_ac_Header=\$ac_header_preproc"
16498 ac_res=`eval echo '${'$as_ac_Header'}'`
16499 { echo "$as_me:$LINENO: result: $ac_res" >&5
16500 echo "${ECHO_T}$ac_res" >&6; }
16503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16504 cat >>confdefs.h <<_ACEOF
16505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16513 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16514 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16515 cat >conftest.$ac_ext <<_ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16521 extern const char *__crashreporter_info__;
16523 __crashreporter_info__ = "test";
16528 rm -f conftest.$ac_objext conftest$ac_exeext
16529 if { (ac_try="$ac_link"
16530 case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_link") 2>conftest.er1
16537 grep -v '^ *+' conftest.er1 >conftest.err
16539 cat conftest.err >&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
16542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16543 { (case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548 (eval "$ac_try") 2>&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; } &&
16552 { ac_try='test -s conftest$ac_exeext'
16553 { (case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_try") 2>&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 { echo "$as_me:$LINENO: result: yes" >&5
16563 echo "${ECHO_T}yes" >&6; }
16565 cat >>confdefs.h <<\_ACEOF
16566 #define HAVE_CRASHREPORTER_INFO 1
16570 echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16573 { echo "$as_me:$LINENO: result: no" >&5
16574 echo "${ECHO_T}no" >&6; }
16576 cat >>confdefs.h <<\_ACEOF
16577 #define HAVE_CRASHREPORTER_INFO 0
16582 rm -f core conftest.err conftest.$ac_objext \
16583 conftest$ac_exeext conftest.$ac_ext
16588 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16589 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16590 if test "${ac_cv_huge_val_sanity+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 ac_cpp='$CXXCPP $CPPFLAGS'
16596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16600 ac_save_CXXFLAGS=$CXXFLAGS
16601 CXXFLAGS="$CXXFLAGS -pedantic"
16602 if test "$cross_compiling" = yes; then
16603 ac_cv_huge_val_sanity=yes
16605 cat >conftest.$ac_ext <<_ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16615 double x = HUGE_VAL; return x != x;
16620 rm -f conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_link") 2>&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16631 { (case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_try") 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_cv_huge_val_sanity=yes
16642 echo "$as_me: program exited with status $ac_status" >&5
16643 echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16646 ( exit $ac_status )
16647 ac_cv_huge_val_sanity=no
16649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16653 CXXFLAGS=$ac_save_CXXFLAGS
16655 ac_cpp='$CPP $CPPFLAGS'
16656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16662 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16663 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16664 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16667 { echo "$as_me:$LINENO: checking for pid_t" >&5
16668 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16669 if test "${ac_cv_type_pid_t+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 cat >conftest.$ac_ext <<_ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16678 $ac_includes_default
16679 typedef pid_t ac__type_new_;
16683 if ((ac__type_new_ *) 0)
16685 if (sizeof (ac__type_new_))
16691 rm -f conftest.$ac_objext
16692 if { (ac_try="$ac_compile"
16693 case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_compile") 2>conftest.er1
16700 grep -v '^ *+' conftest.er1 >conftest.err
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_try") 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest.$ac_objext'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16725 ac_cv_type_pid_t=yes
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 ac_cv_type_pid_t=no
16733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16735 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16736 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16737 if test $ac_cv_type_pid_t = yes; then
16741 cat >>confdefs.h <<_ACEOF
16747 { echo "$as_me:$LINENO: checking for size_t" >&5
16748 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16749 if test "${ac_cv_type_size_t+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 $ac_includes_default
16759 typedef size_t ac__type_new_;
16763 if ((ac__type_new_ *) 0)
16765 if (sizeof (ac__type_new_))
16771 rm -f conftest.$ac_objext
16772 if { (ac_try="$ac_compile"
16773 case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_compile") 2>conftest.er1
16780 grep -v '^ *+' conftest.er1 >conftest.err
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16786 { (case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_try") 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
16795 { ac_try='test -s conftest.$ac_objext'
16796 { (case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_try") 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 ac_cv_type_size_t=yes
16807 echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.$ac_ext >&5
16810 ac_cv_type_size_t=no
16813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16815 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16816 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16817 if test $ac_cv_type_size_t = yes; then
16821 cat >>confdefs.h <<_ACEOF
16822 #define size_t unsigned int
16828 cat >>confdefs.h <<_ACEOF
16829 #define RETSIGTYPE void
16832 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16833 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16834 if test "${ac_cv_struct_tm+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 cat >conftest.$ac_ext <<_ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16843 #include <sys/types.h>
16849 struct tm *tp; tp->tm_sec;
16854 rm -f conftest.$ac_objext
16855 if { (ac_try="$ac_compile"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_compile") 2>conftest.er1
16863 grep -v '^ *+' conftest.er1 >conftest.err
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869 { (case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_try") 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest.$ac_objext'
16879 { (case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_try") 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_cv_struct_tm=time.h
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 ac_cv_struct_tm=sys/time.h
16896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16898 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16899 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16900 if test $ac_cv_struct_tm = sys/time.h; then
16902 cat >>confdefs.h <<\_ACEOF
16903 #define TM_IN_SYS_TIME 1
16908 { echo "$as_me:$LINENO: checking for int64_t" >&5
16909 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16910 if test "${ac_cv_type_int64_t+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 cat >conftest.$ac_ext <<_ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 $ac_includes_default
16920 typedef int64_t ac__type_new_;
16924 if ((ac__type_new_ *) 0)
16926 if (sizeof (ac__type_new_))
16932 rm -f conftest.$ac_objext
16933 if { (ac_try="$ac_compile"
16934 case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_compile") 2>conftest.er1
16941 grep -v '^ *+' conftest.er1 >conftest.err
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16947 { (case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_try") 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; } &&
16956 { ac_try='test -s conftest.$ac_objext'
16957 { (case "(($ac_try" in
16958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959 *) ac_try_echo=$ac_try;;
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_try") 2>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_cv_type_int64_t=yes
16968 echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16971 ac_cv_type_int64_t=no
16974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16976 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16977 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16978 if test $ac_cv_type_int64_t = yes; then
16980 cat >>confdefs.h <<_ACEOF
16981 #define HAVE_INT64_T 1
16986 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16987 echo "$as_me: error: Type int64_t required but not found" >&2;}
16988 { (exit 1); exit 1; }; }
16991 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16992 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16993 if test "${ac_cv_type_uint64_t+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16996 cat >conftest.$ac_ext <<_ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 $ac_includes_default
17003 typedef uint64_t ac__type_new_;
17007 if ((ac__type_new_ *) 0)
17009 if (sizeof (ac__type_new_))
17015 rm -f conftest.$ac_objext
17016 if { (ac_try="$ac_compile"
17017 case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_compile") 2>conftest.er1
17024 grep -v '^ *+' conftest.er1 >conftest.err
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } &&
17029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17030 { (case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_try") 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; } &&
17039 { ac_try='test -s conftest.$ac_objext'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_cv_type_uint64_t=yes
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 ac_cv_type_uint64_t=no
17057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17060 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17061 if test $ac_cv_type_uint64_t = yes; then
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_UINT64_T 1
17069 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17070 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17071 if test "${ac_cv_type_u_int64_t+set}" = set; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 $ac_includes_default
17081 typedef u_int64_t ac__type_new_;
17085 if ((ac__type_new_ *) 0)
17087 if (sizeof (ac__type_new_))
17093 rm -f conftest.$ac_objext
17094 if { (ac_try="$ac_compile"
17095 case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_compile") 2>conftest.er1
17102 grep -v '^ *+' conftest.er1 >conftest.err
17104 cat conftest.err >&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); } &&
17107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17108 { (case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_try") 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; } &&
17117 { ac_try='test -s conftest.$ac_objext'
17118 { (case "(($ac_try" in
17119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120 *) ac_try_echo=$ac_try;;
17122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123 (eval "$ac_try") 2>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 ac_cv_type_u_int64_t=yes
17129 echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17132 ac_cv_type_u_int64_t=no
17135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17137 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17138 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17139 if test $ac_cv_type_u_int64_t = yes; then
17141 cat >>confdefs.h <<_ACEOF
17142 #define HAVE_U_INT64_T 1
17147 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17148 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17149 { (exit 1); exit 1; }; }
17163 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 cat >conftest.$ac_ext <<_ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17179 #define $ac_func innocuous_$ac_func
17181 /* System header to define __stub macros and hopefully few prototypes,
17182 which can conflict with char $ac_func (); below.
17183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17184 <limits.h> exists even on freestanding compilers. */
17187 # include <limits.h>
17189 # include <assert.h>
17194 /* Override any GCC internal prototype to avoid an error.
17195 Use char because int might match the return type of a GCC
17196 builtin and then its argument prototype would still apply. */
17201 /* The GNU C library defines this for functions which it implements
17202 to always fail with ENOSYS. Some functions are actually named
17203 something starting with __ and the normal name is an alias. */
17204 #if defined __stub_$ac_func || defined __stub___$ac_func
17211 return $ac_func ();
17216 rm -f conftest.$ac_objext conftest$ac_exeext
17217 if { (ac_try="$ac_link"
17218 case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_link") 2>conftest.er1
17225 grep -v '^ *+' conftest.er1 >conftest.err
17227 cat conftest.err >&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } &&
17230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17231 { (case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_try") 2>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; } &&
17240 { ac_try='test -s conftest$ac_exeext'
17241 { (case "(($ac_try" in
17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_try") 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; }; then
17250 eval "$as_ac_var=yes"
17252 echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17255 eval "$as_ac_var=no"
17258 rm -f core conftest.err conftest.$ac_objext \
17259 conftest$ac_exeext conftest.$ac_ext
17261 ac_res=`eval echo '${'$as_ac_var'}'`
17262 { echo "$as_me:$LINENO: result: $ac_res" >&5
17263 echo "${ECHO_T}$ac_res" >&6; }
17264 if test `eval echo '${'$as_ac_var'}'` = yes; then
17265 cat >>confdefs.h <<_ACEOF
17266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17276 for ac_func in powf fmodf strtof round
17278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 cat >conftest.$ac_ext <<_ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17292 #define $ac_func innocuous_$ac_func
17294 /* System header to define __stub macros and hopefully few prototypes,
17295 which can conflict with char $ac_func (); below.
17296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17297 <limits.h> exists even on freestanding compilers. */
17300 # include <limits.h>
17302 # include <assert.h>
17307 /* Override any GCC internal prototype to avoid an error.
17308 Use char because int might match the return type of a GCC
17309 builtin and then its argument prototype would still apply. */
17314 /* The GNU C library defines this for functions which it implements
17315 to always fail with ENOSYS. Some functions are actually named
17316 something starting with __ and the normal name is an alias. */
17317 #if defined __stub_$ac_func || defined __stub___$ac_func
17324 return $ac_func ();
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (ac_try="$ac_link"
17331 case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_link") 2>conftest.er1
17338 grep -v '^ *+' conftest.er1 >conftest.err
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
17343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17344 { (case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_try") 2>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; } &&
17353 { ac_try='test -s conftest$ac_exeext'
17354 { (case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_try") 2>&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; }; then
17363 eval "$as_ac_var=yes"
17365 echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17368 eval "$as_ac_var=no"
17371 rm -f core conftest.err conftest.$ac_objext \
17372 conftest$ac_exeext conftest.$ac_ext
17374 ac_res=`eval echo '${'$as_ac_var'}'`
17375 { echo "$as_me:$LINENO: result: $ac_res" >&5
17376 echo "${ECHO_T}$ac_res" >&6; }
17377 if test `eval echo '${'$as_ac_var'}'` = yes; then
17378 cat >>confdefs.h <<_ACEOF
17379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17390 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 cat >conftest.$ac_ext <<_ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17406 #define $ac_func innocuous_$ac_func
17408 /* System header to define __stub macros and hopefully few prototypes,
17409 which can conflict with char $ac_func (); below.
17410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17411 <limits.h> exists even on freestanding compilers. */
17414 # include <limits.h>
17416 # include <assert.h>
17421 /* Override any GCC internal prototype to avoid an error.
17422 Use char because int might match the return type of a GCC
17423 builtin and then its argument prototype would still apply. */
17428 /* The GNU C library defines this for functions which it implements
17429 to always fail with ENOSYS. Some functions are actually named
17430 something starting with __ and the normal name is an alias. */
17431 #if defined __stub_$ac_func || defined __stub___$ac_func
17438 return $ac_func ();
17443 rm -f conftest.$ac_objext conftest$ac_exeext
17444 if { (ac_try="$ac_link"
17445 case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_link") 2>conftest.er1
17452 grep -v '^ *+' conftest.er1 >conftest.err
17454 cat conftest.err >&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
17457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17458 { (case "(($ac_try" in
17459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460 *) ac_try_echo=$ac_try;;
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463 (eval "$ac_try") 2>&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; } &&
17467 { ac_try='test -s conftest$ac_exeext'
17468 { (case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_try") 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477 eval "$as_ac_var=yes"
17479 echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17482 eval "$as_ac_var=no"
17485 rm -f core conftest.err conftest.$ac_objext \
17486 conftest$ac_exeext conftest.$ac_ext
17488 ac_res=`eval echo '${'$as_ac_var'}'`
17489 { echo "$as_me:$LINENO: result: $ac_res" >&5
17490 echo "${ECHO_T}$ac_res" >&6; }
17491 if test `eval echo '${'$as_ac_var'}'` = yes; then
17492 cat >>confdefs.h <<_ACEOF
17493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17502 for ac_func in isatty mkdtemp mkstemp
17504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17510 cat >conftest.$ac_ext <<_ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17518 #define $ac_func innocuous_$ac_func
17520 /* System header to define __stub macros and hopefully few prototypes,
17521 which can conflict with char $ac_func (); below.
17522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17523 <limits.h> exists even on freestanding compilers. */
17526 # include <limits.h>
17528 # include <assert.h>
17533 /* Override any GCC internal prototype to avoid an error.
17534 Use char because int might match the return type of a GCC
17535 builtin and then its argument prototype would still apply. */
17540 /* The GNU C library defines this for functions which it implements
17541 to always fail with ENOSYS. Some functions are actually named
17542 something starting with __ and the normal name is an alias. */
17543 #if defined __stub_$ac_func || defined __stub___$ac_func
17550 return $ac_func ();
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (ac_try="$ac_link"
17557 case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_link") 2>conftest.er1
17564 grep -v '^ *+' conftest.er1 >conftest.err
17566 cat conftest.err >&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
17569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17570 { (case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_try") 2>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; } &&
17579 { ac_try='test -s conftest$ac_exeext'
17580 { (case "(($ac_try" in
17581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582 *) ac_try_echo=$ac_try;;
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585 (eval "$ac_try") 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17589 eval "$as_ac_var=yes"
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 eval "$as_ac_var=no"
17597 rm -f core conftest.err conftest.$ac_objext \
17598 conftest$ac_exeext conftest.$ac_ext
17600 ac_res=`eval echo '${'$as_ac_var'}'`
17601 { echo "$as_me:$LINENO: result: $ac_res" >&5
17602 echo "${ECHO_T}$ac_res" >&6; }
17603 if test `eval echo '${'$as_ac_var'}'` = yes; then
17604 cat >>confdefs.h <<_ACEOF
17605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17617 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 cat >conftest.$ac_ext <<_ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17633 #define $ac_func innocuous_$ac_func
17635 /* System header to define __stub macros and hopefully few prototypes,
17636 which can conflict with char $ac_func (); below.
17637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17638 <limits.h> exists even on freestanding compilers. */
17641 # include <limits.h>
17643 # include <assert.h>
17648 /* Override any GCC internal prototype to avoid an error.
17649 Use char because int might match the return type of a GCC
17650 builtin and then its argument prototype would still apply. */
17655 /* The GNU C library defines this for functions which it implements
17656 to always fail with ENOSYS. Some functions are actually named
17657 something starting with __ and the normal name is an alias. */
17658 #if defined __stub_$ac_func || defined __stub___$ac_func
17665 return $ac_func ();
17670 rm -f conftest.$ac_objext conftest$ac_exeext
17671 if { (ac_try="$ac_link"
17672 case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_link") 2>conftest.er1
17679 grep -v '^ *+' conftest.er1 >conftest.err
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17685 { (case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_try") 2>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; } &&
17694 { ac_try='test -s conftest$ac_exeext'
17695 { (case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700 (eval "$ac_try") 2>&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; }; then
17704 eval "$as_ac_var=yes"
17706 echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17709 eval "$as_ac_var=no"
17712 rm -f core conftest.err conftest.$ac_objext \
17713 conftest$ac_exeext conftest.$ac_ext
17715 ac_res=`eval echo '${'$as_ac_var'}'`
17716 { echo "$as_me:$LINENO: result: $ac_res" >&5
17717 echo "${ECHO_T}$ac_res" >&6; }
17718 if test `eval echo '${'$as_ac_var'}'` = yes; then
17719 cat >>confdefs.h <<_ACEOF
17720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17729 for ac_func in strerror strerror_r setenv
17731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 cat >conftest.$ac_ext <<_ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17745 #define $ac_func innocuous_$ac_func
17747 /* System header to define __stub macros and hopefully few prototypes,
17748 which can conflict with char $ac_func (); below.
17749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17750 <limits.h> exists even on freestanding compilers. */
17753 # include <limits.h>
17755 # include <assert.h>
17760 /* Override any GCC internal prototype to avoid an error.
17761 Use char because int might match the return type of a GCC
17762 builtin and then its argument prototype would still apply. */
17767 /* The GNU C library defines this for functions which it implements
17768 to always fail with ENOSYS. Some functions are actually named
17769 something starting with __ and the normal name is an alias. */
17770 #if defined __stub_$ac_func || defined __stub___$ac_func
17777 return $ac_func ();
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (ac_try="$ac_link"
17784 case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_link") 2>conftest.er1
17791 grep -v '^ *+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } &&
17796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17797 { (case "(($ac_try" in
17798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799 *) ac_try_echo=$ac_try;;
17801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802 (eval "$ac_try") 2>&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; } &&
17806 { ac_try='test -s conftest$ac_exeext'
17807 { (case "(($ac_try" in
17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809 *) ac_try_echo=$ac_try;;
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812 (eval "$ac_try") 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 eval "$as_ac_var=yes"
17818 echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.$ac_ext >&5
17821 eval "$as_ac_var=no"
17824 rm -f core conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17827 ac_res=`eval echo '${'$as_ac_var'}'`
17828 { echo "$as_me:$LINENO: result: $ac_res" >&5
17829 echo "${ECHO_T}$ac_res" >&6; }
17830 if test `eval echo '${'$as_ac_var'}'` = yes; then
17831 cat >>confdefs.h <<_ACEOF
17832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17842 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17850 cat >conftest.$ac_ext <<_ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17858 #define $ac_func innocuous_$ac_func
17860 /* System header to define __stub macros and hopefully few prototypes,
17861 which can conflict with char $ac_func (); below.
17862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17863 <limits.h> exists even on freestanding compilers. */
17866 # include <limits.h>
17868 # include <assert.h>
17873 /* Override any GCC internal prototype to avoid an error.
17874 Use char because int might match the return type of a GCC
17875 builtin and then its argument prototype would still apply. */
17880 /* The GNU C library defines this for functions which it implements
17881 to always fail with ENOSYS. Some functions are actually named
17882 something starting with __ and the normal name is an alias. */
17883 #if defined __stub_$ac_func || defined __stub___$ac_func
17890 return $ac_func ();
17895 rm -f conftest.$ac_objext conftest$ac_exeext
17896 if { (ac_try="$ac_link"
17897 case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_link") 2>conftest.er1
17904 grep -v '^ *+' conftest.er1 >conftest.err
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest$ac_exeext'
17920 { (case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_try") 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 eval "$as_ac_var=yes"
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 eval "$as_ac_var=no"
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17940 ac_res=`eval echo '${'$as_ac_var'}'`
17941 { echo "$as_me:$LINENO: result: $ac_res" >&5
17942 echo "${ECHO_T}$ac_res" >&6; }
17943 if test `eval echo '${'$as_ac_var'}'` = yes; then
17944 cat >>confdefs.h <<_ACEOF
17945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17956 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 cat >conftest.$ac_ext <<_ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17972 #define $ac_func innocuous_$ac_func
17974 /* System header to define __stub macros and hopefully few prototypes,
17975 which can conflict with char $ac_func (); below.
17976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17977 <limits.h> exists even on freestanding compilers. */
17980 # include <limits.h>
17982 # include <assert.h>
17987 /* Override any GCC internal prototype to avoid an error.
17988 Use char because int might match the return type of a GCC
17989 builtin and then its argument prototype would still apply. */
17994 /* The GNU C library defines this for functions which it implements
17995 to always fail with ENOSYS. Some functions are actually named
17996 something starting with __ and the normal name is an alias. */
17997 #if defined __stub_$ac_func || defined __stub___$ac_func
18004 return $ac_func ();
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (ac_try="$ac_link"
18011 case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_link") 2>conftest.er1
18018 grep -v '^ *+' conftest.er1 >conftest.err
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18024 { (case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_try") 2>&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest$ac_exeext'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
18043 eval "$as_ac_var=yes"
18045 echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18048 eval "$as_ac_var=no"
18051 rm -f core conftest.err conftest.$ac_objext \
18052 conftest$ac_exeext conftest.$ac_ext
18054 ac_res=`eval echo '${'$as_ac_var'}'`
18055 { echo "$as_me:$LINENO: result: $ac_res" >&5
18056 echo "${ECHO_T}$ac_res" >&6; }
18057 if test `eval echo '${'$as_ac_var'}'` = yes; then
18058 cat >>confdefs.h <<_ACEOF
18059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18065 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18066 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18067 if test "${llvm_cv_c_printf_a+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18071 ac_cpp='$CPP $CPPFLAGS'
18072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18076 if test "$cross_compiling" = yes; then
18077 llvmac_cv_c_printf_a=no
18079 cat >conftest.$ac_ext <<_ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18088 #include <stdlib.h>
18094 volatile double A, B;
18098 sprintf(Buffer, "%a", A);
18102 if (A != 0x1.999999999999ap-4)
18109 rm -f conftest$ac_exeext
18110 if { (ac_try="$ac_link"
18111 case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_link") 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
18129 llvm_cv_c_printf_a=yes
18131 echo "$as_me: program exited with status $ac_status" >&5
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 ( exit $ac_status )
18136 llvmac_cv_c_printf_a=no
18138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18143 ac_cpp='$CPP $CPPFLAGS'
18144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18149 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18150 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18151 if test "$llvm_cv_c_printf_a" = "yes"; then
18153 cat >>confdefs.h <<\_ACEOF
18154 #define HAVE_PRINTF_A 1
18160 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18161 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18162 if test "${ac_cv_func_rand48+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 ac_cpp='$CXXCPP $CPPFLAGS'
18167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18171 cat >conftest.$ac_ext <<_ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h. */
18177 #include <stdlib.h>
18181 srand48(0);lrand48();drand48();
18186 rm -f conftest.$ac_objext
18187 if { (ac_try="$ac_compile"
18188 case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_compile") 2>conftest.er1
18195 grep -v '^ *+' conftest.er1 >conftest.err
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } &&
18200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18201 { (case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_try") 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_try") 2>&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 ac_cv_func_rand48=yes
18222 echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18225 ac_cv_func_rand48=no
18228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18230 ac_cpp='$CPP $CPPFLAGS'
18231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18236 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18237 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18239 if test "$ac_cv_func_rand48" = "yes" ; then
18241 cat >>confdefs.h <<\_ACEOF
18242 #define HAVE_RAND48 1
18248 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18249 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18250 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 cat >conftest.$ac_ext <<_ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18259 $ac_includes_default
18264 char *p = (char *) strerror_s;
18272 rm -f conftest.$ac_objext
18273 if { (ac_try="$ac_compile"
18274 case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_compile") 2>conftest.er1
18281 grep -v '^ *+' conftest.er1 >conftest.err
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
18286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; } &&
18296 { ac_try='test -s conftest.$ac_objext'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_have_decl_strerror_s=yes
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 ac_cv_have_decl_strerror_s=no
18314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18316 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18317 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18318 if test $ac_cv_have_decl_strerror_s = yes; then
18320 cat >>confdefs.h <<_ACEOF
18321 #define HAVE_DECL_STRERROR_S 1
18326 cat >>confdefs.h <<_ACEOF
18327 #define HAVE_DECL_STRERROR_S 0
18335 if test "$llvm_cv_os_type" = "MingW" ; then
18336 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18337 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18338 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 ac_check_lib_save_LIBS=$LIBS
18343 cat >conftest.$ac_ext <<_ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18350 /* Override any GCC internal prototype to avoid an error.
18351 Use char because int might match the return type of a GCC
18352 builtin and then its argument prototype would still apply. */
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (ac_try="$ac_link"
18367 case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_link") 2>conftest.er1
18374 grep -v '^ *+' conftest.er1 >conftest.err
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
18379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18380 { (case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385 (eval "$ac_try") 2>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; } &&
18389 { ac_try='test -s conftest$ac_exeext'
18390 { (case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_try") 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 ac_cv_lib_gcc__alloca=yes
18401 echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18404 ac_cv_lib_gcc__alloca=no
18407 rm -f core conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
18409 LIBS=$ac_check_lib_save_LIBS
18411 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18412 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18413 if test $ac_cv_lib_gcc__alloca = yes; then
18415 cat >>confdefs.h <<\_ACEOF
18416 #define HAVE__ALLOCA 1
18421 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18422 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18423 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 ac_check_lib_save_LIBS=$LIBS
18428 cat >conftest.$ac_ext <<_ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18435 /* Override any GCC internal prototype to avoid an error.
18436 Use char because int might match the return type of a GCC
18437 builtin and then its argument prototype would still apply. */
18445 return __alloca ();
18450 rm -f conftest.$ac_objext conftest$ac_exeext
18451 if { (ac_try="$ac_link"
18452 case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_link") 2>conftest.er1
18459 grep -v '^ *+' conftest.er1 >conftest.err
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } &&
18464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest$ac_exeext'
18475 { (case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_try") 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_cv_lib_gcc___alloca=yes
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_cv_lib_gcc___alloca=no
18492 rm -f core conftest.err conftest.$ac_objext \
18493 conftest$ac_exeext conftest.$ac_ext
18494 LIBS=$ac_check_lib_save_LIBS
18496 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18497 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18498 if test $ac_cv_lib_gcc___alloca = yes; then
18500 cat >>confdefs.h <<\_ACEOF
18501 #define HAVE___ALLOCA 1
18506 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18507 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18508 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18509 echo $ECHO_N "(cached) $ECHO_C" >&6
18511 ac_check_lib_save_LIBS=$LIBS
18513 cat >conftest.$ac_ext <<_ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18520 /* Override any GCC internal prototype to avoid an error.
18521 Use char because int might match the return type of a GCC
18522 builtin and then its argument prototype would still apply. */
18530 return __chkstk ();
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_link") 2>conftest.er1
18544 grep -v '^ *+' conftest.er1 >conftest.err
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
18549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; } &&
18559 { ac_try='test -s conftest$ac_exeext'
18560 { (case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_try") 2>&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; }; then
18569 ac_cv_lib_gcc___chkstk=yes
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 ac_cv_lib_gcc___chkstk=no
18577 rm -f core conftest.err conftest.$ac_objext \
18578 conftest$ac_exeext conftest.$ac_ext
18579 LIBS=$ac_check_lib_save_LIBS
18581 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18582 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18583 if test $ac_cv_lib_gcc___chkstk = yes; then
18585 cat >>confdefs.h <<\_ACEOF
18586 #define HAVE___CHKSTK 1
18591 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18592 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18593 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18594 echo $ECHO_N "(cached) $ECHO_C" >&6
18596 ac_check_lib_save_LIBS=$LIBS
18598 cat >conftest.$ac_ext <<_ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h. */
18605 /* Override any GCC internal prototype to avoid an error.
18606 Use char because int might match the return type of a GCC
18607 builtin and then its argument prototype would still apply. */
18615 return ___chkstk ();
18620 rm -f conftest.$ac_objext conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_link") 2>conftest.er1
18629 grep -v '^ *+' conftest.er1 >conftest.err
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } &&
18634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18635 { (case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_try") 2>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; } &&
18644 { ac_try='test -s conftest$ac_exeext'
18645 { (case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_try") 2>&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; }; then
18654 ac_cv_lib_gcc____chkstk=yes
18656 echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18659 ac_cv_lib_gcc____chkstk=no
18662 rm -f core conftest.err conftest.$ac_objext \
18663 conftest$ac_exeext conftest.$ac_ext
18664 LIBS=$ac_check_lib_save_LIBS
18666 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18667 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18668 if test $ac_cv_lib_gcc____chkstk = yes; then
18670 cat >>confdefs.h <<\_ACEOF
18671 #define HAVE____CHKSTK 1
18677 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18678 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18679 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18680 echo $ECHO_N "(cached) $ECHO_C" >&6
18682 ac_check_lib_save_LIBS=$LIBS
18684 cat >conftest.$ac_ext <<_ACEOF
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h. */
18691 /* Override any GCC internal prototype to avoid an error.
18692 Use char because int might match the return type of a GCC
18693 builtin and then its argument prototype would still apply. */
18701 return __ashldi3 ();
18706 rm -f conftest.$ac_objext conftest$ac_exeext
18707 if { (ac_try="$ac_link"
18708 case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_link") 2>conftest.er1
18715 grep -v '^ *+' conftest.er1 >conftest.err
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18721 { (case "(($ac_try" in
18722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18723 *) ac_try_echo=$ac_try;;
18725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726 (eval "$ac_try") 2>&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; } &&
18730 { ac_try='test -s conftest$ac_exeext'
18731 { (case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_try") 2>&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; }; then
18740 ac_cv_lib_gcc___ashldi3=yes
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 ac_cv_lib_gcc___ashldi3=no
18748 rm -f core conftest.err conftest.$ac_objext \
18749 conftest$ac_exeext conftest.$ac_ext
18750 LIBS=$ac_check_lib_save_LIBS
18752 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18753 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18754 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18756 cat >>confdefs.h <<\_ACEOF
18757 #define HAVE___ASHLDI3 1
18762 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18763 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18764 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 ac_check_lib_save_LIBS=$LIBS
18769 cat >conftest.$ac_ext <<_ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18776 /* Override any GCC internal prototype to avoid an error.
18777 Use char because int might match the return type of a GCC
18778 builtin and then its argument prototype would still apply. */
18786 return __ashrdi3 ();
18791 rm -f conftest.$ac_objext conftest$ac_exeext
18792 if { (ac_try="$ac_link"
18793 case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_link") 2>conftest.er1
18800 grep -v '^ *+' conftest.er1 >conftest.err
18802 cat conftest.err >&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } &&
18805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18806 { (case "(($ac_try" in
18807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18808 *) ac_try_echo=$ac_try;;
18810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18811 (eval "$ac_try") 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; } &&
18815 { ac_try='test -s conftest$ac_exeext'
18816 { (case "(($ac_try" in
18817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818 *) ac_try_echo=$ac_try;;
18820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821 (eval "$ac_try") 2>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; }; then
18825 ac_cv_lib_gcc___ashrdi3=yes
18827 echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18830 ac_cv_lib_gcc___ashrdi3=no
18833 rm -f core conftest.err conftest.$ac_objext \
18834 conftest$ac_exeext conftest.$ac_ext
18835 LIBS=$ac_check_lib_save_LIBS
18837 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18838 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18839 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18841 cat >>confdefs.h <<\_ACEOF
18842 #define HAVE___ASHRDI3 1
18847 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18848 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18849 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18850 echo $ECHO_N "(cached) $ECHO_C" >&6
18852 ac_check_lib_save_LIBS=$LIBS
18854 cat >conftest.$ac_ext <<_ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18861 /* Override any GCC internal prototype to avoid an error.
18862 Use char because int might match the return type of a GCC
18863 builtin and then its argument prototype would still apply. */
18871 return __divdi3 ();
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (ac_try="$ac_link"
18878 case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_link") 2>conftest.er1
18885 grep -v '^ *+' conftest.er1 >conftest.err
18887 cat conftest.err >&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } &&
18890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18891 { (case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_try") 2>&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; } &&
18900 { ac_try='test -s conftest$ac_exeext'
18901 { (case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_try") 2>&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; }; then
18910 ac_cv_lib_gcc___divdi3=yes
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18915 ac_cv_lib_gcc___divdi3=no
18918 rm -f core conftest.err conftest.$ac_objext \
18919 conftest$ac_exeext conftest.$ac_ext
18920 LIBS=$ac_check_lib_save_LIBS
18922 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18923 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18924 if test $ac_cv_lib_gcc___divdi3 = yes; then
18926 cat >>confdefs.h <<\_ACEOF
18927 #define HAVE___DIVDI3 1
18932 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18933 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18934 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 ac_check_lib_save_LIBS=$LIBS
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18946 /* Override any GCC internal prototype to avoid an error.
18947 Use char because int might match the return type of a GCC
18948 builtin and then its argument prototype would still apply. */
18956 return __fixdfdi ();
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_link") 2>conftest.er1
18970 grep -v '^ *+' conftest.er1 >conftest.err
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18976 { (case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_try") 2>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; } &&
18985 { ac_try='test -s conftest$ac_exeext'
18986 { (case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_try") 2>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 ac_cv_lib_gcc___fixdfdi=yes
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 ac_cv_lib_gcc___fixdfdi=no
19003 rm -f core conftest.err conftest.$ac_objext \
19004 conftest$ac_exeext conftest.$ac_ext
19005 LIBS=$ac_check_lib_save_LIBS
19007 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19008 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19009 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19011 cat >>confdefs.h <<\_ACEOF
19012 #define HAVE___FIXDFDI 1
19017 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19018 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19019 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 ac_check_lib_save_LIBS=$LIBS
19024 cat >conftest.$ac_ext <<_ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19031 /* Override any GCC internal prototype to avoid an error.
19032 Use char because int might match the return type of a GCC
19033 builtin and then its argument prototype would still apply. */
19041 return __fixsfdi ();
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (ac_try="$ac_link"
19048 case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_link") 2>conftest.er1
19055 grep -v '^ *+' conftest.er1 >conftest.err
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19061 { (case "(($ac_try" in
19062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063 *) ac_try_echo=$ac_try;;
19065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066 (eval "$ac_try") 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest$ac_exeext'
19071 { (case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_try") 2>&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; }; then
19080 ac_cv_lib_gcc___fixsfdi=yes
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19085 ac_cv_lib_gcc___fixsfdi=no
19088 rm -f core conftest.err conftest.$ac_objext \
19089 conftest$ac_exeext conftest.$ac_ext
19090 LIBS=$ac_check_lib_save_LIBS
19092 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19093 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19094 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19096 cat >>confdefs.h <<\_ACEOF
19097 #define HAVE___FIXSFDI 1
19102 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19103 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19104 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 ac_check_lib_save_LIBS=$LIBS
19109 cat >conftest.$ac_ext <<_ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19116 /* Override any GCC internal prototype to avoid an error.
19117 Use char because int might match the return type of a GCC
19118 builtin and then its argument prototype would still apply. */
19122 char __floatdidf ();
19126 return __floatdidf ();
19131 rm -f conftest.$ac_objext conftest$ac_exeext
19132 if { (ac_try="$ac_link"
19133 case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_link") 2>conftest.er1
19140 grep -v '^ *+' conftest.er1 >conftest.err
19142 cat conftest.err >&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
19145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19146 { (case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151 (eval "$ac_try") 2>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest$ac_exeext'
19156 { (case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19161 (eval "$ac_try") 2>&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; }; then
19165 ac_cv_lib_gcc___floatdidf=yes
19167 echo "$as_me: failed program was:" >&5
19168 sed 's/^/| /' conftest.$ac_ext >&5
19170 ac_cv_lib_gcc___floatdidf=no
19173 rm -f core conftest.err conftest.$ac_objext \
19174 conftest$ac_exeext conftest.$ac_ext
19175 LIBS=$ac_check_lib_save_LIBS
19177 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19178 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19179 if test $ac_cv_lib_gcc___floatdidf = yes; then
19181 cat >>confdefs.h <<\_ACEOF
19182 #define HAVE___FLOATDIDF 1
19187 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19188 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19189 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19192 ac_check_lib_save_LIBS=$LIBS
19194 cat >conftest.$ac_ext <<_ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19201 /* Override any GCC internal prototype to avoid an error.
19202 Use char because int might match the return type of a GCC
19203 builtin and then its argument prototype would still apply. */
19211 return __lshrdi3 ();
19216 rm -f conftest.$ac_objext conftest$ac_exeext
19217 if { (ac_try="$ac_link"
19218 case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_link") 2>conftest.er1
19225 grep -v '^ *+' conftest.er1 >conftest.err
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
19230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19231 { (case "(($ac_try" in
19232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233 *) ac_try_echo=$ac_try;;
19235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236 (eval "$ac_try") 2>&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; } &&
19240 { ac_try='test -s conftest$ac_exeext'
19241 { (case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_try") 2>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250 ac_cv_lib_gcc___lshrdi3=yes
19252 echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19255 ac_cv_lib_gcc___lshrdi3=no
19258 rm -f core conftest.err conftest.$ac_objext \
19259 conftest$ac_exeext conftest.$ac_ext
19260 LIBS=$ac_check_lib_save_LIBS
19262 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19263 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19264 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19266 cat >>confdefs.h <<\_ACEOF
19267 #define HAVE___LSHRDI3 1
19272 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19273 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19274 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 ac_check_lib_save_LIBS=$LIBS
19279 cat >conftest.$ac_ext <<_ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19286 /* Override any GCC internal prototype to avoid an error.
19287 Use char because int might match the return type of a GCC
19288 builtin and then its argument prototype would still apply. */
19296 return __moddi3 ();
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (ac_try="$ac_link"
19303 case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_link") 2>conftest.er1
19310 grep -v '^ *+' conftest.er1 >conftest.err
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
19315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19316 { (case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_try") 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try='test -s conftest$ac_exeext'
19326 { (case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_try") 2>&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_cv_lib_gcc___moddi3=yes
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_cv_lib_gcc___moddi3=no
19343 rm -f core conftest.err conftest.$ac_objext \
19344 conftest$ac_exeext conftest.$ac_ext
19345 LIBS=$ac_check_lib_save_LIBS
19347 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19348 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19349 if test $ac_cv_lib_gcc___moddi3 = yes; then
19351 cat >>confdefs.h <<\_ACEOF
19352 #define HAVE___MODDI3 1
19357 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19358 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19359 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 ac_check_lib_save_LIBS=$LIBS
19364 cat >conftest.$ac_ext <<_ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19371 /* Override any GCC internal prototype to avoid an error.
19372 Use char because int might match the return type of a GCC
19373 builtin and then its argument prototype would still apply. */
19381 return __udivdi3 ();
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (ac_try="$ac_link"
19388 case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_link") 2>conftest.er1
19395 grep -v '^ *+' conftest.er1 >conftest.err
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
19400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19401 { (case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_try") 2>&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; } &&
19410 { ac_try='test -s conftest$ac_exeext'
19411 { (case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_try") 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19420 ac_cv_lib_gcc___udivdi3=yes
19422 echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19425 ac_cv_lib_gcc___udivdi3=no
19428 rm -f core conftest.err conftest.$ac_objext \
19429 conftest$ac_exeext conftest.$ac_ext
19430 LIBS=$ac_check_lib_save_LIBS
19432 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19433 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19434 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19436 cat >>confdefs.h <<\_ACEOF
19437 #define HAVE___UDIVDI3 1
19442 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19443 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19444 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19447 ac_check_lib_save_LIBS=$LIBS
19449 cat >conftest.$ac_ext <<_ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19456 /* Override any GCC internal prototype to avoid an error.
19457 Use char because int might match the return type of a GCC
19458 builtin and then its argument prototype would still apply. */
19466 return __umoddi3 ();
19471 rm -f conftest.$ac_objext conftest$ac_exeext
19472 if { (ac_try="$ac_link"
19473 case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478 (eval "$ac_link") 2>conftest.er1
19480 grep -v '^ *+' conftest.er1 >conftest.err
19482 cat conftest.err >&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); } &&
19485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19486 { (case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_try") 2>&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; } &&
19495 { ac_try='test -s conftest$ac_exeext'
19496 { (case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_try") 2>&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
19505 ac_cv_lib_gcc___umoddi3=yes
19507 echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19510 ac_cv_lib_gcc___umoddi3=no
19513 rm -f core conftest.err conftest.$ac_objext \
19514 conftest$ac_exeext conftest.$ac_ext
19515 LIBS=$ac_check_lib_save_LIBS
19517 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19518 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19519 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19521 cat >>confdefs.h <<\_ACEOF
19522 #define HAVE___UMODDI3 1
19528 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19529 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19530 if test "${ac_cv_lib_gcc___main+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 ac_check_lib_save_LIBS=$LIBS
19535 cat >conftest.$ac_ext <<_ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19542 /* Override any GCC internal prototype to avoid an error.
19543 Use char because int might match the return type of a GCC
19544 builtin and then its argument prototype would still apply. */
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (ac_try="$ac_link"
19559 case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_link") 2>conftest.er1
19566 grep -v '^ *+' conftest.er1 >conftest.err
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19572 { (case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_try") 2>&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; } &&
19581 { ac_try='test -s conftest$ac_exeext'
19582 { (case "(($ac_try" in
19583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584 *) ac_try_echo=$ac_try;;
19586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587 (eval "$ac_try") 2>&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; }; then
19591 ac_cv_lib_gcc___main=yes
19593 echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19596 ac_cv_lib_gcc___main=no
19599 rm -f core conftest.err conftest.$ac_objext \
19600 conftest$ac_exeext conftest.$ac_ext
19601 LIBS=$ac_check_lib_save_LIBS
19603 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19604 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19605 if test $ac_cv_lib_gcc___main = yes; then
19607 cat >>confdefs.h <<\_ACEOF
19608 #define HAVE___MAIN 1
19613 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19614 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19615 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19616 echo $ECHO_N "(cached) $ECHO_C" >&6
19618 ac_check_lib_save_LIBS=$LIBS
19620 cat >conftest.$ac_ext <<_ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h. */
19627 /* Override any GCC internal prototype to avoid an error.
19628 Use char because int might match the return type of a GCC
19629 builtin and then its argument prototype would still apply. */
19637 return __cmpdi2 ();
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_link") 2>conftest.er1
19651 grep -v '^ *+' conftest.er1 >conftest.err
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19657 { (case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_try") 2>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest$ac_exeext'
19667 { (case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_try") 2>&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; }; then
19676 ac_cv_lib_gcc___cmpdi2=yes
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 ac_cv_lib_gcc___cmpdi2=no
19684 rm -f core conftest.err conftest.$ac_objext \
19685 conftest$ac_exeext conftest.$ac_ext
19686 LIBS=$ac_check_lib_save_LIBS
19688 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19689 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19690 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19692 cat >>confdefs.h <<\_ACEOF
19693 #define HAVE___CMPDI2 1
19700 if test "$llvm_cv_os_type" = "MingW" ; then
19701 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19702 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19703 cat >conftest.$ac_ext <<_ACEOF
19704 #include <windows.h>
19705 #include <imagehlp.h>
19706 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19707 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19709 rm -f conftest.$ac_objext
19710 if { (ac_try="$ac_compile"
19711 case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_compile") 2>conftest.er1
19718 grep -v '^ *+' conftest.er1 >conftest.err
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19724 { (case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_try") 2>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; } &&
19733 { ac_try='test -s conftest.$ac_objext'
19734 { (case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_try") 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; }; then
19744 { echo "$as_me:$LINENO: result: yes" >&5
19745 echo "${ECHO_T}yes" >&6; }
19746 llvm_cv_win32_elmcb_pcstr="PCSTR"
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19753 { echo "$as_me:$LINENO: result: no" >&5
19754 echo "${ECHO_T}no" >&6; }
19755 llvm_cv_win32_elmcb_pcstr="PSTR"
19759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19761 cat >>confdefs.h <<_ACEOF
19762 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19768 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19769 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19770 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 ac_cpp='$CXXCPP $CPPFLAGS'
19775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19794 rm -f conftest.$ac_objext
19795 if { (ac_try="$ac_compile"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_compile") 2>conftest.er1
19803 grep -v '^ *+' conftest.er1 >conftest.err
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19809 { (case "(($ac_try" in
19810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811 *) ac_try_echo=$ac_try;;
19813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814 (eval "$ac_try") 2>&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest.$ac_objext'
19819 { (case "(($ac_try" in
19820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821 *) ac_try_echo=$ac_try;;
19823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19824 (eval "$ac_try") 2>&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
19828 ac_cv_func_isnan_in_math_h=yes
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ac_cv_func_isnan_in_math_h=no
19836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19838 ac_cpp='$CPP $CPPFLAGS'
19839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19844 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19845 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19848 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19850 cat >>confdefs.h <<\_ACEOF
19851 #define HAVE_ISNAN_IN_MATH_H 1
19856 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19857 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19858 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 ac_cpp='$CXXCPP $CPPFLAGS'
19863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19882 rm -f conftest.$ac_objext
19883 if { (ac_try="$ac_compile"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_compile") 2>conftest.er1
19891 grep -v '^ *+' conftest.er1 >conftest.err
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; } &&
19906 { ac_try='test -s conftest.$ac_objext'
19907 { (case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_try") 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19916 ac_cv_func_isnan_in_cmath=yes
19918 echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 ac_cv_func_isnan_in_cmath=no
19924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19926 ac_cpp='$CPP $CPPFLAGS'
19927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19932 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19933 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19935 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19937 cat >>confdefs.h <<\_ACEOF
19938 #define HAVE_ISNAN_IN_CMATH 1
19943 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19944 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19945 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 ac_cpp='$CXXCPP $CPPFLAGS'
19950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19954 cat >conftest.$ac_ext <<_ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19964 float f; std::isnan(f);
19969 rm -f conftest.$ac_objext
19970 if { (ac_try="$ac_compile"
19971 case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_compile") 2>conftest.er1
19978 grep -v '^ *+' conftest.er1 >conftest.err
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19984 { (case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_try") 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; } &&
19993 { ac_try='test -s conftest.$ac_objext'
19994 { (case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_try") 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003 ac_cv_func_std_isnan_in_cmath=yes
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_cv_func_std_isnan_in_cmath=no
20011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20013 ac_cpp='$CPP $CPPFLAGS'
20014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20019 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20020 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20022 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20024 cat >>confdefs.h <<\_ACEOF
20025 #define HAVE_STD_ISNAN_IN_CMATH 1
20031 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20032 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20033 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20037 ac_cpp='$CXXCPP $CPPFLAGS'
20038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20042 cat >conftest.$ac_ext <<_ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h. */
20057 rm -f conftest.$ac_objext
20058 if { (ac_try="$ac_compile"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_compile") 2>conftest.er1
20066 grep -v '^ *+' conftest.er1 >conftest.err
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
20071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20072 { (case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_try") 2>&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; } &&
20081 { ac_try='test -s conftest.$ac_objext'
20082 { (case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_try") 2>&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); }; }; then
20091 ac_cv_func_isinf_in_math_h=yes
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ac_cv_func_isinf_in_math_h=no
20099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20101 ac_cpp='$CPP $CPPFLAGS'
20102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20107 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20108 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20110 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20112 cat >>confdefs.h <<\_ACEOF
20113 #define HAVE_ISINF_IN_MATH_H 1
20118 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20119 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20120 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20124 ac_cpp='$CXXCPP $CPPFLAGS'
20125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20129 cat >conftest.$ac_ext <<_ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20144 rm -f conftest.$ac_objext
20145 if { (ac_try="$ac_compile"
20146 case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_compile") 2>conftest.er1
20153 grep -v '^ *+' conftest.er1 >conftest.err
20155 cat conftest.err >&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } &&
20158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20159 { (case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_try") 2>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try='test -s conftest.$ac_objext'
20169 { (case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_try") 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20178 ac_cv_func_isinf_in_cmath=yes
20180 echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20183 ac_cv_func_isinf_in_cmath=no
20186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20188 ac_cpp='$CPP $CPPFLAGS'
20189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20194 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20195 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20197 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20199 cat >>confdefs.h <<\_ACEOF
20200 #define HAVE_ISINF_IN_CMATH 1
20205 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20206 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20207 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 ac_cpp='$CXXCPP $CPPFLAGS'
20212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20226 float f; std::isinf(f);
20231 rm -f conftest.$ac_objext
20232 if { (ac_try="$ac_compile"
20233 case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_compile") 2>conftest.er1
20240 grep -v '^ *+' conftest.er1 >conftest.err
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
20245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20246 { (case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_try") 2>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; } &&
20255 { ac_try='test -s conftest.$ac_objext'
20256 { (case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_try") 2>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_cv_func_std_isinf_in_cmath=yes
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_cv_func_std_isinf_in_cmath=no
20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275 ac_cpp='$CPP $CPPFLAGS'
20276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20281 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20282 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20284 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20286 cat >>confdefs.h <<\_ACEOF
20287 #define HAVE_STD_ISINF_IN_CMATH 1
20292 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20293 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20294 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 ac_cpp='$CXXCPP $CPPFLAGS'
20299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 #include <ieeefp.h>
20313 float f; finite(f);
20318 rm -f conftest.$ac_objext
20319 if { (ac_try="$ac_compile"
20320 case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_compile") 2>conftest.er1
20327 grep -v '^ *+' conftest.er1 >conftest.err
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } &&
20332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20333 { (case "(($ac_try" in
20334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335 *) ac_try_echo=$ac_try;;
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338 (eval "$ac_try") 2>&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; } &&
20342 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20352 ac_cv_func_finite_in_ieeefp_h=yes
20354 echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20357 ac_cv_func_finite_in_ieeefp_h=no
20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20362 ac_cpp='$CPP $CPPFLAGS'
20363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20368 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20369 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20371 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20373 cat >>confdefs.h <<\_ACEOF
20374 #define HAVE_FINITE_IN_IEEEFP_H 1
20381 if test "$llvm_cv_platform_type" = "Unix" ; then
20384 for ac_header in stdlib.h unistd.h
20386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20393 ac_res=`eval echo '${'$as_ac_Header'}'`
20394 { echo "$as_me:$LINENO: result: $ac_res" >&5
20395 echo "${ECHO_T}$ac_res" >&6; }
20397 # Is the header compilable?
20398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20400 cat >conftest.$ac_ext <<_ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20406 $ac_includes_default
20407 #include <$ac_header>
20409 rm -f conftest.$ac_objext
20410 if { (ac_try="$ac_compile"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_compile") 2>conftest.er1
20418 grep -v '^ *+' conftest.er1 >conftest.err
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } &&
20423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20424 { (case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_try") 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest.$ac_objext'
20434 { (case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_try") 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 ac_header_compiler=yes
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20448 ac_header_compiler=no
20451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20453 echo "${ECHO_T}$ac_header_compiler" >&6; }
20455 # Is the header present?
20456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20458 cat >conftest.$ac_ext <<_ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20464 #include <$ac_header>
20466 if { (ac_try="$ac_cpp conftest.$ac_ext"
20467 case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20474 grep -v '^ *+' conftest.er1 >conftest.err
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } >/dev/null; then
20479 if test -s conftest.err; then
20480 ac_cpp_err=$ac_c_preproc_warn_flag
20481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20488 if test -z "$ac_cpp_err"; then
20489 ac_header_preproc=yes
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ac_header_preproc=no
20497 rm -f conftest.err conftest.$ac_ext
20498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20499 echo "${ECHO_T}$ac_header_preproc" >&6; }
20501 # So? What about this header?
20502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20508 ac_header_preproc=yes
20511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20524 ## ------------------------------ ##
20525 ## Report this to bugs@yourdomain ##
20526 ## ------------------------------ ##
20528 ) | sed "s/^/$as_me: WARNING: /" >&2
20531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 eval "$as_ac_Header=\$ac_header_preproc"
20538 ac_res=`eval echo '${'$as_ac_Header'}'`
20539 { echo "$as_me:$LINENO: result: $ac_res" >&5
20540 echo "${ECHO_T}$ac_res" >&6; }
20543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20544 cat >>confdefs.h <<_ACEOF
20545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20553 for ac_func in getpagesize
20555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 cat >conftest.$ac_ext <<_ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20569 #define $ac_func innocuous_$ac_func
20571 /* System header to define __stub macros and hopefully few prototypes,
20572 which can conflict with char $ac_func (); below.
20573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20574 <limits.h> exists even on freestanding compilers. */
20577 # include <limits.h>
20579 # include <assert.h>
20584 /* Override any GCC internal prototype to avoid an error.
20585 Use char because int might match the return type of a GCC
20586 builtin and then its argument prototype would still apply. */
20591 /* The GNU C library defines this for functions which it implements
20592 to always fail with ENOSYS. Some functions are actually named
20593 something starting with __ and the normal name is an alias. */
20594 #if defined __stub_$ac_func || defined __stub___$ac_func
20601 return $ac_func ();
20606 rm -f conftest.$ac_objext conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_link") 2>conftest.er1
20615 grep -v '^ *+' conftest.er1 >conftest.err
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } &&
20620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20621 { (case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_try") 2>&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try='test -s conftest$ac_exeext'
20631 { (case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_try") 2>&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; }; then
20640 eval "$as_ac_var=yes"
20642 echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 eval "$as_ac_var=no"
20648 rm -f core conftest.err conftest.$ac_objext \
20649 conftest$ac_exeext conftest.$ac_ext
20651 ac_res=`eval echo '${'$as_ac_var'}'`
20652 { echo "$as_me:$LINENO: result: $ac_res" >&5
20653 echo "${ECHO_T}$ac_res" >&6; }
20654 if test `eval echo '${'$as_ac_var'}'` = yes; then
20655 cat >>confdefs.h <<_ACEOF
20656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20662 { echo "$as_me:$LINENO: checking for working mmap" >&5
20663 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20664 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 if test "$cross_compiling" = yes; then
20668 ac_cv_func_mmap_fixed_mapped=no
20670 cat >conftest.$ac_ext <<_ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 $ac_includes_default
20677 /* malloc might have been renamed as rpl_malloc. */
20680 /* Thanks to Mike Haertel and Jim Avera for this test.
20681 Here is a matrix of mmap possibilities:
20682 mmap private not fixed
20683 mmap private fixed at somewhere currently unmapped
20684 mmap private fixed at somewhere already mapped
20685 mmap shared not fixed
20686 mmap shared fixed at somewhere currently unmapped
20687 mmap shared fixed at somewhere already mapped
20688 For private mappings, we should verify that changes cannot be read()
20689 back from the file, nor mmap's back from the file at a different
20690 address. (There have been systems where private was not correctly
20691 implemented like the infamous i386 svr4.0, and systems where the
20692 VM page cache was not coherent with the file system buffer cache
20693 like early versions of FreeBSD and possibly contemporary NetBSD.)
20694 For shared mappings, we should conversely verify that changes get
20695 propagated back to all the places they're supposed to be.
20697 Grep wants private fixed already mapped.
20698 The main things grep needs to know about mmap are:
20699 * does it exist and is it safe to write into the mmap'd area
20700 * how to use it (BSD variants) */
20703 #include <sys/mman.h>
20705 #if !STDC_HEADERS && !HAVE_STDLIB_H
20709 /* This mess was copied from the GNU getpagesize.h. */
20710 #if !HAVE_GETPAGESIZE
20711 /* Assume that all systems that can run configure have sys/param.h. */
20712 # if !HAVE_SYS_PARAM_H
20713 # define HAVE_SYS_PARAM_H 1
20716 # ifdef _SC_PAGESIZE
20717 # define getpagesize() sysconf(_SC_PAGESIZE)
20718 # else /* no _SC_PAGESIZE */
20719 # if HAVE_SYS_PARAM_H
20720 # include <sys/param.h>
20721 # ifdef EXEC_PAGESIZE
20722 # define getpagesize() EXEC_PAGESIZE
20723 # else /* no EXEC_PAGESIZE */
20725 # define getpagesize() NBPG * CLSIZE
20728 # endif /* no CLSIZE */
20729 # else /* no NBPG */
20731 # define getpagesize() NBPC
20732 # else /* no NBPC */
20734 # define getpagesize() PAGESIZE
20735 # endif /* PAGESIZE */
20736 # endif /* no NBPC */
20737 # endif /* no NBPG */
20738 # endif /* no EXEC_PAGESIZE */
20739 # else /* no HAVE_SYS_PARAM_H */
20740 # define getpagesize() 8192 /* punt totally */
20741 # endif /* no HAVE_SYS_PARAM_H */
20742 # endif /* no _SC_PAGESIZE */
20744 #endif /* no HAVE_GETPAGESIZE */
20749 char *data, *data2, *data3;
20753 pagesize = getpagesize ();
20755 /* First, make a file with some known garbage in it. */
20756 data = (char *) malloc (pagesize);
20759 for (i = 0; i < pagesize; ++i)
20760 *(data + i) = rand ();
20762 fd = creat ("conftest.mmap", 0600);
20765 if (write (fd, data, pagesize) != pagesize)
20769 /* Next, try to mmap the file at a fixed address which already has
20770 something else allocated at it. If we can, also make sure that
20771 we see the same garbage. */
20772 fd = open ("conftest.mmap", O_RDWR);
20775 data2 = (char *) malloc (2 * pagesize);
20778 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20779 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20780 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20782 for (i = 0; i < pagesize; ++i)
20783 if (*(data + i) != *(data2 + i))
20786 /* Finally, make sure that changes to the mapped area do not
20787 percolate back to the file as seen by read(). (This is a bug on
20788 some variants of i386 svr4.0.) */
20789 for (i = 0; i < pagesize; ++i)
20790 *(data2 + i) = *(data2 + i) + 1;
20791 data3 = (char *) malloc (pagesize);
20794 if (read (fd, data3, pagesize) != pagesize)
20796 for (i = 0; i < pagesize; ++i)
20797 if (*(data + i) != *(data3 + i))
20803 rm -f conftest$ac_exeext
20804 if { (ac_try="$ac_link"
20805 case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_link") 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20814 { (case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_try") 2>&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; }; then
20823 ac_cv_func_mmap_fixed_mapped=yes
20825 echo "$as_me: program exited with status $ac_status" >&5
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 ( exit $ac_status )
20830 ac_cv_func_mmap_fixed_mapped=no
20832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20837 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20838 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20839 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20841 cat >>confdefs.h <<\_ACEOF
20842 #define HAVE_MMAP 1
20846 rm -f conftest.mmap
20848 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20849 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20850 if test "${ac_cv_func_mmap_file+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20854 ac_cpp='$CPP $CPPFLAGS'
20855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20859 if test "$cross_compiling" = yes; then
20860 ac_cv_func_mmap_file=no
20862 cat >conftest.$ac_ext <<_ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20870 #include <sys/types.h>
20871 #include <sys/mman.h>
20879 fd = creat ("foo",0777);
20880 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20882 return (fd != (int) MAP_FAILED);
20887 rm -f conftest$ac_exeext
20888 if { (ac_try="$ac_link"
20889 case "(($ac_try" in
20890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894 (eval "$ac_link") 2>&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20898 { (case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_try") 2>&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20907 ac_cv_func_mmap_file=yes
20909 echo "$as_me: program exited with status $ac_status" >&5
20910 echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20913 ( exit $ac_status )
20914 ac_cv_func_mmap_file=no
20916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20921 ac_cpp='$CPP $CPPFLAGS'
20922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20928 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20929 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20930 if test "$ac_cv_func_mmap_file" = yes; then
20932 cat >>confdefs.h <<\_ACEOF
20933 #define HAVE_MMAP_FILE
20940 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20941 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20942 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20945 if test "$llvm_cv_os_type" = "Interix" ; then
20946 ac_cv_need_dev_zero_for_mmap=yes
20948 ac_cv_need_dev_zero_for_mmap=no
20952 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20953 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20954 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20956 cat >>confdefs.h <<\_ACEOF
20957 #define NEED_DEV_ZERO_FOR_MMAP 1
20962 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20964 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20965 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20967 if test "$ac_cv_func_mmap_file" = "no"
20969 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20970 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20974 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20975 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20977 ac_cpp='$CXXCPP $CPPFLAGS'
20978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20982 cat >conftest.$ac_ext <<_ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20989 volatile unsigned long val = 1;
20990 __sync_synchronize();
20991 __sync_val_compare_and_swap(&val, 1, 0);
20992 __sync_add_and_fetch(&val, 1);
20993 __sync_sub_and_fetch(&val, 1);
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (ac_try="$ac_link"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_link") 2>conftest.er1
21007 grep -v '^ *+' conftest.er1 >conftest.err
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } &&
21012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21013 { (case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_try") 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; } &&
21022 { ac_try='test -s conftest$ac_exeext'
21023 { (case "(($ac_try" in
21024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025 *) ac_try_echo=$ac_try;;
21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21028 (eval "$ac_try") 2>&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); }; }; then
21033 ac_cpp='$CPP $CPPFLAGS'
21034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21038 { echo "$as_me:$LINENO: result: yes" >&5
21039 echo "${ECHO_T}yes" >&6; }
21041 cat >>confdefs.h <<\_ACEOF
21042 #define LLVM_HAS_ATOMICS 1
21046 echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 { echo "$as_me:$LINENO: result: no" >&5
21050 echo "${ECHO_T}no" >&6; }
21052 cat >>confdefs.h <<\_ACEOF
21053 #define LLVM_HAS_ATOMICS 0
21056 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21057 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21060 rm -f core conftest.err conftest.$ac_objext \
21061 conftest$ac_exeext conftest.$ac_ext
21064 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21065 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21066 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21067 if test "${llvm_cv_linux_mixed+set}" = set; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21071 ac_cpp='$CPP $CPPFLAGS'
21072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21076 cat >conftest.$ac_ext <<_ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21083 error: Not x86-64 even if uname says so!
21094 rm -f conftest.$ac_objext
21095 if { (ac_try="$ac_compile"
21096 case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_compile") 2>conftest.er1
21103 grep -v '^ *+' conftest.er1 >conftest.err
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } &&
21108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21109 { (case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114 (eval "$ac_try") 2>&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; } &&
21118 { ac_try='test -s conftest.$ac_objext'
21119 { (case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124 (eval "$ac_try") 2>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 llvm_cv_linux_mixed=no
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 llvm_cv_linux_mixed=yes
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21138 ac_cpp='$CPP $CPPFLAGS'
21139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21145 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21146 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21148 if test "$llvm_cv_linux_mixed" = "yes"; then
21149 llvm_cv_target_arch="x86"
21155 for ac_func in __dso_handle
21157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21163 cat >conftest.$ac_ext <<_ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h. */
21169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21171 #define $ac_func innocuous_$ac_func
21173 /* System header to define __stub macros and hopefully few prototypes,
21174 which can conflict with char $ac_func (); below.
21175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21176 <limits.h> exists even on freestanding compilers. */
21179 # include <limits.h>
21181 # include <assert.h>
21186 /* Override any GCC internal prototype to avoid an error.
21187 Use char because int might match the return type of a GCC
21188 builtin and then its argument prototype would still apply. */
21193 /* The GNU C library defines this for functions which it implements
21194 to always fail with ENOSYS. Some functions are actually named
21195 something starting with __ and the normal name is an alias. */
21196 #if defined __stub_$ac_func || defined __stub___$ac_func
21203 return $ac_func ();
21208 rm -f conftest.$ac_objext conftest$ac_exeext
21209 if { (ac_try="$ac_link"
21210 case "(($ac_try" in
21211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212 *) ac_try_echo=$ac_try;;
21214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21215 (eval "$ac_link") 2>conftest.er1
21217 grep -v '^ *+' conftest.er1 >conftest.err
21219 cat conftest.err >&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } &&
21222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21223 { (case "(($ac_try" in
21224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225 *) ac_try_echo=$ac_try;;
21227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228 (eval "$ac_try") 2>&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); }; } &&
21232 { ac_try='test -s conftest$ac_exeext'
21233 { (case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238 (eval "$ac_try") 2>&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); }; }; then
21242 eval "$as_ac_var=yes"
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 eval "$as_ac_var=no"
21250 rm -f core conftest.err conftest.$ac_objext \
21251 conftest$ac_exeext conftest.$ac_ext
21253 ac_res=`eval echo '${'$as_ac_var'}'`
21254 { echo "$as_me:$LINENO: result: $ac_res" >&5
21255 echo "${ECHO_T}$ac_res" >&6; }
21256 if test `eval echo '${'$as_ac_var'}'` = yes; then
21257 cat >>confdefs.h <<_ACEOF
21258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21265 SHLIBEXT=$libltdl_cv_shlibext
21268 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21271 # Translate the various configuration directories and other basic
21272 # information into substitutions that will end up in Makefile.config.in
21273 # that these configured values can be used by the makefiles
21274 if test "${prefix}" = "NONE" ; then
21275 prefix="/usr/local"
21277 eval LLVM_PREFIX="${prefix}";
21278 eval LLVM_BINDIR="${prefix}/bin";
21279 eval LLVM_DATADIR="${prefix}/share/llvm";
21280 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21281 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21282 eval LLVM_INCLUDEDIR="${prefix}/include";
21283 eval LLVM_INFODIR="${prefix}/info";
21284 eval LLVM_MANDIR="${prefix}/man";
21285 LLVM_CONFIGTIME=`date`
21296 # Place the various directores into the config.h file as #defines so that we
21297 # can know about the installation paths within LLVM.
21299 cat >>confdefs.h <<_ACEOF
21300 #define LLVM_PREFIX "$LLVM_PREFIX"
21304 cat >>confdefs.h <<_ACEOF
21305 #define LLVM_BINDIR "$LLVM_BINDIR"
21309 cat >>confdefs.h <<_ACEOF
21310 #define LLVM_DATADIR "$LLVM_DATADIR"
21314 cat >>confdefs.h <<_ACEOF
21315 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21319 cat >>confdefs.h <<_ACEOF
21320 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21324 cat >>confdefs.h <<_ACEOF
21325 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21329 cat >>confdefs.h <<_ACEOF
21330 #define LLVM_INFODIR "$LLVM_INFODIR"
21334 cat >>confdefs.h <<_ACEOF
21335 #define LLVM_MANDIR "$LLVM_MANDIR"
21339 cat >>confdefs.h <<_ACEOF
21340 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21344 cat >>confdefs.h <<_ACEOF
21345 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21349 # Determine which bindings to build.
21350 if test "$BINDINGS_TO_BUILD" = auto ; then
21351 BINDINGS_TO_BUILD=""
21352 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21353 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21356 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21359 # This isn't really configurey, but it avoids having to repeat the list in
21364 # Do any work necessary to ensure that bindings have what they need.
21365 binding_prereqs_failed=0
21366 for a_binding in $BINDINGS_TO_BUILD ; do
21367 case "$a_binding" in
21369 if test "x$OCAMLC" = x ; then
21370 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21371 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21372 binding_prereqs_failed=1
21374 if test "x$OCAMLDEP" = x ; then
21375 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21376 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21377 binding_prereqs_failed=1
21379 if test "x$OCAMLOPT" = x ; then
21380 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21381 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21383 if test "x$with_ocaml_libdir" != xauto ; then
21384 OCAML_LIBDIR=$with_ocaml_libdir
21387 ocaml_stdlib="`"$OCAMLC" -where`"
21388 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21390 # ocaml stdlib is beneath our prefix; use stdlib
21391 OCAML_LIBDIR=$ocaml_stdlib
21394 # ocaml stdlib is outside our prefix; use libdir/ocaml
21395 OCAML_LIBDIR=${prefix}/lib/ocaml
21402 if test "$binding_prereqs_failed" = 1 ; then
21403 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21404 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21405 { (exit 1); exit 1; }; }
21408 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21409 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21410 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 ac_cpp='$CXXCPP $CPPFLAGS'
21415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21419 oldcxxflags="$CXXFLAGS"
21420 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21421 cat >conftest.$ac_ext <<_ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21445 grep -v '^ *+' conftest.er1 >conftest.err
21447 cat conftest.err >&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } &&
21450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21451 { (case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456 (eval "$ac_try") 2>&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; } &&
21460 { ac_try='test -s conftest.$ac_objext'
21461 { (case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_try") 2>&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; }; then
21470 llvm_cv_cxx_visibility_inlines_hidden=yes
21472 echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21475 llvm_cv_cxx_visibility_inlines_hidden=no
21478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21479 CXXFLAGS="$oldcxxflags"
21481 ac_cpp='$CPP $CPPFLAGS'
21482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21488 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21489 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21490 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21491 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21494 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21499 if test "$llvm_cv_link_use_r" = "yes" ; then
21506 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21507 RDYNAMIC="-rdynamic"
21515 ac_config_files="$ac_config_files Makefile.common"
21517 ac_config_files="$ac_config_files Makefile.llvm.config"
21520 ac_config_commands="$ac_config_commands Makefile"
21523 ac_config_commands="$ac_config_commands lib/Makefile"
21526 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21529 ac_config_commands="$ac_config_commands tools/Makefile"
21532 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21536 cat >confcache <<\_ACEOF
21537 # This file is a shell script that caches the results of configure
21538 # tests run on this system so they can be shared between configure
21539 # scripts and configure runs, see configure's option --config-cache.
21540 # It is not useful on other systems. If it contains results you don't
21541 # want to keep, you may remove or edit it.
21543 # config.status only pays attention to the cache file if you give it
21544 # the --recheck option to rerun configure.
21546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21548 # following values.
21552 # The following way of writing the cache mishandles newlines in values,
21553 # but we know of no workaround that is simple, portable, and efficient.
21554 # So, we kill variables containing newlines.
21555 # Ultrix sh set writes to stderr and can't be redirected directly,
21556 # and sets the high bit in the cache file unless we assign to the vars.
21558 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21559 eval ac_val=\$$ac_var
21563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21567 _ | IFS | as_nl) ;; #(
21568 *) $as_unset $ac_var ;;
21574 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21575 *${as_nl}ac_space=\ *)
21576 # `set' does not quote correctly, so add quotes (double-quote
21577 # substitution turns \\\\ into \\, and sed turns \\ into \).
21580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21583 # `set' quotes correctly as required by POSIX, so do not add quotes.
21584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21595 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21597 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21598 if test -w "$cache_file"; then
21599 test "x$cache_file" != "x/dev/null" &&
21600 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21601 echo "$as_me: updating cache $cache_file" >&6;}
21602 cat confcache >$cache_file
21604 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21605 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21611 # Let make expand exec_prefix.
21612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21614 # Transform confdefs.h into DEFS.
21615 # Protect against shell expansion while executing Makefile rules.
21616 # Protect against Makefile macro expansion.
21618 # If the first sed substitution is executed (which looks for macros that
21619 # take arguments), then branch to the quote section. Otherwise,
21620 # look for a macro that doesn't take arguments.
21624 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21626 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21630 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21643 DEFS=`sed -n "$ac_script" confdefs.h`
21648 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21649 # 1. Remove the extension, and $U if already installed.
21650 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21651 ac_i=`echo "$ac_i" | sed "$ac_script"`
21652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21653 # will be set to the directory where LIBOBJS objects are built.
21654 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21655 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21657 LIBOBJS=$ac_libobjs
21659 LTLIBOBJS=$ac_ltlibobjs
21662 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21663 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21664 Usually this means the macro was only invoked conditionally." >&5
21665 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21666 Usually this means the macro was only invoked conditionally." >&2;}
21667 { (exit 1); exit 1; }; }
21669 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21670 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21671 Usually this means the macro was only invoked conditionally." >&5
21672 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21673 Usually this means the macro was only invoked conditionally." >&2;}
21674 { (exit 1); exit 1; }; }
21677 : ${CONFIG_STATUS=./config.status}
21678 ac_clean_files_save=$ac_clean_files
21679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21680 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21681 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21682 cat >$CONFIG_STATUS <<_ACEOF
21684 # Generated by $as_me.
21685 # Run this file to recreate the current configuration.
21686 # Compiler output produced by configure, useful for debugging
21687 # configure, is in config.log if it exists.
21690 ac_cs_recheck=false
21692 SHELL=\${CONFIG_SHELL-$SHELL}
21695 cat >>$CONFIG_STATUS <<\_ACEOF
21696 ## --------------------- ##
21697 ## M4sh Initialization. ##
21698 ## --------------------- ##
21700 # Be Bourne compatible
21701 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21704 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21705 # is contrary to our usage. Disable this feature.
21706 alias -g '${1+"$@"}'='"$@"'
21707 setopt NO_GLOB_SUBST
21709 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21711 BIN_SH=xpg4; export BIN_SH # for Tru64
21712 DUALCASE=1; export DUALCASE # for MKS sh
21716 # Avoid depending upon Character Ranges.
21717 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21718 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21719 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21720 as_cr_digits='0123456789'
21721 as_cr_alnum=$as_cr_Letters$as_cr_digits
21723 # The user is always right.
21724 if test "${PATH_SEPARATOR+set}" != set; then
21725 echo "#! /bin/sh" >conf$$.sh
21726 echo "exit 0" >>conf$$.sh
21728 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21736 # Support unset when possible.
21737 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21745 # We need space, tab and new line, in precisely that order. Quoting is
21746 # there to prevent editors from complaining about space-tab.
21747 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21748 # splitting by setting IFS to empty value.)
21753 # Find who we are. Look in the path if we contain no directory separator.
21755 *[\\/]* ) as_myself=$0 ;;
21756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21757 for as_dir in $PATH
21760 test -z "$as_dir" && as_dir=.
21761 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21767 # We did not find ourselves, most probably we were run as `sh COMMAND'
21768 # in which case we are not to be found in the path.
21769 if test "x$as_myself" = x; then
21772 if test ! -f "$as_myself"; then
21773 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21774 { (exit 1); exit 1; }
21777 # Work around bugs in pre-3.0 UWIN ksh.
21778 for as_var in ENV MAIL MAILPATH
21779 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21787 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21788 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21789 LC_TELEPHONE LC_TIME
21791 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21792 eval $as_var=C; export $as_var
21794 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21798 # Required to use basename.
21799 if expr a : '\(a\)' >/dev/null 2>&1 &&
21800 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21806 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21807 as_basename=basename
21813 # Name of the executable.
21814 as_me=`$as_basename -- "$0" ||
21815 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21816 X"$0" : 'X\(//\)$' \| \
21817 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21819 sed '/^.*\/\([^/][^/]*\)\/*$/{
21838 as_lineno_1=$LINENO
21839 as_lineno_2=$LINENO
21840 test "x$as_lineno_1" != "x$as_lineno_2" &&
21841 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21843 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21844 # uniformly replaced by the line number. The first 'sed' inserts a
21845 # line-number line after each line using $LINENO; the second 'sed'
21846 # does the real work. The second script uses 'N' to pair each
21847 # line-number line with the line containing $LINENO, and appends
21848 # trailing '-' during substitution so that $LINENO is not a special
21849 # case at line end.
21850 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21851 # scripts with optimization help from Paolo Bonzini. Blame Lee
21852 # E. McMahon (1931-1989) for sed's syntax. :-)
21864 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21867 ' >$as_me.lineno &&
21868 chmod +x "$as_me.lineno" ||
21869 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21870 { (exit 1); exit 1; }; }
21872 # Don't try to exec as it changes $[0], causing all sort of problems
21873 # (the dirname of $[0] is not the place where we might find the
21874 # original and so on. Autoconf is especially sensitive to this).
21875 . "./$as_me.lineno"
21876 # Exit status is that of the last command.
21881 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21887 ECHO_C= ECHO_N= ECHO_T=
21888 case `echo -n x` in
21890 case `echo 'x\c'` in
21891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21898 if expr a : '\(a\)' >/dev/null 2>&1 &&
21899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21905 rm -f conf$$ conf$$.exe conf$$.file
21906 if test -d conf$$.dir; then
21907 rm -f conf$$.dir/conf$$.file
21913 if ln -s conf$$.file conf$$ 2>/dev/null; then
21915 # ... but there are two gotchas:
21916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21918 # In both cases, we have to default to `cp -p'.
21919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21921 elif ln conf$$.file conf$$ 2>/dev/null; then
21926 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21927 rmdir conf$$.dir 2>/dev/null
21929 if mkdir -p . 2>/dev/null; then
21932 test -d ./-p && rmdir ./-p
21936 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21937 # systems may use methods other than mode bits to determine executability.
21938 cat >conf$$.file <<_ASEOF
21942 chmod +x conf$$.file
21943 if test -x conf$$.file >/dev/null 2>&1; then
21944 as_executable_p="test -x"
21950 # Sed expression to map a string onto a valid CPP name.
21951 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21953 # Sed expression to map a string onto a valid variable name.
21954 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21959 # Save the log message, to keep $[0] and so on meaningful, and to
21960 # report actual input values of CONFIG_FILES etc. instead of their
21961 # values after options handling.
21963 This file was extended by [SAMPLE] $as_me [x.xx], which was
21964 generated by GNU Autoconf 2.60. Invocation command line was
21966 CONFIG_FILES = $CONFIG_FILES
21967 CONFIG_HEADERS = $CONFIG_HEADERS
21968 CONFIG_LINKS = $CONFIG_LINKS
21969 CONFIG_COMMANDS = $CONFIG_COMMANDS
21972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21977 cat >>$CONFIG_STATUS <<_ACEOF
21978 # Files that config.status was made for.
21979 config_files="$ac_config_files"
21980 config_commands="$ac_config_commands"
21984 cat >>$CONFIG_STATUS <<\_ACEOF
21986 \`$as_me' instantiates files from templates according to the
21987 current configuration.
21989 Usage: $0 [OPTIONS] [FILE]...
21991 -h, --help print this help, then exit
21992 -V, --version print version number, then exit
21993 -q, --quiet do not print progress messages
21994 -d, --debug don't remove temporary files
21995 --recheck update $as_me by reconfiguring in the same conditions
21996 --file=FILE[:TEMPLATE]
21997 instantiate the configuration file FILE
21999 Configuration files:
22002 Configuration commands:
22005 Report bugs to <bug-autoconf@gnu.org>."
22008 cat >>$CONFIG_STATUS <<_ACEOF
22010 [SAMPLE] config.status [x.xx]
22011 configured by $0, generated by GNU Autoconf 2.60,
22012 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22014 Copyright (C) 2006 Free Software Foundation, Inc.
22015 This config.status script is free software; the Free Software Foundation
22016 gives unlimited permission to copy, distribute and modify it."
22023 cat >>$CONFIG_STATUS <<\_ACEOF
22024 # If no file are specified by the user, then we need to provide default
22025 # value. By we need to know if files were specified by the user.
22031 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22032 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22043 # Handling of the options.
22044 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22046 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22047 echo "$ac_cs_version"; exit ;;
22048 --debug | --debu | --deb | --de | --d | -d )
22050 --file | --fil | --fi | --f )
22052 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22053 ac_need_defaults=false;;
22054 --he | --h | --help | --hel | -h )
22055 echo "$ac_cs_usage"; exit ;;
22056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22057 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22060 # This is an error.
22061 -*) { echo "$as_me: error: unrecognized option: $1
22062 Try \`$0 --help' for more information." >&2
22063 { (exit 1); exit 1; }; } ;;
22065 *) ac_config_targets="$ac_config_targets $1"
22066 ac_need_defaults=false ;;
22072 ac_configure_extra_args=
22074 if $ac_cs_silent; then
22076 ac_configure_extra_args="$ac_configure_extra_args --silent"
22080 cat >>$CONFIG_STATUS <<_ACEOF
22081 if \$ac_cs_recheck; then
22082 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22083 CONFIG_SHELL=$SHELL
22084 export CONFIG_SHELL
22085 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22089 cat >>$CONFIG_STATUS <<\_ACEOF
22093 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22094 ## Running $as_me. ##
22100 cat >>$CONFIG_STATUS <<_ACEOF
22104 llvm_src="${LLVM_SRC}"
22108 cat >>$CONFIG_STATUS <<\_ACEOF
22110 # Handling of arguments.
22111 for ac_config_target in $ac_config_targets
22113 case $ac_config_target in
22114 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22115 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
22116 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
22117 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22118 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22119 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
22120 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22121 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
22123 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22124 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22125 { (exit 1); exit 1; }; };;
22130 # If the user did not use the arguments to specify the items to instantiate,
22131 # then the envvar interface is used. Set only those that are not.
22132 # We use the long form for the default assignment because of an extremely
22133 # bizarre bug on SunOS 4.1.3.
22134 if $ac_need_defaults; then
22135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22136 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22139 # Have a temporary directory for convenience. Make it in the build tree
22140 # simply because there is no reason against having it here, and in addition,
22141 # creating and moving files from /tmp can sometimes cause problems.
22142 # Hook for its removal unless debugging.
22143 # Note that there is a small window in which the directory will not be cleaned:
22144 # after its creation but before its name has been assigned to `$tmp'.
22148 trap 'exit_status=$?
22149 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22151 trap '{ (exit 1); exit 1; }' 1 2 13 15
22153 # Create a (secure) tmp directory for tmp files.
22156 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22157 test -n "$tmp" && test -d "$tmp"
22160 tmp=./conf$$-$RANDOM
22161 (umask 077 && mkdir "$tmp")
22164 echo "$me: cannot create a temporary directory in ." >&2
22165 { (exit 1); exit 1; }
22169 # Set up the sed scripts for CONFIG_FILES section.
22172 # No need to generate the scripts if there are no CONFIG_FILES.
22173 # This happens for instance when ./config.status config.h
22174 if test -n "$CONFIG_FILES"; then
22181 for ac_last_try in false false false false false :; do
22182 cat >conf$$subs.sed <<_ACEOF
22183 SHELL!$SHELL$ac_delim
22184 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22185 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22186 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22187 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22188 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22189 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22190 exec_prefix!$exec_prefix$ac_delim
22191 prefix!$prefix$ac_delim
22192 program_transform_name!$program_transform_name$ac_delim
22193 bindir!$bindir$ac_delim
22194 sbindir!$sbindir$ac_delim
22195 libexecdir!$libexecdir$ac_delim
22196 datarootdir!$datarootdir$ac_delim
22197 datadir!$datadir$ac_delim
22198 sysconfdir!$sysconfdir$ac_delim
22199 sharedstatedir!$sharedstatedir$ac_delim
22200 localstatedir!$localstatedir$ac_delim
22201 includedir!$includedir$ac_delim
22202 oldincludedir!$oldincludedir$ac_delim
22203 docdir!$docdir$ac_delim
22204 infodir!$infodir$ac_delim
22205 htmldir!$htmldir$ac_delim
22206 dvidir!$dvidir$ac_delim
22207 pdfdir!$pdfdir$ac_delim
22208 psdir!$psdir$ac_delim
22209 libdir!$libdir$ac_delim
22210 localedir!$localedir$ac_delim
22211 mandir!$mandir$ac_delim
22212 DEFS!$DEFS$ac_delim
22213 ECHO_C!$ECHO_C$ac_delim
22214 ECHO_N!$ECHO_N$ac_delim
22215 ECHO_T!$ECHO_T$ac_delim
22216 LIBS!$LIBS$ac_delim
22217 build_alias!$build_alias$ac_delim
22218 host_alias!$host_alias$ac_delim
22219 target_alias!$target_alias$ac_delim
22220 LLVM_SRC!$LLVM_SRC$ac_delim
22221 LLVM_OBJ!$LLVM_OBJ$ac_delim
22222 LLVM_VERSION!$LLVM_VERSION$ac_delim
22224 CFLAGS!$CFLAGS$ac_delim
22225 LDFLAGS!$LDFLAGS$ac_delim
22226 CPPFLAGS!$CPPFLAGS$ac_delim
22227 ac_ct_CC!$ac_ct_CC$ac_delim
22228 EXEEXT!$EXEEXT$ac_delim
22229 OBJEXT!$OBJEXT$ac_delim
22231 CXXFLAGS!$CXXFLAGS$ac_delim
22232 ac_ct_CXX!$ac_ct_CXX$ac_delim
22234 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22235 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22236 subdirs!$subdirs$ac_delim
22237 build!$build$ac_delim
22238 build_cpu!$build_cpu$ac_delim
22239 build_vendor!$build_vendor$ac_delim
22240 build_os!$build_os$ac_delim
22241 host!$host$ac_delim
22242 host_cpu!$host_cpu$ac_delim
22243 host_vendor!$host_vendor$ac_delim
22244 host_os!$host_os$ac_delim
22245 target!$target$ac_delim
22246 target_cpu!$target_cpu$ac_delim
22247 target_vendor!$target_vendor$ac_delim
22248 target_os!$target_os$ac_delim
22250 HOST_OS!$HOST_OS$ac_delim
22251 TARGET_OS!$TARGET_OS$ac_delim
22252 LINKALL!$LINKALL$ac_delim
22253 NOLINKALL!$NOLINKALL$ac_delim
22254 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22255 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22256 ARCH!$ARCH$ac_delim
22257 ENDIAN!$ENDIAN$ac_delim
22258 GREP!$GREP$ac_delim
22259 EGREP!$EGREP$ac_delim
22260 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22261 BUILD_CC!$BUILD_CC$ac_delim
22262 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22263 BUILD_CXX!$BUILD_CXX$ac_delim
22264 CVSBUILD!$CVSBUILD$ac_delim
22265 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22266 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22267 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22268 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22269 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22270 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22271 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22272 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22273 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22274 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22276 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22277 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22278 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22279 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22282 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22284 elif $ac_last_try; then
22285 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22286 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22287 { (exit 1); exit 1; }; }
22289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22293 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22294 if test -n "$ac_eof"; then
22295 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22296 ac_eof=`expr $ac_eof + 1`
22299 cat >>$CONFIG_STATUS <<_ACEOF
22300 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22304 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22305 s/^/s,@/; s/!/@,|#_!!_#|/
22308 s/'"$ac_delim"'$/,g/; t
22310 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22311 ' >>$CONFIG_STATUS <conf$$subs.sed
22312 rm -f conf$$subs.sed
22313 cat >>$CONFIG_STATUS <<_ACEOF
22319 for ac_last_try in false false false false false :; do
22320 cat >conf$$subs.sed <<_ACEOF
22321 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22322 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22323 ENABLE_PIC!$ENABLE_PIC$ac_delim
22324 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22325 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22326 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22327 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22328 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22329 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22330 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22331 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22332 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22333 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22334 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22335 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22337 ifGNUmake!$ifGNUmake$ac_delim
22338 LN_S!$LN_S$ac_delim
22341 DATE!$DATE$ac_delim
22342 FIND!$FIND$ac_delim
22343 MKDIR!$MKDIR$ac_delim
22345 RANLIB!$RANLIB$ac_delim
22350 BINPWD!$BINPWD$ac_delim
22351 GRAPHVIZ!$GRAPHVIZ$ac_delim
22354 NEATO!$NEATO$ac_delim
22355 TWOPI!$TWOPI$ac_delim
22356 CIRCO!$CIRCO$ac_delim
22358 DOTTY!$DOTTY$ac_delim
22359 XDOT_PY!$XDOT_PY$ac_delim
22360 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22361 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22362 INSTALL_DATA!$INSTALL_DATA$ac_delim
22363 BZIP2!$BZIP2$ac_delim
22365 DOXYGEN!$DOXYGEN$ac_delim
22366 GROFF!$GROFF$ac_delim
22367 GZIPBIN!$GZIPBIN$ac_delim
22368 POD2HTML!$POD2HTML$ac_delim
22369 POD2MAN!$POD2MAN$ac_delim
22370 PDFROFF!$PDFROFF$ac_delim
22371 RUNTEST!$RUNTEST$ac_delim
22372 TCLSH!$TCLSH$ac_delim
22374 OCAMLC!$OCAMLC$ac_delim
22375 OCAMLOPT!$OCAMLOPT$ac_delim
22376 OCAMLDEP!$OCAMLDEP$ac_delim
22377 OCAMLDOC!$OCAMLDOC$ac_delim
22379 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22380 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22381 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22382 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22383 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22384 LIBADD_DL!$LIBADD_DL$ac_delim
22385 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22386 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22387 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22388 USE_UDIS86!$USE_UDIS86$ac_delim
22389 USE_OPROFILE!$USE_OPROFILE$ac_delim
22390 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22391 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
22392 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22393 MMAP_FILE!$MMAP_FILE$ac_delim
22394 SHLIBEXT!$SHLIBEXT$ac_delim
22395 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22396 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22397 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22398 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22399 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22400 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22401 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22402 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22403 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22404 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22405 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22406 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22407 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22408 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22409 RPATH!$RPATH$ac_delim
22410 RDYNAMIC!$RDYNAMIC$ac_delim
22411 LIBOBJS!$LIBOBJS$ac_delim
22412 LTLIBOBJS!$LTLIBOBJS$ac_delim
22415 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22417 elif $ac_last_try; then
22418 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22419 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22420 { (exit 1); exit 1; }; }
22422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22426 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22427 if test -n "$ac_eof"; then
22428 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22429 ac_eof=`expr $ac_eof + 1`
22432 cat >>$CONFIG_STATUS <<_ACEOF
22433 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22438 s/^/s,@/; s/!/@,|#_!!_#|/
22441 s/'"$ac_delim"'$/,g/; t
22443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22444 ' >>$CONFIG_STATUS <conf$$subs.sed
22445 rm -f conf$$subs.sed
22446 cat >>$CONFIG_STATUS <<_ACEOF
22453 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22454 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22455 # trailing colons and then remove the whole line if VPATH becomes empty
22456 # (actually we leave an empty line to preserve line numbers).
22457 if test "x$srcdir" = x.; then
22458 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22459 s/:*\$(srcdir):*/:/
22460 s/:*\${srcdir}:*/:/
22462 s/^\([^=]*=[ ]*\):*/\1/
22468 cat >>$CONFIG_STATUS <<\_ACEOF
22469 fi # test -n "$CONFIG_FILES"
22472 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
22475 :[FHLC]) ac_mode=$ac_tag; continue;;
22477 case $ac_mode$ac_tag in
22479 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22480 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22481 { (exit 1); exit 1; }; };;
22482 :[FH]-) ac_tag=-:-;;
22483 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22500 -) ac_f="$tmp/stdin";;
22501 *) # Look for the file first in the build tree, then in the source tree
22502 # (if the path is not absolute). The absolute path cannot be DOS-style,
22503 # because $ac_f cannot contain `:'.
22507 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22509 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22510 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22511 { (exit 1); exit 1; }; };;
22513 ac_file_inputs="$ac_file_inputs $ac_f"
22516 # Let's still pretend it is `configure' which instantiates (i.e., don't
22517 # use $as_me), people would be surprised to read:
22518 # /* config.h. Generated by config.status. */
22519 configure_input="Generated from "`IFS=:
22520 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22521 if test x"$ac_file" != x-; then
22522 configure_input="$ac_file. $configure_input"
22523 { echo "$as_me:$LINENO: creating $ac_file" >&5
22524 echo "$as_me: creating $ac_file" >&6;}
22528 *:-:* | *:-) cat >"$tmp/stdin";;
22533 ac_dir=`$as_dirname -- "$ac_file" ||
22534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22535 X"$ac_file" : 'X\(//\)[^/]' \| \
22536 X"$ac_file" : 'X\(//\)$' \| \
22537 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22543 /^X\(\/\/\)[^/].*/{
22558 -*) as_dir=./$as_dir;;
22560 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22564 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22565 *) as_qdir=$as_dir;;
22567 as_dirs="'$as_qdir' $as_dirs"
22568 as_dir=`$as_dirname -- "$as_dir" ||
22569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22570 X"$as_dir" : 'X\(//\)[^/]' \| \
22571 X"$as_dir" : 'X\(//\)$' \| \
22572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22578 /^X\(\/\/\)[^/].*/{
22591 test -d "$as_dir" && break
22593 test -z "$as_dirs" || eval "mkdir $as_dirs"
22594 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22595 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22596 { (exit 1); exit 1; }; }; }
22600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22602 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22603 # A ".." for each directory in $ac_dir_suffix.
22604 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22605 case $ac_top_builddir_sub in
22606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22610 ac_abs_top_builddir=$ac_pwd
22611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22612 # for backward compatibility:
22613 ac_top_builddir=$ac_top_build_prefix
22616 .) # We are building in place.
22618 ac_top_srcdir=$ac_top_builddir_sub
22619 ac_abs_top_srcdir=$ac_pwd ;;
22620 [\\/]* | ?:[\\/]* ) # Absolute name.
22621 ac_srcdir=$srcdir$ac_dir_suffix;
22622 ac_top_srcdir=$srcdir
22623 ac_abs_top_srcdir=$srcdir ;;
22624 *) # Relative name.
22625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22626 ac_top_srcdir=$ac_top_build_prefix$srcdir
22627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22639 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22640 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22644 cat >>$CONFIG_STATUS <<\_ACEOF
22645 # If the template does not know about datarootdir, expand it.
22646 # FIXME: This hack should be removed a few years after 2.60.
22647 ac_datarootdir_hack=; ac_datarootdir_seen=
22649 case `sed -n '/datarootdir/ {
22658 ' $ac_file_inputs` in
22659 *datarootdir*) ac_datarootdir_seen=yes;;
22660 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22661 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22662 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22664 cat >>$CONFIG_STATUS <<_ACEOF
22665 ac_datarootdir_hack='
22666 s&@datadir@&$datadir&g
22667 s&@docdir@&$docdir&g
22668 s&@infodir@&$infodir&g
22669 s&@localedir@&$localedir&g
22670 s&@mandir@&$mandir&g
22671 s&\\\${datarootdir}&$datarootdir&g' ;;
22675 # Neutralize VPATH when `$srcdir' = `.'.
22676 # Shell code in configure.ac might set extrasub.
22677 # FIXME: do we really want to maintain this feature?
22678 cat >>$CONFIG_STATUS <<_ACEOF
22682 cat >>$CONFIG_STATUS <<\_ACEOF
22684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22685 s&@configure_input@&$configure_input&;t t
22686 s&@top_builddir@&$ac_top_builddir_sub&;t t
22687 s&@srcdir@&$ac_srcdir&;t t
22688 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22689 s&@top_srcdir@&$ac_top_srcdir&;t t
22690 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22691 s&@builddir@&$ac_builddir&;t t
22692 s&@abs_builddir@&$ac_abs_builddir&;t t
22693 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22694 s&@INSTALL@&$ac_INSTALL&;t t
22695 $ac_datarootdir_hack
22696 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22698 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22699 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22700 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22701 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22702 which seems to be undefined. Please make sure it is defined." >&5
22703 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22704 which seems to be undefined. Please make sure it is defined." >&2;}
22708 -) cat "$tmp/out"; rm -f "$tmp/out";;
22709 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22714 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22715 echo "$as_me: executing $ac_file commands" >&6;}
22720 case $ac_file$ac_mode in
22721 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22722 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22723 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22724 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22725 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22726 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22727 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22728 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22729 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22730 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22736 { (exit 0); exit 0; }
22738 chmod +x $CONFIG_STATUS
22739 ac_clean_files=$ac_clean_files_save
22742 # configure is writing to config.log, and then calls config.status.
22743 # config.status does its own redirection, appending to config.log.
22744 # Unfortunately, on DOS this fails, as config.log is still kept open
22745 # by configure, so config.status won't be able to write to it; its
22746 # output is simply discarded. So we exec the FD to /dev/null,
22747 # effectively closing config.log, so it can be properly (re)opened and
22748 # appended to by config.status. When coming back to configure, we
22749 # need to make the FD available again.
22750 if test "$no_create" != yes; then
22752 ac_config_status_args=
22753 test "$silent" = yes &&
22754 ac_config_status_args="$ac_config_status_args --quiet"
22756 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22758 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22759 # would make configure fail if this is the last instruction.
22760 $ac_cs_success || { (exit 1); exit 1; }
22764 # CONFIG_SUBDIRS section.
22766 if test "$no_recursion" != yes; then
22768 # Remove --cache-file and --srcdir arguments so they do not pile up.
22769 ac_sub_configure_args=
22771 eval "set x $ac_configure_args"
22775 if test -n "$ac_prev"; then
22780 -cache-file | --cache-file | --cache-fil | --cache-fi \
22781 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22782 ac_prev=cache_file ;;
22783 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22784 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22787 --config-cache | -C)
22789 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22791 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22793 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22795 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22799 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22801 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22805 # Always prepend --prefix to ensure using the same prefix
22806 # in subdir configurations.
22807 ac_arg="--prefix=$prefix"
22809 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22811 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22814 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22816 # Do not complain, so a configure script can configure whichever
22817 # parts of a large source tree are present.
22818 test -d "$srcdir/$ac_dir" || continue
22820 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22821 echo "$as_me:$LINENO: $ac_msg" >&5
22825 -*) as_dir=./$as_dir;;
22827 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22831 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22832 *) as_qdir=$as_dir;;
22834 as_dirs="'$as_qdir' $as_dirs"
22835 as_dir=`$as_dirname -- "$as_dir" ||
22836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22837 X"$as_dir" : 'X\(//\)[^/]' \| \
22838 X"$as_dir" : 'X\(//\)$' \| \
22839 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22845 /^X\(\/\/\)[^/].*/{
22858 test -d "$as_dir" && break
22860 test -z "$as_dirs" || eval "mkdir $as_dirs"
22861 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22862 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22863 { (exit 1); exit 1; }; }; }
22867 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22870 # A ".." for each directory in $ac_dir_suffix.
22871 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22872 case $ac_top_builddir_sub in
22873 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22874 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22877 ac_abs_top_builddir=$ac_pwd
22878 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22879 # for backward compatibility:
22880 ac_top_builddir=$ac_top_build_prefix
22883 .) # We are building in place.
22885 ac_top_srcdir=$ac_top_builddir_sub
22886 ac_abs_top_srcdir=$ac_pwd ;;
22887 [\\/]* | ?:[\\/]* ) # Absolute name.
22888 ac_srcdir=$srcdir$ac_dir_suffix;
22889 ac_top_srcdir=$srcdir
22890 ac_abs_top_srcdir=$srcdir ;;
22891 *) # Relative name.
22892 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22893 ac_top_srcdir=$ac_top_build_prefix$srcdir
22894 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22896 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22901 # Check for guested configure; otherwise get Cygnus style configure.
22902 if test -f "$ac_srcdir/configure.gnu"; then
22903 ac_sub_configure=$ac_srcdir/configure.gnu
22904 elif test -f "$ac_srcdir/configure"; then
22905 ac_sub_configure=$ac_srcdir/configure
22906 elif test -f "$ac_srcdir/configure.in"; then
22907 # This should be Cygnus configure.
22908 ac_sub_configure=$ac_aux_dir/configure
22910 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22911 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22915 # The recursion is here.
22916 if test -n "$ac_sub_configure"; then
22917 # Make the cache file name correct relative to the subdirectory.
22918 case $cache_file in
22919 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22920 *) # Relative name.
22921 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22924 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22925 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22926 # The eval makes quoting arguments work.
22927 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22928 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22929 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22930 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22931 { (exit 1); exit 1; }; }