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
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
785 ENABLE_VISIBILITY_INLINES_HIDDEN
791 ac_precious_vars='build_alias
802 ac_subdirs_all='tools/polly'
804 # Initialize some variables set by options.
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
816 program_transform_name=s,x,x,
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911 eval enable_$ac_feature=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 -enable-* | --enable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=\$ac_optarg ;;
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
945 -help | --help | --hel | --he | -h)
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 htmldir=$ac_optarg ;;
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
975 -libdir | --libdir | --libdi | --libd)
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
987 -localedir | --localedir | --localedi | --localed | --locale)
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1066 -psdir | --psdir | --psdi | --psd | --ps)
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 sbindir=$ac_optarg ;;
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 sharedstatedir=$ac_optarg ;;
1092 -site | --site | --sit)
1094 -site=* | --site=* | --sit=*)
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1121 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package| sed 's/-/_/g'`
1127 eval with_$ac_package=\$ac_optarg ;;
1129 -without-* | --without-*)
1130 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133 { echo "$as_me: error: invalid package name: $ac_package" >&2
1134 { (exit 1); exit 1; }; }
1135 ac_package=`echo $ac_package | sed 's/-/_/g'`
1136 eval with_$ac_package=no ;;
1139 # Obsolete; use --with-x.
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1156 -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158 { (exit 1); exit 1; }; }
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166 { (exit 1); exit 1; }; }
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 { echo "$as_me: error: missing argument to $ac_option" >&2
1184 { (exit 1); exit 1; }; }
1187 # Be sure to have absolute directory names.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val=\$$ac_var
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199 { (exit 1); exit 1; }; }
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1207 target=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223 test "$silent" = yes && exec 6>/dev/null
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 { echo "$as_me: error: Working directory cannot be determined" >&2
1230 { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 { echo "$as_me: error: pwd does not report name of working directory" >&2
1233 { (exit 1); exit 1; }; }
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$0" : 'X\(//\)[^/]' \| \
1243 X"$0" : 'X\(//\)$' \| \
1244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1268 ac_srcdir_defaulted=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273 { (exit 1); exit 1; }; }
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278 { (exit 1); exit 1; }; }
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --enable-polly Use polly if available (default is YES)
1378 --enable-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1396 --enable-shared Build a shared library and link tools against it
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
1404 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1405 xcore, msp430, blackfin, ptx, cbe, and cpp
1407 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1409 --enable-bindings Build specific language bindings:
1410 all,auto,none,{binding-name} (default=auto)
1411 --enable-libffi Check for the presence of libffi (default is NO)
1412 --enable-ltdl-install install libltdl
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-llvmsrc Location of LLVM Source Code
1418 --with-llvmobj Location of LLVM Object Code
1419 --with-optimize-option Select the compiler options to use for optimized
1421 --with-extra-options Specify additional options to compile LLVM with
1422 --with-extra-ld-options Specify additional options to link LLVM with
1423 --with-ocaml-libdir Specify install location for ocaml bindings (default
1425 --with-clang-resource-dir
1426 Relative directory from the Clang binary for
1428 --with-c-include-dirs Colon separated list of directories clang will
1430 --with-cxx-include-root Directory with the libstdc++ headers.
1431 --with-cxx-include-arch Architecture of the libstdc++ headers.
1432 --with-cxx-include-32bit-dir
1433 32 bit multilib dir.
1434 --with-cxx-include-64bit-dir
1435 64 bit multilib directory.
1436 --with-binutils-include Specify path to binutils/include/ containing
1437 plugin-api.h file for gold plugin.
1438 --with-bug-report-url Specify the URL where bug reports should be
1439 submitted (default=http://llvm.org/bugs/)
1440 --with-tclinclude directory where tcl headers are
1441 --with-udis86=<path> Use udis86 external x86 disassembler library
1442 --with-oprofile=<prefix>
1443 Tell OProfile >= 0.9.4 how to symbolize JIT output
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 CXX C++ compiler command
1453 CXXFLAGS C++ compiler flags
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1459 Report bugs to <bugs@yourdomain>.
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" || continue
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1487 .) # We are building in place.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1509 $SHELL "$ac_srcdir/configure" --help=recursive
1511 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 cd "$ac_pwd" || { ac_status=$?; break; }
1517 test -n "$ac_init_help" && exit $ac_status
1518 if $ac_init_version; then
1520 [SAMPLE] configure [x.xx]
1521 generated by GNU Autoconf 2.60
1523 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1524 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1530 cat >config.log <<_ACEOF
1531 This file contains any messages produced by compilers while
1532 running configure, to aid debugging if configure makes a mistake.
1534 It was created by [SAMPLE] $as_me [x.xx], which was
1535 generated by GNU Autoconf 2.60. Invocation command line was
1547 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1548 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1549 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1550 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1551 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1553 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1554 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1556 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1557 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1558 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1559 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1560 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1561 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1562 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 echo "PATH: $as_dir"
1587 # Keep a trace of the command line.
1588 # Strip out --no-create and --no-recursion so they do not pile up.
1589 # Strip out --silent because we don't want to record it for future runs.
1590 # Also quote any args containing shell meta-characters.
1591 # Make two passes to allow for proper duplicate-argument suppression.
1595 ac_must_keep_next=false
1601 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1603 | -silent | --silent | --silen | --sile | --sil)
1606 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1609 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1611 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1612 if test $ac_must_keep_next = true; then
1613 ac_must_keep_next=false # Got value, back to normal.
1616 *=* | --config-cache | -C | -disable-* | --disable-* \
1617 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1618 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1619 | -with-* | --with-* | -without-* | --without-* | --x)
1620 case "$ac_configure_args0 " in
1621 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1624 -* ) ac_must_keep_next=true ;;
1627 ac_configure_args="$ac_configure_args '$ac_arg'"
1632 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1633 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1635 # When interrupted or exit'd, cleanup temporary files, and complete
1636 # config.log. We remove comments because anyway the quotes in there
1637 # would cause problems or look ugly.
1638 # WARNING: Use '\'' to represent an apostrophe within the trap.
1639 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1640 trap 'exit_status=$?
1641 # Save into config.log some information that might help in debugging.
1646 ## ---------------- ##
1647 ## Cache variables. ##
1648 ## ---------------- ##
1651 # The following way of writing the cache mishandles newlines in values,
1653 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1654 eval ac_val=\$$ac_var
1658 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1659 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1662 _ | IFS | as_nl) ;; #(
1663 *) $as_unset $ac_var ;;
1668 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1669 *${as_nl}ac_space=\ *)
1671 "s/'\''/'\''\\\\'\'''\''/g;
1672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1683 ## ----------------- ##
1684 ## Output variables. ##
1685 ## ----------------- ##
1688 for ac_var in $ac_subst_vars
1690 eval ac_val=\$$ac_var
1692 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694 echo "$ac_var='\''$ac_val'\''"
1698 if test -n "$ac_subst_files"; then
1700 ## ------------------- ##
1701 ## File substitutions. ##
1702 ## ------------------- ##
1705 for ac_var in $ac_subst_files
1707 eval ac_val=\$$ac_var
1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711 echo "$ac_var='\''$ac_val'\''"
1716 if test -s confdefs.h; then
1726 test "$ac_signal" != 0 &&
1727 echo "$as_me: caught signal $ac_signal"
1728 echo "$as_me: exit $exit_status"
1730 rm -f core *.core core.conftest.* &&
1731 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1734 for ac_signal in 1 2 13 15; do
1735 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1739 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1740 rm -f -r conftest* confdefs.h
1742 # Predefined preprocessor variables.
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_NAME "$PACKAGE_NAME"
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_STRING "$PACKAGE_STRING"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1769 # Let the site file select an alternate cache file if it wants to.
1770 # Prefer explicitly selected file to automatically selected ones.
1771 if test -n "$CONFIG_SITE"; then
1772 set x "$CONFIG_SITE"
1773 elif test "x$prefix" != xNONE; then
1774 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1776 set x "$ac_default_prefix/share/config.site" \
1777 "$ac_default_prefix/etc/config.site"
1782 if test -r "$ac_site_file"; then
1783 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784 echo "$as_me: loading site script $ac_site_file" >&6;}
1785 sed 's/^/| /' "$ac_site_file" >&5
1790 if test -r "$cache_file"; then
1791 # Some versions of bash will fail to source /dev/null (special
1792 # files actually), so we avoid doing that.
1793 if test -f "$cache_file"; then
1794 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795 echo "$as_me: loading cache $cache_file" >&6;}
1797 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798 *) . "./$cache_file";;
1802 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1803 echo "$as_me: creating cache $cache_file" >&6;}
1807 # Check that the precious variables saved in the cache have kept the same
1809 ac_cache_corrupted=false
1810 for ac_var in $ac_precious_vars; do
1811 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1812 eval ac_new_set=\$ac_env_${ac_var}_set
1813 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1814 eval ac_new_val=\$ac_env_${ac_var}_value
1815 case $ac_old_set,$ac_new_set in
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1821 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1822 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1823 ac_cache_corrupted=: ;;
1826 if test "x$ac_old_val" != "x$ac_new_val"; then
1827 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1828 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1829 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1830 echo "$as_me: former value: $ac_old_val" >&2;}
1831 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1832 echo "$as_me: current value: $ac_new_val" >&2;}
1833 ac_cache_corrupted=:
1836 # Pass precious variables to config.status.
1837 if test "$ac_new_set" = set; then
1839 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1840 *) ac_arg=$ac_var=$ac_new_val ;;
1842 case " $ac_configure_args " in
1843 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1844 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1848 if $ac_cache_corrupted; then
1849 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1850 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1851 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1852 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1853 { (exit 1); exit 1; }; }
1881 ac_cpp='$CPP $CPPFLAGS'
1882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888 LLVM_SRC_ROOT="../.."
1889 LLVM_OBJ_ROOT="../.."
1891 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1892 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1895 # Check whether --with-llvmsrc was given.
1896 if test "${with_llvmsrc+set}" = set; then
1897 withval=$with_llvmsrc; llvm_src="$withval"
1899 llvm_src="$LLVM_ABS_SRC_ROOT"
1905 # Check whether --with-llvmobj was given.
1906 if test "${with_llvmobj+set}" = set; then
1907 withval=$with_llvmobj; llvm_obj="$withval"
1909 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1914 ac_config_commands="$ac_config_commands setup"
1918 { echo "$as_me:$LINENO: checking llvm-config" >&5
1919 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1920 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1921 if ! test -f "$llvm_config_path" ; then
1922 llvm_config_path="no"
1924 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1925 echo "${ECHO_T}$llvm_config_path" >&6; }
1927 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1928 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1929 if test "$llvm_config_path" != no ; then
1930 llvm_package_version=`$llvm_config_path --version`
1932 llvm_package_version="unknown";
1934 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1935 echo "${ECHO_T}$llvm_package_version" >&6; }
1936 LLVM_VERSION=$llvm_package_version
1942 for ac_dir in autoconf "$srcdir"/autoconf; do
1943 if test -f "$ac_dir/install-sh"; then
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 elif test -f "$ac_dir/install.sh"; then
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 elif test -f "$ac_dir/shtool"; then
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 if test -z "$ac_aux_dir"; then
1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 if test -n "$ac_tool_prefix"; then
1980 for ac_prog in clang llvm-gcc gcc
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 if test -n "$CC"; then
2011 { echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6; }
2014 { echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6; }
2019 test -n "$CC" && break
2022 if test -z "$CC"; then
2024 for ac_prog in clang llvm-gcc gcc
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6; }
2058 { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2063 test -n "$ac_ct_CC" && break
2066 if test "x$ac_ct_CC" = x; then
2069 case $cross_compiling:$ac_tool_warned in
2071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet. If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&5
2074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet. If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077 ac_tool_warned=yes ;;
2084 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
2090 # Provide some information about the compiler.
2091 echo "$as_me:$LINENO: checking for C compiler version" >&5
2092 ac_compiler=`set X $ac_compile; echo $2`
2093 { (ac_try="$ac_compiler --version >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler --version >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (ac_try="$ac_compiler -v >&5"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -v >&5") 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113 { (ac_try="$ac_compiler -V >&5"
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -V >&5") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2124 cat >conftest.$ac_ext <<_ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2139 ac_clean_files_save=$ac_clean_files
2140 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141 # Try to create an executable without -o first, disregard a.out.
2142 # It will help us diagnose broken compilers, and finding out an intuition
2144 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 # List of possible output files, starting from the most likely.
2149 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150 # only as a last resort. b.out is created by i960 compilers.
2151 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2153 # The IRIX 6 linker writes into existing files which may not be
2154 # executable, retaining their permissions. Remove them first so a
2155 # subsequent execution test works.
2157 for ac_file in $ac_files
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2166 if { (ac_try="$ac_link_default"
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172 (eval "$ac_link_default") 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2179 # so that the user can short-circuit this test for compilers unknown to
2181 for ac_file in $ac_files
2183 test -f "$ac_file" || continue
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2188 # We found the default executable, but exeext='' is most
2192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 # We set ac_cv_exeext here because the later test for it is not
2197 # safe: cross compilers may not add the suffix if given an `-o'
2198 # argument, so we may need to know it at that point already.
2199 # Even if this section looks crufty: it has the advantage of
2206 test "$ac_cv_exeext" = no && ac_cv_exeext=
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
2219 ac_exeext=$ac_cv_exeext
2220 { echo "$as_me:$LINENO: result: $ac_file" >&5
2221 echo "${ECHO_T}$ac_file" >&6; }
2223 # Check that the compiler produces executables we can run. If not, either
2224 # the compiler is broken, or we cross compile.
2225 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228 # If not cross compiling, check that we can run a simple program.
2229 if test "$cross_compiling" != yes; then
2230 if { ac_try='./$ac_file'
2231 { (case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_try") 2>&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2242 if test "$cross_compiling" = maybe; then
2245 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2258 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259 ac_clean_files=$ac_clean_files_save
2260 # Check that the compiler produces executables we can run. If not, either
2261 # the compiler is broken, or we cross compile.
2262 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265 echo "${ECHO_T}$cross_compiling" >&6; }
2267 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269 if { (ac_try="$ac_link"
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_link") 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2283 for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2300 rm -f conftest$ac_cv_exeext
2301 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2304 rm -f conftest.$ac_ext
2305 EXEEXT=$ac_cv_exeext
2307 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309 if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.$ac_ext <<_ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2327 rm -f conftest.o conftest.obj
2328 if { (ac_try="$ac_compile"
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334 (eval "$ac_compile") 2>&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
2338 for ac_file in conftest.o conftest.obj conftest.*; do
2339 test -f "$ac_file" || continue;
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2359 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6; }
2361 OBJEXT=$ac_cv_objext
2363 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2386 rm -f conftest.$ac_objext
2387 if { (ac_try="$ac_compile"
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compile") 2>conftest.er1
2395 grep -v '^ *+' conftest.er1 >conftest.err
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434 GCC=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CFLAGS=${CFLAGS+set}
2436 ac_save_CFLAGS=$CFLAGS
2437 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_cc_g+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_save_c_werror_flag=$ac_c_werror_flag
2443 ac_c_werror_flag=yes
2446 cat >conftest.$ac_ext <<_ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2461 rm -f conftest.$ac_objext
2462 if { (ac_try="$ac_compile"
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>conftest.er1
2470 grep -v '^ *+' conftest.er1 >conftest.err
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2516 rm -f conftest.$ac_objext
2517 if { (ac_try="$ac_compile"
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compile") 2>conftest.er1
2525 grep -v '^ *+' conftest.er1 >conftest.err
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 ac_c_werror_flag=$ac_save_c_werror_flag
2557 cat >conftest.$ac_ext <<_ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2581 grep -v '^ *+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_c_werror_flag=$ac_save_c_werror_flag
2623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2625 if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627 elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2634 if test "$GCC" = yes; then
2640 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_cc_c89+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 ac_cv_prog_cc_c89=no
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2655 #include <sys/types.h>
2656 #include <sys/stat.h>
2657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2658 struct buf { int x; };
2659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660 static char *e (p, i)
2666 static char *f (char * (*g) (char **, int), char **p, ...)
2671 s = g (p, va_arg (v,int));
2676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not '\xHH' hex character constants.
2678 These don't provoke an error unfortunately, instead are silently treated
2679 as 'x'. The following induces an error, until -std is added to get
2680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2681 array size at least. It's necessary to write '\x00'==0 to get something
2682 that's true only with -std. */
2683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2688 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2690 int test (int i, double x);
2691 struct s1 {int (*f) (int a);};
2692 struct s2 {int (*f) (double a);};
2693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2699 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2704 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2717 grep -v '^ *+' conftest.er1 >conftest.err
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_prog_cc_c89=$ac_arg
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2750 rm -f core conftest.err conftest.$ac_objext
2751 test "x$ac_cv_prog_cc_c89" != "xno" && break
2753 rm -f conftest.$ac_ext
2758 case "x$ac_cv_prog_cc_c89" in
2760 { echo "$as_me:$LINENO: result: none needed" >&5
2761 echo "${ECHO_T}none needed" >&6; } ;;
2763 { echo "$as_me:$LINENO: result: unsupported" >&5
2764 echo "${ECHO_T}unsupported" >&6; } ;;
2766 CC="$CC $ac_cv_prog_cc_c89"
2767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 ac_cpp='$CXXCPP $CPPFLAGS'
2780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783 if test -z "$CXX"; then
2784 if test -n "$CCC"; then
2787 if test -n "$ac_tool_prefix"; then
2788 for ac_prog in clang++ llvm-g++ g++
2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794 if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 if test -n "$CXX"; then
2819 { echo "$as_me:$LINENO: result: $CXX" >&5
2820 echo "${ECHO_T}$CXX" >&6; }
2822 { echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6; }
2827 test -n "$CXX" && break
2830 if test -z "$CXX"; then
2832 for ac_prog in clang++ llvm-g++ g++
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 if test -n "$ac_ct_CXX"; then
2842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_CXX="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862 if test -n "$ac_ct_CXX"; then
2863 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2866 { echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6; }
2871 test -n "$ac_ct_CXX" && break
2874 if test "x$ac_ct_CXX" = x; then
2877 case $cross_compiling:$ac_tool_warned in
2879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet. If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&5
2882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883 whose name does not start with the host triplet. If you think this
2884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885 ac_tool_warned=yes ;;
2893 # Provide some information about the compiler.
2894 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895 ac_compiler=`set X $ac_compile; echo $2`
2896 { (ac_try="$ac_compiler --version >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler --version >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906 { (ac_try="$ac_compiler -v >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -v >&5") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (ac_try="$ac_compiler -V >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -V >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998 GXX=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CXXFLAGS=${CXXFLAGS+set}
3000 ac_save_CXXFLAGS=$CXXFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cxx_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007 ac_cxx_werror_flag=yes
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1 >conftest.err
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cxx_g=yes
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_prog_cxx_g=yes
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189 if test "$ac_test_CXXFLAGS" = set; then
3190 CXXFLAGS=$ac_save_CXXFLAGS
3191 elif test $ac_cv_prog_cxx_g = yes; then
3192 if test "$GXX" = yes; then
3198 if test "$GXX" = yes; then
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3221 if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229 for ac_c_preproc_warn_flag in '' yes
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3244 # include <limits.h>
3246 # include <assert.h>
3250 if { (ac_try="$ac_cpp conftest.$ac_ext"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3258 grep -v '^ *+' conftest.er1 >conftest.err
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3272 if test -z "$ac_cpp_err"; then
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 # Broken: fails on valid input.
3282 rm -f conftest.err conftest.$ac_ext
3284 # OK, works on sane cases. Now check whether nonexistent headers
3285 # can be detected and how.
3286 cat >conftest.$ac_ext <<_ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3292 #include <ac_nonexistent.h>
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3316 if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3323 # Passes both tests.
3328 rm -f conftest.err conftest.$ac_ext
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then
3345 { echo "$as_me:$LINENO: result: $CPP" >&5
3346 echo "${ECHO_T}$CPP" >&6; }
3348 for ac_c_preproc_warn_flag in '' yes
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3363 # include <limits.h>
3365 # include <assert.h>
3369 if { (ac_try="$ac_cpp conftest.$ac_ext"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3391 if test -z "$ac_cpp_err"; then
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 # Broken: fails on valid input.
3401 rm -f conftest.err conftest.$ac_ext
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <ac_nonexistent.h>
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 grep -v '^ *+' conftest.er1 >conftest.err
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3435 if test -z "$ac_cpp_err"; then
3436 # Broken: success on invalid input.
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 # Passes both tests.
3447 rm -f conftest.err conftest.$ac_ext
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&5
3457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&2;}
3459 { (exit 1); exit 1; }; }
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 # Check whether --enable-polly was given.
3472 if test "${enable_polly+set}" = set; then
3473 enableval=$enable_polly;
3478 case "$enableval" in
3483 default) ENABLE_POLLY=1
3485 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3486 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3487 { (exit 1); exit 1; }; } ;;
3491 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3494 subdirs="$subdirs tools/polly"
3499 # Make sure we can run config.sub.
3500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3502 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3503 { (exit 1); exit 1; }; }
3505 { echo "$as_me:$LINENO: checking build system type" >&5
3506 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3507 if test "${ac_cv_build+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 ac_build_alias=$build_alias
3511 test "x$ac_build_alias" = x &&
3512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3513 test "x$ac_build_alias" = x &&
3514 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3515 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3516 { (exit 1); exit 1; }; }
3517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3518 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3519 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3520 { (exit 1); exit 1; }; }
3523 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3524 echo "${ECHO_T}$ac_cv_build" >&6; }
3525 case $ac_cv_build in
3527 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3528 echo "$as_me: error: invalid value of canonical build" >&2;}
3529 { (exit 1); exit 1; }; };;
3532 ac_save_IFS=$IFS; IFS='-'
3538 # Remember, the first character of IFS is used to create $*,
3539 # except with old shells:
3542 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3545 { echo "$as_me:$LINENO: checking host system type" >&5
3546 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3547 if test "${ac_cv_host+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 if test "x$host_alias" = x; then
3551 ac_cv_host=$ac_cv_build
3553 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3554 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3555 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3556 { (exit 1); exit 1; }; }
3560 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3561 echo "${ECHO_T}$ac_cv_host" >&6; }
3564 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3565 echo "$as_me: error: invalid value of canonical host" >&2;}
3566 { (exit 1); exit 1; }; };;
3569 ac_save_IFS=$IFS; IFS='-'
3575 # Remember, the first character of IFS is used to create $*,
3576 # except with old shells:
3579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3582 { echo "$as_me:$LINENO: checking target system type" >&5
3583 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3584 if test "${ac_cv_target+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test "x$target_alias" = x; then
3588 ac_cv_target=$ac_cv_host
3590 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3591 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3592 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3593 { (exit 1); exit 1; }; }
3597 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3598 echo "${ECHO_T}$ac_cv_target" >&6; }
3599 case $ac_cv_target in
3601 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3602 echo "$as_me: error: invalid value of canonical target" >&2;}
3603 { (exit 1); exit 1; }; };;
3605 target=$ac_cv_target
3606 ac_save_IFS=$IFS; IFS='-'
3612 # Remember, the first character of IFS is used to create $*,
3613 # except with old shells:
3616 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3619 # The aliases save the names the user supplied, while $host etc.
3620 # will get canonicalized.
3621 test -n "$target_alias" &&
3622 test "$program_prefix$program_suffix$program_transform_name" = \
3624 program_prefix=${target_alias}-
3626 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3627 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3628 if test "${llvm_cv_os_type+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 llvm_cv_link_all_option="-Wl,--whole-archive"
3634 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635 llvm_cv_os_type="AIX"
3636 llvm_cv_platform_type="Unix" ;;
3638 llvm_cv_link_all_option="-Wl,--whole-archive"
3639 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640 llvm_cv_os_type="IRIX"
3641 llvm_cv_platform_type="Unix" ;;
3643 llvm_cv_link_all_option="-Wl,--whole-archive"
3644 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3645 llvm_cv_os_type="Cygwin"
3646 llvm_cv_platform_type="Unix" ;;
3648 llvm_cv_link_all_option="-Wl,-all_load"
3649 llvm_cv_no_link_all_option="-Wl,-noall_load"
3650 llvm_cv_os_type="Darwin"
3651 llvm_cv_platform_type="Unix" ;;
3653 llvm_cv_link_all_option="-Wl,-all_load"
3654 llvm_cv_no_link_all_option="-Wl,-noall_load"
3655 llvm_cv_os_type="Minix"
3656 llvm_cv_platform_type="Unix" ;;
3658 llvm_cv_link_all_option="-Wl,--whole-archive"
3659 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660 llvm_cv_os_type="FreeBSD"
3661 llvm_cv_platform_type="Unix" ;;
3663 llvm_cv_link_all_option="-Wl,--whole-archive"
3664 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665 llvm_cv_os_type="OpenBSD"
3666 llvm_cv_platform_type="Unix" ;;
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="NetBSD"
3671 llvm_cv_platform_type="Unix" ;;
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="DragonFly"
3676 llvm_cv_platform_type="Unix" ;;
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="HP-UX"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="Interix"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="Linux"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,-z,allextract"
3694 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3695 llvm_cv_os_type="SunOS"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,-z,allextract"
3699 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3700 llvm_cv_os_type="AuroraUX"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Win32"
3706 llvm_cv_platform_type="Win32" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="MingW"
3711 llvm_cv_platform_type="Win32" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="Haiku"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Freestanding"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Freestanding"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option=""
3729 llvm_cv_no_link_all_option=""
3730 llvm_cv_os_type="Unknown"
3731 llvm_cv_platform_type="Unknown" ;;
3734 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3735 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3737 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3738 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3739 if test "${llvm_cv_target_os_type+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 llvm_cv_target_os_type="AIX" ;;
3746 llvm_cv_target_os_type="IRIX" ;;
3748 llvm_cv_target_os_type="Cygwin" ;;
3750 llvm_cv_target_os_type="Darwin" ;;
3752 llvm_cv_target_os_type="Minix" ;;
3754 llvm_cv_target_os_type="FreeBSD" ;;
3756 llvm_cv_target_os_type="OpenBSD" ;;
3758 llvm_cv_target_os_type="NetBSD" ;;
3760 llvm_cv_target_os_type="DragonFly" ;;
3762 llvm_cv_target_os_type="HP-UX" ;;
3764 llvm_cv_target_os_type="Interix" ;;
3766 llvm_cv_target_os_type="Linux" ;;
3768 llvm_cv_target_os_type="SunOS" ;;
3770 llvm_cv_target_os_type="AuroraUX" ;;
3772 llvm_cv_target_os_type="Win32" ;;
3774 llvm_cv_target_os_type="MingW" ;;
3776 llvm_cv_target_os_type="Haiku" ;;
3778 llvm_cv_target_os_type="RTEMS" ;;
3780 llvm_cv_target_os_type="NativeClient" ;;
3782 llvm_cv_target_os_type="Freestanding" ;;
3784 llvm_cv_target_os_type="Unknown" ;;
3787 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3790 if test "$llvm_cv_os_type" = "Unknown" ; then
3791 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793 { (exit 1); exit 1; }; }
3798 HOST_OS=$llvm_cv_os_type
3800 TARGET_OS=$llvm_cv_target_os_type
3803 LINKALL=$llvm_cv_link_all_option
3805 NOLINKALL=$llvm_cv_no_link_all_option
3808 case $llvm_cv_platform_type in
3811 cat >>confdefs.h <<\_ACEOF
3812 #define LLVM_ON_UNIX 1
3822 cat >>confdefs.h <<\_ACEOF
3823 #define LLVM_ON_WIN32 1
3833 { echo "$as_me:$LINENO: checking target architecture" >&5
3834 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835 if test "${llvm_cv_target_arch+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 i?86-*) llvm_cv_target_arch="x86" ;;
3840 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3841 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3842 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3843 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3844 arm*-*) llvm_cv_target_arch="ARM" ;;
3845 mips-*) llvm_cv_target_arch="Mips" ;;
3846 xcore-*) llvm_cv_target_arch="XCore" ;;
3847 msp430-*) llvm_cv_target_arch="MSP430" ;;
3848 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3849 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3850 ptx-*) llvm_cv_target_arch="PTX" ;;
3851 *) llvm_cv_target_arch="Unknown" ;;
3854 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3855 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3857 if test "$llvm_cv_target_arch" = "Unknown" ; then
3858 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3859 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3862 # Determine the LLVM native architecture for the target
3863 case "$llvm_cv_target_arch" in
3864 x86) LLVM_NATIVE_ARCH="X86" ;;
3865 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3866 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3869 ARCH=$llvm_cv_target_arch
3874 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3875 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3876 if test "${ac_cv_path_GREP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 # Extract the first word of "grep ggrep" to use in msg output
3880 if test -z "$GREP"; then
3881 set dummy grep ggrep; ac_prog_name=$2
3882 if test "${ac_cv_path_GREP+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 ac_path_GREP_found=false
3886 # Loop through the user's path and test for each of PROGNAME-LIST
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3891 test -z "$as_dir" && as_dir=.
3892 for ac_prog in grep ggrep; do
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3895 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3896 # Check for GNU ac_path_GREP and select it if it is found.
3897 # Check for GNU $ac_path_GREP
3898 case `"$ac_path_GREP" --version 2>&1` in
3900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3903 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3906 cat "conftest.in" "conftest.in" >"conftest.tmp"
3907 mv "conftest.tmp" "conftest.in"
3908 cp "conftest.in" "conftest.nl"
3909 echo 'GREP' >> "conftest.nl"
3910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912 ac_count=`expr $ac_count + 1`
3913 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3914 # Best one so far, save it but keep looking for a better one
3915 ac_cv_path_GREP="$ac_path_GREP"
3916 ac_path_GREP_max=$ac_count
3918 # 10*(2^10) chars as input seems more than enough
3919 test $ac_count -gt 10 && break
3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925 $ac_path_GREP_found && break 3
3935 GREP="$ac_cv_path_GREP"
3936 if test -z "$GREP"; then
3937 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3938 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3939 { (exit 1); exit 1; }; }
3943 ac_cv_path_GREP=$GREP
3948 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3949 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3950 GREP="$ac_cv_path_GREP"
3953 { echo "$as_me:$LINENO: checking for egrep" >&5
3954 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3955 if test "${ac_cv_path_EGREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3959 then ac_cv_path_EGREP="$GREP -E"
3961 # Extract the first word of "egrep" to use in msg output
3962 if test -z "$EGREP"; then
3963 set dummy egrep; ac_prog_name=$2
3964 if test "${ac_cv_path_EGREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 ac_path_EGREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 test -z "$as_dir" && as_dir=.
3974 for ac_prog in egrep; do
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3977 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3978 # Check for GNU ac_path_EGREP and select it if it is found.
3979 # Check for GNU $ac_path_EGREP
3980 case `"$ac_path_EGREP" --version 2>&1` in
3982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3985 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3988 cat "conftest.in" "conftest.in" >"conftest.tmp"
3989 mv "conftest.tmp" "conftest.in"
3990 cp "conftest.in" "conftest.nl"
3991 echo 'EGREP' >> "conftest.nl"
3992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994 ac_count=`expr $ac_count + 1`
3995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3996 # Best one so far, save it but keep looking for a better one
3997 ac_cv_path_EGREP="$ac_path_EGREP"
3998 ac_path_EGREP_max=$ac_count
4000 # 10*(2^10) chars as input seems more than enough
4001 test $ac_count -gt 10 && break
4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 $ac_path_EGREP_found && break 3
4017 EGREP="$ac_cv_path_EGREP"
4018 if test -z "$EGREP"; then
4019 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4021 { (exit 1); exit 1; }; }
4025 ac_cv_path_EGREP=$EGREP
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4033 EGREP="$ac_cv_path_EGREP"
4036 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4038 if test "${ac_cv_header_stdc+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4060 rm -f conftest.$ac_objext
4061 if { (ac_try="$ac_compile"
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_compile") 2>conftest.er1
4069 grep -v '^ *+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; } &&
4084 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4094 ac_cv_header_stdc=yes
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 ac_cv_header_stdc=no
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 if test $ac_cv_header_stdc = yes; then
4105 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4106 cat >conftest.$ac_ext <<_ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 $EGREP "memchr" >/dev/null 2>&1; then
4119 ac_cv_header_stdc=no
4125 if test $ac_cv_header_stdc = yes; then
4126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127 cat >conftest.$ac_ext <<_ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137 $EGREP "free" >/dev/null 2>&1; then
4140 ac_cv_header_stdc=no
4146 if test $ac_cv_header_stdc = yes; then
4147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4148 if test "$cross_compiling" = yes; then
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4159 #if ((' ' & 0x0FF) == 0x020)
4160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4163 # define ISLOWER(c) \
4164 (('a' <= (c) && (c) <= 'i') \
4165 || ('j' <= (c) && (c) <= 'r') \
4166 || ('s' <= (c) && (c) <= 'z'))
4167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4175 for (i = 0; i < 256; i++)
4176 if (XOR (islower (i), ISLOWER (i))
4177 || toupper (i) != TOUPPER (i))
4182 rm -f conftest$ac_exeext
4183 if { (ac_try="$ac_link"
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_link") 2>&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4193 { (case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_try") 2>&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4204 echo "$as_me: program exited with status $ac_status" >&5
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4209 ac_cv_header_stdc=no
4211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4217 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4219 if test $ac_cv_header_stdc = yes; then
4221 cat >>confdefs.h <<\_ACEOF
4222 #define STDC_HEADERS 1
4227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238 inttypes.h stdint.h unistd.h
4240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 $ac_includes_default
4254 #include <$ac_header>
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_compile") 2>conftest.er1
4265 grep -v '^ *+' conftest.er1 >conftest.err
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4290 eval "$as_ac_Header=yes"
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 eval "$as_ac_Header=no"
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 ac_res=`eval echo '${'$as_ac_Header'}'`
4301 { echo "$as_me:$LINENO: result: $ac_res" >&5
4302 echo "${ECHO_T}$ac_res" >&6; }
4303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4304 cat >>confdefs.h <<_ACEOF
4305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4313 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4314 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4315 if test "${ac_cv_c_bigendian+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 # See if sys/param.h defines the BYTE_ORDER macro.
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 #include <sys/types.h>
4326 #include <sys/param.h>
4331 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4373 # It does; now see whether it defined to BIG_ENDIAN or not.
4374 cat >conftest.$ac_ext <<_ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #include <sys/types.h>
4381 #include <sys/param.h>
4386 #if BYTE_ORDER != BIG_ENDIAN
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_compile") 2>conftest.er1
4403 grep -v '^ *+' conftest.er1 >conftest.err
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409 { (case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_try") 2>&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4428 ac_cv_c_bigendian=yes
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 ac_cv_c_bigendian=no
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 # It does not; compile a test program.
4442 if test "$cross_compiling" = yes; then
4443 # try to guess the endianness by grepping values into an object file
4444 ac_cv_c_bigendian=unknown
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4452 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4453 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4454 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4455 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4456 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4460 _ascii (); _ebcdic ();
4465 rm -f conftest.$ac_objext
4466 if { (ac_try="$ac_compile"
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_compile") 2>conftest.er1
4474 grep -v '^ *+' conftest.er1 >conftest.err
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4499 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4500 ac_cv_c_bigendian=yes
4502 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4503 if test "$ac_cv_c_bigendian" = unknown; then
4504 ac_cv_c_bigendian=no
4506 # finding both strings is unlikely to happen, but who knows?
4507 ac_cv_c_bigendian=unknown
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 $ac_includes_default
4530 /* Are we little or big endian? From Harbison&Steele. */
4534 char c[sizeof (long int)];
4537 return u.c[sizeof (long int) - 1] == 1;
4543 rm -f conftest$ac_exeext
4544 if { (ac_try="$ac_link"
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_link") 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4554 { (case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_try") 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 ac_cv_c_bigendian=no
4565 echo "$as_me: program exited with status $ac_status" >&5
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4570 ac_cv_c_bigendian=yes
4572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4581 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4582 case $ac_cv_c_bigendian in
4590 { { echo "$as_me:$LINENO: error: unknown endianness
4591 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4592 echo "$as_me: error: unknown endianness
4593 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4594 { (exit 1); exit 1; }; } ;;
4598 if test "$cross_compiling" = yes; then
4599 LLVM_CROSS_COMPILING=1
4602 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4603 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4604 if test "${ac_cv_build_exeext+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4608 ac_cv_build_exeext=.exe
4610 ac_build_prefix=${build_alias}-
4612 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4613 set dummy ${ac_build_prefix}gcc; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 if test -n "$BUILD_CC"; then
4620 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 BUILD_CC=$ac_cv_prog_BUILD_CC
4640 if test -n "$BUILD_CC"; then
4641 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4642 echo "${ECHO_T}$BUILD_CC" >&6; }
4644 { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4649 if test -z "$BUILD_CC"; then
4650 # Extract the first word of "gcc", so it can be a program name with args.
4651 set dummy gcc; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 if test -n "$BUILD_CC"; then
4658 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_BUILD_CC="gcc"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 BUILD_CC=$ac_cv_prog_BUILD_CC
4678 if test -n "$BUILD_CC"; then
4679 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4680 echo "${ECHO_T}$BUILD_CC" >&6; }
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4687 if test -z "$BUILD_CC"; then
4688 # Extract the first word of "cc", so it can be a program name with args.
4689 set dummy cc; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 if test -n "$BUILD_CC"; then
4696 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4707 ac_prog_rejected=yes
4710 ac_cv_prog_BUILD_CC="cc"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 if test $ac_prog_rejected = yes; then
4719 # We found a bogon in the path, so make sure we never use it.
4720 set dummy $ac_cv_prog_BUILD_CC
4722 if test $# != 0; then
4723 # We chose a different compiler from the bogus one.
4724 # However, it has the same basename, so the bogon will be chosen
4725 # first if we set BUILD_CC to just the basename; use the full file name.
4727 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4732 BUILD_CC=$ac_cv_prog_BUILD_CC
4733 if test -n "$BUILD_CC"; then
4734 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735 echo "${ECHO_T}$BUILD_CC" >&6; }
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4744 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4745 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4746 { (exit 1); exit 1; }; }
4747 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4749 echo 'int main () { return 0; }' > conftest.$ac_ext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4752 (eval $ac_build_link) 2>&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; then
4756 for file in conftest.*; do
4758 *.c | *.o | *.obj | *.dSYM) ;;
4759 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4763 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4764 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4765 { (exit 1); exit 1; }; }
4768 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4773 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4774 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4775 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4776 ac_build_exeext=$BUILD_EXEEXT
4778 ac_build_prefix=${build_alias}-
4779 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4780 set dummy ${ac_build_prefix}g++; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 if test -n "$BUILD_CXX"; then
4787 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4807 if test -n "$BUILD_CXX"; then
4808 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4809 echo "${ECHO_T}$BUILD_CXX" >&6; }
4811 { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4816 if test -z "$BUILD_CXX"; then
4817 # Extract the first word of "g++", so it can be a program name with args.
4818 set dummy g++; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 if test -n "$BUILD_CXX"; then
4825 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_BUILD_CXX="g++"
4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4845 if test -n "$BUILD_CXX"; then
4846 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4847 echo "${ECHO_T}$BUILD_CXX" >&6; }
4849 { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4854 if test -z "$BUILD_CXX"; then
4855 # Extract the first word of "c++", so it can be a program name with args.
4856 set dummy c++; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 if test -n "$BUILD_CXX"; then
4863 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4874 ac_prog_rejected=yes
4877 ac_cv_prog_BUILD_CXX="c++"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 if test $ac_prog_rejected = yes; then
4886 # We found a bogon in the path, so make sure we never use it.
4887 set dummy $ac_cv_prog_BUILD_CXX
4889 if test $# != 0; then
4890 # We chose a different compiler from the bogus one.
4891 # However, it has the same basename, so the bogon will be chosen
4892 # first if we set BUILD_CXX to just the basename; use the full file name.
4894 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4899 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900 if test -n "$BUILD_CXX"; then
4901 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902 echo "${ECHO_T}$BUILD_CXX" >&6; }
4904 { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4912 LLVM_CROSS_COMPILING=0
4916 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4927 # Check whether --enable-optimized was given.
4928 if test "${enable_optimized+set}" = set; then
4929 enableval=$enable_optimized;
4934 if test ${enableval} = "no" ; then
4938 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4942 # Check whether --enable-profiling was given.
4943 if test "${enable_profiling+set}" = set; then
4944 enableval=$enable_profiling;
4949 if test ${enableval} = "no" ; then
4953 ENABLE_PROFILING=ENABLE_PROFILING=1
4957 # Check whether --enable-assertions was given.
4958 if test "${enable_assertions+set}" = set; then
4959 enableval=$enable_assertions;
4964 if test ${enableval} = "yes" ; then
4968 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4972 # Check whether --enable-expensive-checks was given.
4973 if test "${enable_expensive_checks+set}" = set; then
4974 enableval=$enable_expensive_checks;
4979 if test ${enableval} = "yes" ; then
4980 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4982 EXPENSIVE_CHECKS=yes
4985 ENABLE_EXPENSIVE_CHECKS=
4991 # Check whether --enable-debug-runtime was given.
4992 if test "${enable_debug_runtime+set}" = set; then
4993 enableval=$enable_debug_runtime;
4998 if test ${enableval} = "no" ; then
5002 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5006 # Check whether --enable-debug-symbols was given.
5007 if test "${enable_debug_symbols+set}" = set; then
5008 enableval=$enable_debug_symbols;
5013 if test ${enableval} = "no" ; then
5017 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5021 # Check whether --enable-jit was given.
5022 if test "${enable_jit+set}" = set; then
5023 enableval=$enable_jit;
5028 if test ${enableval} = "no"
5033 case "$llvm_cv_target_arch" in
5034 x86) TARGET_HAS_JIT=1
5036 Sparc) TARGET_HAS_JIT=0
5038 PowerPC) TARGET_HAS_JIT=1
5040 x86_64) TARGET_HAS_JIT=1
5042 Alpha) TARGET_HAS_JIT=0
5044 ARM) TARGET_HAS_JIT=1
5046 Mips) TARGET_HAS_JIT=1
5048 XCore) TARGET_HAS_JIT=0
5050 MSP430) TARGET_HAS_JIT=0
5052 Blackfin) TARGET_HAS_JIT=0
5054 MBlaze) TARGET_HAS_JIT=0
5056 PTX) TARGET_HAS_JIT=0
5063 # Check whether --enable-docs was given.
5064 if test "${enable_docs+set}" = set; then
5065 enableval=$enable_docs;
5070 case "$enableval" in
5075 default) ENABLE_DOCS=1
5077 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5078 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5079 { (exit 1); exit 1; }; } ;;
5082 # Check whether --enable-doxygen was given.
5083 if test "${enable_doxygen+set}" = set; then
5084 enableval=$enable_doxygen;
5089 case "$enableval" in
5090 yes) ENABLE_DOXYGEN=1
5092 no) ENABLE_DOXYGEN=0
5094 default) ENABLE_DOXYGEN=0
5096 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5097 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5098 { (exit 1); exit 1; }; } ;;
5101 # Check whether --enable-threads was given.
5102 if test "${enable_threads+set}" = set; then
5103 enableval=$enable_threads;
5108 case "$enableval" in
5109 yes) ENABLE_THREADS=1
5111 no) ENABLE_THREADS=0
5113 default) ENABLE_THREADS=1
5115 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5116 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5117 { (exit 1); exit 1; }; } ;;
5120 cat >>confdefs.h <<_ACEOF
5121 #define ENABLE_THREADS $ENABLE_THREADS
5125 # Check whether --enable-pthreads was given.
5126 if test "${enable_pthreads+set}" = set; then
5127 enableval=$enable_pthreads;
5132 case "$enableval" in
5133 yes) ENABLE_PTHREADS=1
5135 no) ENABLE_PTHREADS=0
5137 default) ENABLE_PTHREADS=1
5139 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5140 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5141 { (exit 1); exit 1; }; } ;;
5144 # Check whether --enable-pic was given.
5145 if test "${enable_pic+set}" = set; then
5146 enableval=$enable_pic;
5151 case "$enableval" in
5156 default) ENABLE_PIC=1
5158 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5159 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5160 { (exit 1); exit 1; }; } ;;
5163 cat >>confdefs.h <<_ACEOF
5164 #define ENABLE_PIC $ENABLE_PIC
5168 # Check whether --enable-shared was given.
5169 if test "${enable_shared+set}" = set; then
5170 enableval=$enable_shared;
5175 case "$enableval" in
5176 yes) ENABLE_SHARED=1
5180 default) ENABLE_SHARED=0
5182 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5183 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5184 { (exit 1); exit 1; }; } ;;
5187 # Check whether --enable-embed-stdcxx was given.
5188 if test "${enable_embed_stdcxx+set}" = set; then
5189 enableval=$enable_embed_stdcxx;
5194 case "$enableval" in
5195 yes) ENABLE_EMBED_STDCXX=1
5197 no) ENABLE_EMBED_STDCXX=0
5199 default) ENABLE_EMBED_STDCXX=1
5201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5202 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5203 { (exit 1); exit 1; }; } ;;
5206 # Check whether --enable-timestamps was given.
5207 if test "${enable_timestamps+set}" = set; then
5208 enableval=$enable_timestamps;
5213 case "$enableval" in
5214 yes) ENABLE_TIMESTAMPS=1
5216 no) ENABLE_TIMESTAMPS=0
5218 default) ENABLE_TIMESTAMPS=1
5220 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5225 cat >>confdefs.h <<_ACEOF
5226 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5231 # Check whether --enable-targets was given.
5232 if test "${enable_targets+set}" = set; then
5233 enableval=$enable_targets;
5238 if test "$enableval" = host-only ; then
5241 case "$enableval" in
5242 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 Blackfin CBackend CppBackend MBlaze PTX" ;;
5243 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5245 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5246 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5247 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5248 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5249 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5250 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5251 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5252 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5253 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5254 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5255 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5256 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5257 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5258 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5259 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5260 host) case "$llvm_cv_target_arch" in
5261 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5262 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5263 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5264 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5265 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5266 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5267 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5268 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5269 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5270 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5271 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5272 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5273 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5274 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5275 echo "$as_me: error: Can not set target to build" >&2;}
5276 { (exit 1); exit 1; }; } ;;
5278 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5279 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5280 { (exit 1); exit 1; }; } ;;
5285 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5288 # Determine whether we are building LLVM support for the native architecture.
5289 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5290 for a_target in $TARGETS_TO_BUILD; do
5291 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5293 cat >>confdefs.h <<_ACEOF
5294 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5297 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5298 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5299 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5300 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5301 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5302 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5305 cat >>confdefs.h <<_ACEOF
5306 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5310 cat >>confdefs.h <<_ACEOF
5311 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5315 cat >>confdefs.h <<_ACEOF
5316 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5320 cat >>confdefs.h <<_ACEOF
5321 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5324 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5326 cat >>confdefs.h <<_ACEOF
5327 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5334 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5335 # target feature def files.
5336 LLVM_ENUM_TARGETS=""
5337 LLVM_ENUM_ASM_PRINTERS=""
5338 LLVM_ENUM_ASM_PARSERS=""
5339 LLVM_ENUM_DISASSEMBLERS=""
5340 for target_to_build in $TARGETS_TO_BUILD; do
5341 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5342 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5343 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5345 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5346 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5348 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5349 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5357 # Check whether --enable-cbe-printf-a was given.
5358 if test "${enable_cbe_printf_a+set}" = set; then
5359 enableval=$enable_cbe_printf_a;
5364 case "$enableval" in
5365 yes) ENABLE_CBE_PRINTF_A=1
5367 no) ENABLE_CBE_PRINTF_A=0
5369 default) ENABLE_CBE_PRINTF_A=1
5371 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5372 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5373 { (exit 1); exit 1; }; } ;;
5376 cat >>confdefs.h <<_ACEOF
5377 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5382 # Check whether --with-optimize-option was given.
5383 if test "${with_optimize_option+set}" = set; then
5384 withval=$with_optimize_option;
5389 { echo "$as_me:$LINENO: checking optimization flags" >&5
5390 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5393 case "$llvm_cv_os_type" in
5394 FreeBSD) optimize_option=-O2 ;;
5395 MingW) optimize_option=-O2 ;;
5396 *) optimize_option=-O3 ;;
5398 *) optimize_option="$withval" ;;
5400 OPTIMIZE_OPTION=$optimize_option
5402 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5403 echo "${ECHO_T}$optimize_option" >&6; }
5406 # Check whether --with-extra-options was given.
5407 if test "${with_extra_options+set}" = set; then
5408 withval=$with_extra_options;
5414 default) EXTRA_OPTIONS= ;;
5415 *) EXTRA_OPTIONS=$withval ;;
5417 EXTRA_OPTIONS=$EXTRA_OPTIONS
5421 # Check whether --with-extra-ld-options was given.
5422 if test "${with_extra_ld_options+set}" = set; then
5423 withval=$with_extra_ld_options;
5429 default) EXTRA_LD_OPTIONS= ;;
5430 *) EXTRA_LD_OPTIONS=$withval ;;
5432 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5435 # Check whether --enable-bindings was given.
5436 if test "${enable_bindings+set}" = set; then
5437 enableval=$enable_bindings;
5442 BINDINGS_TO_BUILD=""
5443 case "$enableval" in
5444 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5445 all ) BINDINGS_TO_BUILD="ocaml" ;;
5446 none | no) BINDINGS_TO_BUILD="" ;;
5447 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5448 case "$a_binding" in
5449 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5450 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5451 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5452 { (exit 1); exit 1; }; } ;;
5459 # Check whether --with-ocaml-libdir was given.
5460 if test "${with_ocaml_libdir+set}" = set; then
5461 withval=$with_ocaml_libdir;
5467 auto) with_ocaml_libdir="$withval" ;;
5468 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5469 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5470 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5471 { (exit 1); exit 1; }; } ;;
5475 # Check whether --with-clang-resource-dir was given.
5476 if test "${with_clang_resource_dir+set}" = set; then
5477 withval=$with_clang_resource_dir;
5483 cat >>confdefs.h <<_ACEOF
5484 #define CLANG_RESOURCE_DIR "$withval"
5489 # Check whether --with-c-include-dirs was given.
5490 if test "${with_c_include_dirs+set}" = set; then
5491 withval=$with_c_include_dirs;
5497 cat >>confdefs.h <<_ACEOF
5498 #define C_INCLUDE_DIRS "$withval"
5503 # Check whether --with-cxx-include-root was given.
5504 if test "${with_cxx_include_root+set}" = set; then
5505 withval=$with_cxx_include_root;
5511 cat >>confdefs.h <<_ACEOF
5512 #define CXX_INCLUDE_ROOT "$withval"
5517 # Check whether --with-cxx-include-arch was given.
5518 if test "${with_cxx_include_arch+set}" = set; then
5519 withval=$with_cxx_include_arch;
5525 cat >>confdefs.h <<_ACEOF
5526 #define CXX_INCLUDE_ARCH "$withval"
5531 # Check whether --with-cxx-include-32bit-dir was given.
5532 if test "${with_cxx_include_32bit_dir+set}" = set; then
5533 withval=$with_cxx_include_32bit_dir;
5539 cat >>confdefs.h <<_ACEOF
5540 #define CXX_INCLUDE_32BIT_DIR "$withval"
5545 # Check whether --with-cxx-include-64bit-dir was given.
5546 if test "${with_cxx_include_64bit_dir+set}" = set; then
5547 withval=$with_cxx_include_64bit_dir;
5553 cat >>confdefs.h <<_ACEOF
5554 #define CXX_INCLUDE_64BIT_DIR "$withval"
5559 # Check whether --with-binutils-include was given.
5560 if test "${with_binutils_include+set}" = set; then
5561 withval=$with_binutils_include;
5567 default) WITH_BINUTILS_INCDIR=default ;;
5568 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5569 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5570 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5571 { (exit 1); exit 1; }; } ;;
5573 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5574 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5576 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5577 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5578 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5579 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5580 { (exit 1); exit 1; }; };
5585 # Check whether --with-bug-report-url was given.
5586 if test "${with_bug_report_url+set}" = set; then
5587 withval=$with_bug_report_url;
5589 withval="http://llvm.org/bugs/"
5593 cat >>confdefs.h <<_ACEOF
5594 #define BUG_REPORT_URL "$withval"
5598 # Check whether --enable-libffi was given.
5599 if test "${enable_libffi+set}" = set; then
5600 enableval=$enable_libffi; case "$enableval" in
5601 yes) llvm_cv_enable_libffi="yes" ;;
5602 no) llvm_cv_enable_libffi="no" ;;
5603 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5604 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5605 { (exit 1); exit 1; }; } ;;
5608 llvm_cv_enable_libffi=no
5613 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5614 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5615 if test "${lt_cv_path_NM+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 if test -n "$NM"; then
5619 # Let the user override the test.
5622 lt_nm_to_check="${ac_tool_prefix}nm"
5623 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5624 lt_nm_to_check="$lt_nm_to_check nm"
5626 for lt_tmp_nm in $lt_nm_to_check; do
5627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5628 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5630 test -z "$ac_dir" && ac_dir=.
5631 tmp_nm="$ac_dir/$lt_tmp_nm"
5632 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5633 # Check to see if the nm accepts a BSD-compat flag.
5634 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5635 # nm: unknown option "B" ignored
5636 # Tru64's nm complains that /dev/null is an invalid object file
5637 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5638 */dev/null* | *'Invalid file or object type'*)
5639 lt_cv_path_NM="$tmp_nm -B"
5643 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5645 lt_cv_path_NM="$tmp_nm -p"
5649 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5650 continue # so that we can try to find one that supports BSD flags
5659 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5662 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5663 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5668 { echo "$as_me:$LINENO: checking for GNU make" >&5
5669 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5670 if test "${llvm_cv_gnu_make_command+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 llvm_cv_gnu_make_command=''
5674 for a in "$MAKE" make gmake gnumake ; do
5675 if test -z "$a" ; then continue ; fi ;
5676 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5678 llvm_cv_gnu_make_command=$a ;
5683 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5684 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5685 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5689 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5690 echo "${ECHO_T}\"Not found\"" >&6; };
5694 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5695 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5697 if test "$LN_S" = "ln -s"; then
5698 { echo "$as_me:$LINENO: result: yes" >&5
5699 echo "${ECHO_T}yes" >&6; }
5701 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5702 echo "${ECHO_T}no, using $LN_S" >&6; }
5705 # Extract the first word of "cmp", so it can be a program name with args.
5706 set dummy cmp; ac_word=$2
5707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5709 if test "${ac_cv_path_CMP+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5737 if test -n "$CMP"; then
5738 { echo "$as_me:$LINENO: result: $CMP" >&5
5739 echo "${ECHO_T}$CMP" >&6; }
5741 { echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6; }
5746 # Extract the first word of "cp", so it can be a program name with args.
5747 set dummy cp; ac_word=$2
5748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750 if test "${ac_cv_path_CP+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5778 if test -n "$CP"; then
5779 { echo "$as_me:$LINENO: result: $CP" >&5
5780 echo "${ECHO_T}$CP" >&6; }
5782 { echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6; }
5787 # Extract the first word of "date", so it can be a program name with args.
5788 set dummy date; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_path_DATE+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5818 DATE=$ac_cv_path_DATE
5819 if test -n "$DATE"; then
5820 { echo "$as_me:$LINENO: result: $DATE" >&5
5821 echo "${ECHO_T}$DATE" >&6; }
5823 { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5828 # Extract the first word of "find", so it can be a program name with args.
5829 set dummy find; ac_word=$2
5830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832 if test "${ac_cv_path_FIND+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5859 FIND=$ac_cv_path_FIND
5860 if test -n "$FIND"; then
5861 { echo "$as_me:$LINENO: result: $FIND" >&5
5862 echo "${ECHO_T}$FIND" >&6; }
5864 { echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6; }
5869 # Extract the first word of "grep", so it can be a program name with args.
5870 set dummy grep; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_path_GREP+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5900 GREP=$ac_cv_path_GREP
5901 if test -n "$GREP"; then
5902 { echo "$as_me:$LINENO: result: $GREP" >&5
5903 echo "${ECHO_T}$GREP" >&6; }
5905 { echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6; }
5910 # Extract the first word of "mkdir", so it can be a program name with args.
5911 set dummy mkdir; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_path_MKDIR+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5941 MKDIR=$ac_cv_path_MKDIR
5942 if test -n "$MKDIR"; then
5943 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5944 echo "${ECHO_T}$MKDIR" >&6; }
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5951 # Extract the first word of "mv", so it can be a program name with args.
5952 set dummy mv; ac_word=$2
5953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955 if test "${ac_cv_path_MV+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5983 if test -n "$MV"; then
5984 { echo "$as_me:$LINENO: result: $MV" >&5
5985 echo "${ECHO_T}$MV" >&6; }
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5992 if test -n "$ac_tool_prefix"; then
5993 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5994 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_RANLIB+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 if test -n "$RANLIB"; then
6001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 RANLIB=$ac_cv_prog_RANLIB
6021 if test -n "$RANLIB"; then
6022 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6023 echo "${ECHO_T}$RANLIB" >&6; }
6025 { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6031 if test -z "$ac_cv_prog_RANLIB"; then
6032 ac_ct_RANLIB=$RANLIB
6033 # Extract the first word of "ranlib", so it can be a program name with args.
6034 set dummy ranlib; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 if test -n "$ac_ct_RANLIB"; then
6041 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_ac_ct_RANLIB="ranlib"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6061 if test -n "$ac_ct_RANLIB"; then
6062 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6063 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6065 { echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6; }
6069 if test "x$ac_ct_RANLIB" = x; then
6072 case $cross_compiling:$ac_tool_warned in
6074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6075 whose name does not start with the host triplet. If you think this
6076 configuration is useful to you, please write to autoconf@gnu.org." >&5
6077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6078 whose name does not start with the host triplet. If you think this
6079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6080 ac_tool_warned=yes ;;
6082 RANLIB=$ac_ct_RANLIB
6085 RANLIB="$ac_cv_prog_RANLIB"
6088 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}ar; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_AR+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 if test -n "$AR"; then
6097 ac_cv_prog_AR="$AR" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_AR="${ac_tool_prefix}ar"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 if test -n "$AR"; then
6118 { echo "$as_me:$LINENO: result: $AR" >&5
6119 echo "${ECHO_T}$AR" >&6; }
6121 { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6127 if test -z "$ac_cv_prog_AR"; then
6129 # Extract the first word of "ar", so it can be a program name with args.
6130 set dummy ar; ac_word=$2
6131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 if test -n "$ac_ct_AR"; then
6137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_ac_ct_AR="ar"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6157 if test -n "$ac_ct_AR"; then
6158 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6159 echo "${ECHO_T}$ac_ct_AR" >&6; }
6161 { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6165 if test "x$ac_ct_AR" = x; then
6168 case $cross_compiling:$ac_tool_warned in
6170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6171 whose name does not start with the host triplet. If you think this
6172 configuration is useful to you, please write to autoconf@gnu.org." >&5
6173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6174 whose name does not start with the host triplet. If you think this
6175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6176 ac_tool_warned=yes ;;
6184 # Extract the first word of "rm", so it can be a program name with args.
6185 set dummy rm; ac_word=$2
6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188 if test "${ac_cv_path_RM+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6216 if test -n "$RM"; then
6217 { echo "$as_me:$LINENO: result: $RM" >&5
6218 echo "${ECHO_T}$RM" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6225 # Extract the first word of "sed", so it can be a program name with args.
6226 set dummy sed; ac_word=$2
6227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229 if test "${ac_cv_path_SED+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6257 if test -n "$SED"; then
6258 { echo "$as_me:$LINENO: result: $SED" >&5
6259 echo "${ECHO_T}$SED" >&6; }
6261 { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6266 # Extract the first word of "tar", so it can be a program name with args.
6267 set dummy tar; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_path_TAR+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6298 if test -n "$TAR"; then
6299 { echo "$as_me:$LINENO: result: $TAR" >&5
6300 echo "${ECHO_T}$TAR" >&6; }
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6307 # Extract the first word of "pwd", so it can be a program name with args.
6308 set dummy pwd; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_BINPWD+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6338 BINPWD=$ac_cv_path_BINPWD
6339 if test -n "$BINPWD"; then
6340 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6341 echo "${ECHO_T}$BINPWD" >&6; }
6343 { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6349 # Extract the first word of "Graphviz", so it can be a program name with args.
6350 set dummy Graphviz; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6380 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6381 if test -n "$GRAPHVIZ"; then
6382 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6383 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6390 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6392 cat >>confdefs.h <<\_ACEOF
6393 #define HAVE_GRAPHVIZ 1
6396 if test "$llvm_cv_os_type" = "MingW" ; then
6397 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6400 cat >>confdefs.h <<_ACEOF
6401 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6405 # Extract the first word of "dot", so it can be a program name with args.
6406 set dummy dot; ac_word=$2
6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409 if test "${ac_cv_path_DOT+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6437 if test -n "$DOT"; then
6438 { echo "$as_me:$LINENO: result: $DOT" >&5
6439 echo "${ECHO_T}$DOT" >&6; }
6441 { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6446 if test "$DOT" != "echo dot" ; then
6448 cat >>confdefs.h <<\_ACEOF
6452 if test "$llvm_cv_os_type" = "MingW" ; then
6453 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6456 cat >>confdefs.h <<_ACEOF
6457 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6461 # Extract the first word of "fdp", so it can be a program name with args.
6462 set dummy fdp; ac_word=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_FDP+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6493 if test -n "$FDP"; then
6494 { echo "$as_me:$LINENO: result: $FDP" >&5
6495 echo "${ECHO_T}$FDP" >&6; }
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6502 if test "$FDP" != "echo fdp" ; then
6504 cat >>confdefs.h <<\_ACEOF
6508 if test "$llvm_cv_os_type" = "MingW" ; then
6509 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6512 cat >>confdefs.h <<_ACEOF
6513 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6517 # Extract the first word of "neato", so it can be a program name with args.
6518 set dummy neato; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_path_NEATO+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6548 NEATO=$ac_cv_path_NEATO
6549 if test -n "$NEATO"; then
6550 { echo "$as_me:$LINENO: result: $NEATO" >&5
6551 echo "${ECHO_T}$NEATO" >&6; }
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6558 if test "$NEATO" != "echo neato" ; then
6560 cat >>confdefs.h <<\_ACEOF
6561 #define HAVE_NEATO 1
6564 if test "$llvm_cv_os_type" = "MingW" ; then
6565 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6568 cat >>confdefs.h <<_ACEOF
6569 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6573 # Extract the first word of "twopi", so it can be a program name with args.
6574 set dummy twopi; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_TWOPI+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6604 TWOPI=$ac_cv_path_TWOPI
6605 if test -n "$TWOPI"; then
6606 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6607 echo "${ECHO_T}$TWOPI" >&6; }
6609 { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6614 if test "$TWOPI" != "echo twopi" ; then
6616 cat >>confdefs.h <<\_ACEOF
6617 #define HAVE_TWOPI 1
6620 if test "$llvm_cv_os_type" = "MingW" ; then
6621 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6624 cat >>confdefs.h <<_ACEOF
6625 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6629 # Extract the first word of "circo", so it can be a program name with args.
6630 set dummy circo; ac_word=$2
6631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633 if test "${ac_cv_path_CIRCO+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6660 CIRCO=$ac_cv_path_CIRCO
6661 if test -n "$CIRCO"; then
6662 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6663 echo "${ECHO_T}$CIRCO" >&6; }
6665 { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6670 if test "$CIRCO" != "echo circo" ; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_CIRCO 1
6676 if test "$llvm_cv_os_type" = "MingW" ; then
6677 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6680 cat >>confdefs.h <<_ACEOF
6681 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6685 for ac_prog in gv gsview32
6687 # Extract the first word of "$ac_prog", so it can be a program name with args.
6688 set dummy $ac_prog; ac_word=$2
6689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691 if test "${ac_cv_path_GV+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 if test -n "$GV"; then
6719 { echo "$as_me:$LINENO: result: $GV" >&5
6720 echo "${ECHO_T}$GV" >&6; }
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6727 test -n "$GV" && break
6729 test -n "$GV" || GV="echo gv"
6731 if test "$GV" != "echo gv" ; then
6733 cat >>confdefs.h <<\_ACEOF
6737 if test "$llvm_cv_os_type" = "MingW" ; then
6738 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6741 cat >>confdefs.h <<_ACEOF
6742 #define LLVM_PATH_GV "$GV${EXEEXT}"
6746 # Extract the first word of "dotty", so it can be a program name with args.
6747 set dummy dotty; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_DOTTY+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6777 DOTTY=$ac_cv_path_DOTTY
6778 if test -n "$DOTTY"; then
6779 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6780 echo "${ECHO_T}$DOTTY" >&6; }
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6787 if test "$DOTTY" != "echo dotty" ; then
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_DOTTY 1
6793 if test "$llvm_cv_os_type" = "MingW" ; then
6794 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797 cat >>confdefs.h <<_ACEOF
6798 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6802 # Extract the first word of "xdot.py", so it can be a program name with args.
6803 set dummy xdot.py; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6833 XDOT_PY=$ac_cv_path_XDOT_PY
6834 if test -n "$XDOT_PY"; then
6835 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6836 echo "${ECHO_T}$XDOT_PY" >&6; }
6838 { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6843 if test "$XDOT_PY" != "echo xdot.py" ; then
6845 cat >>confdefs.h <<\_ACEOF
6846 #define HAVE_XDOT_PY 1
6849 if test "$llvm_cv_os_type" = "MingW" ; then
6850 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853 cat >>confdefs.h <<_ACEOF
6854 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6860 # Extract the first word of "perl", so it can be a program name with args.
6861 set dummy perl; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_path_PERL+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6891 PERL=$ac_cv_path_PERL
6892 if test -n "$PERL"; then
6893 { echo "$as_me:$LINENO: result: $PERL" >&5
6894 echo "${ECHO_T}$PERL" >&6; }
6896 { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6901 if test "$PERL" != "none"; then
6902 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6903 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6904 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6905 { echo "$as_me:$LINENO: result: yes" >&5
6906 echo "${ECHO_T}yes" >&6; }
6909 { echo "$as_me:$LINENO: result: not found" >&5
6910 echo "${ECHO_T}not found" >&6; }
6915 if test x"$PERL" = xnone; then
6918 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6919 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6920 { (exit 1); exit 1; }; }
6926 # Find a good install program. We prefer a C program (faster),
6927 # so one script is as good as another. But avoid the broken or
6928 # incompatible versions:
6929 # SysV /etc/install, /usr/sbin/install
6930 # SunOS /usr/etc/install
6931 # IRIX /sbin/install
6933 # AmigaOS /C/install, which installs bootblocks on floppy discs
6934 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6937 # OS/2's system install, which has a completely different semantic
6938 # ./install, which can be erroneously created by make from ./install.sh.
6939 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6940 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6941 if test -z "$INSTALL"; then
6942 if test "${ac_cv_path_install+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir=.
6950 # Account for people who put trailing slashes in PATH elements.
6952 ./ | .// | /cC/* | \
6953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6954 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6957 # OSF1 and SCO ODT 3.0 have their own names for install.
6958 # Don't use installbsd from OSF since it installs stuff as root
6960 for ac_prog in ginstall scoinst install; do
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6963 if test $ac_prog = install &&
6964 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6965 # AIX install. It has an incompatible calling convention.
6967 elif test $ac_prog = install &&
6968 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6969 # program-specific install script used by HP pwplus--don't use.
6972 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6985 if test "${ac_cv_path_install+set}" = set; then
6986 INSTALL=$ac_cv_path_install
6988 # As a last resort, use the slow shell script. Don't cache a
6989 # value for INSTALL within a source directory, because that will
6990 # break other packages using the cache if that directory is
6991 # removed, or if the value is a relative name.
6992 INSTALL=$ac_install_sh
6995 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6996 echo "${ECHO_T}$INSTALL" >&6; }
6998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6999 # It thinks the first close brace ends the variable substitution.
7000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7007 [\\/$]* | ?:[\\/]* ) ;;
7008 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7011 # Extract the first word of "bzip2", so it can be a program name with args.
7012 set dummy bzip2; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_path_BZIP2+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 BZIP2=$ac_cv_path_BZIP2
7042 if test -n "$BZIP2"; then
7043 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7044 echo "${ECHO_T}$BZIP2" >&6; }
7046 { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7051 # Extract the first word of "cat", so it can be a program name with args.
7052 set dummy cat; ac_word=$2
7053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055 if test "${ac_cv_path_CAT+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 if test -n "$CAT"; then
7083 { echo "$as_me:$LINENO: result: $CAT" >&5
7084 echo "${ECHO_T}$CAT" >&6; }
7086 { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7091 # Extract the first word of "doxygen", so it can be a program name with args.
7092 set dummy doxygen; ac_word=$2
7093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 DOXYGEN=$ac_cv_path_DOXYGEN
7122 if test -n "$DOXYGEN"; then
7123 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7124 echo "${ECHO_T}$DOXYGEN" >&6; }
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7131 # Extract the first word of "groff", so it can be a program name with args.
7132 set dummy groff; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_GROFF+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 GROFF=$ac_cv_path_GROFF
7162 if test -n "$GROFF"; then
7163 { echo "$as_me:$LINENO: result: $GROFF" >&5
7164 echo "${ECHO_T}$GROFF" >&6; }
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7171 # Extract the first word of "gzip", so it can be a program name with args.
7172 set dummy gzip; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 GZIPBIN=$ac_cv_path_GZIPBIN
7202 if test -n "$GZIPBIN"; then
7203 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7204 echo "${ECHO_T}$GZIPBIN" >&6; }
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7211 # Extract the first word of "pod2html", so it can be a program name with args.
7212 set dummy pod2html; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_path_POD2HTML+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 POD2HTML=$ac_cv_path_POD2HTML
7242 if test -n "$POD2HTML"; then
7243 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7244 echo "${ECHO_T}$POD2HTML" >&6; }
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7251 # Extract the first word of "pod2man", so it can be a program name with args.
7252 set dummy pod2man; ac_word=$2
7253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255 if test "${ac_cv_path_POD2MAN+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7270 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 POD2MAN=$ac_cv_path_POD2MAN
7282 if test -n "$POD2MAN"; then
7283 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7284 echo "${ECHO_T}$POD2MAN" >&6; }
7286 { echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6; }
7291 # Extract the first word of "pdfroff", so it can be a program name with args.
7292 set dummy pdfroff; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_path_PDFROFF+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 PDFROFF=$ac_cv_path_PDFROFF
7322 if test -n "$PDFROFF"; then
7323 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7324 echo "${ECHO_T}$PDFROFF" >&6; }
7326 { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7331 # Extract the first word of "runtest", so it can be a program name with args.
7332 set dummy runtest; ac_word=$2
7333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335 if test "${ac_cv_path_RUNTEST+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 RUNTEST=$ac_cv_path_RUNTEST
7362 if test -n "$RUNTEST"; then
7363 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7364 echo "${ECHO_T}$RUNTEST" >&6; }
7366 { echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6; }
7373 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7374 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7376 # Check whether --with-tclinclude was given.
7377 if test "${with_tclinclude+set}" = set; then
7378 withval=$with_tclinclude; with_tclinclude=${withval}
7383 if test "${ac_cv_path_tclsh+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 if test x"${with_tclinclude}" != x ; then
7388 if test -f ${with_tclinclude}/tclsh ; then
7389 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7390 elif test -f ${with_tclinclude}/src/tclsh ; then
7391 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7393 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7394 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7395 { (exit 1); exit 1; }; }
7401 if test x"${ac_cv_path_tclsh}" = x ; then
7402 { echo "$as_me:$LINENO: result: none" >&5
7403 echo "${ECHO_T}none" >&6; }
7404 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
7406 # Extract the first word of "$ac_prog", so it can be a program name with args.
7407 set dummy $ac_prog; ac_word=$2
7408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410 if test "${ac_cv_path_TCLSH+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 TCLSH=$ac_cv_path_TCLSH
7437 if test -n "$TCLSH"; then
7438 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7439 echo "${ECHO_T}$TCLSH" >&6; }
7441 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7446 test -n "$TCLSH" && break
7449 if test x"${TCLSH}" = x ; then
7450 ac_cv_path_tclsh='';
7452 ac_cv_path_tclsh="${TCLSH}";
7455 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7456 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7457 TCLSH="${ac_cv_path_tclsh}"
7461 # Extract the first word of "zip", so it can be a program name with args.
7462 set dummy zip; ac_word=$2
7463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7465 if test "${ac_cv_path_ZIP+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 if test -n "$ZIP"; then
7493 { echo "$as_me:$LINENO: result: $ZIP" >&5
7494 echo "${ECHO_T}$ZIP" >&6; }
7496 { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7501 for ac_prog in ocamlc
7503 # Extract the first word of "$ac_prog", so it can be a program name with args.
7504 set dummy $ac_prog; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_OCAMLC+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 OCAMLC=$ac_cv_path_OCAMLC
7534 if test -n "$OCAMLC"; then
7535 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7536 echo "${ECHO_T}$OCAMLC" >&6; }
7538 { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7543 test -n "$OCAMLC" && break
7546 for ac_prog in ocamlopt
7548 # Extract the first word of "$ac_prog", so it can be a program name with args.
7549 set dummy $ac_prog; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 OCAMLOPT=$ac_cv_path_OCAMLOPT
7579 if test -n "$OCAMLOPT"; then
7580 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7581 echo "${ECHO_T}$OCAMLOPT" >&6; }
7583 { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7588 test -n "$OCAMLOPT" && break
7591 for ac_prog in ocamldep
7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7597 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 OCAMLDEP=$ac_cv_path_OCAMLDEP
7624 if test -n "$OCAMLDEP"; then
7625 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7626 echo "${ECHO_T}$OCAMLDEP" >&6; }
7628 { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7633 test -n "$OCAMLDEP" && break
7636 for ac_prog in ocamldoc
7638 # Extract the first word of "$ac_prog", so it can be a program name with args.
7639 set dummy $ac_prog; ac_word=$2
7640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 OCAMLDOC=$ac_cv_path_OCAMLDOC
7669 if test -n "$OCAMLDOC"; then
7670 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7671 echo "${ECHO_T}$OCAMLDOC" >&6; }
7673 { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7678 test -n "$OCAMLDOC" && break
7681 for ac_prog in gas as
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687 if test "${ac_cv_path_GAS+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 if test -n "$GAS"; then
7715 { echo "$as_me:$LINENO: result: $GAS" >&5
7716 echo "${ECHO_T}$GAS" >&6; }
7718 { echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6; }
7723 test -n "$GAS" && break
7727 { echo "$as_me:$LINENO: checking for linker version" >&5
7728 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7729 if test "${llvm_cv_link_version+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 version_string="$(ld -v 2>&1 | head -1)"
7736 if (echo "$version_string" | grep -q "ld64"); then
7737 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7739 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7743 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7744 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7746 cat >>confdefs.h <<_ACEOF
7747 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7752 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7753 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7754 if test "${llvm_cv_link_use_r+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764 CFLAGS="$CFLAGS -Wl,-R."
7765 cat >conftest.$ac_ext <<_ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (ac_try="$ac_link"
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_link") 2>conftest.er1
7789 grep -v '^ *+' conftest.er1 >conftest.err
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7795 { (case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_try") 2>&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try='test -s conftest$ac_exeext'
7805 { (case "(($ac_try" in
7806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807 *) ac_try_echo=$ac_try;;
7809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810 (eval "$ac_try") 2>&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); }; }; then
7814 llvm_cv_link_use_r=yes
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7819 llvm_cv_link_use_r=no
7822 rm -f core conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7826 ac_cpp='$CPP $CPPFLAGS'
7827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7834 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7835 if test "$llvm_cv_link_use_r" = yes ; then
7837 cat >>confdefs.h <<\_ACEOF
7838 #define HAVE_LINK_R 1
7844 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7845 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7846 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 ac_cpp='$CPP $CPPFLAGS'
7851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7856 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7857 cat >conftest.$ac_ext <<_ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (ac_try="$ac_link"
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_link") 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7887 { (case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_try") 2>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest$ac_exeext'
7897 { (case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_try") 2>&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; }; then
7906 llvm_cv_link_use_export_dynamic=yes
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 llvm_cv_link_use_export_dynamic=no
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7918 ac_cpp='$CPP $CPPFLAGS'
7919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7925 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7926 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7927 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7929 cat >>confdefs.h <<\_ACEOF
7930 #define HAVE_LINK_EXPORT_DYNAMIC 1
7936 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7937 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7938 if test "${llvm_cv_link_use_version_script+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 ac_cpp='$CPP $CPPFLAGS'
7943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7949 # The following code is from the autoconf manual,
7950 # "11.13: Limitations of Usual Tools".
7951 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7952 # Use mktemp if possible; otherwise fall back on mkdir,
7953 # with $RANDOM to make collisions less likely.
7957 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7959 test -n "$tmp" && test -d "$tmp"
7961 tmp=$TMPDIR/foo$$-$RANDOM
7962 (umask 077 && mkdir "$tmp")
7965 echo "{" > "$tmp/export.map"
7966 echo " global: main;" >> "$tmp/export.map"
7967 echo " local: *;" >> "$tmp/export.map"
7968 echo "};" >> "$tmp/export.map"
7970 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7971 cat >conftest.$ac_ext <<_ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7986 rm -f conftest.$ac_objext conftest$ac_exeext
7987 if { (ac_try="$ac_link"
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_link") 2>conftest.er1
7995 grep -v '^ *+' conftest.er1 >conftest.err
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8001 { (case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_try") 2>&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_try") 2>&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 llvm_cv_link_use_version_script=yes
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 llvm_cv_link_use_version_script=no
8028 rm -f core conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030 rm "$tmp/export.map"
8034 ac_cpp='$CPP $CPPFLAGS'
8035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8041 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8042 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8043 if test "$llvm_cv_link_use_version_script" = yes ; then
8044 HAVE_LINK_VERSION_SCRIPT=1
8051 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8052 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8053 if test "${ac_cv_c_const+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8066 /* FIXME: Include the comments suggested by Paul. */
8068 /* Ultrix mips cc rejects this. */
8069 typedef int charset[2];
8071 /* SunOS 4.1.1 cc rejects this. */
8072 char const *const *ccp;
8074 /* NEC SVR4.0.2 mips cc rejects this. */
8075 struct point {int x, y;};
8076 static struct point const zero = {0,0};
8077 /* AIX XL C 1.02.0.0 rejects this.
8078 It does not let you subtract one const X* pointer from another in
8079 an arm of an if-expression whose if-part is not a constant
8081 const char *g = "string";
8082 ccp = &g + (g ? g-g : 0);
8083 /* HPUX 7.0 cc rejects these. */
8086 ccp = (char const *const *) p;
8087 { /* SCO 3.2v4 cc rejects this. */
8089 char const *s = 0 ? (char *) 0 : (char const *) 0;
8094 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8096 const int *foo = &x[0];
8099 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8100 typedef const int *iptr;
8104 { /* AIX XL C 1.02.0.0 rejects this saying
8105 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8106 struct s { int j; const int *ap[3]; };
8107 struct s *b; b->j = 5;
8109 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8113 return !x[0] && !zero.x;
8120 rm -f conftest.$ac_objext
8121 if { (ac_try="$ac_compile"
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_compile") 2>conftest.er1
8129 grep -v '^ *+' conftest.er1 >conftest.err
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8135 { (case "(($ac_try" in
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_try") 2>&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest.$ac_objext'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8165 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8166 if test $ac_cv_c_const = no; then
8168 cat >>confdefs.h <<\_ACEOF
8180 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8181 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8182 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8183 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 cat >conftest.$ac_ext <<_ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193 #include <sys/types.h>
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8214 grep -v '^ *+' conftest.er1 >conftest.err
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest.$ac_objext'
8230 { (case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_try") 2>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 eval "$as_ac_Header=yes"
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8244 eval "$as_ac_Header=no"
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 ac_res=`eval echo '${'$as_ac_Header'}'`
8250 { echo "$as_me:$LINENO: result: $ac_res" >&5
8251 echo "${ECHO_T}$ac_res" >&6; }
8252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8253 cat >>confdefs.h <<_ACEOF
8254 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8257 ac_header_dirent=$ac_hdr; break
8261 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8262 if test $ac_header_dirent = dirent.h; then
8263 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8264 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8265 if test "${ac_cv_search_opendir+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 ac_func_search_save_LIBS=$LIBS
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8276 /* Override any GCC internal prototype to avoid an error.
8277 Use char because int might match the return type of a GCC
8278 builtin and then its argument prototype would still apply. */
8291 for ac_lib in '' dir; do
8292 if test -z "$ac_lib"; then
8293 ac_res="none required"
8296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_link") 2>conftest.er1
8307 grep -v '^ *+' conftest.er1 >conftest.err
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; } &&
8322 { ac_try='test -s conftest$ac_exeext'
8323 { (case "(($ac_try" in
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328 (eval "$ac_try") 2>&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_search_opendir=$ac_res
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8340 rm -f core conftest.err conftest.$ac_objext \
8342 if test "${ac_cv_search_opendir+set}" = set; then
8346 if test "${ac_cv_search_opendir+set}" = set; then
8349 ac_cv_search_opendir=no
8352 LIBS=$ac_func_search_save_LIBS
8354 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8355 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8356 ac_res=$ac_cv_search_opendir
8357 if test "$ac_res" != no; then
8358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8363 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8364 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8365 if test "${ac_cv_search_opendir+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8368 ac_func_search_save_LIBS=$LIBS
8369 cat >conftest.$ac_ext <<_ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8376 /* Override any GCC internal prototype to avoid an error.
8377 Use char because int might match the return type of a GCC
8378 builtin and then its argument prototype would still apply. */
8391 for ac_lib in '' x; do
8392 if test -z "$ac_lib"; then
8393 ac_res="none required"
8396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (ac_try="$ac_link"
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_link") 2>conftest.er1
8407 grep -v '^ *+' conftest.er1 >conftest.err
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8413 { (case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_try") 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_try") 2>&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_search_opendir=$ac_res
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8440 rm -f core conftest.err conftest.$ac_objext \
8442 if test "${ac_cv_search_opendir+set}" = set; then
8446 if test "${ac_cv_search_opendir+set}" = set; then
8449 ac_cv_search_opendir=no
8452 LIBS=$ac_func_search_save_LIBS
8454 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8455 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8456 ac_res=$ac_cv_search_opendir
8457 if test "$ac_res" != no; then
8458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8465 for ac_header in dlfcn.h
8467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 ac_res=`eval echo '${'$as_ac_Header'}'`
8475 { echo "$as_me:$LINENO: result: $ac_res" >&5
8476 echo "${ECHO_T}$ac_res" >&6; }
8478 # Is the header compilable?
8479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8488 #include <$ac_header>
8490 rm -f conftest.$ac_objext
8491 if { (ac_try="$ac_compile"
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_compile") 2>conftest.er1
8499 grep -v '^ *+' conftest.er1 >conftest.err
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8505 { (case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_try") 2>&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; } &&
8514 { ac_try='test -s conftest.$ac_objext'
8515 { (case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_try") 2>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 ac_header_compiler=yes
8526 echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8529 ac_header_compiler=no
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8534 echo "${ECHO_T}$ac_header_compiler" >&6; }
8536 # Is the header present?
8537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 #include <$ac_header>
8547 if { (ac_try="$ac_cpp conftest.$ac_ext"
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8555 grep -v '^ *+' conftest.er1 >conftest.err
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } >/dev/null; then
8560 if test -s conftest.err; then
8561 ac_cpp_err=$ac_c_preproc_warn_flag
8562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8569 if test -z "$ac_cpp_err"; then
8570 ac_header_preproc=yes
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 ac_header_preproc=no
8578 rm -f conftest.err conftest.$ac_ext
8579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8580 echo "${ECHO_T}$ac_header_preproc" >&6; }
8582 # So? What about this header?
8583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8589 ac_header_preproc=yes
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8605 ## ------------------------------ ##
8606 ## Report this to bugs@yourdomain ##
8607 ## ------------------------------ ##
8609 ) | sed "s/^/$as_me: WARNING: /" >&2
8612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 eval "$as_ac_Header=\$ac_header_preproc"
8619 ac_res=`eval echo '${'$as_ac_Header'}'`
8620 { echo "$as_me:$LINENO: result: $ac_res" >&5
8621 echo "${ECHO_T}$ac_res" >&6; }
8624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8625 cat >>confdefs.h <<_ACEOF
8626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8633 # Check whether --enable-ltdl-install was given.
8634 if test "${enable_ltdl_install+set}" = set; then
8635 enableval=$enable_ltdl_install;
8641 if test x"${enable_ltdl_install-no}" != xno; then
8643 INSTALL_LTDL_FALSE='#'
8645 INSTALL_LTDL_TRUE='#'
8651 if test x"${enable_ltdl_convenience-no}" != xno; then
8652 CONVENIENCE_LTDL_TRUE=
8653 CONVENIENCE_LTDL_FALSE='#'
8655 CONVENIENCE_LTDL_TRUE='#'
8656 CONVENIENCE_LTDL_FALSE=
8660 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8661 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8663 libname_spec='lib$name'
8671 shlibpath_overrides_runpath=unknown
8673 dynamic_linker="$host_os ld.so"
8674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8675 if test "$GCC" = yes; then
8676 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8677 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8678 # if the path contains ";" then we assume it to be the separator
8679 # otherwise default to the standard path separator (i.e. ":") - it is
8680 # assumed that no part of a normal pathname contains ";" but that should
8681 # okay in the real world where ";" in dirpaths is itself problematic.
8682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8684 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8687 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8689 need_lib_prefix=unknown
8690 hardcode_into_libs=no
8692 # when you set need_version to no, make sure it does not cause -set_version
8693 # flags to be left without arguments
8694 need_version=unknown
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8700 shlibpath_var=LIBPATH
8702 # AIX 3 has no versioning support, so we append a major version to the name.
8703 soname_spec='${libname}${release}${shared_ext}$major'
8710 hardcode_into_libs=yes
8711 if test "$host_cpu" = ia64; then
8712 # AIX 5 supports IA64
8713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8714 shlibpath_var=LD_LIBRARY_PATH
8716 # With GCC up to 2.95.x, collect2 would create an import file
8717 # for dependence libraries. The import file would start with
8718 # the line `#! .'. This would cause the generated library to
8719 # depend on `.', always an invalid library. This was fixed in
8720 # development snapshots of GCC prior to 3.0.
8722 aix4 | aix4.[01] | aix4.[01].*)
8723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8725 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8733 # soname into executable. Probably we can add versioning support to
8734 # collect2, so additional links can be useful in future.
8735 if test "$aix_use_runtimelinking" = yes; then
8736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8737 # instead of lib<name>.a to let people know that these are not
8738 # typical AIX shared libraries.
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8741 # We preserve .a as extension for shared libraries through AIX4.2
8742 # and later when we are not doing run time linking.
8743 library_names_spec='${libname}${release}.a $libname.a'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8746 shlibpath_var=LIBPATH
8751 library_names_spec='$libname.ixlibrary $libname.a'
8752 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8753 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'
8757 library_names_spec='${libname}${shared_ext}'
8758 dynamic_linker="$host_os ld.so"
8759 shlibpath_var=LIBRARY_PATH
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8766 soname_spec='${libname}${release}${shared_ext}$major'
8767 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8768 shlibpath_var=LD_LIBRARY_PATH
8769 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8770 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8771 # the default ld.so.conf also contains /usr/contrib/lib and
8772 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8773 # libtool to hard-code these into programs
8776 cygwin* | mingw* | pw32*)
8777 version_type=windows
8782 case $GCC,$host_os in
8783 yes,cygwin* | yes,mingw* | yes,pw32*)
8784 library_names_spec='$libname.dll.a'
8785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8786 postinstall_cmds='base_file=`basename \${file}`~
8787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8788 dldir=$destdir/`dirname \$dlpath`~
8789 test -d \$dldir || mkdir -p \$dldir~
8790 $install_prog $dir/$dlname \$dldir/$dlname~
8791 chmod a+x \$dldir/$dlname'
8792 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8793 dlpath=$dir/\$dldll~
8795 shlibpath_overrides_runpath=yes
8799 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8800 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8801 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8804 # MinGW DLLs use traditional 'lib' prefix
8805 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8807 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8808 # It is most probably a Windows format PATH printed by
8809 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8810 # path with ; separators, and with drive letters. We can handle the
8811 # drive letters (cygwin fileutils understands them), so leave them,
8812 # especially as we might pass files found there to a mingw objdump,
8813 # which wouldn't understand a cygwinified path. Ahh.
8814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8820 # pw32 DLLs use 'pw' prefix rather than 'lib'
8821 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8830 dynamic_linker='Win32 ld.exe'
8831 # FIXME: first we should search . and the directory the executable is in
8835 darwin* | rhapsody*)
8836 dynamic_linker="$host_os dyld"
8840 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8841 soname_spec='${libname}${release}${major}$shared_ext'
8842 shlibpath_overrides_runpath=yes
8843 shlibpath_var=DYLD_LIBRARY_PATH
8844 shrext_cmds='.dylib'
8845 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8846 if test "$GCC" = yes; then
8847 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"`
8849 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8851 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 shlibpath_var=LD_LIBRARY_PATH
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 shlibpath_var=LD_LIBRARY_PATH
8874 shlibpath_overrides_runpath=no
8875 hardcode_into_libs=yes
8876 dynamic_linker='GNU ld.so'
8879 freebsd* | dragonfly*)
8880 # DragonFly does not have aout. When/if they implement a new
8881 # versioning mechanism, adjust this.
8882 if test -x /usr/bin/objformat; then
8883 objformat=`/usr/bin/objformat`
8886 freebsd[123]*) objformat=aout ;;
8890 version_type=freebsd-$objformat
8891 case $version_type in
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8902 shlibpath_var=LD_LIBRARY_PATH
8905 shlibpath_overrides_runpath=yes
8907 freebsd3.[01]* | freebsdelf3.[01]*)
8908 shlibpath_overrides_runpath=yes
8909 hardcode_into_libs=yes
8911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8913 shlibpath_overrides_runpath=no
8914 hardcode_into_libs=yes
8916 freebsd*) # from 4.6 on
8917 shlibpath_overrides_runpath=yes
8918 hardcode_into_libs=yes
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 hardcode_into_libs=yes
8933 hpux9* | hpux10* | hpux11*)
8934 # Give a soname corresponding to the major version so that dld.sl refuses to
8935 # link against other versions.
8942 hardcode_into_libs=yes
8943 dynamic_linker="$host_os dld.so"
8944 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 if test "X$HPUX_IA64_MODE" = X32; then
8949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8957 hardcode_into_libs=yes
8958 dynamic_linker="$host_os dld.sl"
8959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8968 dynamic_linker="$host_os dld.sl"
8969 shlibpath_var=SHLIB_PATH
8970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 soname_spec='${libname}${release}${shared_ext}$major'
8975 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8976 postinstall_cmds='chmod 555 $lib'
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=no
8988 hardcode_into_libs=yes
8991 irix5* | irix6* | nonstopux*)
8993 nonstopux*) version_type=nonstopux ;;
8995 if test "$lt_cv_prog_gnu_ld" = yes; then
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9006 irix5* | nonstopux*)
9010 case $LD in # libtool.m4 will add one of these switches to LD
9011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9012 libsuff= shlibsuff= libmagic=32-bit;;
9013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9014 libsuff=32 shlibsuff=N32 libmagic=N32;;
9015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9017 *) libsuff= shlibsuff= libmagic=never-match;;
9021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9022 shlibpath_overrides_runpath=no
9023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9025 hardcode_into_libs=yes
9028 # No shared lib support for Linux oldld, aout, or coff.
9029 linux*oldld* | linux*aout* | linux*coff*)
9033 # This must be Linux ELF.
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=no
9043 # This implies no fast_install, which is unacceptable.
9044 # Some rework will be needed to allow for fast_install
9045 # before this can be enabled.
9046 hardcode_into_libs=yes
9048 # Append ld.so.conf contents to the search path
9049 if test -f /etc/ld.so.conf; then
9050 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' ' '`
9051 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9054 # We used to test for /lib/ld.so.1 and disable shared libraries on
9055 # powerpc, because MkLinux only supported shared libraries with the
9056 # GNU dynamic linker. Since this was broken with cross compilers,
9057 # most powerpc-linux boxes support dynamic linking these days and
9058 # people can always --disable-shared, the test was removed, and we
9059 # assume the GNU/Linux dynamic linker is in use.
9060 dynamic_linker='GNU/Linux ld.so'
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 shlibpath_overrides_runpath=no
9071 hardcode_into_libs=yes
9072 dynamic_linker='GNU ld.so'
9079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9082 dynamic_linker='NetBSD (a.out) ld.so'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 dynamic_linker='NetBSD ld.elf_so'
9088 shlibpath_var=LD_LIBRARY_PATH
9089 shlibpath_overrides_runpath=yes
9090 hardcode_into_libs=yes
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=yes
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 shlibpath_overrides_runpath=yes
9112 sys_lib_dlsearch_path_spec="/usr/lib"
9114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9117 *) need_version=no ;;
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9124 openbsd2.[89] | openbsd2.[89].*)
9125 shlibpath_overrides_runpath=no
9128 shlibpath_overrides_runpath=yes
9132 shlibpath_overrides_runpath=yes
9137 libname_spec='$name'
9140 library_names_spec='$libname${shared_ext} $libname.a'
9141 dynamic_linker='OS/2 ld.exe'
9142 shlibpath_var=LIBPATH
9145 osf3* | osf4* | osf5*)
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=yes
9164 hardcode_into_libs=yes
9165 # ldd complains unless libraries are executable
9166 postinstall_cmds='chmod +x $lib'
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 shlibpath_overrides_runpath=yes
9175 if test "$with_gnu_ld" = yes; then
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 case $host_vendor in
9188 shlibpath_overrides_runpath=no
9190 export_dynamic_flag_spec='${wl}-Blargedynsym'
9191 runpath_var=LD_RUN_PATH
9199 shlibpath_overrides_runpath=no
9200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9206 if test -d /usr/nec ;then
9208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9209 soname_spec='$libname${shared_ext}.$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9215 version_type=freebsd-elf
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 hardcode_into_libs=yes
9222 if test "$with_gnu_ld" = yes; then
9223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9224 shlibpath_overrides_runpath=no
9226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9227 shlibpath_overrides_runpath=yes
9230 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9234 sys_lib_dlsearch_path_spec='/usr/lib'
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9248 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9249 echo "${ECHO_T}$dynamic_linker" >&6; }
9250 test "$dynamic_linker" = no && can_build_shared=no
9252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9253 if test "$GCC" = yes; then
9254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9258 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9259 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9260 if test "${libltdl_cv_shlibext+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 eval libltdl_cv_shlibext=$shrext_cmds
9268 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9269 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9270 if test -n "$libltdl_cv_shlibext"; then
9272 cat >>confdefs.h <<_ACEOF
9273 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9279 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9280 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9281 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 libltdl_cv_shlibpath_var="$shlibpath_var"
9286 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9287 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9288 if test -n "$libltdl_cv_shlibpath_var"; then
9290 cat >>confdefs.h <<_ACEOF
9291 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9297 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9298 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9299 if test "${libltdl_cv_sys_search_path+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9304 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9305 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9306 if test -n "$libltdl_cv_sys_search_path"; then
9308 for dir in $libltdl_cv_sys_search_path; do
9309 if test -z "$sys_search_path"; then
9310 sys_search_path="$dir"
9312 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9316 cat >>confdefs.h <<_ACEOF
9317 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9322 { echo "$as_me:$LINENO: checking for objdir" >&5
9323 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9324 if test "${libltdl_cv_objdir+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 libltdl_cv_objdir="$objdir"
9328 if test -n "$objdir"; then
9331 rm -f .libs 2>/dev/null
9332 mkdir .libs 2>/dev/null
9333 if test -d .libs; then
9334 libltdl_cv_objdir=.libs
9336 # MS-DOS does not allow filenames that begin with a dot.
9337 libltdl_cv_objdir=_libs
9339 rmdir .libs 2>/dev/null
9343 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9344 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9346 cat >>confdefs.h <<_ACEOF
9347 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9355 # Check for command to grab the raw symbol name followed by C symbol from nm.
9356 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9357 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9358 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 # These are sane defaults that work on at least a few old systems.
9363 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9365 # Character class describing NM global symbol codes.
9366 symcode='[BCDEGRST]'
9368 # Regexp to match symbols that can be accessed directly from C.
9369 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9371 # Transform an extracted symbol line into a proper C declaration
9372 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9374 # Transform an extracted symbol line into symbol name and symbol address
9375 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'"
9377 # Define system-specific variables.
9382 cygwin* | mingw* | pw32*)
9383 symcode='[ABCDGISTW]'
9385 hpux*) # Its linker distinguishes data from code symbols
9386 if test "$host_cpu" = ia64; then
9387 symcode='[ABCDEGRST]'
9389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9390 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'"
9393 if test "$host_cpu" = ia64; then
9394 symcode='[ABCDGIRSTW]'
9395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9396 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'"
9400 symcode='[BCDEGRST]'
9403 symcode='[BCDEGQRST]'
9414 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9422 # Handle CRLF in mingw tool chain
9426 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9430 # If we're using GNU nm, then use its standard symbol codes.
9431 case `$NM -V 2>&1` in
9432 *GNU* | *'with BFD'*)
9433 symcode='[ABCDGIRSTW]' ;;
9436 # Try without a prefix undercore, then with it.
9437 for ac_symprfx in "" "_"; do
9439 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9440 symxfrm="\\1 $ac_symprfx\\2 \\2"
9442 # Write the raw and C identifiers.
9443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9445 # Check to see that the pipe works correctly.
9449 cat > conftest.$ac_ext <<EOF
9454 void nm_test_func(){}
9458 int main(){nm_test_var='a';nm_test_func();return(0);}
9461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462 (eval $ac_compile) 2>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; then
9466 # Now try to grab the symbols.
9468 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9469 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } && test -s "$nlist"; then
9473 # Try sorting and uniquifying the output.
9474 if sort "$nlist" | uniq > "$nlist"T; then
9475 mv -f "$nlist"T "$nlist"
9480 # Make sure that we snagged all the symbols we need.
9481 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9482 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9483 cat <<EOF > conftest.$ac_ext
9489 # Now generate the symbol file.
9490 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9492 cat <<EOF >> conftest.$ac_ext
9493 #if defined (__STDC__) && __STDC__
9494 # define lt_ptr_t void *
9496 # define lt_ptr_t char *
9500 /* The mapping between symbol names and symbols. */
9505 lt_preloaded_symbols[] =
9508 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9509 cat <<\EOF >> conftest.$ac_ext
9517 # Now try linking the two files.
9518 mv conftest.$ac_objext conftstm.$ac_objext
9519 lt_save_LIBS="$LIBS"
9520 lt_save_CFLAGS="$CFLAGS"
9521 LIBS="conftstm.$ac_objext"
9522 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9530 LIBS="$lt_save_LIBS"
9531 CFLAGS="$lt_save_CFLAGS"
9533 echo "cannot find nm_test_func in $nlist" >&5
9536 echo "cannot find nm_test_var in $nlist" >&5
9539 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9542 echo "$progname: failed program was:" >&5
9543 cat conftest.$ac_ext >&5
9545 rm -f conftest* conftst*
9547 # Do not use the global_symbol_pipe unless it works.
9548 if test "$pipe_works" = yes; then
9551 lt_cv_sys_global_symbol_pipe=
9557 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9558 lt_cv_sys_global_symbol_to_cdecl=
9560 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9561 { echo "$as_me:$LINENO: result: failed" >&5
9562 echo "${ECHO_T}failed" >&6; }
9564 { echo "$as_me:$LINENO: result: ok" >&5
9565 echo "${ECHO_T}ok" >&6; }
9569 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9570 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9571 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9575 libltdl_cv_preloaded_symbols=yes
9577 libltdl_cv_preloaded_symbols=no
9581 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9582 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9583 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9585 cat >>confdefs.h <<\_ACEOF
9586 #define HAVE_PRELOADED_SYMBOLS 1
9594 ac_cpp='$CPP $CPPFLAGS'
9595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9600 { echo "$as_me:$LINENO: checking for shl_load" >&5
9601 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9602 if test "${ac_cv_func_shl_load+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 cat >conftest.$ac_ext <<_ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9613 #define shl_load innocuous_shl_load
9615 /* System header to define __stub macros and hopefully few prototypes,
9616 which can conflict with char shl_load (); below.
9617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9618 <limits.h> exists even on freestanding compilers. */
9621 # include <limits.h>
9623 # include <assert.h>
9628 /* Override any GCC internal prototype to avoid an error.
9629 Use char because int might match the return type of a GCC
9630 builtin and then its argument prototype would still apply. */
9635 /* The GNU C library defines this for functions which it implements
9636 to always fail with ENOSYS. Some functions are actually named
9637 something starting with __ and the normal name is an alias. */
9638 #if defined __stub_shl_load || defined __stub___shl_load
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_link") 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9665 { (case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_try") 2>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try='test -s conftest$ac_exeext'
9675 { (case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_try") 2>&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 ac_cv_func_shl_load=yes
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ac_cv_func_shl_load=no
9692 rm -f core conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9695 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9696 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9697 if test $ac_cv_func_shl_load = yes; then
9699 cat >>confdefs.h <<\_ACEOF
9700 #define HAVE_SHL_LOAD 1
9704 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9705 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9706 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 ac_check_lib_save_LIBS=$LIBS
9711 cat >conftest.$ac_ext <<_ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9718 /* Override any GCC internal prototype to avoid an error.
9719 Use char because int might match the return type of a GCC
9720 builtin and then its argument prototype would still apply. */
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_link") 2>conftest.er1
9742 grep -v '^ *+' conftest.er1 >conftest.err
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9748 { (case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_try") 2>&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_try") 2>&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_cv_lib_dld_shl_load=yes
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_cv_lib_dld_shl_load=no
9775 rm -f core conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777 LIBS=$ac_check_lib_save_LIBS
9779 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9780 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9781 if test $ac_cv_lib_dld_shl_load = yes; then
9783 cat >>confdefs.h <<\_ACEOF
9784 #define HAVE_SHL_LOAD 1
9787 LIBADD_DL="$LIBADD_DL -ldld"
9789 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 ac_check_lib_save_LIBS=$LIBS
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9803 /* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
9827 grep -v '^ *+' conftest.er1 >conftest.err
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_try") 2>&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_dl_dlopen=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_cv_lib_dl_dlopen=no
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9865 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9866 if test $ac_cv_lib_dl_dlopen = yes; then
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_LIBDL 1
9872 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9874 cat >conftest.$ac_ext <<_ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9901 grep -v '^ *+' conftest.er1 >conftest.err
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9927 cat >>confdefs.h <<\_ACEOF
9928 #define HAVE_LIBDL 1
9930 libltdl_cv_func_dlopen="yes"
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9935 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9936 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9937 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 ac_check_lib_save_LIBS=$LIBS
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
9973 grep -v '^ *+' conftest.er1 >conftest.err
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; } &&
9988 { ac_try='test -s conftest$ac_exeext'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_cv_lib_svld_dlopen=yes
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 ac_cv_lib_svld_dlopen=no
10006 rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10010 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10011 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10012 if test $ac_cv_lib_svld_dlopen = yes; then
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_LIBDL 1
10018 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10020 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10021 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_check_lib_save_LIBS=$LIBS
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10044 return dld_link ();
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
10058 grep -v '^ *+' conftest.er1 >conftest.err
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } &&
10063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_try") 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_lib_dld_dld_link=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_cv_lib_dld_dld_link=no
10091 rm -f core conftest.err conftest.$ac_objext \
10092 conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_check_lib_save_LIBS
10095 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10096 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10097 if test $ac_cv_lib_dld_dld_link = yes; then
10099 cat >>confdefs.h <<\_ACEOF
10103 LIBADD_DL="$LIBADD_DL -ldld"
10105 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10106 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10107 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10118 #define _dyld_func_lookup innocuous__dyld_func_lookup
10120 /* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char _dyld_func_lookup (); below.
10122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123 <limits.h> exists even on freestanding compilers. */
10126 # include <limits.h>
10128 # include <assert.h>
10131 #undef _dyld_func_lookup
10133 /* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
10139 char _dyld_func_lookup ();
10140 /* The GNU C library defines this for functions which it implements
10141 to always fail with ENOSYS. Some functions are actually named
10142 something starting with __ and the normal name is an alias. */
10143 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10150 return _dyld_func_lookup ();
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_link") 2>conftest.er1
10164 grep -v '^ *+' conftest.er1 >conftest.err
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; } &&
10179 { ac_try='test -s conftest$ac_exeext'
10180 { (case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_try") 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_func__dyld_func_lookup=yes
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_cv_func__dyld_func_lookup=no
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10200 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10201 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10202 if test $ac_cv_func__dyld_func_lookup = yes; then
10204 cat >>confdefs.h <<\_ACEOF
10205 #define HAVE_DYLD 1
10219 rm -f core conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext conftest.$ac_ext
10231 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10233 lt_save_LIBS="$LIBS"
10234 LIBS="$LIBS $LIBADD_DL"
10236 for ac_func in dlerror
10238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 cat >conftest.$ac_ext <<_ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10252 #define $ac_func innocuous_$ac_func
10254 /* System header to define __stub macros and hopefully few prototypes,
10255 which can conflict with char $ac_func (); below.
10256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10257 <limits.h> exists even on freestanding compilers. */
10260 # include <limits.h>
10262 # include <assert.h>
10267 /* Override any GCC internal prototype to avoid an error.
10268 Use char because int might match the return type of a GCC
10269 builtin and then its argument prototype would still apply. */
10274 /* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277 #if defined __stub_$ac_func || defined __stub___$ac_func
10284 return $ac_func ();
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (ac_try="$ac_link"
10291 case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_link") 2>conftest.er1
10298 grep -v '^ *+' conftest.er1 >conftest.err
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10304 { (case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 (eval "$ac_try") 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; } &&
10313 { ac_try='test -s conftest$ac_exeext'
10314 { (case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_try") 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 eval "$as_ac_var=yes"
10325 echo "$as_me: failed program was:" >&5
10326 sed 's/^/| /' conftest.$ac_ext >&5
10328 eval "$as_ac_var=no"
10331 rm -f core conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10334 ac_res=`eval echo '${'$as_ac_var'}'`
10335 { echo "$as_me:$LINENO: result: $ac_res" >&5
10336 echo "${ECHO_T}$ac_res" >&6; }
10337 if test `eval echo '${'$as_ac_var'}'` = yes; then
10338 cat >>confdefs.h <<_ACEOF
10339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10345 LIBS="$lt_save_LIBS"
10348 ac_cpp='$CPP $CPPFLAGS'
10349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10355 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10356 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10357 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 ac_cv_sys_symbol_underscore=no
10361 cat > conftest.$ac_ext <<EOF
10362 void nm_test_func(){}
10363 int main(){nm_test_func;return 0;}
10365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366 (eval $ac_compile) 2>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; then
10370 # Now try to grab the symbols.
10371 ac_nlist=conftest.nm
10372 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10373 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } && test -s "$ac_nlist"; then
10377 # See whether the symbols have a leading underscore.
10378 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10379 ac_cv_sys_symbol_underscore=yes
10381 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10384 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10388 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10391 echo "configure: failed program was:" >&5
10397 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10398 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10401 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10402 if test x"$libltdl_cv_func_dlopen" = xyes ||
10403 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10404 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10405 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10406 if test "${libltdl_cv_need_uscore+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 libltdl_cv_need_uscore=unknown
10411 LIBS="$LIBS $LIBADD_DL"
10412 if test "$cross_compiling" = yes; then :
10413 libltdl_cv_need_uscore=cross
10415 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10416 lt_status=$lt_dlunknown
10417 cat > conftest.$ac_ext <<EOF
10418 #line 10423 "configure"
10419 #include "confdefs.h"
10428 # define LT_DLGLOBAL RTLD_GLOBAL
10431 # define LT_DLGLOBAL DL_GLOBAL
10433 # define LT_DLGLOBAL 0
10437 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10438 find out it does not work in some platform. */
10439 #ifndef LT_DLLAZY_OR_NOW
10441 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10444 # define LT_DLLAZY_OR_NOW DL_LAZY
10447 # define LT_DLLAZY_OR_NOW RTLD_NOW
10450 # define LT_DLLAZY_OR_NOW DL_NOW
10452 # define LT_DLLAZY_OR_NOW 0
10460 extern "C" void exit (int);
10463 void fnord() { int i=42;}
10466 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10467 int status = $lt_dlunknown;
10471 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10472 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10473 /* dlclose (self); */
10481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482 (eval $ac_link) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10486 (./conftest; exit; ) >&5 2>/dev/null
10488 case x$lt_status in
10489 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10490 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10491 x$lt_dlunknown|x*) ;;
10494 # compilation failed
10503 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10504 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10508 if test x"$libltdl_cv_need_uscore" = xyes; then
10510 cat >>confdefs.h <<\_ACEOF
10511 #define NEED_USCORE 1
10517 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10518 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10519 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10522 # PORTME does your system automatically load deplibs for dlopen?
10523 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10524 # For now, we just catch OSes we know something about -- in the
10525 # future, we'll try test this programmatically.
10526 libltdl_cv_sys_dlopen_deplibs=unknown
10528 aix3*|aix4.1.*|aix4.2.*)
10529 # Unknown whether this is true for these versions of AIX, but
10530 # we want this `case' here to explicitly catch those versions.
10531 libltdl_cv_sys_dlopen_deplibs=unknown
10534 libltdl_cv_sys_dlopen_deplibs=yes
10537 # Assuming the user has installed a libdl from somewhere, this is true
10538 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10539 libltdl_cv_sys_dlopen_deplibs=yes
10541 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10542 # GNU and its variants, using gnu ld.so (Glibc)
10543 libltdl_cv_sys_dlopen_deplibs=yes
10546 libltdl_cv_sys_dlopen_deplibs=yes
10549 libltdl_cv_sys_dlopen_deplibs=yes
10551 irix[12345]*|irix6.[01]*)
10552 # Catch all versions of IRIX before 6.2, and indicate that we don't
10553 # know how it worked for any of those versions.
10554 libltdl_cv_sys_dlopen_deplibs=unknown
10557 # The case above catches anything before 6.2, and it's known that
10558 # at 6.2 and later dlopen does load deplibs.
10559 libltdl_cv_sys_dlopen_deplibs=yes
10562 libltdl_cv_sys_dlopen_deplibs=yes
10565 libltdl_cv_sys_dlopen_deplibs=yes
10568 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10569 # it did *not* use an RPATH in a shared library to find objects the
10570 # library depends on, so we explicitly say `no'.
10571 libltdl_cv_sys_dlopen_deplibs=no
10573 osf5.0|osf5.0a|osf5.1)
10574 # dlopen *does* load deplibs and with the right loader patch applied
10575 # it even uses RPATH in a shared library to search for shared objects
10576 # that the library depends on, but there's no easy way to know if that
10577 # patch is installed. Since this is the case, all we can really
10578 # say is unknown -- it depends on the patch being installed. If
10579 # it is, this changes to `yes'. Without it, it would be `no'.
10580 libltdl_cv_sys_dlopen_deplibs=unknown
10583 # the two cases above should catch all versions of osf <= 5.1. Read
10584 # the comments above for what we know about them.
10585 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10586 # is used to find them so we can finally say `yes'.
10587 libltdl_cv_sys_dlopen_deplibs=yes
10590 libltdl_cv_sys_dlopen_deplibs=yes
10592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10593 libltdl_cv_sys_dlopen_deplibs=yes
10598 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10599 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10600 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10602 cat >>confdefs.h <<\_ACEOF
10603 #define LTDL_DLOPEN_DEPLIBS 1
10609 for ac_header in argz.h
10611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 ac_res=`eval echo '${'$as_ac_Header'}'`
10619 { echo "$as_me:$LINENO: result: $ac_res" >&5
10620 echo "${ECHO_T}$ac_res" >&6; }
10622 # Is the header compilable?
10623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10625 cat >conftest.$ac_ext <<_ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 $ac_includes_default
10632 #include <$ac_header>
10634 rm -f conftest.$ac_objext
10635 if { (ac_try="$ac_compile"
10636 case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_compile") 2>conftest.er1
10643 grep -v '^ *+' conftest.er1 >conftest.err
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10649 { (case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest.$ac_objext'
10659 { (case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664 (eval "$ac_try") 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_header_compiler=yes
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 ac_header_compiler=no
10676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10678 echo "${ECHO_T}$ac_header_compiler" >&6; }
10680 # Is the header present?
10681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10683 cat >conftest.$ac_ext <<_ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10689 #include <$ac_header>
10691 if { (ac_try="$ac_cpp conftest.$ac_ext"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } >/dev/null; then
10704 if test -s conftest.err; then
10705 ac_cpp_err=$ac_c_preproc_warn_flag
10706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10713 if test -z "$ac_cpp_err"; then
10714 ac_header_preproc=yes
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ac_header_preproc=no
10722 rm -f conftest.err conftest.$ac_ext
10723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10724 echo "${ECHO_T}$ac_header_preproc" >&6; }
10726 # So? What about this header?
10727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10733 ac_header_preproc=yes
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10749 ## ------------------------------ ##
10750 ## Report this to bugs@yourdomain ##
10751 ## ------------------------------ ##
10753 ) | sed "s/^/$as_me: WARNING: /" >&2
10756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 eval "$as_ac_Header=\$ac_header_preproc"
10763 ac_res=`eval echo '${'$as_ac_Header'}'`
10764 { echo "$as_me:$LINENO: result: $ac_res" >&5
10765 echo "${ECHO_T}$ac_res" >&6; }
10768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10769 cat >>confdefs.h <<_ACEOF
10770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10778 { echo "$as_me:$LINENO: checking for error_t" >&5
10779 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10780 if test "${ac_cv_type_error_t+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 cat >conftest.$ac_ext <<_ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10793 typedef error_t ac__type_new_;
10797 if ((ac__type_new_ *) 0)
10799 if (sizeof (ac__type_new_))
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10814 grep -v '^ *+' conftest.er1 >conftest.err
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10820 { (case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_try") 2>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest.$ac_objext'
10830 { (case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_try") 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 ac_cv_type_error_t=yes
10841 echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10844 ac_cv_type_error_t=no
10847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10849 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10850 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10851 if test $ac_cv_type_error_t = yes; then
10853 cat >>confdefs.h <<_ACEOF
10854 #define HAVE_ERROR_T 1
10860 cat >>confdefs.h <<\_ACEOF
10861 #define error_t int
10872 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 cat >conftest.$ac_ext <<_ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10888 #define $ac_func innocuous_$ac_func
10890 /* System header to define __stub macros and hopefully few prototypes,
10891 which can conflict with char $ac_func (); below.
10892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10893 <limits.h> exists even on freestanding compilers. */
10896 # include <limits.h>
10898 # include <assert.h>
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10910 /* The GNU C library defines this for functions which it implements
10911 to always fail with ENOSYS. Some functions are actually named
10912 something starting with __ and the normal name is an alias. */
10913 #if defined __stub_$ac_func || defined __stub___$ac_func
10920 return $ac_func ();
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_link") 2>conftest.er1
10934 grep -v '^ *+' conftest.er1 >conftest.err
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10940 { (case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_try") 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest$ac_exeext'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 eval "$as_ac_var=yes"
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 eval "$as_ac_var=no"
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10970 ac_res=`eval echo '${'$as_ac_var'}'`
10971 { echo "$as_me:$LINENO: result: $ac_res" >&5
10972 echo "${ECHO_T}$ac_res" >&6; }
10973 if test `eval echo '${'$as_ac_var'}'` = yes; then
10974 cat >>confdefs.h <<_ACEOF
10975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11008 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 ac_res=`eval echo '${'$as_ac_Header'}'`
11019 { echo "$as_me:$LINENO: result: $ac_res" >&5
11020 echo "${ECHO_T}$ac_res" >&6; }
11022 # Is the header compilable?
11023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11025 cat >conftest.$ac_ext <<_ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 $ac_includes_default
11032 #include <$ac_header>
11034 rm -f conftest.$ac_objext
11035 if { (ac_try="$ac_compile"
11036 case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_compile") 2>conftest.er1
11043 grep -v '^ *+' conftest.er1 >conftest.err
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } &&
11048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11049 { (case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_try") 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; }; then
11068 ac_header_compiler=yes
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 ac_header_compiler=no
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11078 echo "${ECHO_T}$ac_header_compiler" >&6; }
11080 # Is the header present?
11081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11083 cat >conftest.$ac_ext <<_ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 #include <$ac_header>
11091 if { (ac_try="$ac_cpp conftest.$ac_ext"
11092 case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11099 grep -v '^ *+' conftest.er1 >conftest.err
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } >/dev/null; then
11104 if test -s conftest.err; then
11105 ac_cpp_err=$ac_c_preproc_warn_flag
11106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11113 if test -z "$ac_cpp_err"; then
11114 ac_header_preproc=yes
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_header_preproc=no
11122 rm -f conftest.err conftest.$ac_ext
11123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11124 echo "${ECHO_T}$ac_header_preproc" >&6; }
11126 # So? What about this header?
11127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11133 ac_header_preproc=yes
11136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11149 ## ------------------------------ ##
11150 ## Report this to bugs@yourdomain ##
11151 ## ------------------------------ ##
11153 ) | sed "s/^/$as_me: WARNING: /" >&2
11156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 eval "$as_ac_Header=\$ac_header_preproc"
11163 ac_res=`eval echo '${'$as_ac_Header'}'`
11164 { echo "$as_me:$LINENO: result: $ac_res" >&5
11165 echo "${ECHO_T}$ac_res" >&6; }
11168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11169 cat >>confdefs.h <<_ACEOF
11170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11181 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 ac_res=`eval echo '${'$as_ac_Header'}'`
11191 { echo "$as_me:$LINENO: result: $ac_res" >&5
11192 echo "${ECHO_T}$ac_res" >&6; }
11194 # Is the header compilable?
11195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11197 cat >conftest.$ac_ext <<_ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 $ac_includes_default
11204 #include <$ac_header>
11206 rm -f conftest.$ac_objext
11207 if { (ac_try="$ac_compile"
11208 case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213 (eval "$ac_compile") 2>conftest.er1
11215 grep -v '^ *+' conftest.er1 >conftest.err
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11221 { (case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_try") 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_header_compiler=yes
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11245 ac_header_compiler=no
11248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11250 echo "${ECHO_T}$ac_header_compiler" >&6; }
11252 # Is the header present?
11253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11255 cat >conftest.$ac_ext <<_ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11261 #include <$ac_header>
11263 if { (ac_try="$ac_cpp conftest.$ac_ext"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11271 grep -v '^ *+' conftest.er1 >conftest.err
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } >/dev/null; then
11276 if test -s conftest.err; then
11277 ac_cpp_err=$ac_c_preproc_warn_flag
11278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11285 if test -z "$ac_cpp_err"; then
11286 ac_header_preproc=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_header_preproc=no
11294 rm -f conftest.err conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11296 echo "${ECHO_T}$ac_header_preproc" >&6; }
11298 # So? What about this header?
11299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11305 ac_header_preproc=yes
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11321 ## ------------------------------ ##
11322 ## Report this to bugs@yourdomain ##
11323 ## ------------------------------ ##
11325 ) | sed "s/^/$as_me: WARNING: /" >&2
11328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 eval "$as_ac_Header=\$ac_header_preproc"
11335 ac_res=`eval echo '${'$as_ac_Header'}'`
11336 { echo "$as_me:$LINENO: result: $ac_res" >&5
11337 echo "${ECHO_T}$ac_res" >&6; }
11340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11341 cat >>confdefs.h <<_ACEOF
11342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11351 for ac_header in string.h strings.h
11353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 ac_res=`eval echo '${'$as_ac_Header'}'`
11361 { echo "$as_me:$LINENO: result: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11364 # Is the header compilable?
11365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11367 cat >conftest.$ac_ext <<_ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 $ac_includes_default
11374 #include <$ac_header>
11376 rm -f conftest.$ac_objext
11377 if { (ac_try="$ac_compile"
11378 case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383 (eval "$ac_compile") 2>conftest.er1
11385 grep -v '^ *+' conftest.er1 >conftest.err
11387 cat conftest.err >&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } &&
11390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11391 { (case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_try") 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; } &&
11400 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_header_compiler=yes
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 ac_header_compiler=no
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11420 echo "${ECHO_T}$ac_header_compiler" >&6; }
11422 # Is the header present?
11423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 #include <$ac_header>
11433 if { (ac_try="$ac_cpp conftest.$ac_ext"
11434 case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11441 grep -v '^ *+' conftest.er1 >conftest.err
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } >/dev/null; then
11446 if test -s conftest.err; then
11447 ac_cpp_err=$ac_c_preproc_warn_flag
11448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11455 if test -z "$ac_cpp_err"; then
11456 ac_header_preproc=yes
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11461 ac_header_preproc=no
11464 rm -f conftest.err conftest.$ac_ext
11465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11466 echo "${ECHO_T}$ac_header_preproc" >&6; }
11468 # So? What about this header?
11469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11475 ac_header_preproc=yes
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11491 ## ------------------------------ ##
11492 ## Report this to bugs@yourdomain ##
11493 ## ------------------------------ ##
11495 ) | sed "s/^/$as_me: WARNING: /" >&2
11498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 eval "$as_ac_Header=\$ac_header_preproc"
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11511 cat >>confdefs.h <<_ACEOF
11512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11522 for ac_func in strchr index
11524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 cat >conftest.$ac_ext <<_ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11538 #define $ac_func innocuous_$ac_func
11540 /* System header to define __stub macros and hopefully few prototypes,
11541 which can conflict with char $ac_func (); below.
11542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11543 <limits.h> exists even on freestanding compilers. */
11546 # include <limits.h>
11548 # include <assert.h>
11553 /* Override any GCC internal prototype to avoid an error.
11554 Use char because int might match the return type of a GCC
11555 builtin and then its argument prototype would still apply. */
11560 /* The GNU C library defines this for functions which it implements
11561 to always fail with ENOSYS. Some functions are actually named
11562 something starting with __ and the normal name is an alias. */
11563 #if defined __stub_$ac_func || defined __stub___$ac_func
11570 return $ac_func ();
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (ac_try="$ac_link"
11577 case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_link") 2>conftest.er1
11584 grep -v '^ *+' conftest.er1 >conftest.err
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } &&
11589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11590 { (case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_try") 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try='test -s conftest$ac_exeext'
11600 { (case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605 (eval "$ac_try") 2>&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 eval "$as_ac_var=yes"
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11614 eval "$as_ac_var=no"
11617 rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11620 ac_res=`eval echo '${'$as_ac_var'}'`
11621 { echo "$as_me:$LINENO: result: $ac_res" >&5
11622 echo "${ECHO_T}$ac_res" >&6; }
11623 if test `eval echo '${'$as_ac_var'}'` = yes; then
11624 cat >>confdefs.h <<_ACEOF
11625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11633 for ac_func in strrchr rindex
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11649 #define $ac_func innocuous_$ac_func
11651 /* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char $ac_func (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11657 # include <limits.h>
11659 # include <assert.h>
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11671 /* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
11674 #if defined __stub_$ac_func || defined __stub___$ac_func
11681 return $ac_func ();
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11695 grep -v '^ *+' conftest.er1 >conftest.err
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 eval "$as_ac_var=yes"
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 eval "$as_ac_var=no"
11728 rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11731 ac_res=`eval echo '${'$as_ac_var'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11744 for ac_func in memcpy bcopy
11746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760 #define $ac_func innocuous_$ac_func
11762 /* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char $ac_func (); below.
11764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765 <limits.h> exists even on freestanding compilers. */
11768 # include <limits.h>
11770 # include <assert.h>
11775 /* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11782 /* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785 #if defined __stub_$ac_func || defined __stub___$ac_func
11792 return $ac_func ();
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_link") 2>conftest.er1
11806 grep -v '^ *+' conftest.er1 >conftest.err
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812 { (case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_try") 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest$ac_exeext'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 eval "$as_ac_var=yes"
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 eval "$as_ac_var=no"
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11842 ac_res=`eval echo '${'$as_ac_var'}'`
11843 { echo "$as_me:$LINENO: result: $ac_res" >&5
11844 echo "${ECHO_T}$ac_res" >&6; }
11845 if test `eval echo '${'$as_ac_var'}'` = yes; then
11846 cat >>confdefs.h <<_ACEOF
11847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11855 for ac_func in memmove strcmp
11857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 cat >conftest.$ac_ext <<_ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11871 #define $ac_func innocuous_$ac_func
11873 /* System header to define __stub macros and hopefully few prototypes,
11874 which can conflict with char $ac_func (); below.
11875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876 <limits.h> exists even on freestanding compilers. */
11879 # include <limits.h>
11881 # include <assert.h>
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11893 /* The GNU C library defines this for functions which it implements
11894 to always fail with ENOSYS. Some functions are actually named
11895 something starting with __ and the normal name is an alias. */
11896 #if defined __stub_$ac_func || defined __stub___$ac_func
11903 return $ac_func ();
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try='test -s conftest$ac_exeext'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 eval "$as_ac_var=yes"
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 eval "$as_ac_var=no"
11950 rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11953 ac_res=`eval echo '${'$as_ac_var'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956 if test `eval echo '${'$as_ac_var'}'` = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11967 for ac_func in closedir opendir readdir
11969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 cat >conftest.$ac_ext <<_ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11983 #define $ac_func innocuous_$ac_func
11985 /* System header to define __stub macros and hopefully few prototypes,
11986 which can conflict with char $ac_func (); below.
11987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11988 <limits.h> exists even on freestanding compilers. */
11991 # include <limits.h>
11993 # include <assert.h>
11998 /* Override any GCC internal prototype to avoid an error.
11999 Use char because int might match the return type of a GCC
12000 builtin and then its argument prototype would still apply. */
12005 /* The GNU C library defines this for functions which it implements
12006 to always fail with ENOSYS. Some functions are actually named
12007 something starting with __ and the normal name is an alias. */
12008 #if defined __stub_$ac_func || defined __stub___$ac_func
12015 return $ac_func ();
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (ac_try="$ac_link"
12022 case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_link") 2>conftest.er1
12029 grep -v '^ *+' conftest.er1 >conftest.err
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12035 { (case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_try") 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest$ac_exeext'
12045 { (case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_try") 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 eval "$as_ac_var=yes"
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 eval "$as_ac_var=no"
12062 rm -f core conftest.err conftest.$ac_objext \
12063 conftest$ac_exeext conftest.$ac_ext
12065 ac_res=`eval echo '${'$as_ac_var'}'`
12066 { echo "$as_me:$LINENO: result: $ac_res" >&5
12067 echo "${ECHO_T}$ac_res" >&6; }
12068 if test `eval echo '${'$as_ac_var'}'` = yes; then
12069 cat >>confdefs.h <<_ACEOF
12070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12078 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12079 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12092 if test "$GCC" != "yes" && test "$ICC" != "yes"
12094 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12095 echo "$as_me: error: gcc|icc required but not found" >&2;}
12096 { (exit 1); exit 1; }; }
12099 if test "$GXX" != "yes" && test "$IXX" != "yes"
12101 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12102 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12103 { (exit 1); exit 1; }; }
12106 if test "$GCC" = "yes"
12108 cat >conftest.$ac_ext <<_ACEOF
12109 #if !defined(__GNUC__) || __GNUC__ < 3
12110 #error Unsupported GCC version
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_compile") 2>conftest.er1
12123 grep -v '^ *+' conftest.er1 >conftest.err
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12129 { (case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_try") 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest.$ac_objext'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12154 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12155 { (exit 1); exit 1; }; }
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12161 if test -z "$llvm_cv_gnu_make_command"
12163 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12164 echo "$as_me: error: GNU Make required but not found" >&2;}
12165 { (exit 1); exit 1; }; }
12168 { echo "$as_me:$LINENO: result: ok" >&5
12169 echo "${ECHO_T}ok" >&6; }
12171 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12172 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12173 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12175 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12177 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12178 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12182 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12183 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12184 if test "${ac_cv_lib_m_sin+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 ac_check_lib_save_LIBS=$LIBS
12189 cat >conftest.$ac_ext <<_ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h. */
12196 /* Override any GCC internal prototype to avoid an error.
12197 Use char because int might match the return type of a GCC
12198 builtin and then its argument prototype would still apply. */
12211 rm -f conftest.$ac_objext conftest$ac_exeext
12212 if { (ac_try="$ac_link"
12213 case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_link") 2>conftest.er1
12220 grep -v '^ *+' conftest.er1 >conftest.err
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12226 { (case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_try") 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest$ac_exeext'
12236 { (case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_try") 2>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 ac_cv_lib_m_sin=yes
12247 echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12253 rm -f core conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12257 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12258 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12259 if test $ac_cv_lib_m_sin = yes; then
12260 cat >>confdefs.h <<_ACEOF
12261 #define HAVE_LIBM 1
12268 if test "$llvm_cv_os_type" = "MingW" ; then
12270 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12271 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12272 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-limagehlp $LIBS"
12277 cat >conftest.$ac_ext <<_ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (ac_try="$ac_link"
12295 case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_link") 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest$ac_exeext'
12318 { (case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_try") 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 ac_cv_lib_imagehlp_main=yes
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12332 ac_cv_lib_imagehlp_main=no
12335 rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12337 LIBS=$ac_check_lib_save_LIBS
12339 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12340 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12341 if test $ac_cv_lib_imagehlp_main = yes; then
12342 cat >>confdefs.h <<_ACEOF
12343 #define HAVE_LIBIMAGEHLP 1
12346 LIBS="-limagehlp $LIBS"
12351 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12352 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12353 if test "${ac_cv_lib_psapi_main+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 ac_check_lib_save_LIBS=$LIBS
12357 LIBS="-lpsapi $LIBS"
12358 cat >conftest.$ac_ext <<_ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_link") 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12389 { (case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_try") 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try='test -s conftest$ac_exeext'
12399 { (case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_try") 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 ac_cv_lib_psapi_main=yes
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12413 ac_cv_lib_psapi_main=no
12416 rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12420 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12421 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12422 if test $ac_cv_lib_psapi_main = yes; then
12423 cat >>confdefs.h <<_ACEOF
12424 #define HAVE_LIBPSAPI 1
12427 LIBS="-lpsapi $LIBS"
12433 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12434 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12435 if test "${ac_cv_search_dlopen+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 ac_func_search_save_LIBS=$LIBS
12439 cat >conftest.$ac_ext <<_ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12446 /* Override any GCC internal prototype to avoid an error.
12447 Use char because int might match the return type of a GCC
12448 builtin and then its argument prototype would still apply. */
12461 for ac_lib in '' dl; do
12462 if test -z "$ac_lib"; then
12463 ac_res="none required"
12466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (ac_try="$ac_link"
12470 case "(($ac_try" in
12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472 *) ac_try_echo=$ac_try;;
12474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475 (eval "$ac_link") 2>conftest.er1
12477 grep -v '^ *+' conftest.er1 >conftest.err
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12483 { (case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_try") 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; } &&
12492 { ac_try='test -s conftest$ac_exeext'
12493 { (case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_try") 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 ac_cv_search_dlopen=$ac_res
12504 echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12510 rm -f core conftest.err conftest.$ac_objext \
12512 if test "${ac_cv_search_dlopen+set}" = set; then
12516 if test "${ac_cv_search_dlopen+set}" = set; then
12519 ac_cv_search_dlopen=no
12521 rm conftest.$ac_ext
12522 LIBS=$ac_func_search_save_LIBS
12524 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12525 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12526 ac_res=$ac_cv_search_dlopen
12527 if test "$ac_res" != no; then
12528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12530 cat >>confdefs.h <<\_ACEOF
12531 #define HAVE_DLOPEN 1
12535 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12536 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12540 if test "$llvm_cv_enable_libffi" = "yes" ; then
12541 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12542 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12543 if test "${ac_cv_search_ffi_call+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 ac_func_search_save_LIBS=$LIBS
12547 cat >conftest.$ac_ext <<_ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12554 /* Override any GCC internal prototype to avoid an error.
12555 Use char because int might match the return type of a GCC
12556 builtin and then its argument prototype would still apply. */
12564 return ffi_call ();
12569 for ac_lib in '' ffi; do
12570 if test -z "$ac_lib"; then
12571 ac_res="none required"
12574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (ac_try="$ac_link"
12578 case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_link") 2>conftest.er1
12585 grep -v '^ *+' conftest.er1 >conftest.err
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12591 { (case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_try") 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_try") 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 ac_cv_search_ffi_call=$ac_res
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12618 rm -f core conftest.err conftest.$ac_objext \
12620 if test "${ac_cv_search_ffi_call+set}" = set; then
12624 if test "${ac_cv_search_ffi_call+set}" = set; then
12627 ac_cv_search_ffi_call=no
12629 rm conftest.$ac_ext
12630 LIBS=$ac_func_search_save_LIBS
12632 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12633 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12634 ac_res=$ac_cv_search_ffi_call
12635 if test "$ac_res" != no; then
12636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12638 cat >>confdefs.h <<\_ACEOF
12639 #define HAVE_FFI_CALL 1
12643 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12644 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12645 { (exit 1); exit 1; }; }
12650 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12651 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12652 if test "${ac_cv_search_mallinfo+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 ac_func_search_save_LIBS=$LIBS
12656 cat >conftest.$ac_ext <<_ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12663 /* Override any GCC internal prototype to avoid an error.
12664 Use char because int might match the return type of a GCC
12665 builtin and then its argument prototype would still apply. */
12673 return mallinfo ();
12678 for ac_lib in '' malloc; do
12679 if test -z "$ac_lib"; then
12680 ac_res="none required"
12683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12685 rm -f conftest.$ac_objext conftest$ac_exeext
12686 if { (ac_try="$ac_link"
12687 case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_link") 2>conftest.er1
12694 grep -v '^ *+' conftest.er1 >conftest.err
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700 { (case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_try") 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; } &&
12709 { ac_try='test -s conftest$ac_exeext'
12710 { (case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_try") 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_search_mallinfo=$ac_res
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12727 rm -f core conftest.err conftest.$ac_objext \
12729 if test "${ac_cv_search_mallinfo+set}" = set; then
12733 if test "${ac_cv_search_mallinfo+set}" = set; then
12736 ac_cv_search_mallinfo=no
12738 rm conftest.$ac_ext
12739 LIBS=$ac_func_search_save_LIBS
12741 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12742 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12743 ac_res=$ac_cv_search_mallinfo
12744 if test "$ac_res" != no; then
12745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12747 cat >>confdefs.h <<\_ACEOF
12748 #define HAVE_MALLINFO 1
12754 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12756 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12757 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12758 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 ac_check_lib_save_LIBS=$LIBS
12762 LIBS="-lpthread $LIBS"
12763 cat >conftest.$ac_ext <<_ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12770 /* Override any GCC internal prototype to avoid an error.
12771 Use char because int might match the return type of a GCC
12772 builtin and then its argument prototype would still apply. */
12776 char pthread_mutex_init ();
12780 return pthread_mutex_init ();
12785 rm -f conftest.$ac_objext conftest$ac_exeext
12786 if { (ac_try="$ac_link"
12787 case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_link") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1 >conftest.err
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12800 { (case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_try") 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest$ac_exeext'
12810 { (case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815 (eval "$ac_try") 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; }; then
12819 ac_cv_lib_pthread_pthread_mutex_init=yes
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_cv_lib_pthread_pthread_mutex_init=no
12827 rm -f core conftest.err conftest.$ac_objext \
12828 conftest$ac_exeext conftest.$ac_ext
12829 LIBS=$ac_check_lib_save_LIBS
12831 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12832 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12833 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12834 cat >>confdefs.h <<_ACEOF
12835 #define HAVE_LIBPTHREAD 1
12838 LIBS="-lpthread $LIBS"
12842 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12843 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12844 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12847 ac_func_search_save_LIBS=$LIBS
12848 cat >conftest.$ac_ext <<_ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12855 /* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
12861 char pthread_mutex_lock ();
12865 return pthread_mutex_lock ();
12870 for ac_lib in '' pthread; do
12871 if test -z "$ac_lib"; then
12872 ac_res="none required"
12875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (ac_try="$ac_link"
12879 case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_link") 2>conftest.er1
12886 grep -v '^ *+' conftest.er1 >conftest.err
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; } &&
12901 { ac_try='test -s conftest$ac_exeext'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_search_pthread_mutex_lock=$ac_res
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12919 rm -f core conftest.err conftest.$ac_objext \
12921 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12925 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12928 ac_cv_search_pthread_mutex_lock=no
12930 rm conftest.$ac_ext
12931 LIBS=$ac_func_search_save_LIBS
12933 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12934 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12935 ac_res=$ac_cv_search_pthread_mutex_lock
12936 if test "$ac_res" != no; then
12937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12939 cat >>confdefs.h <<\_ACEOF
12940 #define HAVE_PTHREAD_MUTEX_LOCK 1
12945 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12946 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12947 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 ac_func_search_save_LIBS=$LIBS
12951 cat >conftest.$ac_ext <<_ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12958 /* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12964 char pthread_rwlock_init ();
12968 return pthread_rwlock_init ();
12973 for ac_lib in '' pthread; do
12974 if test -z "$ac_lib"; then
12975 ac_res="none required"
12978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (ac_try="$ac_link"
12982 case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_link") 2>conftest.er1
12989 grep -v '^ *+' conftest.er1 >conftest.err
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12995 { (case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_try") 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; } &&
13004 { ac_try='test -s conftest$ac_exeext'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_cv_search_pthread_rwlock_init=$ac_res
13016 echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13022 rm -f core conftest.err conftest.$ac_objext \
13024 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13028 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13031 ac_cv_search_pthread_rwlock_init=no
13033 rm conftest.$ac_ext
13034 LIBS=$ac_func_search_save_LIBS
13036 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13037 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13038 ac_res=$ac_cv_search_pthread_rwlock_init
13039 if test "$ac_res" != no; then
13040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13042 cat >>confdefs.h <<\_ACEOF
13043 #define HAVE_PTHREAD_RWLOCK_INIT 1
13048 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13049 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13050 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 ac_func_search_save_LIBS=$LIBS
13054 cat >conftest.$ac_ext <<_ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13061 /* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13067 char pthread_getspecific ();
13071 return pthread_getspecific ();
13076 for ac_lib in '' pthread; do
13077 if test -z "$ac_lib"; then
13078 ac_res="none required"
13081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13083 rm -f conftest.$ac_objext conftest$ac_exeext
13084 if { (ac_try="$ac_link"
13085 case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_link") 2>conftest.er1
13092 grep -v '^ *+' conftest.er1 >conftest.err
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13098 { (case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_try") 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest$ac_exeext'
13108 { (case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_try") 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_cv_search_pthread_getspecific=$ac_res
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13125 rm -f core conftest.err conftest.$ac_objext \
13127 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13131 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13134 ac_cv_search_pthread_getspecific=no
13136 rm conftest.$ac_ext
13137 LIBS=$ac_func_search_save_LIBS
13139 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13140 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13141 ac_res=$ac_cv_search_pthread_getspecific
13142 if test "$ac_res" != no; then
13143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13145 cat >>confdefs.h <<\_ACEOF
13146 #define HAVE_PTHREAD_GETSPECIFIC 1
13154 # Check whether --with-udis86 was given.
13155 if test "${with_udis86+set}" = set; then
13156 withval=$with_udis86;
13161 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13164 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13165 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13166 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 ac_check_lib_save_LIBS=$LIBS
13170 LIBS="-ludis86 $LIBS"
13171 cat >conftest.$ac_ext <<_ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13178 /* Override any GCC internal prototype to avoid an error.
13179 Use char because int might match the return type of a GCC
13180 builtin and then its argument prototype would still apply. */
13193 rm -f conftest.$ac_objext conftest$ac_exeext
13194 if { (ac_try="$ac_link"
13195 case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_link") 2>conftest.er1
13202 grep -v '^ *+' conftest.er1 >conftest.err
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13208 { (case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_try") 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest$ac_exeext'
13218 { (case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_lib_udis86_ud_init=yes
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 ac_cv_lib_udis86_ud_init=no
13235 rm -f core conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext conftest.$ac_ext
13237 LIBS=$ac_check_lib_save_LIBS
13239 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13240 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13241 if test $ac_cv_lib_udis86_ud_init = yes; then
13242 cat >>confdefs.h <<_ACEOF
13243 #define HAVE_LIBUDIS86 1
13246 LIBS="-ludis86 $LIBS"
13250 echo "Error! You need to have libudis86 around."
13262 cat >>confdefs.h <<_ACEOF
13263 #define USE_UDIS86 $USE_UDIS86
13268 # Check whether --with-oprofile was given.
13269 if test "${with_oprofile+set}" = set; then
13270 withval=$with_oprofile;
13274 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13275 no) llvm_cv_oppath=
13278 *) llvm_cv_oppath="${withval}/lib/oprofile"
13279 CPPFLAGS="-I${withval}/include";;
13281 if test -n "$llvm_cv_oppath" ; then
13282 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13283 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13284 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13285 if test "${ac_cv_search_bfd_init+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 ac_func_search_save_LIBS=$LIBS
13289 cat >conftest.$ac_ext <<_ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13306 return bfd_init ();
13311 for ac_lib in '' bfd; do
13312 if test -z "$ac_lib"; then
13313 ac_res="none required"
13316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (ac_try="$ac_link"
13320 case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_link") 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13333 { (case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_try") 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest$ac_exeext'
13343 { (case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_try") 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_search_bfd_init=$ac_res
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13360 rm -f core conftest.err conftest.$ac_objext \
13362 if test "${ac_cv_search_bfd_init+set}" = set; then
13366 if test "${ac_cv_search_bfd_init+set}" = set; then
13369 ac_cv_search_bfd_init=no
13371 rm conftest.$ac_ext
13372 LIBS=$ac_func_search_save_LIBS
13374 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13375 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13376 ac_res=$ac_cv_search_bfd_init
13377 if test "$ac_res" != no; then
13378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13382 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13383 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13384 if test "${ac_cv_search_op_open_agent+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 ac_func_search_save_LIBS=$LIBS
13388 cat >conftest.$ac_ext <<_ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13395 /* Override any GCC internal prototype to avoid an error.
13396 Use char because int might match the return type of a GCC
13397 builtin and then its argument prototype would still apply. */
13401 char op_open_agent ();
13405 return op_open_agent ();
13410 for ac_lib in '' opagent; do
13411 if test -z "$ac_lib"; then
13412 ac_res="none required"
13415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13417 rm -f conftest.$ac_objext conftest$ac_exeext
13418 if { (ac_try="$ac_link"
13419 case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_link") 2>conftest.er1
13426 grep -v '^ *+' conftest.er1 >conftest.err
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
13431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13432 { (case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_try") 2>&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } &&
13441 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; }; then
13451 ac_cv_search_op_open_agent=$ac_res
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13459 rm -f core conftest.err conftest.$ac_objext \
13461 if test "${ac_cv_search_op_open_agent+set}" = set; then
13465 if test "${ac_cv_search_op_open_agent+set}" = set; then
13468 ac_cv_search_op_open_agent=no
13470 rm conftest.$ac_ext
13471 LIBS=$ac_func_search_save_LIBS
13473 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13474 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13475 ac_res=$ac_cv_search_op_open_agent
13476 if test "$ac_res" != no; then
13477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13481 echo "Error! You need to have libopagent around."
13486 if test "${ac_cv_header_opagent_h+set}" = set; then
13487 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13488 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13489 if test "${ac_cv_header_opagent_h+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13492 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13493 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13495 # Is the header compilable?
13496 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13497 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 $ac_includes_default
13505 #include <opagent.h>
13507 rm -f conftest.$ac_objext
13508 if { (ac_try="$ac_compile"
13509 case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_compile") 2>conftest.er1
13516 grep -v '^ *+' conftest.er1 >conftest.err
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; } &&
13531 { ac_try='test -s conftest.$ac_objext'
13532 { (case "(($ac_try" in
13533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534 *) ac_try_echo=$ac_try;;
13536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537 (eval "$ac_try") 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }; then
13541 ac_header_compiler=yes
13543 echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13546 ac_header_compiler=no
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13551 echo "${ECHO_T}$ac_header_compiler" >&6; }
13553 # Is the header present?
13554 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13555 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 #include <opagent.h>
13564 if { (ac_try="$ac_cpp conftest.$ac_ext"
13565 case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13572 grep -v '^ *+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } >/dev/null; then
13577 if test -s conftest.err; then
13578 ac_cpp_err=$ac_c_preproc_warn_flag
13579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13586 if test -z "$ac_cpp_err"; then
13587 ac_header_preproc=yes
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 ac_header_preproc=no
13595 rm -f conftest.err conftest.$ac_ext
13596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13597 echo "${ECHO_T}$ac_header_preproc" >&6; }
13599 # So? What about this header?
13600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13602 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13603 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13605 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13606 ac_header_preproc=yes
13609 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13610 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13612 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13614 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13616 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13618 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13620 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13622 ## ------------------------------ ##
13623 ## Report this to bugs@yourdomain ##
13624 ## ------------------------------ ##
13626 ) | sed "s/^/$as_me: WARNING: /" >&2
13629 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13630 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13631 if test "${ac_cv_header_opagent_h+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 ac_cv_header_opagent_h=$ac_header_preproc
13636 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13637 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13640 if test $ac_cv_header_opagent_h = yes; then
13644 echo "Error! You need to have opagent.h around."
13660 cat >>confdefs.h <<_ACEOF
13661 #define USE_OPROFILE $USE_OPROFILE
13671 ac_header_dirent=no
13672 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13673 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13674 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13675 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 cat >conftest.$ac_ext <<_ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685 #include <sys/types.h>
13697 rm -f conftest.$ac_objext
13698 if { (ac_try="$ac_compile"
13699 case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_compile") 2>conftest.er1
13706 grep -v '^ *+' conftest.er1 >conftest.err
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } &&
13711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13712 { (case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest.$ac_objext'
13722 { (case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_try") 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 eval "$as_ac_Header=yes"
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13736 eval "$as_ac_Header=no"
13739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 ac_res=`eval echo '${'$as_ac_Header'}'`
13742 { echo "$as_me:$LINENO: result: $ac_res" >&5
13743 echo "${ECHO_T}$ac_res" >&6; }
13744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13745 cat >>confdefs.h <<_ACEOF
13746 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13749 ac_header_dirent=$ac_hdr; break
13753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13754 if test $ac_header_dirent = dirent.h; then
13755 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13757 if test "${ac_cv_search_opendir+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 ac_func_search_save_LIBS=$LIBS
13761 cat >conftest.$ac_ext <<_ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13768 /* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13783 for ac_lib in '' dir; do
13784 if test -z "$ac_lib"; then
13785 ac_res="none required"
13788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (ac_try="$ac_link"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_link") 2>conftest.er1
13799 grep -v '^ *+' conftest.er1 >conftest.err
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13805 { (case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_try") 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest$ac_exeext'
13815 { (case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_try") 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_search_opendir=$ac_res
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13832 rm -f core conftest.err conftest.$ac_objext \
13834 if test "${ac_cv_search_opendir+set}" = set; then
13838 if test "${ac_cv_search_opendir+set}" = set; then
13841 ac_cv_search_opendir=no
13843 rm conftest.$ac_ext
13844 LIBS=$ac_func_search_save_LIBS
13846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13848 ac_res=$ac_cv_search_opendir
13849 if test "$ac_res" != no; then
13850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13855 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13856 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13857 if test "${ac_cv_search_opendir+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 ac_func_search_save_LIBS=$LIBS
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13868 /* Override any GCC internal prototype to avoid an error.
13869 Use char because int might match the return type of a GCC
13870 builtin and then its argument prototype would still apply. */
13883 for ac_lib in '' x; do
13884 if test -z "$ac_lib"; then
13885 ac_res="none required"
13888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (ac_try="$ac_link"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_link") 2>conftest.er1
13899 grep -v '^ *+' conftest.er1 >conftest.err
13901 cat conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } &&
13904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13905 { (case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_try") 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; } &&
13914 { ac_try='test -s conftest$ac_exeext'
13915 { (case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_try") 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_search_opendir=$ac_res
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13932 rm -f core conftest.err conftest.$ac_objext \
13934 if test "${ac_cv_search_opendir+set}" = set; then
13938 if test "${ac_cv_search_opendir+set}" = set; then
13941 ac_cv_search_opendir=no
13943 rm conftest.$ac_ext
13944 LIBS=$ac_func_search_save_LIBS
13946 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13947 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13948 ac_res=$ac_cv_search_opendir
13949 if test "$ac_res" != no; then
13950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13956 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13957 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13958 if test "${ac_cv_header_mmap_anon+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 ac_cpp='$CPP $CPPFLAGS'
13963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #include <sys/mman.h>
13974 #include <unistd.h>
13979 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13984 rm -f conftest.$ac_objext
13985 if { (ac_try="$ac_compile"
13986 case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_compile") 2>conftest.er1
13993 grep -v '^ *+' conftest.er1 >conftest.err
13995 cat conftest.err >&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } &&
13998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13999 { (case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_try") 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest.$ac_objext'
14009 { (case "(($ac_try" in
14010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011 *) ac_try_echo=$ac_try;;
14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014 (eval "$ac_try") 2>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 ac_cv_header_mmap_anon=yes
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 ac_cv_header_mmap_anon=no
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 ac_cpp='$CPP $CPPFLAGS'
14029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14035 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14036 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14037 if test "$ac_cv_header_mmap_anon" = yes; then
14039 cat >>confdefs.h <<\_ACEOF
14040 #define HAVE_MMAP_ANONYMOUS 1
14045 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14046 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14047 if test "${ac_cv_header_stat_broken+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 cat >conftest.$ac_ext <<_ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 #include <sys/types.h>
14057 #include <sys/stat.h>
14059 #if defined S_ISBLK && defined S_IFDIR
14060 # if S_ISBLK (S_IFDIR)
14065 #if defined S_ISBLK && defined S_IFCHR
14066 # if S_ISBLK (S_IFCHR)
14071 #if defined S_ISLNK && defined S_IFREG
14072 # if S_ISLNK (S_IFREG)
14077 #if defined S_ISSOCK && defined S_IFREG
14078 # if S_ISSOCK (S_IFREG)
14084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14085 $EGREP "You lose" >/dev/null 2>&1; then
14086 ac_cv_header_stat_broken=yes
14088 ac_cv_header_stat_broken=no
14093 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14094 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14095 if test $ac_cv_header_stat_broken = yes; then
14097 cat >>confdefs.h <<\_ACEOF
14098 #define STAT_MACROS_BROKEN 1
14103 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14104 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14105 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 cat >conftest.$ac_ext <<_ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114 #include <sys/types.h>
14115 #include <sys/wait.h>
14116 #ifndef WEXITSTATUS
14117 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14120 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14128 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14133 rm -f conftest.$ac_objext
14134 if { (ac_try="$ac_compile"
14135 case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_compile") 2>conftest.er1
14142 grep -v '^ *+' conftest.er1 >conftest.err
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14148 { (case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_try") 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; } &&
14157 { ac_try='test -s conftest.$ac_objext'
14158 { (case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_try") 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14167 ac_cv_header_sys_wait_h=yes
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 ac_cv_header_sys_wait_h=no
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14177 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14178 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14179 if test $ac_cv_header_sys_wait_h = yes; then
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_SYS_WAIT_H 1
14187 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14188 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14189 if test "${ac_cv_header_time+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 cat >conftest.$ac_ext <<_ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 #include <sys/types.h>
14199 #include <sys/time.h>
14205 if ((struct tm *) 0)
14211 rm -f conftest.$ac_objext
14212 if { (ac_try="$ac_compile"
14213 case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_compile") 2>conftest.er1
14220 grep -v '^ *+' conftest.er1 >conftest.err
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest.$ac_objext'
14236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_cv_header_time=yes
14247 echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14250 ac_cv_header_time=no
14253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14256 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14257 if test $ac_cv_header_time = yes; then
14259 cat >>confdefs.h <<\_ACEOF
14260 #define TIME_WITH_SYS_TIME 1
14272 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 ac_res=`eval echo '${'$as_ac_Header'}'`
14282 { echo "$as_me:$LINENO: result: $ac_res" >&5
14283 echo "${ECHO_T}$ac_res" >&6; }
14285 # Is the header compilable?
14286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14288 cat >conftest.$ac_ext <<_ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 $ac_includes_default
14295 #include <$ac_header>
14297 rm -f conftest.$ac_objext
14298 if { (ac_try="$ac_compile"
14299 case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_compile") 2>conftest.er1
14306 grep -v '^ *+' conftest.er1 >conftest.err
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14312 { (case "(($ac_try" in
14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314 *) ac_try_echo=$ac_try;;
14316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317 (eval "$ac_try") 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest.$ac_objext'
14322 { (case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_try") 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_header_compiler=yes
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 ac_header_compiler=no
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14341 echo "${ECHO_T}$ac_header_compiler" >&6; }
14343 # Is the header present?
14344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14346 cat >conftest.$ac_ext <<_ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 #include <$ac_header>
14354 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14362 grep -v '^ *+' conftest.er1 >conftest.err
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } >/dev/null; then
14367 if test -s conftest.err; then
14368 ac_cpp_err=$ac_c_preproc_warn_flag
14369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14376 if test -z "$ac_cpp_err"; then
14377 ac_header_preproc=yes
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 ac_header_preproc=no
14385 rm -f conftest.err conftest.$ac_ext
14386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14387 echo "${ECHO_T}$ac_header_preproc" >&6; }
14389 # So? What about this header?
14390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14396 ac_header_preproc=yes
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14412 ## ------------------------------ ##
14413 ## Report this to bugs@yourdomain ##
14414 ## ------------------------------ ##
14416 ) | sed "s/^/$as_me: WARNING: /" >&2
14419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 eval "$as_ac_Header=\$ac_header_preproc"
14426 ac_res=`eval echo '${'$as_ac_Header'}'`
14427 { echo "$as_me:$LINENO: result: $ac_res" >&5
14428 echo "${ECHO_T}$ac_res" >&6; }
14431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14432 cat >>confdefs.h <<_ACEOF
14433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14446 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 ac_res=`eval echo '${'$as_ac_Header'}'`
14456 { echo "$as_me:$LINENO: result: $ac_res" >&5
14457 echo "${ECHO_T}$ac_res" >&6; }
14459 # Is the header compilable?
14460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14462 cat >conftest.$ac_ext <<_ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14468 $ac_includes_default
14469 #include <$ac_header>
14471 rm -f conftest.$ac_objext
14472 if { (ac_try="$ac_compile"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_compile") 2>conftest.er1
14480 grep -v '^ *+' conftest.er1 >conftest.err
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14486 { (case "(($ac_try" in
14487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488 *) ac_try_echo=$ac_try;;
14490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14491 (eval "$ac_try") 2>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; } &&
14495 { ac_try='test -s conftest.$ac_objext'
14496 { (case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_try") 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }; then
14505 ac_header_compiler=yes
14507 echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14510 ac_header_compiler=no
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14515 echo "${ECHO_T}$ac_header_compiler" >&6; }
14517 # Is the header present?
14518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14520 cat >conftest.$ac_ext <<_ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526 #include <$ac_header>
14528 if { (ac_try="$ac_cpp conftest.$ac_ext"
14529 case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14536 grep -v '^ *+' conftest.er1 >conftest.err
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } >/dev/null; then
14541 if test -s conftest.err; then
14542 ac_cpp_err=$ac_c_preproc_warn_flag
14543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14550 if test -z "$ac_cpp_err"; then
14551 ac_header_preproc=yes
14553 echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14556 ac_header_preproc=no
14559 rm -f conftest.err conftest.$ac_ext
14560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14561 echo "${ECHO_T}$ac_header_preproc" >&6; }
14563 # So? What about this header?
14564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14570 ac_header_preproc=yes
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14586 ## ------------------------------ ##
14587 ## Report this to bugs@yourdomain ##
14588 ## ------------------------------ ##
14590 ) | sed "s/^/$as_me: WARNING: /" >&2
14593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14598 eval "$as_ac_Header=\$ac_header_preproc"
14600 ac_res=`eval echo '${'$as_ac_Header'}'`
14601 { echo "$as_me:$LINENO: result: $ac_res" >&5
14602 echo "${ECHO_T}$ac_res" >&6; }
14605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14606 cat >>confdefs.h <<_ACEOF
14607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14616 for ac_header in utime.h windows.h
14618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 ac_res=`eval echo '${'$as_ac_Header'}'`
14626 { echo "$as_me:$LINENO: result: $ac_res" >&5
14627 echo "${ECHO_T}$ac_res" >&6; }
14629 # Is the header compilable?
14630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14632 cat >conftest.$ac_ext <<_ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 $ac_includes_default
14639 #include <$ac_header>
14641 rm -f conftest.$ac_objext
14642 if { (ac_try="$ac_compile"
14643 case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_compile") 2>conftest.er1
14650 grep -v '^ *+' conftest.er1 >conftest.err
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14656 { (case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_try") 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest.$ac_objext'
14666 { (case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_try") 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; }; then
14675 ac_header_compiler=yes
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14680 ac_header_compiler=no
14683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14685 echo "${ECHO_T}$ac_header_compiler" >&6; }
14687 # Is the header present?
14688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14690 cat >conftest.$ac_ext <<_ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 #include <$ac_header>
14698 if { (ac_try="$ac_cpp conftest.$ac_ext"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } >/dev/null; then
14711 if test -s conftest.err; then
14712 ac_cpp_err=$ac_c_preproc_warn_flag
14713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14720 if test -z "$ac_cpp_err"; then
14721 ac_header_preproc=yes
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 ac_header_preproc=no
14729 rm -f conftest.err conftest.$ac_ext
14730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14731 echo "${ECHO_T}$ac_header_preproc" >&6; }
14733 # So? What about this header?
14734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14740 ac_header_preproc=yes
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14756 ## ------------------------------ ##
14757 ## Report this to bugs@yourdomain ##
14758 ## ------------------------------ ##
14760 ) | sed "s/^/$as_me: WARNING: /" >&2
14763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 eval "$as_ac_Header=\$ac_header_preproc"
14770 ac_res=`eval echo '${'$as_ac_Header'}'`
14771 { echo "$as_me:$LINENO: result: $ac_res" >&5
14772 echo "${ECHO_T}$ac_res" >&6; }
14775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14776 cat >>confdefs.h <<_ACEOF
14777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14789 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 ac_res=`eval echo '${'$as_ac_Header'}'`
14799 { echo "$as_me:$LINENO: result: $ac_res" >&5
14800 echo "${ECHO_T}$ac_res" >&6; }
14802 # Is the header compilable?
14803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14805 cat >conftest.$ac_ext <<_ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 $ac_includes_default
14812 #include <$ac_header>
14814 rm -f conftest.$ac_objext
14815 if { (ac_try="$ac_compile"
14816 case "(($ac_try" in
14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821 (eval "$ac_compile") 2>conftest.er1
14823 grep -v '^ *+' conftest.er1 >conftest.err
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14829 { (case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_try") 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; } &&
14838 { ac_try='test -s conftest.$ac_objext'
14839 { (case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844 (eval "$ac_try") 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }; then
14848 ac_header_compiler=yes
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14853 ac_header_compiler=no
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14858 echo "${ECHO_T}$ac_header_compiler" >&6; }
14860 # Is the header present?
14861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14863 cat >conftest.$ac_ext <<_ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 #include <$ac_header>
14871 if { (ac_try="$ac_cpp conftest.$ac_ext"
14872 case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14879 grep -v '^ *+' conftest.er1 >conftest.err
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } >/dev/null; then
14884 if test -s conftest.err; then
14885 ac_cpp_err=$ac_c_preproc_warn_flag
14886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14893 if test -z "$ac_cpp_err"; then
14894 ac_header_preproc=yes
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_header_preproc=no
14902 rm -f conftest.err conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14904 echo "${ECHO_T}$ac_header_preproc" >&6; }
14906 # So? What about this header?
14907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14913 ac_header_preproc=yes
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14929 ## ------------------------------ ##
14930 ## Report this to bugs@yourdomain ##
14931 ## ------------------------------ ##
14933 ) | sed "s/^/$as_me: WARNING: /" >&2
14936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 eval "$as_ac_Header=\$ac_header_preproc"
14943 ac_res=`eval echo '${'$as_ac_Header'}'`
14944 { echo "$as_me:$LINENO: result: $ac_res" >&5
14945 echo "${ECHO_T}$ac_res" >&6; }
14948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14949 cat >>confdefs.h <<_ACEOF
14950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14961 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 ac_res=`eval echo '${'$as_ac_Header'}'`
14971 { echo "$as_me:$LINENO: result: $ac_res" >&5
14972 echo "${ECHO_T}$ac_res" >&6; }
14974 # Is the header compilable?
14975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14977 cat >conftest.$ac_ext <<_ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 $ac_includes_default
14984 #include <$ac_header>
14986 rm -f conftest.$ac_objext
14987 if { (ac_try="$ac_compile"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_compile") 2>conftest.er1
14995 grep -v '^ *+' conftest.er1 >conftest.err
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
15000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15001 { (case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_try") 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; } &&
15010 { ac_try='test -s conftest.$ac_objext'
15011 { (case "(($ac_try" in
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_try") 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 ac_header_compiler=yes
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15025 ac_header_compiler=no
15028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15030 echo "${ECHO_T}$ac_header_compiler" >&6; }
15032 # Is the header present?
15033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15035 cat >conftest.$ac_ext <<_ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15041 #include <$ac_header>
15043 if { (ac_try="$ac_cpp conftest.$ac_ext"
15044 case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15051 grep -v '^ *+' conftest.er1 >conftest.err
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } >/dev/null; then
15056 if test -s conftest.err; then
15057 ac_cpp_err=$ac_c_preproc_warn_flag
15058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15065 if test -z "$ac_cpp_err"; then
15066 ac_header_preproc=yes
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_header_preproc=no
15074 rm -f conftest.err conftest.$ac_ext
15075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15076 echo "${ECHO_T}$ac_header_preproc" >&6; }
15078 # So? What about this header?
15079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15085 ac_header_preproc=yes
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15101 ## ------------------------------ ##
15102 ## Report this to bugs@yourdomain ##
15103 ## ------------------------------ ##
15105 ) | sed "s/^/$as_me: WARNING: /" >&2
15108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 eval "$as_ac_Header=\$ac_header_preproc"
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116 { echo "$as_me:$LINENO: result: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15121 cat >>confdefs.h <<_ACEOF
15122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15130 for ac_header in valgrind/valgrind.h
15132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15139 ac_res=`eval echo '${'$as_ac_Header'}'`
15140 { echo "$as_me:$LINENO: result: $ac_res" >&5
15141 echo "${ECHO_T}$ac_res" >&6; }
15143 # Is the header compilable?
15144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15146 cat >conftest.$ac_ext <<_ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15152 $ac_includes_default
15153 #include <$ac_header>
15155 rm -f conftest.$ac_objext
15156 if { (ac_try="$ac_compile"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_compile") 2>conftest.er1
15164 grep -v '^ *+' conftest.er1 >conftest.err
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; } &&
15179 { ac_try='test -s conftest.$ac_objext'
15180 { (case "(($ac_try" in
15181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185 (eval "$ac_try") 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_header_compiler=yes
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_header_compiler=no
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15199 echo "${ECHO_T}$ac_header_compiler" >&6; }
15201 # Is the header present?
15202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 #include <$ac_header>
15212 if { (ac_try="$ac_cpp conftest.$ac_ext"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15220 grep -v '^ *+' conftest.er1 >conftest.err
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } >/dev/null; then
15225 if test -s conftest.err; then
15226 ac_cpp_err=$ac_c_preproc_warn_flag
15227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15234 if test -z "$ac_cpp_err"; then
15235 ac_header_preproc=yes
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 ac_header_preproc=no
15243 rm -f conftest.err conftest.$ac_ext
15244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15245 echo "${ECHO_T}$ac_header_preproc" >&6; }
15247 # So? What about this header?
15248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15254 ac_header_preproc=yes
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15270 ## ------------------------------ ##
15271 ## Report this to bugs@yourdomain ##
15272 ## ------------------------------ ##
15274 ) | sed "s/^/$as_me: WARNING: /" >&2
15277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15282 eval "$as_ac_Header=\$ac_header_preproc"
15284 ac_res=`eval echo '${'$as_ac_Header'}'`
15285 { echo "$as_me:$LINENO: result: $ac_res" >&5
15286 echo "${ECHO_T}$ac_res" >&6; }
15289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15290 cat >>confdefs.h <<_ACEOF
15291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15299 for ac_header in fenv.h
15301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 ac_res=`eval echo '${'$as_ac_Header'}'`
15309 { echo "$as_me:$LINENO: result: $ac_res" >&5
15310 echo "${ECHO_T}$ac_res" >&6; }
15312 # Is the header compilable?
15313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15315 cat >conftest.$ac_ext <<_ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 $ac_includes_default
15322 #include <$ac_header>
15324 rm -f conftest.$ac_objext
15325 if { (ac_try="$ac_compile"
15326 case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_compile") 2>conftest.er1
15333 grep -v '^ *+' conftest.er1 >conftest.err
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest.$ac_objext'
15349 { (case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_try") 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_header_compiler=yes
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_header_compiler=no
15366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15368 echo "${ECHO_T}$ac_header_compiler" >&6; }
15370 # Is the header present?
15371 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15373 cat >conftest.$ac_ext <<_ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 #include <$ac_header>
15381 if { (ac_try="$ac_cpp conftest.$ac_ext"
15382 case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15389 grep -v '^ *+' conftest.er1 >conftest.err
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } >/dev/null; then
15394 if test -s conftest.err; then
15395 ac_cpp_err=$ac_c_preproc_warn_flag
15396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15403 if test -z "$ac_cpp_err"; then
15404 ac_header_preproc=yes
15406 echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 ac_header_preproc=no
15412 rm -f conftest.err conftest.$ac_ext
15413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15414 echo "${ECHO_T}$ac_header_preproc" >&6; }
15416 # So? What about this header?
15417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15423 ac_header_preproc=yes
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15439 ## ------------------------------ ##
15440 ## Report this to bugs@yourdomain ##
15441 ## ------------------------------ ##
15443 ) | sed "s/^/$as_me: WARNING: /" >&2
15446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 eval "$as_ac_Header=\$ac_header_preproc"
15453 ac_res=`eval echo '${'$as_ac_Header'}'`
15454 { echo "$as_me:$LINENO: result: $ac_res" >&5
15455 echo "${ECHO_T}$ac_res" >&6; }
15458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15459 cat >>confdefs.h <<_ACEOF
15460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15467 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15469 for ac_header in pthread.h
15471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15478 ac_res=`eval echo '${'$as_ac_Header'}'`
15479 { echo "$as_me:$LINENO: result: $ac_res" >&5
15480 echo "${ECHO_T}$ac_res" >&6; }
15482 # Is the header compilable?
15483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15485 cat >conftest.$ac_ext <<_ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15491 $ac_includes_default
15492 #include <$ac_header>
15494 rm -f conftest.$ac_objext
15495 if { (ac_try="$ac_compile"
15496 case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_compile") 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; } &&
15518 { ac_try='test -s conftest.$ac_objext'
15519 { (case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_try") 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_header_compiler=yes
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 ac_header_compiler=no
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15538 echo "${ECHO_T}$ac_header_compiler" >&6; }
15540 # Is the header present?
15541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15543 cat >conftest.$ac_ext <<_ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15549 #include <$ac_header>
15551 if { (ac_try="$ac_cpp conftest.$ac_ext"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15559 grep -v '^ *+' conftest.er1 >conftest.err
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } >/dev/null; then
15564 if test -s conftest.err; then
15565 ac_cpp_err=$ac_c_preproc_warn_flag
15566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15573 if test -z "$ac_cpp_err"; then
15574 ac_header_preproc=yes
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 ac_header_preproc=no
15582 rm -f conftest.err conftest.$ac_ext
15583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15584 echo "${ECHO_T}$ac_header_preproc" >&6; }
15586 # So? What about this header?
15587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15593 ac_header_preproc=yes
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15609 ## ------------------------------ ##
15610 ## Report this to bugs@yourdomain ##
15611 ## ------------------------------ ##
15613 ) | sed "s/^/$as_me: WARNING: /" >&2
15616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 eval "$as_ac_Header=\$ac_header_preproc"
15623 ac_res=`eval echo '${'$as_ac_Header'}'`
15624 { echo "$as_me:$LINENO: result: $ac_res" >&5
15625 echo "${ECHO_T}$ac_res" >&6; }
15628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15629 cat >>confdefs.h <<_ACEOF
15630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15646 if test "$llvm_cv_enable_libffi" = "yes" ; then
15649 for ac_header in ffi.h ffi/ffi.h
15651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15656 echo $ECHO_N "(cached) $ECHO_C" >&6
15658 ac_res=`eval echo '${'$as_ac_Header'}'`
15659 { echo "$as_me:$LINENO: result: $ac_res" >&5
15660 echo "${ECHO_T}$ac_res" >&6; }
15662 # Is the header compilable?
15663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15665 cat >conftest.$ac_ext <<_ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h. */
15671 $ac_includes_default
15672 #include <$ac_header>
15674 rm -f conftest.$ac_objext
15675 if { (ac_try="$ac_compile"
15676 case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_compile") 2>conftest.er1
15683 grep -v '^ *+' conftest.er1 >conftest.err
15685 cat conftest.err >&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
15688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } &&
15698 { ac_try='test -s conftest.$ac_objext'
15699 { (case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_try") 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 ac_header_compiler=yes
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15713 ac_header_compiler=no
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15718 echo "${ECHO_T}$ac_header_compiler" >&6; }
15720 # Is the header present?
15721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15723 cat >conftest.$ac_ext <<_ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 #include <$ac_header>
15731 if { (ac_try="$ac_cpp conftest.$ac_ext"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15739 grep -v '^ *+' conftest.er1 >conftest.err
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } >/dev/null; then
15744 if test -s conftest.err; then
15745 ac_cpp_err=$ac_c_preproc_warn_flag
15746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15753 if test -z "$ac_cpp_err"; then
15754 ac_header_preproc=yes
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 ac_header_preproc=no
15762 rm -f conftest.err conftest.$ac_ext
15763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15764 echo "${ECHO_T}$ac_header_preproc" >&6; }
15766 # So? What about this header?
15767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15773 ac_header_preproc=yes
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15789 ## ------------------------------ ##
15790 ## Report this to bugs@yourdomain ##
15791 ## ------------------------------ ##
15793 ) | sed "s/^/$as_me: WARNING: /" >&2
15796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 eval "$as_ac_Header=\$ac_header_preproc"
15803 ac_res=`eval echo '${'$as_ac_Header'}'`
15804 { echo "$as_me:$LINENO: result: $ac_res" >&5
15805 echo "${ECHO_T}$ac_res" >&6; }
15808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15809 cat >>confdefs.h <<_ACEOF
15810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15820 for ac_header in CrashReporterClient.h
15822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 ac_res=`eval echo '${'$as_ac_Header'}'`
15830 { echo "$as_me:$LINENO: result: $ac_res" >&5
15831 echo "${ECHO_T}$ac_res" >&6; }
15833 # Is the header compilable?
15834 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15836 cat >conftest.$ac_ext <<_ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15842 $ac_includes_default
15843 #include <$ac_header>
15845 rm -f conftest.$ac_objext
15846 if { (ac_try="$ac_compile"
15847 case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_compile") 2>conftest.er1
15854 grep -v '^ *+' conftest.er1 >conftest.err
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15860 { (case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_try") 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; } &&
15869 { ac_try='test -s conftest.$ac_objext'
15870 { (case "(($ac_try" in
15871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872 *) ac_try_echo=$ac_try;;
15874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875 (eval "$ac_try") 2>&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_header_compiler=yes
15881 echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 ac_header_compiler=no
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15889 echo "${ECHO_T}$ac_header_compiler" >&6; }
15891 # Is the header present?
15892 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15894 cat >conftest.$ac_ext <<_ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900 #include <$ac_header>
15902 if { (ac_try="$ac_cpp conftest.$ac_ext"
15903 case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15910 grep -v '^ *+' conftest.er1 >conftest.err
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } >/dev/null; then
15915 if test -s conftest.err; then
15916 ac_cpp_err=$ac_c_preproc_warn_flag
15917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15924 if test -z "$ac_cpp_err"; then
15925 ac_header_preproc=yes
15927 echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15930 ac_header_preproc=no
15933 rm -f conftest.err conftest.$ac_ext
15934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15935 echo "${ECHO_T}$ac_header_preproc" >&6; }
15937 # So? What about this header?
15938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15944 ac_header_preproc=yes
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15950 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15954 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15960 ## ------------------------------ ##
15961 ## Report this to bugs@yourdomain ##
15962 ## ------------------------------ ##
15964 ) | sed "s/^/$as_me: WARNING: /" >&2
15967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 eval "$as_ac_Header=\$ac_header_preproc"
15974 ac_res=`eval echo '${'$as_ac_Header'}'`
15975 { echo "$as_me:$LINENO: result: $ac_res" >&5
15976 echo "${ECHO_T}$ac_res" >&6; }
15979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15980 cat >>confdefs.h <<_ACEOF
15981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15989 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15990 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15991 cat >conftest.$ac_ext <<_ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h. */
15997 extern const char *__crashreporter_info__;
15999 __crashreporter_info__ = "test";
16004 rm -f conftest.$ac_objext conftest$ac_exeext
16005 if { (ac_try="$ac_link"
16006 case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_link") 2>conftest.er1
16013 grep -v '^ *+' conftest.er1 >conftest.err
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16019 { (case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_try") 2>&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; } &&
16028 { ac_try='test -s conftest$ac_exeext'
16029 { (case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_try") 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 { echo "$as_me:$LINENO: result: yes" >&5
16039 echo "${ECHO_T}yes" >&6; }
16041 cat >>confdefs.h <<\_ACEOF
16042 #define HAVE_CRASHREPORTER_INFO 1
16046 echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16049 { echo "$as_me:$LINENO: result: no" >&5
16050 echo "${ECHO_T}no" >&6; }
16052 cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_CRASHREPORTER_INFO 0
16058 rm -f core conftest.err conftest.$ac_objext \
16059 conftest$ac_exeext conftest.$ac_ext
16064 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16065 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16066 if test "${ac_cv_huge_val_sanity+set}" = set; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 ac_cpp='$CXXCPP $CPPFLAGS'
16072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16076 ac_save_CXXFLAGS=$CXXFLAGS
16078 if test "$cross_compiling" = yes; then
16079 ac_cv_huge_val_sanity=yes
16081 cat >conftest.$ac_ext <<_ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16091 double x = HUGE_VAL; return x != x;
16096 rm -f conftest$ac_exeext
16097 if { (ac_try="$ac_link"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_link") 2>&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16107 { (case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_try") 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 ac_cv_huge_val_sanity=yes
16118 echo "$as_me: program exited with status $ac_status" >&5
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16122 ( exit $ac_status )
16123 ac_cv_huge_val_sanity=no
16125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16129 CXXFLAGS=$ac_save_CXXFLAGS
16131 ac_cpp='$CPP $CPPFLAGS'
16132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16138 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16139 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16140 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16143 { echo "$as_me:$LINENO: checking for pid_t" >&5
16144 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16145 if test "${ac_cv_type_pid_t+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 cat >conftest.$ac_ext <<_ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16154 $ac_includes_default
16155 typedef pid_t ac__type_new_;
16159 if ((ac__type_new_ *) 0)
16161 if (sizeof (ac__type_new_))
16167 rm -f conftest.$ac_objext
16168 if { (ac_try="$ac_compile"
16169 case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_compile") 2>conftest.er1
16176 grep -v '^ *+' conftest.er1 >conftest.err
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16182 { (case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_try") 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; } &&
16191 { ac_try='test -s conftest.$ac_objext'
16192 { (case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_try") 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_cv_type_pid_t=yes
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 ac_cv_type_pid_t=no
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16211 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16212 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16213 if test $ac_cv_type_pid_t = yes; then
16217 cat >>confdefs.h <<_ACEOF
16223 { echo "$as_me:$LINENO: checking for size_t" >&5
16224 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16225 if test "${ac_cv_type_size_t+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 cat >conftest.$ac_ext <<_ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 $ac_includes_default
16235 typedef size_t ac__type_new_;
16239 if ((ac__type_new_ *) 0)
16241 if (sizeof (ac__type_new_))
16247 rm -f conftest.$ac_objext
16248 if { (ac_try="$ac_compile"
16249 case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_compile") 2>conftest.er1
16256 grep -v '^ *+' conftest.er1 >conftest.err
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_try") 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_type_size_t=yes
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 ac_cv_type_size_t=no
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16291 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16292 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16293 if test $ac_cv_type_size_t = yes; then
16297 cat >>confdefs.h <<_ACEOF
16298 #define size_t unsigned int
16304 cat >>confdefs.h <<_ACEOF
16305 #define RETSIGTYPE void
16308 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16309 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16310 if test "${ac_cv_struct_tm+set}" = set; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16313 cat >conftest.$ac_ext <<_ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16319 #include <sys/types.h>
16325 struct tm *tp; tp->tm_sec;
16330 rm -f conftest.$ac_objext
16331 if { (ac_try="$ac_compile"
16332 case "(($ac_try" in
16333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334 *) ac_try_echo=$ac_try;;
16336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16337 (eval "$ac_compile") 2>conftest.er1
16339 grep -v '^ *+' conftest.er1 >conftest.err
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest.$ac_objext'
16355 { (case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360 (eval "$ac_try") 2>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_struct_tm=time.h
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16369 ac_cv_struct_tm=sys/time.h
16372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16375 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16376 if test $ac_cv_struct_tm = sys/time.h; then
16378 cat >>confdefs.h <<\_ACEOF
16379 #define TM_IN_SYS_TIME 1
16384 { echo "$as_me:$LINENO: checking for int64_t" >&5
16385 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16386 if test "${ac_cv_type_int64_t+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16389 cat >conftest.$ac_ext <<_ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h. */
16395 $ac_includes_default
16396 typedef int64_t ac__type_new_;
16400 if ((ac__type_new_ *) 0)
16402 if (sizeof (ac__type_new_))
16408 rm -f conftest.$ac_objext
16409 if { (ac_try="$ac_compile"
16410 case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_compile") 2>conftest.er1
16417 grep -v '^ *+' conftest.er1 >conftest.err
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } &&
16422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest.$ac_objext'
16433 { (case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_try") 2>&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442 ac_cv_type_int64_t=yes
16444 echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16447 ac_cv_type_int64_t=no
16450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16453 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16454 if test $ac_cv_type_int64_t = yes; then
16456 cat >>confdefs.h <<_ACEOF
16457 #define HAVE_INT64_T 1
16462 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16463 echo "$as_me: error: Type int64_t required but not found" >&2;}
16464 { (exit 1); exit 1; }; }
16467 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16468 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16469 if test "${ac_cv_type_uint64_t+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16472 cat >conftest.$ac_ext <<_ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16478 $ac_includes_default
16479 typedef uint64_t ac__type_new_;
16483 if ((ac__type_new_ *) 0)
16485 if (sizeof (ac__type_new_))
16491 rm -f conftest.$ac_objext
16492 if { (ac_try="$ac_compile"
16493 case "(($ac_try" in
16494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495 *) ac_try_echo=$ac_try;;
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498 (eval "$ac_compile") 2>conftest.er1
16500 grep -v '^ *+' conftest.er1 >conftest.err
16502 cat conftest.err >&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16506 { (case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_try") 2>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest.$ac_objext'
16516 { (case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_try") 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 ac_cv_type_uint64_t=yes
16527 echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16530 ac_cv_type_uint64_t=no
16533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16536 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16537 if test $ac_cv_type_uint64_t = yes; then
16539 cat >>confdefs.h <<_ACEOF
16540 #define HAVE_UINT64_T 1
16545 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16546 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16547 if test "${ac_cv_type_u_int64_t+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 cat >conftest.$ac_ext <<_ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 $ac_includes_default
16557 typedef u_int64_t ac__type_new_;
16561 if ((ac__type_new_ *) 0)
16563 if (sizeof (ac__type_new_))
16569 rm -f conftest.$ac_objext
16570 if { (ac_try="$ac_compile"
16571 case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_compile") 2>conftest.er1
16578 grep -v '^ *+' conftest.er1 >conftest.err
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } &&
16583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16584 { (case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_try") 2>&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; } &&
16593 { ac_try='test -s conftest.$ac_objext'
16594 { (case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_try") 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 ac_cv_type_u_int64_t=yes
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16608 ac_cv_type_u_int64_t=no
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16613 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16614 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16615 if test $ac_cv_type_u_int64_t = yes; then
16617 cat >>confdefs.h <<_ACEOF
16618 #define HAVE_U_INT64_T 1
16623 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16624 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16625 { (exit 1); exit 1; }; }
16639 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 cat >conftest.$ac_ext <<_ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16655 #define $ac_func innocuous_$ac_func
16657 /* System header to define __stub macros and hopefully few prototypes,
16658 which can conflict with char $ac_func (); below.
16659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16660 <limits.h> exists even on freestanding compilers. */
16663 # include <limits.h>
16665 # include <assert.h>
16670 /* Override any GCC internal prototype to avoid an error.
16671 Use char because int might match the return type of a GCC
16672 builtin and then its argument prototype would still apply. */
16677 /* The GNU C library defines this for functions which it implements
16678 to always fail with ENOSYS. Some functions are actually named
16679 something starting with __ and the normal name is an alias. */
16680 #if defined __stub_$ac_func || defined __stub___$ac_func
16687 return $ac_func ();
16692 rm -f conftest.$ac_objext conftest$ac_exeext
16693 if { (ac_try="$ac_link"
16694 case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
16701 grep -v '^ *+' conftest.er1 >conftest.err
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 eval "$as_ac_var=yes"
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 eval "$as_ac_var=no"
16734 rm -f core conftest.err conftest.$ac_objext \
16735 conftest$ac_exeext conftest.$ac_ext
16737 ac_res=`eval echo '${'$as_ac_var'}'`
16738 { echo "$as_me:$LINENO: result: $ac_res" >&5
16739 echo "${ECHO_T}$ac_res" >&6; }
16740 if test `eval echo '${'$as_ac_var'}'` = yes; then
16741 cat >>confdefs.h <<_ACEOF
16742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16752 for ac_func in powf fmodf strtof round
16754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 cat >conftest.$ac_ext <<_ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16768 #define $ac_func innocuous_$ac_func
16770 /* System header to define __stub macros and hopefully few prototypes,
16771 which can conflict with char $ac_func (); below.
16772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773 <limits.h> exists even on freestanding compilers. */
16776 # include <limits.h>
16778 # include <assert.h>
16783 /* Override any GCC internal prototype to avoid an error.
16784 Use char because int might match the return type of a GCC
16785 builtin and then its argument prototype would still apply. */
16790 /* The GNU C library defines this for functions which it implements
16791 to always fail with ENOSYS. Some functions are actually named
16792 something starting with __ and the normal name is an alias. */
16793 #if defined __stub_$ac_func || defined __stub___$ac_func
16800 return $ac_func ();
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (ac_try="$ac_link"
16807 case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_link") 2>conftest.er1
16814 grep -v '^ *+' conftest.er1 >conftest.err
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest$ac_exeext'
16830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 eval "$as_ac_var=yes"
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 eval "$as_ac_var=no"
16847 rm -f core conftest.err conftest.$ac_objext \
16848 conftest$ac_exeext conftest.$ac_ext
16850 ac_res=`eval echo '${'$as_ac_var'}'`
16851 { echo "$as_me:$LINENO: result: $ac_res" >&5
16852 echo "${ECHO_T}$ac_res" >&6; }
16853 if test `eval echo '${'$as_ac_var'}'` = yes; then
16854 cat >>confdefs.h <<_ACEOF
16855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16866 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16874 cat >conftest.$ac_ext <<_ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h. */
16880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16882 #define $ac_func innocuous_$ac_func
16884 /* System header to define __stub macros and hopefully few prototypes,
16885 which can conflict with char $ac_func (); below.
16886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16887 <limits.h> exists even on freestanding compilers. */
16890 # include <limits.h>
16892 # include <assert.h>
16897 /* Override any GCC internal prototype to avoid an error.
16898 Use char because int might match the return type of a GCC
16899 builtin and then its argument prototype would still apply. */
16904 /* The GNU C library defines this for functions which it implements
16905 to always fail with ENOSYS. Some functions are actually named
16906 something starting with __ and the normal name is an alias. */
16907 #if defined __stub_$ac_func || defined __stub___$ac_func
16914 return $ac_func ();
16919 rm -f conftest.$ac_objext conftest$ac_exeext
16920 if { (ac_try="$ac_link"
16921 case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_link") 2>conftest.er1
16928 grep -v '^ *+' conftest.er1 >conftest.err
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest$ac_exeext'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 eval "$as_ac_var=yes"
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16958 eval "$as_ac_var=no"
16961 rm -f core conftest.err conftest.$ac_objext \
16962 conftest$ac_exeext conftest.$ac_ext
16964 ac_res=`eval echo '${'$as_ac_var'}'`
16965 { echo "$as_me:$LINENO: result: $ac_res" >&5
16966 echo "${ECHO_T}$ac_res" >&6; }
16967 if test `eval echo '${'$as_ac_var'}'` = yes; then
16968 cat >>confdefs.h <<_ACEOF
16969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16978 for ac_func in isatty mkdtemp mkstemp
16980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16994 #define $ac_func innocuous_$ac_func
16996 /* System header to define __stub macros and hopefully few prototypes,
16997 which can conflict with char $ac_func (); below.
16998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16999 <limits.h> exists even on freestanding compilers. */
17002 # include <limits.h>
17004 # include <assert.h>
17009 /* Override any GCC internal prototype to avoid an error.
17010 Use char because int might match the return type of a GCC
17011 builtin and then its argument prototype would still apply. */
17016 /* The GNU C library defines this for functions which it implements
17017 to always fail with ENOSYS. Some functions are actually named
17018 something starting with __ and the normal name is an alias. */
17019 #if defined __stub_$ac_func || defined __stub___$ac_func
17026 return $ac_func ();
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (ac_try="$ac_link"
17033 case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_link") 2>conftest.er1
17040 grep -v '^ *+' conftest.er1 >conftest.err
17042 cat conftest.err >&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
17045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17046 { (case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051 (eval "$ac_try") 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest$ac_exeext'
17056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17065 eval "$as_ac_var=yes"
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17070 eval "$as_ac_var=no"
17073 rm -f core conftest.err conftest.$ac_objext \
17074 conftest$ac_exeext conftest.$ac_ext
17076 ac_res=`eval echo '${'$as_ac_var'}'`
17077 { echo "$as_me:$LINENO: result: $ac_res" >&5
17078 echo "${ECHO_T}$ac_res" >&6; }
17079 if test `eval echo '${'$as_ac_var'}'` = yes; then
17080 cat >>confdefs.h <<_ACEOF
17081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17093 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17099 echo $ECHO_N "(cached) $ECHO_C" >&6
17101 cat >conftest.$ac_ext <<_ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17109 #define $ac_func innocuous_$ac_func
17111 /* System header to define __stub macros and hopefully few prototypes,
17112 which can conflict with char $ac_func (); below.
17113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17114 <limits.h> exists even on freestanding compilers. */
17117 # include <limits.h>
17119 # include <assert.h>
17124 /* Override any GCC internal prototype to avoid an error.
17125 Use char because int might match the return type of a GCC
17126 builtin and then its argument prototype would still apply. */
17131 /* The GNU C library defines this for functions which it implements
17132 to always fail with ENOSYS. Some functions are actually named
17133 something starting with __ and the normal name is an alias. */
17134 #if defined __stub_$ac_func || defined __stub___$ac_func
17141 return $ac_func ();
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (ac_try="$ac_link"
17148 case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_link") 2>conftest.er1
17155 grep -v '^ *+' conftest.er1 >conftest.err
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
17170 { ac_try='test -s conftest$ac_exeext'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 eval "$as_ac_var=yes"
17182 echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17185 eval "$as_ac_var=no"
17188 rm -f core conftest.err conftest.$ac_objext \
17189 conftest$ac_exeext conftest.$ac_ext
17191 ac_res=`eval echo '${'$as_ac_var'}'`
17192 { echo "$as_me:$LINENO: result: $ac_res" >&5
17193 echo "${ECHO_T}$ac_res" >&6; }
17194 if test `eval echo '${'$as_ac_var'}'` = yes; then
17195 cat >>confdefs.h <<_ACEOF
17196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17205 for ac_func in strerror strerror_r setenv
17207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17213 cat >conftest.$ac_ext <<_ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17221 #define $ac_func innocuous_$ac_func
17223 /* System header to define __stub macros and hopefully few prototypes,
17224 which can conflict with char $ac_func (); below.
17225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17226 <limits.h> exists even on freestanding compilers. */
17229 # include <limits.h>
17231 # include <assert.h>
17236 /* Override any GCC internal prototype to avoid an error.
17237 Use char because int might match the return type of a GCC
17238 builtin and then its argument prototype would still apply. */
17243 /* The GNU C library defines this for functions which it implements
17244 to always fail with ENOSYS. Some functions are actually named
17245 something starting with __ and the normal name is an alias. */
17246 #if defined __stub_$ac_func || defined __stub___$ac_func
17253 return $ac_func ();
17258 rm -f conftest.$ac_objext conftest$ac_exeext
17259 if { (ac_try="$ac_link"
17260 case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_link") 2>conftest.er1
17267 grep -v '^ *+' conftest.er1 >conftest.err
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try='test -s conftest$ac_exeext'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 eval "$as_ac_var=yes"
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17297 eval "$as_ac_var=no"
17300 rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17303 ac_res=`eval echo '${'$as_ac_var'}'`
17304 { echo "$as_me:$LINENO: result: $ac_res" >&5
17305 echo "${ECHO_T}$ac_res" >&6; }
17306 if test `eval echo '${'$as_ac_var'}'` = yes; then
17307 cat >>confdefs.h <<_ACEOF
17308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17318 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 cat >conftest.$ac_ext <<_ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17334 #define $ac_func innocuous_$ac_func
17336 /* System header to define __stub macros and hopefully few prototypes,
17337 which can conflict with char $ac_func (); below.
17338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17339 <limits.h> exists even on freestanding compilers. */
17342 # include <limits.h>
17344 # include <assert.h>
17349 /* Override any GCC internal prototype to avoid an error.
17350 Use char because int might match the return type of a GCC
17351 builtin and then its argument prototype would still apply. */
17356 /* The GNU C library defines this for functions which it implements
17357 to always fail with ENOSYS. Some functions are actually named
17358 something starting with __ and the normal name is an alias. */
17359 #if defined __stub_$ac_func || defined __stub___$ac_func
17366 return $ac_func ();
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17380 grep -v '^ *+' conftest.er1 >conftest.err
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } &&
17385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17386 { (case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_try") 2>&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest$ac_exeext'
17396 { (case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_try") 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17405 eval "$as_ac_var=yes"
17407 echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17410 eval "$as_ac_var=no"
17413 rm -f core conftest.err conftest.$ac_objext \
17414 conftest$ac_exeext conftest.$ac_ext
17416 ac_res=`eval echo '${'$as_ac_var'}'`
17417 { echo "$as_me:$LINENO: result: $ac_res" >&5
17418 echo "${ECHO_T}$ac_res" >&6; }
17419 if test `eval echo '${'$as_ac_var'}'` = yes; then
17420 cat >>confdefs.h <<_ACEOF
17421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17432 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17440 cat >conftest.$ac_ext <<_ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17448 #define $ac_func innocuous_$ac_func
17450 /* System header to define __stub macros and hopefully few prototypes,
17451 which can conflict with char $ac_func (); below.
17452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17453 <limits.h> exists even on freestanding compilers. */
17456 # include <limits.h>
17458 # include <assert.h>
17463 /* Override any GCC internal prototype to avoid an error.
17464 Use char because int might match the return type of a GCC
17465 builtin and then its argument prototype would still apply. */
17470 /* The GNU C library defines this for functions which it implements
17471 to always fail with ENOSYS. Some functions are actually named
17472 something starting with __ and the normal name is an alias. */
17473 #if defined __stub_$ac_func || defined __stub___$ac_func
17480 return $ac_func ();
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (ac_try="$ac_link"
17487 case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_link") 2>conftest.er1
17494 grep -v '^ *+' conftest.er1 >conftest.err
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } &&
17499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17500 { (case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_try") 2>&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; } &&
17509 { ac_try='test -s conftest$ac_exeext'
17510 { (case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_try") 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 eval "$as_ac_var=yes"
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17524 eval "$as_ac_var=no"
17527 rm -f core conftest.err conftest.$ac_objext \
17528 conftest$ac_exeext conftest.$ac_ext
17530 ac_res=`eval echo '${'$as_ac_var'}'`
17531 { echo "$as_me:$LINENO: result: $ac_res" >&5
17532 echo "${ECHO_T}$ac_res" >&6; }
17533 if test `eval echo '${'$as_ac_var'}'` = yes; then
17534 cat >>confdefs.h <<_ACEOF
17535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17541 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17542 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17543 if test "${llvm_cv_c_printf_a+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 ac_cpp='$CPP $CPPFLAGS'
17548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17552 if test "$cross_compiling" = yes; then
17553 llvmac_cv_c_printf_a=no
17555 cat >conftest.$ac_ext <<_ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17564 #include <stdlib.h>
17570 volatile double A, B;
17574 sprintf(Buffer, "%a", A);
17578 if (A != 0x1.999999999999ap-4)
17585 rm -f conftest$ac_exeext
17586 if { (ac_try="$ac_link"
17587 case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_link") 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17596 { (case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_try") 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 llvm_cv_c_printf_a=yes
17607 echo "$as_me: program exited with status $ac_status" >&5
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 ( exit $ac_status )
17612 llvmac_cv_c_printf_a=no
17614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17619 ac_cpp='$CPP $CPPFLAGS'
17620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17625 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17626 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17627 if test "$llvm_cv_c_printf_a" = "yes"; then
17629 cat >>confdefs.h <<\_ACEOF
17630 #define HAVE_PRINTF_A 1
17636 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17637 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17638 if test "${ac_cv_func_rand48+set}" = set; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17642 ac_cpp='$CXXCPP $CPPFLAGS'
17643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17647 cat >conftest.$ac_ext <<_ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h. */
17653 #include <stdlib.h>
17657 srand48(0);lrand48();drand48();
17662 rm -f conftest.$ac_objext
17663 if { (ac_try="$ac_compile"
17664 case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_compile") 2>conftest.er1
17671 grep -v '^ *+' conftest.er1 >conftest.err
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
17676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17677 { (case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_try") 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; } &&
17686 { ac_try='test -s conftest.$ac_objext'
17687 { (case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_try") 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 ac_cv_func_rand48=yes
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17701 ac_cv_func_rand48=no
17704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 ac_cpp='$CPP $CPPFLAGS'
17707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17712 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17713 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17715 if test "$ac_cv_func_rand48" = "yes" ; then
17717 cat >>confdefs.h <<\_ACEOF
17718 #define HAVE_RAND48 1
17724 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17725 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17726 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 cat >conftest.$ac_ext <<_ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17735 $ac_includes_default
17740 char *p = (char *) strerror_s;
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_compile") 2>conftest.er1
17757 grep -v '^ *+' conftest.er1 >conftest.err
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
17773 { (case "(($ac_try" in
17774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775 *) ac_try_echo=$ac_try;;
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778 (eval "$ac_try") 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 ac_cv_have_decl_strerror_s=yes
17784 echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17787 ac_cv_have_decl_strerror_s=no
17790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17793 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17794 if test $ac_cv_have_decl_strerror_s = yes; then
17796 cat >>confdefs.h <<_ACEOF
17797 #define HAVE_DECL_STRERROR_S 1
17802 cat >>confdefs.h <<_ACEOF
17803 #define HAVE_DECL_STRERROR_S 0
17811 if test "$llvm_cv_os_type" = "MingW" ; then
17812 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17813 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17814 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 ac_check_lib_save_LIBS=$LIBS
17819 cat >conftest.$ac_ext <<_ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17826 /* Override any GCC internal prototype to avoid an error.
17827 Use char because int might match the return type of a GCC
17828 builtin and then its argument prototype would still apply. */
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_link") 2>conftest.er1
17850 grep -v '^ *+' conftest.er1 >conftest.err
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest$ac_exeext'
17866 { (case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_try") 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_cv_lib_gcc__alloca=yes
17877 echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17880 ac_cv_lib_gcc__alloca=no
17883 rm -f core conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17885 LIBS=$ac_check_lib_save_LIBS
17887 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17888 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17889 if test $ac_cv_lib_gcc__alloca = yes; then
17891 cat >>confdefs.h <<\_ACEOF
17892 #define HAVE__ALLOCA 1
17897 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17898 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17899 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 ac_check_lib_save_LIBS=$LIBS
17904 cat >conftest.$ac_ext <<_ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17911 /* Override any GCC internal prototype to avoid an error.
17912 Use char because int might match the return type of a GCC
17913 builtin and then its argument prototype would still apply. */
17921 return __alloca ();
17926 rm -f conftest.$ac_objext conftest$ac_exeext
17927 if { (ac_try="$ac_link"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_link") 2>conftest.er1
17935 grep -v '^ *+' conftest.er1 >conftest.err
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest$ac_exeext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_lib_gcc___alloca=yes
17962 echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17965 ac_cv_lib_gcc___alloca=no
17968 rm -f core conftest.err conftest.$ac_objext \
17969 conftest$ac_exeext conftest.$ac_ext
17970 LIBS=$ac_check_lib_save_LIBS
17972 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17973 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17974 if test $ac_cv_lib_gcc___alloca = yes; then
17976 cat >>confdefs.h <<\_ACEOF
17977 #define HAVE___ALLOCA 1
17982 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17983 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17984 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 ac_check_lib_save_LIBS=$LIBS
17989 cat >conftest.$ac_ext <<_ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17996 /* Override any GCC internal prototype to avoid an error.
17997 Use char because int might match the return type of a GCC
17998 builtin and then its argument prototype would still apply. */
18006 return __chkstk ();
18011 rm -f conftest.$ac_objext conftest$ac_exeext
18012 if { (ac_try="$ac_link"
18013 case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_link") 2>conftest.er1
18020 grep -v '^ *+' conftest.er1 >conftest.err
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } &&
18025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18026 { (case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_try") 2>&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try='test -s conftest$ac_exeext'
18036 { (case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_try") 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 ac_cv_lib_gcc___chkstk=yes
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18050 ac_cv_lib_gcc___chkstk=no
18053 rm -f core conftest.err conftest.$ac_objext \
18054 conftest$ac_exeext conftest.$ac_ext
18055 LIBS=$ac_check_lib_save_LIBS
18057 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18058 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18059 if test $ac_cv_lib_gcc___chkstk = yes; then
18061 cat >>confdefs.h <<\_ACEOF
18062 #define HAVE___CHKSTK 1
18067 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18068 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18069 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 ac_check_lib_save_LIBS=$LIBS
18074 cat >conftest.$ac_ext <<_ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18081 /* Override any GCC internal prototype to avoid an error.
18082 Use char because int might match the return type of a GCC
18083 builtin and then its argument prototype would still apply. */
18091 return ___chkstk ();
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (ac_try="$ac_link"
18098 case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_link") 2>conftest.er1
18105 grep -v '^ *+' conftest.er1 >conftest.err
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
18110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; } &&
18120 { ac_try='test -s conftest$ac_exeext'
18121 { (case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_try") 2>&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_cv_lib_gcc____chkstk=yes
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 ac_cv_lib_gcc____chkstk=no
18138 rm -f core conftest.err conftest.$ac_objext \
18139 conftest$ac_exeext conftest.$ac_ext
18140 LIBS=$ac_check_lib_save_LIBS
18142 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18143 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18144 if test $ac_cv_lib_gcc____chkstk = yes; then
18146 cat >>confdefs.h <<\_ACEOF
18147 #define HAVE____CHKSTK 1
18153 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18154 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18155 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18158 ac_check_lib_save_LIBS=$LIBS
18160 cat >conftest.$ac_ext <<_ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18167 /* Override any GCC internal prototype to avoid an error.
18168 Use char because int might match the return type of a GCC
18169 builtin and then its argument prototype would still apply. */
18177 return __ashldi3 ();
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_link") 2>conftest.er1
18191 grep -v '^ *+' conftest.er1 >conftest.err
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } &&
18196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest$ac_exeext'
18207 { (case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_try") 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_lib_gcc___ashldi3=yes
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 ac_cv_lib_gcc___ashldi3=no
18224 rm -f core conftest.err conftest.$ac_objext \
18225 conftest$ac_exeext conftest.$ac_ext
18226 LIBS=$ac_check_lib_save_LIBS
18228 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18229 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18230 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18232 cat >>confdefs.h <<\_ACEOF
18233 #define HAVE___ASHLDI3 1
18238 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18239 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18240 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18243 ac_check_lib_save_LIBS=$LIBS
18245 cat >conftest.$ac_ext <<_ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18252 /* Override any GCC internal prototype to avoid an error.
18253 Use char because int might match the return type of a GCC
18254 builtin and then its argument prototype would still apply. */
18262 return __ashrdi3 ();
18267 rm -f conftest.$ac_objext conftest$ac_exeext
18268 if { (ac_try="$ac_link"
18269 case "(($ac_try" in
18270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_link") 2>conftest.er1
18276 grep -v '^ *+' conftest.er1 >conftest.err
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
18281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18282 { (case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_try") 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try='test -s conftest$ac_exeext'
18292 { (case "(($ac_try" in
18293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294 *) ac_try_echo=$ac_try;;
18296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18297 (eval "$ac_try") 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; }; then
18301 ac_cv_lib_gcc___ashrdi3=yes
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 ac_cv_lib_gcc___ashrdi3=no
18309 rm -f core conftest.err conftest.$ac_objext \
18310 conftest$ac_exeext conftest.$ac_ext
18311 LIBS=$ac_check_lib_save_LIBS
18313 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18314 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18315 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18317 cat >>confdefs.h <<\_ACEOF
18318 #define HAVE___ASHRDI3 1
18323 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18324 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18325 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18328 ac_check_lib_save_LIBS=$LIBS
18330 cat >conftest.$ac_ext <<_ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18337 /* Override any GCC internal prototype to avoid an error.
18338 Use char because int might match the return type of a GCC
18339 builtin and then its argument prototype would still apply. */
18347 return __divdi3 ();
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (ac_try="$ac_link"
18354 case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_link") 2>conftest.er1
18361 grep -v '^ *+' conftest.er1 >conftest.err
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest$ac_exeext'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 ac_cv_lib_gcc___divdi3=yes
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18391 ac_cv_lib_gcc___divdi3=no
18394 rm -f core conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18396 LIBS=$ac_check_lib_save_LIBS
18398 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18399 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18400 if test $ac_cv_lib_gcc___divdi3 = yes; then
18402 cat >>confdefs.h <<\_ACEOF
18403 #define HAVE___DIVDI3 1
18408 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18409 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18410 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 ac_check_lib_save_LIBS=$LIBS
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18422 /* Override any GCC internal prototype to avoid an error.
18423 Use char because int might match the return type of a GCC
18424 builtin and then its argument prototype would still apply. */
18432 return __fixdfdi ();
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (ac_try="$ac_link"
18439 case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_link") 2>conftest.er1
18446 grep -v '^ *+' conftest.er1 >conftest.err
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try='test -s conftest$ac_exeext'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; }; then
18471 ac_cv_lib_gcc___fixdfdi=yes
18473 echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18476 ac_cv_lib_gcc___fixdfdi=no
18479 rm -f core conftest.err conftest.$ac_objext \
18480 conftest$ac_exeext conftest.$ac_ext
18481 LIBS=$ac_check_lib_save_LIBS
18483 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18484 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18485 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18487 cat >>confdefs.h <<\_ACEOF
18488 #define HAVE___FIXDFDI 1
18493 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18494 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18495 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 ac_check_lib_save_LIBS=$LIBS
18500 cat >conftest.$ac_ext <<_ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h. */
18507 /* Override any GCC internal prototype to avoid an error.
18508 Use char because int might match the return type of a GCC
18509 builtin and then its argument prototype would still apply. */
18517 return __fixsfdi ();
18522 rm -f conftest.$ac_objext conftest$ac_exeext
18523 if { (ac_try="$ac_link"
18524 case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_link") 2>conftest.er1
18531 grep -v '^ *+' conftest.er1 >conftest.err
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest$ac_exeext'
18547 { (case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_try") 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_cv_lib_gcc___fixsfdi=yes
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18561 ac_cv_lib_gcc___fixsfdi=no
18564 rm -f core conftest.err conftest.$ac_objext \
18565 conftest$ac_exeext conftest.$ac_ext
18566 LIBS=$ac_check_lib_save_LIBS
18568 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18569 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18570 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18572 cat >>confdefs.h <<\_ACEOF
18573 #define HAVE___FIXSFDI 1
18578 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18579 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18580 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 ac_check_lib_save_LIBS=$LIBS
18585 cat >conftest.$ac_ext <<_ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18592 /* Override any GCC internal prototype to avoid an error.
18593 Use char because int might match the return type of a GCC
18594 builtin and then its argument prototype would still apply. */
18598 char __floatdidf ();
18602 return __floatdidf ();
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (ac_try="$ac_link"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_link") 2>conftest.er1
18616 grep -v '^ *+' conftest.er1 >conftest.err
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try='test -s conftest$ac_exeext'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_cv_lib_gcc___floatdidf=yes
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 ac_cv_lib_gcc___floatdidf=no
18649 rm -f core conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_check_lib_save_LIBS
18653 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18654 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18655 if test $ac_cv_lib_gcc___floatdidf = yes; then
18657 cat >>confdefs.h <<\_ACEOF
18658 #define HAVE___FLOATDIDF 1
18663 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18664 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18665 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 ac_check_lib_save_LIBS=$LIBS
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18677 /* Override any GCC internal prototype to avoid an error.
18678 Use char because int might match the return type of a GCC
18679 builtin and then its argument prototype would still apply. */
18687 return __lshrdi3 ();
18692 rm -f conftest.$ac_objext conftest$ac_exeext
18693 if { (ac_try="$ac_link"
18694 case "(($ac_try" in
18695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696 *) ac_try_echo=$ac_try;;
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699 (eval "$ac_link") 2>conftest.er1
18701 grep -v '^ *+' conftest.er1 >conftest.err
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } &&
18706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18707 { (case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_try") 2>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; } &&
18716 { ac_try='test -s conftest$ac_exeext'
18717 { (case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722 (eval "$ac_try") 2>&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 ac_cv_lib_gcc___lshrdi3=yes
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18731 ac_cv_lib_gcc___lshrdi3=no
18734 rm -f core conftest.err conftest.$ac_objext \
18735 conftest$ac_exeext conftest.$ac_ext
18736 LIBS=$ac_check_lib_save_LIBS
18738 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18739 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18740 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18742 cat >>confdefs.h <<\_ACEOF
18743 #define HAVE___LSHRDI3 1
18748 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18749 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18750 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 ac_check_lib_save_LIBS=$LIBS
18755 cat >conftest.$ac_ext <<_ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18772 return __moddi3 ();
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_link") 2>conftest.er1
18786 grep -v '^ *+' conftest.er1 >conftest.err
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } &&
18791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18792 { (case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_try") 2>&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; } &&
18801 { ac_try='test -s conftest$ac_exeext'
18802 { (case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_try") 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 ac_cv_lib_gcc___moddi3=yes
18813 echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18816 ac_cv_lib_gcc___moddi3=no
18819 rm -f core conftest.err conftest.$ac_objext \
18820 conftest$ac_exeext conftest.$ac_ext
18821 LIBS=$ac_check_lib_save_LIBS
18823 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18824 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18825 if test $ac_cv_lib_gcc___moddi3 = yes; then
18827 cat >>confdefs.h <<\_ACEOF
18828 #define HAVE___MODDI3 1
18833 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18834 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18835 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 ac_check_lib_save_LIBS=$LIBS
18840 cat >conftest.$ac_ext <<_ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18847 /* Override any GCC internal prototype to avoid an error.
18848 Use char because int might match the return type of a GCC
18849 builtin and then its argument prototype would still apply. */
18857 return __udivdi3 ();
18862 rm -f conftest.$ac_objext conftest$ac_exeext
18863 if { (ac_try="$ac_link"
18864 case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_link") 2>conftest.er1
18871 grep -v '^ *+' conftest.er1 >conftest.err
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18877 { (case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_try") 2>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; } &&
18886 { ac_try='test -s conftest$ac_exeext'
18887 { (case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_try") 2>&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; }; then
18896 ac_cv_lib_gcc___udivdi3=yes
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 ac_cv_lib_gcc___udivdi3=no
18904 rm -f core conftest.err conftest.$ac_objext \
18905 conftest$ac_exeext conftest.$ac_ext
18906 LIBS=$ac_check_lib_save_LIBS
18908 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18909 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18910 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18912 cat >>confdefs.h <<\_ACEOF
18913 #define HAVE___UDIVDI3 1
18918 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18919 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18920 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 ac_check_lib_save_LIBS=$LIBS
18925 cat >conftest.$ac_ext <<_ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18932 /* Override any GCC internal prototype to avoid an error.
18933 Use char because int might match the return type of a GCC
18934 builtin and then its argument prototype would still apply. */
18942 return __umoddi3 ();
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_link") 2>conftest.er1
18956 grep -v '^ *+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
18961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18962 { (case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_try") 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; } &&
18971 { ac_try='test -s conftest$ac_exeext'
18972 { (case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_try") 2>&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; }; then
18981 ac_cv_lib_gcc___umoddi3=yes
18983 echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18986 ac_cv_lib_gcc___umoddi3=no
18989 rm -f core conftest.err conftest.$ac_objext \
18990 conftest$ac_exeext conftest.$ac_ext
18991 LIBS=$ac_check_lib_save_LIBS
18993 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18994 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18995 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18997 cat >>confdefs.h <<\_ACEOF
18998 #define HAVE___UMODDI3 1
19004 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19005 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19006 if test "${ac_cv_lib_gcc___main+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 ac_check_lib_save_LIBS=$LIBS
19011 cat >conftest.$ac_ext <<_ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h. */
19018 /* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
19047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest$ac_exeext'
19058 { (case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_try") 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_lib_gcc___main=yes
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 ac_cv_lib_gcc___main=no
19075 rm -f core conftest.err conftest.$ac_objext \
19076 conftest$ac_exeext conftest.$ac_ext
19077 LIBS=$ac_check_lib_save_LIBS
19079 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19080 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19081 if test $ac_cv_lib_gcc___main = yes; then
19083 cat >>confdefs.h <<\_ACEOF
19084 #define HAVE___MAIN 1
19089 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19090 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19091 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 ac_check_lib_save_LIBS=$LIBS
19096 cat >conftest.$ac_ext <<_ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h. */
19103 /* Override any GCC internal prototype to avoid an error.
19104 Use char because int might match the return type of a GCC
19105 builtin and then its argument prototype would still apply. */
19113 return __cmpdi2 ();
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (ac_try="$ac_link"
19120 case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
19132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest$ac_exeext'
19143 { (case "(($ac_try" in
19144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145 *) ac_try_echo=$ac_try;;
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148 (eval "$ac_try") 2>&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_lib_gcc___cmpdi2=yes
19154 echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19157 ac_cv_lib_gcc___cmpdi2=no
19160 rm -f core conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext conftest.$ac_ext
19162 LIBS=$ac_check_lib_save_LIBS
19164 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19165 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19166 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19168 cat >>confdefs.h <<\_ACEOF
19169 #define HAVE___CMPDI2 1
19176 if test "$llvm_cv_os_type" = "MingW" ; then
19177 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19178 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19179 cat >conftest.$ac_ext <<_ACEOF
19180 #include <windows.h>
19181 #include <imagehlp.h>
19182 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19183 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19185 rm -f conftest.$ac_objext
19186 if { (ac_try="$ac_compile"
19187 case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_compile") 2>conftest.er1
19194 grep -v '^ *+' conftest.er1 >conftest.err
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
19199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19200 { (case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_try") 2>&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; } &&
19209 { ac_try='test -s conftest.$ac_objext'
19210 { (case "(($ac_try" in
19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212 *) ac_try_echo=$ac_try;;
19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215 (eval "$ac_try") 2>&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; }; then
19220 { echo "$as_me:$LINENO: result: yes" >&5
19221 echo "${ECHO_T}yes" >&6; }
19222 llvm_cv_win32_elmcb_pcstr="PCSTR"
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19229 { echo "$as_me:$LINENO: result: no" >&5
19230 echo "${ECHO_T}no" >&6; }
19231 llvm_cv_win32_elmcb_pcstr="PSTR"
19235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 cat >>confdefs.h <<_ACEOF
19238 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19244 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19245 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19246 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 ac_cpp='$CXXCPP $CPPFLAGS'
19251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19255 cat >conftest.$ac_ext <<_ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19270 rm -f conftest.$ac_objext
19271 if { (ac_try="$ac_compile"
19272 case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_compile") 2>conftest.er1
19279 grep -v '^ *+' conftest.er1 >conftest.err
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } &&
19284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest.$ac_objext'
19295 { (case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_try") 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_func_isnan_in_math_h=yes
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19309 ac_cv_func_isnan_in_math_h=no
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 ac_cpp='$CPP $CPPFLAGS'
19315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19320 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19321 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19324 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19326 cat >>confdefs.h <<\_ACEOF
19327 #define HAVE_ISNAN_IN_MATH_H 1
19332 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19333 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19334 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 ac_cpp='$CXXCPP $CPPFLAGS'
19339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19343 cat >conftest.$ac_ext <<_ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19358 rm -f conftest.$ac_objext
19359 if { (ac_try="$ac_compile"
19360 case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_compile") 2>conftest.er1
19367 grep -v '^ *+' conftest.er1 >conftest.err
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19373 { (case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_try") 2>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
19383 { (case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388 (eval "$ac_try") 2>&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 ac_cv_func_isnan_in_cmath=yes
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 ac_cv_func_isnan_in_cmath=no
19400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402 ac_cpp='$CPP $CPPFLAGS'
19403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19408 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19409 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19411 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19413 cat >>confdefs.h <<\_ACEOF
19414 #define HAVE_ISNAN_IN_CMATH 1
19419 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19420 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19421 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19425 ac_cpp='$CXXCPP $CPPFLAGS'
19426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19430 cat >conftest.$ac_ext <<_ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19440 float f; std::isnan(f);
19445 rm -f conftest.$ac_objext
19446 if { (ac_try="$ac_compile"
19447 case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452 (eval "$ac_compile") 2>conftest.er1
19454 grep -v '^ *+' conftest.er1 >conftest.err
19456 cat conftest.err >&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
19459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19460 { (case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_try") 2>&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; } &&
19469 { ac_try='test -s conftest.$ac_objext'
19470 { (case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475 (eval "$ac_try") 2>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; }; then
19479 ac_cv_func_std_isnan_in_cmath=yes
19481 echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19484 ac_cv_func_std_isnan_in_cmath=no
19487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489 ac_cpp='$CPP $CPPFLAGS'
19490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19495 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19496 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19498 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19500 cat >>confdefs.h <<\_ACEOF
19501 #define HAVE_STD_ISNAN_IN_CMATH 1
19507 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19508 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19509 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 ac_cpp='$CXXCPP $CPPFLAGS'
19514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19518 cat >conftest.$ac_ext <<_ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19533 rm -f conftest.$ac_objext
19534 if { (ac_try="$ac_compile"
19535 case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_compile") 2>conftest.er1
19542 grep -v '^ *+' conftest.er1 >conftest.err
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest.$ac_objext'
19558 { (case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_try") 2>&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
19567 ac_cv_func_isinf_in_math_h=yes
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19572 ac_cv_func_isinf_in_math_h=no
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577 ac_cpp='$CPP $CPPFLAGS'
19578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19583 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19584 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19586 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19588 cat >>confdefs.h <<\_ACEOF
19589 #define HAVE_ISINF_IN_MATH_H 1
19594 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19595 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19596 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 ac_cpp='$CXXCPP $CPPFLAGS'
19601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19605 cat >conftest.$ac_ext <<_ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19620 rm -f conftest.$ac_objext
19621 if { (ac_try="$ac_compile"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_compile") 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } &&
19634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19635 { (case "(($ac_try" in
19636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637 *) ac_try_echo=$ac_try;;
19639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640 (eval "$ac_try") 2>&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; } &&
19644 { ac_try='test -s conftest.$ac_objext'
19645 { (case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_try") 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; }; then
19654 ac_cv_func_isinf_in_cmath=yes
19656 echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19659 ac_cv_func_isinf_in_cmath=no
19662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664 ac_cpp='$CPP $CPPFLAGS'
19665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19670 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19671 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19673 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19675 cat >>confdefs.h <<\_ACEOF
19676 #define HAVE_ISINF_IN_CMATH 1
19681 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19682 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19683 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 ac_cpp='$CXXCPP $CPPFLAGS'
19688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19692 cat >conftest.$ac_ext <<_ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19702 float f; std::isinf(f)}
19707 rm -f conftest.$ac_objext
19708 if { (ac_try="$ac_compile"
19709 case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
19716 grep -v '^ *+' conftest.er1 >conftest.err
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_try") 2>&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
19741 ac_cv_func_std_isinf_in_cmath=yes
19743 echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19746 ac_cv_func_std_isinf_in_cmath=no
19749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19751 ac_cpp='$CPP $CPPFLAGS'
19752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19757 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19758 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19760 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_STD_ISINF_IN_CMATH 1
19768 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19769 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19770 if test "${ac_cv_func_finite_in_ieeefp_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. */
19785 #include <ieeefp.h>
19789 float f; finite(f);
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_finite_in_ieeefp_h=yes
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ac_cv_func_finite_in_ieeefp_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_finite_in_ieeefp_h" >&5
19845 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19847 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19849 cat >>confdefs.h <<\_ACEOF
19850 #define HAVE_FINITE_IN_IEEEFP_H 1
19857 if test "$llvm_cv_platform_type" = "Unix" ; then
19860 for ac_header in stdlib.h unistd.h
19862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 ac_res=`eval echo '${'$as_ac_Header'}'`
19870 { echo "$as_me:$LINENO: result: $ac_res" >&5
19871 echo "${ECHO_T}$ac_res" >&6; }
19873 # Is the header compilable?
19874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19876 cat >conftest.$ac_ext <<_ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 $ac_includes_default
19883 #include <$ac_header>
19885 rm -f conftest.$ac_objext
19886 if { (ac_try="$ac_compile"
19887 case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_compile") 2>conftest.er1
19894 grep -v '^ *+' conftest.er1 >conftest.err
19896 cat conftest.err >&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } &&
19899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19900 { (case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_try") 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; } &&
19909 { ac_try='test -s conftest.$ac_objext'
19910 { (case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_try") 2>&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 ac_header_compiler=yes
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19924 ac_header_compiler=no
19927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19929 echo "${ECHO_T}$ac_header_compiler" >&6; }
19931 # Is the header present?
19932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19934 cat >conftest.$ac_ext <<_ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h. */
19940 #include <$ac_header>
19942 if { (ac_try="$ac_cpp conftest.$ac_ext"
19943 case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } >/dev/null; then
19955 if test -s conftest.err; then
19956 ac_cpp_err=$ac_c_preproc_warn_flag
19957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19964 if test -z "$ac_cpp_err"; then
19965 ac_header_preproc=yes
19967 echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19970 ac_header_preproc=no
19973 rm -f conftest.err conftest.$ac_ext
19974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19975 echo "${ECHO_T}$ac_header_preproc" >&6; }
19977 # So? What about this header?
19978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19984 ac_header_preproc=yes
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20000 ## ------------------------------ ##
20001 ## Report this to bugs@yourdomain ##
20002 ## ------------------------------ ##
20004 ) | sed "s/^/$as_me: WARNING: /" >&2
20007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20012 eval "$as_ac_Header=\$ac_header_preproc"
20014 ac_res=`eval echo '${'$as_ac_Header'}'`
20015 { echo "$as_me:$LINENO: result: $ac_res" >&5
20016 echo "${ECHO_T}$ac_res" >&6; }
20019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20020 cat >>confdefs.h <<_ACEOF
20021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20029 for ac_func in getpagesize
20031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20032 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20037 cat >conftest.$ac_ext <<_ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20045 #define $ac_func innocuous_$ac_func
20047 /* System header to define __stub macros and hopefully few prototypes,
20048 which can conflict with char $ac_func (); below.
20049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20050 <limits.h> exists even on freestanding compilers. */
20053 # include <limits.h>
20055 # include <assert.h>
20060 /* Override any GCC internal prototype to avoid an error.
20061 Use char because int might match the return type of a GCC
20062 builtin and then its argument prototype would still apply. */
20067 /* The GNU C library defines this for functions which it implements
20068 to always fail with ENOSYS. Some functions are actually named
20069 something starting with __ and the normal name is an alias. */
20070 #if defined __stub_$ac_func || defined __stub___$ac_func
20077 return $ac_func ();
20082 rm -f conftest.$ac_objext conftest$ac_exeext
20083 if { (ac_try="$ac_link"
20084 case "(($ac_try" in
20085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086 *) ac_try_echo=$ac_try;;
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089 (eval "$ac_link") 2>conftest.er1
20091 grep -v '^ *+' conftest.er1 >conftest.err
20093 cat conftest.err >&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } &&
20096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20097 { (case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102 (eval "$ac_try") 2>&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; } &&
20106 { ac_try='test -s conftest$ac_exeext'
20107 { (case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_try") 2>&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 eval "$as_ac_var=yes"
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 eval "$as_ac_var=no"
20124 rm -f core conftest.err conftest.$ac_objext \
20125 conftest$ac_exeext conftest.$ac_ext
20127 ac_res=`eval echo '${'$as_ac_var'}'`
20128 { echo "$as_me:$LINENO: result: $ac_res" >&5
20129 echo "${ECHO_T}$ac_res" >&6; }
20130 if test `eval echo '${'$as_ac_var'}'` = yes; then
20131 cat >>confdefs.h <<_ACEOF
20132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20138 { echo "$as_me:$LINENO: checking for working mmap" >&5
20139 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20140 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 if test "$cross_compiling" = yes; then
20144 ac_cv_func_mmap_fixed_mapped=no
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 $ac_includes_default
20153 /* malloc might have been renamed as rpl_malloc. */
20156 /* Thanks to Mike Haertel and Jim Avera for this test.
20157 Here is a matrix of mmap possibilities:
20158 mmap private not fixed
20159 mmap private fixed at somewhere currently unmapped
20160 mmap private fixed at somewhere already mapped
20161 mmap shared not fixed
20162 mmap shared fixed at somewhere currently unmapped
20163 mmap shared fixed at somewhere already mapped
20164 For private mappings, we should verify that changes cannot be read()
20165 back from the file, nor mmap's back from the file at a different
20166 address. (There have been systems where private was not correctly
20167 implemented like the infamous i386 svr4.0, and systems where the
20168 VM page cache was not coherent with the file system buffer cache
20169 like early versions of FreeBSD and possibly contemporary NetBSD.)
20170 For shared mappings, we should conversely verify that changes get
20171 propagated back to all the places they're supposed to be.
20173 Grep wants private fixed already mapped.
20174 The main things grep needs to know about mmap are:
20175 * does it exist and is it safe to write into the mmap'd area
20176 * how to use it (BSD variants) */
20179 #include <sys/mman.h>
20181 #if !STDC_HEADERS && !HAVE_STDLIB_H
20185 /* This mess was copied from the GNU getpagesize.h. */
20186 #if !HAVE_GETPAGESIZE
20187 /* Assume that all systems that can run configure have sys/param.h. */
20188 # if !HAVE_SYS_PARAM_H
20189 # define HAVE_SYS_PARAM_H 1
20192 # ifdef _SC_PAGESIZE
20193 # define getpagesize() sysconf(_SC_PAGESIZE)
20194 # else /* no _SC_PAGESIZE */
20195 # if HAVE_SYS_PARAM_H
20196 # include <sys/param.h>
20197 # ifdef EXEC_PAGESIZE
20198 # define getpagesize() EXEC_PAGESIZE
20199 # else /* no EXEC_PAGESIZE */
20201 # define getpagesize() NBPG * CLSIZE
20204 # endif /* no CLSIZE */
20205 # else /* no NBPG */
20207 # define getpagesize() NBPC
20208 # else /* no NBPC */
20210 # define getpagesize() PAGESIZE
20211 # endif /* PAGESIZE */
20212 # endif /* no NBPC */
20213 # endif /* no NBPG */
20214 # endif /* no EXEC_PAGESIZE */
20215 # else /* no HAVE_SYS_PARAM_H */
20216 # define getpagesize() 8192 /* punt totally */
20217 # endif /* no HAVE_SYS_PARAM_H */
20218 # endif /* no _SC_PAGESIZE */
20220 #endif /* no HAVE_GETPAGESIZE */
20225 char *data, *data2, *data3;
20229 pagesize = getpagesize ();
20231 /* First, make a file with some known garbage in it. */
20232 data = (char *) malloc (pagesize);
20235 for (i = 0; i < pagesize; ++i)
20236 *(data + i) = rand ();
20238 fd = creat ("conftest.mmap", 0600);
20241 if (write (fd, data, pagesize) != pagesize)
20245 /* Next, try to mmap the file at a fixed address which already has
20246 something else allocated at it. If we can, also make sure that
20247 we see the same garbage. */
20248 fd = open ("conftest.mmap", O_RDWR);
20251 data2 = (char *) malloc (2 * pagesize);
20254 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20255 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20256 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20258 for (i = 0; i < pagesize; ++i)
20259 if (*(data + i) != *(data2 + i))
20262 /* Finally, make sure that changes to the mapped area do not
20263 percolate back to the file as seen by read(). (This is a bug on
20264 some variants of i386 svr4.0.) */
20265 for (i = 0; i < pagesize; ++i)
20266 *(data2 + i) = *(data2 + i) + 1;
20267 data3 = (char *) malloc (pagesize);
20270 if (read (fd, data3, pagesize) != pagesize)
20272 for (i = 0; i < pagesize; ++i)
20273 if (*(data + i) != *(data3 + i))
20279 rm -f conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_link") 2>&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20290 { (case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_try") 2>&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_cv_func_mmap_fixed_mapped=yes
20301 echo "$as_me: program exited with status $ac_status" >&5
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 ( exit $ac_status )
20306 ac_cv_func_mmap_fixed_mapped=no
20308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20313 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20314 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20315 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20317 cat >>confdefs.h <<\_ACEOF
20318 #define HAVE_MMAP 1
20322 rm -f conftest.mmap
20324 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20325 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20326 if test "${ac_cv_func_mmap_file+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20330 ac_cpp='$CPP $CPPFLAGS'
20331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20335 if test "$cross_compiling" = yes; then
20336 ac_cv_func_mmap_file=no
20338 cat >conftest.$ac_ext <<_ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20346 #include <sys/types.h>
20347 #include <sys/mman.h>
20355 fd = creat ("foo",0777);
20356 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20358 return (fd != (int) MAP_FAILED);
20363 rm -f conftest$ac_exeext
20364 if { (ac_try="$ac_link"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_link") 2>&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20374 { (case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_try") 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_cv_func_mmap_file=yes
20385 echo "$as_me: program exited with status $ac_status" >&5
20386 echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20389 ( exit $ac_status )
20390 ac_cv_func_mmap_file=no
20392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20397 ac_cpp='$CPP $CPPFLAGS'
20398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20404 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20405 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20406 if test "$ac_cv_func_mmap_file" = yes; then
20408 cat >>confdefs.h <<\_ACEOF
20409 #define HAVE_MMAP_FILE
20416 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20417 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20418 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20421 if test "$llvm_cv_os_type" = "Interix" ; then
20422 ac_cv_need_dev_zero_for_mmap=yes
20424 ac_cv_need_dev_zero_for_mmap=no
20428 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20429 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20430 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20432 cat >>confdefs.h <<\_ACEOF
20433 #define NEED_DEV_ZERO_FOR_MMAP 1
20438 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20440 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20441 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20443 if test "$ac_cv_func_mmap_file" = "no"
20445 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20446 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20450 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20451 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20453 ac_cpp='$CXXCPP $CPPFLAGS'
20454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20458 cat >conftest.$ac_ext <<_ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20465 volatile unsigned long val = 1;
20466 __sync_synchronize();
20467 __sync_val_compare_and_swap(&val, 1, 0);
20468 __sync_add_and_fetch(&val, 1);
20469 __sync_sub_and_fetch(&val, 1);
20474 rm -f conftest.$ac_objext conftest$ac_exeext
20475 if { (ac_try="$ac_link"
20476 case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_link") 2>conftest.er1
20483 grep -v '^ *+' conftest.er1 >conftest.err
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } &&
20488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20489 { (case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_try") 2>&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; } &&
20498 { ac_try='test -s conftest$ac_exeext'
20499 { (case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_try") 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20509 ac_cpp='$CPP $CPPFLAGS'
20510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20514 { echo "$as_me:$LINENO: result: yes" >&5
20515 echo "${ECHO_T}yes" >&6; }
20517 cat >>confdefs.h <<\_ACEOF
20518 #define LLVM_HAS_ATOMICS 1
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 { echo "$as_me:$LINENO: result: no" >&5
20526 echo "${ECHO_T}no" >&6; }
20528 cat >>confdefs.h <<\_ACEOF
20529 #define LLVM_HAS_ATOMICS 0
20532 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20533 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20536 rm -f core conftest.err conftest.$ac_objext \
20537 conftest$ac_exeext conftest.$ac_ext
20540 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20541 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20542 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20543 if test "${llvm_cv_linux_mixed+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 ac_cpp='$CPP $CPPFLAGS'
20548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20552 cat >conftest.$ac_ext <<_ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20559 error: Not x86-64 even if uname says so!
20570 rm -f conftest.$ac_objext
20571 if { (ac_try="$ac_compile"
20572 case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577 (eval "$ac_compile") 2>conftest.er1
20579 grep -v '^ *+' conftest.er1 >conftest.err
20581 cat conftest.err >&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); } &&
20584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20585 { (case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_try") 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; } &&
20594 { ac_try='test -s conftest.$ac_objext'
20595 { (case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600 (eval "$ac_try") 2>&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 llvm_cv_linux_mixed=no
20606 echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20609 llvm_cv_linux_mixed=yes
20612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20614 ac_cpp='$CPP $CPPFLAGS'
20615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20621 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20622 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20624 if test "$llvm_cv_linux_mixed" = "yes"; then
20625 llvm_cv_target_arch="x86"
20631 for ac_func in __dso_handle
20633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 cat >conftest.$ac_ext <<_ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20647 #define $ac_func innocuous_$ac_func
20649 /* System header to define __stub macros and hopefully few prototypes,
20650 which can conflict with char $ac_func (); below.
20651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20652 <limits.h> exists even on freestanding compilers. */
20655 # include <limits.h>
20657 # include <assert.h>
20662 /* Override any GCC internal prototype to avoid an error.
20663 Use char because int might match the return type of a GCC
20664 builtin and then its argument prototype would still apply. */
20669 /* The GNU C library defines this for functions which it implements
20670 to always fail with ENOSYS. Some functions are actually named
20671 something starting with __ and the normal name is an alias. */
20672 #if defined __stub_$ac_func || defined __stub___$ac_func
20679 return $ac_func ();
20684 rm -f conftest.$ac_objext conftest$ac_exeext
20685 if { (ac_try="$ac_link"
20686 case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_link") 2>conftest.er1
20693 grep -v '^ *+' conftest.er1 >conftest.err
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
20698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20699 { (case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_try") 2>&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; } &&
20708 { ac_try='test -s conftest$ac_exeext'
20709 { (case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_try") 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; }; then
20718 eval "$as_ac_var=yes"
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20723 eval "$as_ac_var=no"
20726 rm -f core conftest.err conftest.$ac_objext \
20727 conftest$ac_exeext conftest.$ac_ext
20729 ac_res=`eval echo '${'$as_ac_var'}'`
20730 { echo "$as_me:$LINENO: result: $ac_res" >&5
20731 echo "${ECHO_T}$ac_res" >&6; }
20732 if test `eval echo '${'$as_ac_var'}'` = yes; then
20733 cat >>confdefs.h <<_ACEOF
20734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20741 SHLIBEXT=$libltdl_cv_shlibext
20744 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20747 # Translate the various configuration directories and other basic
20748 # information into substitutions that will end up in Makefile.config.in
20749 # that these configured values can be used by the makefiles
20750 if test "${prefix}" = "NONE" ; then
20751 prefix="/usr/local"
20753 eval LLVM_PREFIX="${prefix}";
20754 eval LLVM_BINDIR="${prefix}/bin";
20755 eval LLVM_LIBDIR="${prefix}/lib";
20756 eval LLVM_DATADIR="${prefix}/share/llvm";
20757 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20758 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20759 eval LLVM_INCLUDEDIR="${prefix}/include";
20760 eval LLVM_INFODIR="${prefix}/info";
20761 eval LLVM_MANDIR="${prefix}/man";
20762 LLVM_CONFIGTIME=`date`
20774 # Place the various directores into the config.h file as #defines so that we
20775 # can know about the installation paths within LLVM.
20777 cat >>confdefs.h <<_ACEOF
20778 #define LLVM_PREFIX "$LLVM_PREFIX"
20782 cat >>confdefs.h <<_ACEOF
20783 #define LLVM_BINDIR "$LLVM_BINDIR"
20787 cat >>confdefs.h <<_ACEOF
20788 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20792 cat >>confdefs.h <<_ACEOF
20793 #define LLVM_DATADIR "$LLVM_DATADIR"
20797 cat >>confdefs.h <<_ACEOF
20798 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20802 cat >>confdefs.h <<_ACEOF
20803 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20807 cat >>confdefs.h <<_ACEOF
20808 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20812 cat >>confdefs.h <<_ACEOF
20813 #define LLVM_INFODIR "$LLVM_INFODIR"
20817 cat >>confdefs.h <<_ACEOF
20818 #define LLVM_MANDIR "$LLVM_MANDIR"
20822 cat >>confdefs.h <<_ACEOF
20823 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20827 cat >>confdefs.h <<_ACEOF
20828 #define LLVM_HOSTTRIPLE "$host"
20832 # Determine which bindings to build.
20833 if test "$BINDINGS_TO_BUILD" = auto ; then
20834 BINDINGS_TO_BUILD=""
20835 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20836 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20839 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20842 # This isn't really configurey, but it avoids having to repeat the list in
20847 # Do any work necessary to ensure that bindings have what they need.
20848 binding_prereqs_failed=0
20849 for a_binding in $BINDINGS_TO_BUILD ; do
20850 case "$a_binding" in
20852 if test "x$OCAMLC" = x ; then
20853 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20854 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20855 binding_prereqs_failed=1
20857 if test "x$OCAMLDEP" = x ; then
20858 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20859 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20860 binding_prereqs_failed=1
20862 if test "x$OCAMLOPT" = x ; then
20863 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20864 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20866 if test "x$with_ocaml_libdir" != xauto ; then
20867 OCAML_LIBDIR=$with_ocaml_libdir
20870 ocaml_stdlib="`"$OCAMLC" -where`"
20871 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20873 # ocaml stdlib is beneath our prefix; use stdlib
20874 OCAML_LIBDIR=$ocaml_stdlib
20877 # ocaml stdlib is outside our prefix; use libdir/ocaml
20878 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20885 if test "$binding_prereqs_failed" = 1 ; then
20886 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20887 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20888 { (exit 1); exit 1; }; }
20891 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20892 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20893 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20897 ac_cpp='$CXXCPP $CPPFLAGS'
20898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20902 oldcxxflags="$CXXFLAGS"
20903 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20904 cat >conftest.$ac_ext <<_ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20919 rm -f conftest.$ac_objext
20920 if { (ac_try="$ac_compile"
20921 case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_compile") 2>conftest.er1
20928 grep -v '^ *+' conftest.er1 >conftest.err
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
20933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try='test -s conftest.$ac_objext'
20944 { (case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_try") 2>&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20953 llvm_cv_cxx_visibility_inlines_hidden=yes
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20958 llvm_cv_cxx_visibility_inlines_hidden=no
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 CXXFLAGS="$oldcxxflags"
20964 ac_cpp='$CPP $CPPFLAGS'
20965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20971 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20972 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20973 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20974 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20977 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20982 if test "$llvm_cv_link_use_r" = "yes" ; then
20989 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20990 RDYNAMIC="-Wl,-export-dynamic"
20998 ac_config_files="$ac_config_files Makefile.common"
21000 ac_config_files="$ac_config_files Makefile.llvm.config"
21003 ac_config_commands="$ac_config_commands Makefile"
21006 ac_config_commands="$ac_config_commands lib/Makefile"
21009 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21012 ac_config_commands="$ac_config_commands tools/Makefile"
21015 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21019 cat >confcache <<\_ACEOF
21020 # This file is a shell script that caches the results of configure
21021 # tests run on this system so they can be shared between configure
21022 # scripts and configure runs, see configure's option --config-cache.
21023 # It is not useful on other systems. If it contains results you don't
21024 # want to keep, you may remove or edit it.
21026 # config.status only pays attention to the cache file if you give it
21027 # the --recheck option to rerun configure.
21029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21031 # following values.
21035 # The following way of writing the cache mishandles newlines in values,
21036 # but we know of no workaround that is simple, portable, and efficient.
21037 # So, we kill variables containing newlines.
21038 # Ultrix sh set writes to stderr and can't be redirected directly,
21039 # and sets the high bit in the cache file unless we assign to the vars.
21041 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21042 eval ac_val=\$$ac_var
21046 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21047 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21050 _ | IFS | as_nl) ;; #(
21051 *) $as_unset $ac_var ;;
21057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21058 *${as_nl}ac_space=\ *)
21059 # `set' does not quote correctly, so add quotes (double-quote
21060 # substitution turns \\\\ into \\, and sed turns \\ into \).
21063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21066 # `set' quotes correctly as required by POSIX, so do not add quotes.
21067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21080 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21081 if test -w "$cache_file"; then
21082 test "x$cache_file" != "x/dev/null" &&
21083 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21084 echo "$as_me: updating cache $cache_file" >&6;}
21085 cat confcache >$cache_file
21087 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21088 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21093 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21094 # Let make expand exec_prefix.
21095 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21097 # Transform confdefs.h into DEFS.
21098 # Protect against shell expansion while executing Makefile rules.
21099 # Protect against Makefile macro expansion.
21101 # If the first sed substitution is executed (which looks for macros that
21102 # take arguments), then branch to the quote section. Otherwise,
21103 # look for a macro that doesn't take arguments.
21107 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21109 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21113 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21126 DEFS=`sed -n "$ac_script" confdefs.h`
21131 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21132 # 1. Remove the extension, and $U if already installed.
21133 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21134 ac_i=`echo "$ac_i" | sed "$ac_script"`
21135 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21136 # will be set to the directory where LIBOBJS objects are built.
21137 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21138 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21140 LIBOBJS=$ac_libobjs
21142 LTLIBOBJS=$ac_ltlibobjs
21145 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21146 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21147 Usually this means the macro was only invoked conditionally." >&5
21148 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21149 Usually this means the macro was only invoked conditionally." >&2;}
21150 { (exit 1); exit 1; }; }
21152 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21153 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21154 Usually this means the macro was only invoked conditionally." >&5
21155 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21156 Usually this means the macro was only invoked conditionally." >&2;}
21157 { (exit 1); exit 1; }; }
21160 : ${CONFIG_STATUS=./config.status}
21161 ac_clean_files_save=$ac_clean_files
21162 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21163 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21164 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21165 cat >$CONFIG_STATUS <<_ACEOF
21167 # Generated by $as_me.
21168 # Run this file to recreate the current configuration.
21169 # Compiler output produced by configure, useful for debugging
21170 # configure, is in config.log if it exists.
21173 ac_cs_recheck=false
21175 SHELL=\${CONFIG_SHELL-$SHELL}
21178 cat >>$CONFIG_STATUS <<\_ACEOF
21179 ## --------------------- ##
21180 ## M4sh Initialization. ##
21181 ## --------------------- ##
21183 # Be Bourne compatible
21184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21187 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21188 # is contrary to our usage. Disable this feature.
21189 alias -g '${1+"$@"}'='"$@"'
21190 setopt NO_GLOB_SUBST
21192 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21194 BIN_SH=xpg4; export BIN_SH # for Tru64
21195 DUALCASE=1; export DUALCASE # for MKS sh
21199 # Avoid depending upon Character Ranges.
21200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21203 as_cr_digits='0123456789'
21204 as_cr_alnum=$as_cr_Letters$as_cr_digits
21206 # The user is always right.
21207 if test "${PATH_SEPARATOR+set}" != set; then
21208 echo "#! /bin/sh" >conf$$.sh
21209 echo "exit 0" >>conf$$.sh
21211 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21219 # Support unset when possible.
21220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21228 # We need space, tab and new line, in precisely that order. Quoting is
21229 # there to prevent editors from complaining about space-tab.
21230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21231 # splitting by setting IFS to empty value.)
21236 # Find who we are. Look in the path if we contain no directory separator.
21238 *[\\/]* ) as_myself=$0 ;;
21239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21240 for as_dir in $PATH
21243 test -z "$as_dir" && as_dir=.
21244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21250 # We did not find ourselves, most probably we were run as `sh COMMAND'
21251 # in which case we are not to be found in the path.
21252 if test "x$as_myself" = x; then
21255 if test ! -f "$as_myself"; then
21256 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21257 { (exit 1); exit 1; }
21260 # Work around bugs in pre-3.0 UWIN ksh.
21261 for as_var in ENV MAIL MAILPATH
21262 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21270 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21271 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21272 LC_TELEPHONE LC_TIME
21274 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21275 eval $as_var=C; export $as_var
21277 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21281 # Required to use basename.
21282 if expr a : '\(a\)' >/dev/null 2>&1 &&
21283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21290 as_basename=basename
21296 # Name of the executable.
21297 as_me=`$as_basename -- "$0" ||
21298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21299 X"$0" : 'X\(//\)$' \| \
21300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21302 sed '/^.*\/\([^/][^/]*\)\/*$/{
21321 as_lineno_1=$LINENO
21322 as_lineno_2=$LINENO
21323 test "x$as_lineno_1" != "x$as_lineno_2" &&
21324 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21326 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21327 # uniformly replaced by the line number. The first 'sed' inserts a
21328 # line-number line after each line using $LINENO; the second 'sed'
21329 # does the real work. The second script uses 'N' to pair each
21330 # line-number line with the line containing $LINENO, and appends
21331 # trailing '-' during substitution so that $LINENO is not a special
21332 # case at line end.
21333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21334 # scripts with optimization help from Paolo Bonzini. Blame Lee
21335 # E. McMahon (1931-1989) for sed's syntax. :-)
21347 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21350 ' >$as_me.lineno &&
21351 chmod +x "$as_me.lineno" ||
21352 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21353 { (exit 1); exit 1; }; }
21355 # Don't try to exec as it changes $[0], causing all sort of problems
21356 # (the dirname of $[0] is not the place where we might find the
21357 # original and so on. Autoconf is especially sensitive to this).
21358 . "./$as_me.lineno"
21359 # Exit status is that of the last command.
21364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21370 ECHO_C= ECHO_N= ECHO_T=
21371 case `echo -n x` in
21373 case `echo 'x\c'` in
21374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21381 if expr a : '\(a\)' >/dev/null 2>&1 &&
21382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21388 rm -f conf$$ conf$$.exe conf$$.file
21389 if test -d conf$$.dir; then
21390 rm -f conf$$.dir/conf$$.file
21396 if ln -s conf$$.file conf$$ 2>/dev/null; then
21398 # ... but there are two gotchas:
21399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21401 # In both cases, we have to default to `cp -p'.
21402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21404 elif ln conf$$.file conf$$ 2>/dev/null; then
21409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21410 rmdir conf$$.dir 2>/dev/null
21412 if mkdir -p . 2>/dev/null; then
21415 test -d ./-p && rmdir ./-p
21419 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21420 # systems may use methods other than mode bits to determine executability.
21421 cat >conf$$.file <<_ASEOF
21425 chmod +x conf$$.file
21426 if test -x conf$$.file >/dev/null 2>&1; then
21427 as_executable_p="test -x"
21433 # Sed expression to map a string onto a valid CPP name.
21434 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21436 # Sed expression to map a string onto a valid variable name.
21437 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21442 # Save the log message, to keep $[0] and so on meaningful, and to
21443 # report actual input values of CONFIG_FILES etc. instead of their
21444 # values after options handling.
21446 This file was extended by [SAMPLE] $as_me [x.xx], which was
21447 generated by GNU Autoconf 2.60. Invocation command line was
21449 CONFIG_FILES = $CONFIG_FILES
21450 CONFIG_HEADERS = $CONFIG_HEADERS
21451 CONFIG_LINKS = $CONFIG_LINKS
21452 CONFIG_COMMANDS = $CONFIG_COMMANDS
21455 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21460 cat >>$CONFIG_STATUS <<_ACEOF
21461 # Files that config.status was made for.
21462 config_files="$ac_config_files"
21463 config_commands="$ac_config_commands"
21467 cat >>$CONFIG_STATUS <<\_ACEOF
21469 \`$as_me' instantiates files from templates according to the
21470 current configuration.
21472 Usage: $0 [OPTIONS] [FILE]...
21474 -h, --help print this help, then exit
21475 -V, --version print version number, then exit
21476 -q, --quiet do not print progress messages
21477 -d, --debug don't remove temporary files
21478 --recheck update $as_me by reconfiguring in the same conditions
21479 --file=FILE[:TEMPLATE]
21480 instantiate the configuration file FILE
21482 Configuration files:
21485 Configuration commands:
21488 Report bugs to <bug-autoconf@gnu.org>."
21491 cat >>$CONFIG_STATUS <<_ACEOF
21493 [SAMPLE] config.status [x.xx]
21494 configured by $0, generated by GNU Autoconf 2.60,
21495 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21497 Copyright (C) 2006 Free Software Foundation, Inc.
21498 This config.status script is free software; the Free Software Foundation
21499 gives unlimited permission to copy, distribute and modify it."
21506 cat >>$CONFIG_STATUS <<\_ACEOF
21507 # If no file are specified by the user, then we need to provide default
21508 # value. By we need to know if files were specified by the user.
21514 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21515 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21526 # Handling of the options.
21527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21529 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21530 echo "$ac_cs_version"; exit ;;
21531 --debug | --debu | --deb | --de | --d | -d )
21533 --file | --fil | --fi | --f )
21535 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21536 ac_need_defaults=false;;
21537 --he | --h | --help | --hel | -h )
21538 echo "$ac_cs_usage"; exit ;;
21539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21543 # This is an error.
21544 -*) { echo "$as_me: error: unrecognized option: $1
21545 Try \`$0 --help' for more information." >&2
21546 { (exit 1); exit 1; }; } ;;
21548 *) ac_config_targets="$ac_config_targets $1"
21549 ac_need_defaults=false ;;
21555 ac_configure_extra_args=
21557 if $ac_cs_silent; then
21559 ac_configure_extra_args="$ac_configure_extra_args --silent"
21563 cat >>$CONFIG_STATUS <<_ACEOF
21564 if \$ac_cs_recheck; then
21565 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21566 CONFIG_SHELL=$SHELL
21567 export CONFIG_SHELL
21568 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21572 cat >>$CONFIG_STATUS <<\_ACEOF
21576 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21577 ## Running $as_me. ##
21583 cat >>$CONFIG_STATUS <<_ACEOF
21587 llvm_src="${LLVM_SRC}"
21591 cat >>$CONFIG_STATUS <<\_ACEOF
21593 # Handling of arguments.
21594 for ac_config_target in $ac_config_targets
21596 case $ac_config_target in
21597 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21598 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21599 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21600 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21601 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21602 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21603 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21604 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21606 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21607 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21608 { (exit 1); exit 1; }; };;
21613 # If the user did not use the arguments to specify the items to instantiate,
21614 # then the envvar interface is used. Set only those that are not.
21615 # We use the long form for the default assignment because of an extremely
21616 # bizarre bug on SunOS 4.1.3.
21617 if $ac_need_defaults; then
21618 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21619 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21622 # Have a temporary directory for convenience. Make it in the build tree
21623 # simply because there is no reason against having it here, and in addition,
21624 # creating and moving files from /tmp can sometimes cause problems.
21625 # Hook for its removal unless debugging.
21626 # Note that there is a small window in which the directory will not be cleaned:
21627 # after its creation but before its name has been assigned to `$tmp'.
21631 trap 'exit_status=$?
21632 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21634 trap '{ (exit 1); exit 1; }' 1 2 13 15
21636 # Create a (secure) tmp directory for tmp files.
21639 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21640 test -n "$tmp" && test -d "$tmp"
21643 tmp=./conf$$-$RANDOM
21644 (umask 077 && mkdir "$tmp")
21647 echo "$me: cannot create a temporary directory in ." >&2
21648 { (exit 1); exit 1; }
21652 # Set up the sed scripts for CONFIG_FILES section.
21655 # No need to generate the scripts if there are no CONFIG_FILES.
21656 # This happens for instance when ./config.status config.h
21657 if test -n "$CONFIG_FILES"; then
21664 for ac_last_try in false false false false false :; do
21665 cat >conf$$subs.sed <<_ACEOF
21666 SHELL!$SHELL$ac_delim
21667 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21668 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21669 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21670 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21671 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21672 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21673 exec_prefix!$exec_prefix$ac_delim
21674 prefix!$prefix$ac_delim
21675 program_transform_name!$program_transform_name$ac_delim
21676 bindir!$bindir$ac_delim
21677 sbindir!$sbindir$ac_delim
21678 libexecdir!$libexecdir$ac_delim
21679 datarootdir!$datarootdir$ac_delim
21680 datadir!$datadir$ac_delim
21681 sysconfdir!$sysconfdir$ac_delim
21682 sharedstatedir!$sharedstatedir$ac_delim
21683 localstatedir!$localstatedir$ac_delim
21684 includedir!$includedir$ac_delim
21685 oldincludedir!$oldincludedir$ac_delim
21686 docdir!$docdir$ac_delim
21687 infodir!$infodir$ac_delim
21688 htmldir!$htmldir$ac_delim
21689 dvidir!$dvidir$ac_delim
21690 pdfdir!$pdfdir$ac_delim
21691 psdir!$psdir$ac_delim
21692 libdir!$libdir$ac_delim
21693 localedir!$localedir$ac_delim
21694 mandir!$mandir$ac_delim
21695 DEFS!$DEFS$ac_delim
21696 ECHO_C!$ECHO_C$ac_delim
21697 ECHO_N!$ECHO_N$ac_delim
21698 ECHO_T!$ECHO_T$ac_delim
21699 LIBS!$LIBS$ac_delim
21700 build_alias!$build_alias$ac_delim
21701 host_alias!$host_alias$ac_delim
21702 target_alias!$target_alias$ac_delim
21703 LLVM_SRC!$LLVM_SRC$ac_delim
21704 LLVM_OBJ!$LLVM_OBJ$ac_delim
21705 LLVM_VERSION!$LLVM_VERSION$ac_delim
21707 CFLAGS!$CFLAGS$ac_delim
21708 LDFLAGS!$LDFLAGS$ac_delim
21709 CPPFLAGS!$CPPFLAGS$ac_delim
21710 ac_ct_CC!$ac_ct_CC$ac_delim
21711 EXEEXT!$EXEEXT$ac_delim
21712 OBJEXT!$OBJEXT$ac_delim
21714 CXXFLAGS!$CXXFLAGS$ac_delim
21715 ac_ct_CXX!$ac_ct_CXX$ac_delim
21717 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21718 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21719 subdirs!$subdirs$ac_delim
21720 build!$build$ac_delim
21721 build_cpu!$build_cpu$ac_delim
21722 build_vendor!$build_vendor$ac_delim
21723 build_os!$build_os$ac_delim
21724 host!$host$ac_delim
21725 host_cpu!$host_cpu$ac_delim
21726 host_vendor!$host_vendor$ac_delim
21727 host_os!$host_os$ac_delim
21728 target!$target$ac_delim
21729 target_cpu!$target_cpu$ac_delim
21730 target_vendor!$target_vendor$ac_delim
21731 target_os!$target_os$ac_delim
21733 HOST_OS!$HOST_OS$ac_delim
21734 TARGET_OS!$TARGET_OS$ac_delim
21735 LINKALL!$LINKALL$ac_delim
21736 NOLINKALL!$NOLINKALL$ac_delim
21737 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21738 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21739 ARCH!$ARCH$ac_delim
21740 ENDIAN!$ENDIAN$ac_delim
21741 GREP!$GREP$ac_delim
21742 EGREP!$EGREP$ac_delim
21743 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21744 BUILD_CC!$BUILD_CC$ac_delim
21745 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21746 BUILD_CXX!$BUILD_CXX$ac_delim
21747 CVSBUILD!$CVSBUILD$ac_delim
21748 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21749 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21750 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21751 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21752 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21753 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21754 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21756 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21757 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21758 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21759 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21760 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21761 ENABLE_PIC!$ENABLE_PIC$ac_delim
21762 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21765 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21767 elif $ac_last_try; then
21768 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21769 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21770 { (exit 1); exit 1; }; }
21772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21776 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21777 if test -n "$ac_eof"; then
21778 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21779 ac_eof=`expr $ac_eof + 1`
21782 cat >>$CONFIG_STATUS <<_ACEOF
21783 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21787 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21788 s/^/s,@/; s/!/@,|#_!!_#|/
21791 s/'"$ac_delim"'$/,g/; t
21793 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21794 ' >>$CONFIG_STATUS <conf$$subs.sed
21795 rm -f conf$$subs.sed
21796 cat >>$CONFIG_STATUS <<_ACEOF
21802 for ac_last_try in false false false false false :; do
21803 cat >conf$$subs.sed <<_ACEOF
21804 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21805 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21806 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21807 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21808 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21809 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21810 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21811 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21812 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21813 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21814 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21815 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21817 ifGNUmake!$ifGNUmake$ac_delim
21818 LN_S!$LN_S$ac_delim
21821 DATE!$DATE$ac_delim
21822 FIND!$FIND$ac_delim
21823 MKDIR!$MKDIR$ac_delim
21825 RANLIB!$RANLIB$ac_delim
21830 BINPWD!$BINPWD$ac_delim
21831 GRAPHVIZ!$GRAPHVIZ$ac_delim
21834 NEATO!$NEATO$ac_delim
21835 TWOPI!$TWOPI$ac_delim
21836 CIRCO!$CIRCO$ac_delim
21838 DOTTY!$DOTTY$ac_delim
21839 XDOT_PY!$XDOT_PY$ac_delim
21840 PERL!$PERL$ac_delim
21841 HAVE_PERL!$HAVE_PERL$ac_delim
21842 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21843 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21844 INSTALL_DATA!$INSTALL_DATA$ac_delim
21845 BZIP2!$BZIP2$ac_delim
21847 DOXYGEN!$DOXYGEN$ac_delim
21848 GROFF!$GROFF$ac_delim
21849 GZIPBIN!$GZIPBIN$ac_delim
21850 POD2HTML!$POD2HTML$ac_delim
21851 POD2MAN!$POD2MAN$ac_delim
21852 PDFROFF!$PDFROFF$ac_delim
21853 RUNTEST!$RUNTEST$ac_delim
21854 TCLSH!$TCLSH$ac_delim
21856 OCAMLC!$OCAMLC$ac_delim
21857 OCAMLOPT!$OCAMLOPT$ac_delim
21858 OCAMLDEP!$OCAMLDEP$ac_delim
21859 OCAMLDOC!$OCAMLDOC$ac_delim
21861 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21862 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21863 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21864 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21865 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21866 LIBADD_DL!$LIBADD_DL$ac_delim
21867 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21868 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21869 USE_UDIS86!$USE_UDIS86$ac_delim
21870 USE_OPROFILE!$USE_OPROFILE$ac_delim
21871 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21872 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21873 MMAP_FILE!$MMAP_FILE$ac_delim
21874 SHLIBEXT!$SHLIBEXT$ac_delim
21875 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21876 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21877 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21878 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21879 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21880 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21881 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21882 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21883 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21884 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21885 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21886 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21887 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21888 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21889 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21890 RPATH!$RPATH$ac_delim
21891 RDYNAMIC!$RDYNAMIC$ac_delim
21892 LIBOBJS!$LIBOBJS$ac_delim
21893 LTLIBOBJS!$LTLIBOBJS$ac_delim
21896 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21898 elif $ac_last_try; then
21899 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21900 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21901 { (exit 1); exit 1; }; }
21903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21907 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21908 if test -n "$ac_eof"; then
21909 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21910 ac_eof=`expr $ac_eof + 1`
21913 cat >>$CONFIG_STATUS <<_ACEOF
21914 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21918 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21919 s/^/s,@/; s/!/@,|#_!!_#|/
21922 s/'"$ac_delim"'$/,g/; t
21924 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21925 ' >>$CONFIG_STATUS <conf$$subs.sed
21926 rm -f conf$$subs.sed
21927 cat >>$CONFIG_STATUS <<_ACEOF
21934 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21935 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21936 # trailing colons and then remove the whole line if VPATH becomes empty
21937 # (actually we leave an empty line to preserve line numbers).
21938 if test "x$srcdir" = x.; then
21939 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21940 s/:*\$(srcdir):*/:/
21941 s/:*\${srcdir}:*/:/
21943 s/^\([^=]*=[ ]*\):*/\1/
21949 cat >>$CONFIG_STATUS <<\_ACEOF
21950 fi # test -n "$CONFIG_FILES"
21953 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21956 :[FHLC]) ac_mode=$ac_tag; continue;;
21958 case $ac_mode$ac_tag in
21960 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21961 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21962 { (exit 1); exit 1; }; };;
21963 :[FH]-) ac_tag=-:-;;
21964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21981 -) ac_f="$tmp/stdin";;
21982 *) # Look for the file first in the build tree, then in the source tree
21983 # (if the path is not absolute). The absolute path cannot be DOS-style,
21984 # because $ac_f cannot contain `:'.
21988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21990 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21991 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21992 { (exit 1); exit 1; }; };;
21994 ac_file_inputs="$ac_file_inputs $ac_f"
21997 # Let's still pretend it is `configure' which instantiates (i.e., don't
21998 # use $as_me), people would be surprised to read:
21999 # /* config.h. Generated by config.status. */
22000 configure_input="Generated from "`IFS=:
22001 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22002 if test x"$ac_file" != x-; then
22003 configure_input="$ac_file. $configure_input"
22004 { echo "$as_me:$LINENO: creating $ac_file" >&5
22005 echo "$as_me: creating $ac_file" >&6;}
22009 *:-:* | *:-) cat >"$tmp/stdin";;
22014 ac_dir=`$as_dirname -- "$ac_file" ||
22015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22016 X"$ac_file" : 'X\(//\)[^/]' \| \
22017 X"$ac_file" : 'X\(//\)$' \| \
22018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22024 /^X\(\/\/\)[^/].*/{
22039 -*) as_dir=./$as_dir;;
22041 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22045 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22046 *) as_qdir=$as_dir;;
22048 as_dirs="'$as_qdir' $as_dirs"
22049 as_dir=`$as_dirname -- "$as_dir" ||
22050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22051 X"$as_dir" : 'X\(//\)[^/]' \| \
22052 X"$as_dir" : 'X\(//\)$' \| \
22053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22059 /^X\(\/\/\)[^/].*/{
22072 test -d "$as_dir" && break
22074 test -z "$as_dirs" || eval "mkdir $as_dirs"
22075 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22076 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22077 { (exit 1); exit 1; }; }; }
22081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22084 # A ".." for each directory in $ac_dir_suffix.
22085 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22086 case $ac_top_builddir_sub in
22087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22091 ac_abs_top_builddir=$ac_pwd
22092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22093 # for backward compatibility:
22094 ac_top_builddir=$ac_top_build_prefix
22097 .) # We are building in place.
22099 ac_top_srcdir=$ac_top_builddir_sub
22100 ac_abs_top_srcdir=$ac_pwd ;;
22101 [\\/]* | ?:[\\/]* ) # Absolute name.
22102 ac_srcdir=$srcdir$ac_dir_suffix;
22103 ac_top_srcdir=$srcdir
22104 ac_abs_top_srcdir=$srcdir ;;
22105 *) # Relative name.
22106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22107 ac_top_srcdir=$ac_top_build_prefix$srcdir
22108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22121 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22125 cat >>$CONFIG_STATUS <<\_ACEOF
22126 # If the template does not know about datarootdir, expand it.
22127 # FIXME: This hack should be removed a few years after 2.60.
22128 ac_datarootdir_hack=; ac_datarootdir_seen=
22130 case `sed -n '/datarootdir/ {
22139 ' $ac_file_inputs` in
22140 *datarootdir*) ac_datarootdir_seen=yes;;
22141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22142 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22143 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22145 cat >>$CONFIG_STATUS <<_ACEOF
22146 ac_datarootdir_hack='
22147 s&@datadir@&$datadir&g
22148 s&@docdir@&$docdir&g
22149 s&@infodir@&$infodir&g
22150 s&@localedir@&$localedir&g
22151 s&@mandir@&$mandir&g
22152 s&\\\${datarootdir}&$datarootdir&g' ;;
22156 # Neutralize VPATH when `$srcdir' = `.'.
22157 # Shell code in configure.ac might set extrasub.
22158 # FIXME: do we really want to maintain this feature?
22159 cat >>$CONFIG_STATUS <<_ACEOF
22163 cat >>$CONFIG_STATUS <<\_ACEOF
22165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22166 s&@configure_input@&$configure_input&;t t
22167 s&@top_builddir@&$ac_top_builddir_sub&;t t
22168 s&@srcdir@&$ac_srcdir&;t t
22169 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22170 s&@top_srcdir@&$ac_top_srcdir&;t t
22171 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22172 s&@builddir@&$ac_builddir&;t t
22173 s&@abs_builddir@&$ac_abs_builddir&;t t
22174 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22175 s&@INSTALL@&$ac_INSTALL&;t t
22176 $ac_datarootdir_hack
22177 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22179 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22180 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22181 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22182 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22183 which seems to be undefined. Please make sure it is defined." >&5
22184 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22185 which seems to be undefined. Please make sure it is defined." >&2;}
22189 -) cat "$tmp/out"; rm -f "$tmp/out";;
22190 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22195 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22196 echo "$as_me: executing $ac_file commands" >&6;}
22201 case $ac_file$ac_mode in
22202 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22203 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22204 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22205 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22206 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22207 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22208 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22209 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22210 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22211 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22217 { (exit 0); exit 0; }
22219 chmod +x $CONFIG_STATUS
22220 ac_clean_files=$ac_clean_files_save
22223 # configure is writing to config.log, and then calls config.status.
22224 # config.status does its own redirection, appending to config.log.
22225 # Unfortunately, on DOS this fails, as config.log is still kept open
22226 # by configure, so config.status won't be able to write to it; its
22227 # output is simply discarded. So we exec the FD to /dev/null,
22228 # effectively closing config.log, so it can be properly (re)opened and
22229 # appended to by config.status. When coming back to configure, we
22230 # need to make the FD available again.
22231 if test "$no_create" != yes; then
22233 ac_config_status_args=
22234 test "$silent" = yes &&
22235 ac_config_status_args="$ac_config_status_args --quiet"
22237 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22239 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22240 # would make configure fail if this is the last instruction.
22241 $ac_cs_success || { (exit 1); exit 1; }
22245 # CONFIG_SUBDIRS section.
22247 if test "$no_recursion" != yes; then
22249 # Remove --cache-file and --srcdir arguments so they do not pile up.
22250 ac_sub_configure_args=
22252 eval "set x $ac_configure_args"
22256 if test -n "$ac_prev"; then
22261 -cache-file | --cache-file | --cache-fil | --cache-fi \
22262 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22263 ac_prev=cache_file ;;
22264 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22265 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22268 --config-cache | -C)
22270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22280 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22282 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22286 # Always prepend --prefix to ensure using the same prefix
22287 # in subdir configurations.
22288 ac_arg="--prefix=$prefix"
22290 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22292 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22295 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22297 # Do not complain, so a configure script can configure whichever
22298 # parts of a large source tree are present.
22299 test -d "$srcdir/$ac_dir" || continue
22301 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22302 echo "$as_me:$LINENO: $ac_msg" >&5
22306 -*) as_dir=./$as_dir;;
22308 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22312 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22313 *) as_qdir=$as_dir;;
22315 as_dirs="'$as_qdir' $as_dirs"
22316 as_dir=`$as_dirname -- "$as_dir" ||
22317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22318 X"$as_dir" : 'X\(//\)[^/]' \| \
22319 X"$as_dir" : 'X\(//\)$' \| \
22320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22326 /^X\(\/\/\)[^/].*/{
22339 test -d "$as_dir" && break
22341 test -z "$as_dirs" || eval "mkdir $as_dirs"
22342 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22343 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22344 { (exit 1); exit 1; }; }; }
22348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22351 # A ".." for each directory in $ac_dir_suffix.
22352 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22353 case $ac_top_builddir_sub in
22354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22358 ac_abs_top_builddir=$ac_pwd
22359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22360 # for backward compatibility:
22361 ac_top_builddir=$ac_top_build_prefix
22364 .) # We are building in place.
22366 ac_top_srcdir=$ac_top_builddir_sub
22367 ac_abs_top_srcdir=$ac_pwd ;;
22368 [\\/]* | ?:[\\/]* ) # Absolute name.
22369 ac_srcdir=$srcdir$ac_dir_suffix;
22370 ac_top_srcdir=$srcdir
22371 ac_abs_top_srcdir=$srcdir ;;
22372 *) # Relative name.
22373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22374 ac_top_srcdir=$ac_top_build_prefix$srcdir
22375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22382 # Check for guested configure; otherwise get Cygnus style configure.
22383 if test -f "$ac_srcdir/configure.gnu"; then
22384 ac_sub_configure=$ac_srcdir/configure.gnu
22385 elif test -f "$ac_srcdir/configure"; then
22386 ac_sub_configure=$ac_srcdir/configure
22387 elif test -f "$ac_srcdir/configure.in"; then
22388 # This should be Cygnus configure.
22389 ac_sub_configure=$ac_aux_dir/configure
22391 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22392 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22396 # The recursion is here.
22397 if test -n "$ac_sub_configure"; then
22398 # Make the cache file name correct relative to the subdirectory.
22399 case $cache_file in
22400 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22401 *) # Relative name.
22402 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22405 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22406 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22407 # The eval makes quoting arguments work.
22408 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22409 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22410 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22411 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22412 { (exit 1); exit 1; }; }