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, systemz, 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 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3849 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3850 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3851 ptx-*) llvm_cv_target_arch="PTX" ;;
3852 *) llvm_cv_target_arch="Unknown" ;;
3855 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3856 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3858 if test "$llvm_cv_target_arch" = "Unknown" ; then
3859 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3860 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3863 # Determine the LLVM native architecture for the target
3864 case "$llvm_cv_target_arch" in
3865 x86) LLVM_NATIVE_ARCH="X86" ;;
3866 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3867 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3870 ARCH=$llvm_cv_target_arch
3875 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3876 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3877 if test "${ac_cv_path_GREP+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 # Extract the first word of "grep ggrep" to use in msg output
3881 if test -z "$GREP"; then
3882 set dummy grep ggrep; ac_prog_name=$2
3883 if test "${ac_cv_path_GREP+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 ac_path_GREP_found=false
3887 # Loop through the user's path and test for each of PROGNAME-LIST
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892 test -z "$as_dir" && as_dir=.
3893 for ac_prog in grep ggrep; do
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3896 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3897 # Check for GNU ac_path_GREP and select it if it is found.
3898 # Check for GNU $ac_path_GREP
3899 case `"$ac_path_GREP" --version 2>&1` in
3901 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3904 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 echo 'GREP' >> "conftest.nl"
3911 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913 ac_count=`expr $ac_count + 1`
3914 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_GREP="$ac_path_GREP"
3917 ac_path_GREP_max=$ac_count
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3926 $ac_path_GREP_found && break 3
3936 GREP="$ac_cv_path_GREP"
3937 if test -z "$GREP"; then
3938 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3939 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3940 { (exit 1); exit 1; }; }
3944 ac_cv_path_GREP=$GREP
3949 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3950 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3951 GREP="$ac_cv_path_GREP"
3954 { echo "$as_me:$LINENO: checking for egrep" >&5
3955 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3956 if test "${ac_cv_path_EGREP+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3960 then ac_cv_path_EGREP="$GREP -E"
3962 # Extract the first word of "egrep" to use in msg output
3963 if test -z "$EGREP"; then
3964 set dummy egrep; ac_prog_name=$2
3965 if test "${ac_cv_path_EGREP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 ac_path_EGREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 test -z "$as_dir" && as_dir=.
3975 for ac_prog in egrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3978 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3979 # Check for GNU ac_path_EGREP and select it if it is found.
3980 # Check for GNU $ac_path_EGREP
3981 case `"$ac_path_EGREP" --version 2>&1` in
3983 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3986 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
3992 echo 'EGREP' >> "conftest.nl"
3993 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995 ac_count=`expr $ac_count + 1`
3996 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_EGREP="$ac_path_EGREP"
3999 ac_path_EGREP_max=$ac_count
4001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 $ac_path_EGREP_found && break 3
4018 EGREP="$ac_cv_path_EGREP"
4019 if test -z "$EGREP"; then
4020 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022 { (exit 1); exit 1; }; }
4026 ac_cv_path_EGREP=$EGREP
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4034 EGREP="$ac_cv_path_EGREP"
4037 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4038 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4039 if test "${ac_cv_header_stdc+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4061 rm -f conftest.$ac_objext
4062 if { (ac_try="$ac_compile"
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_compile") 2>conftest.er1
4070 grep -v '^ *+' conftest.er1 >conftest.err
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4076 { (case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_try") 2>&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_try") 2>&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_cv_header_stdc=yes
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 ac_cv_header_stdc=no
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 if test $ac_cv_header_stdc = yes; then
4106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 $EGREP "memchr" >/dev/null 2>&1; then
4120 ac_cv_header_stdc=no
4126 if test $ac_cv_header_stdc = yes; then
4127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4138 $EGREP "free" >/dev/null 2>&1; then
4141 ac_cv_header_stdc=no
4147 if test $ac_cv_header_stdc = yes; then
4148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4149 if test "$cross_compiling" = yes; then
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4160 #if ((' ' & 0x0FF) == 0x020)
4161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4164 # define ISLOWER(c) \
4165 (('a' <= (c) && (c) <= 'i') \
4166 || ('j' <= (c) && (c) <= 'r') \
4167 || ('s' <= (c) && (c) <= 'z'))
4168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4176 for (i = 0; i < 256; i++)
4177 if (XOR (islower (i), ISLOWER (i))
4178 || toupper (i) != TOUPPER (i))
4183 rm -f conftest$ac_exeext
4184 if { (ac_try="$ac_link"
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_link") 2>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4194 { (case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4205 echo "$as_me: program exited with status $ac_status" >&5
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4210 ac_cv_header_stdc=no
4212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4218 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4219 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4220 if test $ac_cv_header_stdc = yes; then
4222 cat >>confdefs.h <<\_ACEOF
4223 #define STDC_HEADERS 1
4228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4239 inttypes.h stdint.h unistd.h
4241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 $ac_includes_default
4255 #include <$ac_header>
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest.$ac_objext'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 eval "$as_ac_Header=yes"
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 eval "$as_ac_Header=no"
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 ac_res=`eval echo '${'$as_ac_Header'}'`
4302 { echo "$as_me:$LINENO: result: $ac_res" >&5
4303 echo "${ECHO_T}$ac_res" >&6; }
4304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4305 cat >>confdefs.h <<_ACEOF
4306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4314 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4315 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4316 if test "${ac_cv_c_bigendian+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 # See if sys/param.h defines the BYTE_ORDER macro.
4320 cat >conftest.$ac_ext <<_ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 #include <sys/types.h>
4327 #include <sys/param.h>
4332 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4340 rm -f conftest.$ac_objext
4341 if { (ac_try="$ac_compile"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4349 grep -v '^ *+' conftest.er1 >conftest.err
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4355 { (case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_try") 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_try") 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 # It does; now see whether it defined to BIG_ENDIAN or not.
4375 cat >conftest.$ac_ext <<_ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 #include <sys/types.h>
4382 #include <sys/param.h>
4387 #if BYTE_ORDER != BIG_ENDIAN
4395 rm -f conftest.$ac_objext
4396 if { (ac_try="$ac_compile"
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_compile") 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4410 { (case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415 (eval "$ac_try") 2>&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try='test -s conftest.$ac_objext'
4420 { (case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_try") 2>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 ac_cv_c_bigendian=yes
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 ac_cv_c_bigendian=no
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4442 # It does not; compile a test program.
4443 if test "$cross_compiling" = yes; then
4444 # try to guess the endianness by grepping values into an object file
4445 ac_cv_c_bigendian=unknown
4446 cat >conftest.$ac_ext <<_ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4453 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4454 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4455 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4456 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4457 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4461 _ascii (); _ebcdic ();
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_compile") 2>conftest.er1
4475 grep -v '^ *+' conftest.er1 >conftest.err
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } &&
4480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4481 { (case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_try") 2>&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; } &&
4490 { ac_try='test -s conftest.$ac_objext'
4491 { (case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_try") 2>&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4501 ac_cv_c_bigendian=yes
4503 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4504 if test "$ac_cv_c_bigendian" = unknown; then
4505 ac_cv_c_bigendian=no
4507 # finding both strings is unlikely to happen, but who knows?
4508 ac_cv_c_bigendian=unknown
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 $ac_includes_default
4531 /* Are we little or big endian? From Harbison&Steele. */
4535 char c[sizeof (long int)];
4538 return u.c[sizeof (long int) - 1] == 1;
4544 rm -f conftest$ac_exeext
4545 if { (ac_try="$ac_link"
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_link") 2>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4555 { (case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_try") 2>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 ac_cv_c_bigendian=no
4566 echo "$as_me: program exited with status $ac_status" >&5
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4571 ac_cv_c_bigendian=yes
4573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4582 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4583 case $ac_cv_c_bigendian in
4591 { { echo "$as_me:$LINENO: error: unknown endianness
4592 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4593 echo "$as_me: error: unknown endianness
4594 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4595 { (exit 1); exit 1; }; } ;;
4599 if test "$cross_compiling" = yes; then
4600 LLVM_CROSS_COMPILING=1
4603 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4604 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4605 if test "${ac_cv_build_exeext+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4609 ac_cv_build_exeext=.exe
4611 ac_build_prefix=${build_alias}-
4613 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4614 set dummy ${ac_build_prefix}gcc; ac_word=$2
4615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4617 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 if test -n "$BUILD_CC"; then
4621 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 BUILD_CC=$ac_cv_prog_BUILD_CC
4641 if test -n "$BUILD_CC"; then
4642 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4643 echo "${ECHO_T}$BUILD_CC" >&6; }
4645 { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4650 if test -z "$BUILD_CC"; then
4651 # Extract the first word of "gcc", so it can be a program name with args.
4652 set dummy gcc; ac_word=$2
4653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4655 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -n "$BUILD_CC"; then
4659 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_BUILD_CC="gcc"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 BUILD_CC=$ac_cv_prog_BUILD_CC
4679 if test -n "$BUILD_CC"; then
4680 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4681 echo "${ECHO_T}$BUILD_CC" >&6; }
4683 { echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6; }
4688 if test -z "$BUILD_CC"; then
4689 # Extract the first word of "cc", so it can be a program name with args.
4690 set dummy cc; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 if test -n "$BUILD_CC"; then
4697 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4708 ac_prog_rejected=yes
4711 ac_cv_prog_BUILD_CC="cc"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 if test $ac_prog_rejected = yes; then
4720 # We found a bogon in the path, so make sure we never use it.
4721 set dummy $ac_cv_prog_BUILD_CC
4723 if test $# != 0; then
4724 # We chose a different compiler from the bogus one.
4725 # However, it has the same basename, so the bogon will be chosen
4726 # first if we set BUILD_CC to just the basename; use the full file name.
4728 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4733 BUILD_CC=$ac_cv_prog_BUILD_CC
4734 if test -n "$BUILD_CC"; then
4735 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4736 echo "${ECHO_T}$BUILD_CC" >&6; }
4738 { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4745 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4746 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4747 { (exit 1); exit 1; }; }
4748 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4750 echo 'int main () { return 0; }' > conftest.$ac_ext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4753 (eval $ac_build_link) 2>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; then
4757 for file in conftest.*; do
4759 *.c | *.o | *.obj | *.dSYM) ;;
4760 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4764 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4765 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4766 { (exit 1); exit 1; }; }
4769 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4774 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4775 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4776 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4777 ac_build_exeext=$BUILD_EXEEXT
4779 ac_build_prefix=${build_alias}-
4780 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4781 set dummy ${ac_build_prefix}g++; ac_word=$2
4782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 if test -n "$BUILD_CXX"; then
4788 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4808 if test -n "$BUILD_CXX"; then
4809 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4810 echo "${ECHO_T}$BUILD_CXX" >&6; }
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4817 if test -z "$BUILD_CXX"; then
4818 # Extract the first word of "g++", so it can be a program name with args.
4819 set dummy g++; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 if test -n "$BUILD_CXX"; then
4826 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_BUILD_CXX="g++"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4846 if test -n "$BUILD_CXX"; then
4847 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4848 echo "${ECHO_T}$BUILD_CXX" >&6; }
4850 { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4855 if test -z "$BUILD_CXX"; then
4856 # Extract the first word of "c++", so it can be a program name with args.
4857 set dummy c++; ac_word=$2
4858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4860 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 if test -n "$BUILD_CXX"; then
4864 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4875 ac_prog_rejected=yes
4878 ac_cv_prog_BUILD_CXX="c++"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 if test $ac_prog_rejected = yes; then
4887 # We found a bogon in the path, so make sure we never use it.
4888 set dummy $ac_cv_prog_BUILD_CXX
4890 if test $# != 0; then
4891 # We chose a different compiler from the bogus one.
4892 # However, it has the same basename, so the bogon will be chosen
4893 # first if we set BUILD_CXX to just the basename; use the full file name.
4895 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4900 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4901 if test -n "$BUILD_CXX"; then
4902 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4903 echo "${ECHO_T}$BUILD_CXX" >&6; }
4905 { echo "$as_me:$LINENO: result: no" >&5
4906 echo "${ECHO_T}no" >&6; }
4913 LLVM_CROSS_COMPILING=0
4917 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4928 # Check whether --enable-optimized was given.
4929 if test "${enable_optimized+set}" = set; then
4930 enableval=$enable_optimized;
4935 if test ${enableval} = "no" ; then
4939 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4943 # Check whether --enable-profiling was given.
4944 if test "${enable_profiling+set}" = set; then
4945 enableval=$enable_profiling;
4950 if test ${enableval} = "no" ; then
4954 ENABLE_PROFILING=ENABLE_PROFILING=1
4958 # Check whether --enable-assertions was given.
4959 if test "${enable_assertions+set}" = set; then
4960 enableval=$enable_assertions;
4965 if test ${enableval} = "yes" ; then
4969 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4973 # Check whether --enable-expensive-checks was given.
4974 if test "${enable_expensive_checks+set}" = set; then
4975 enableval=$enable_expensive_checks;
4980 if test ${enableval} = "yes" ; then
4981 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4983 EXPENSIVE_CHECKS=yes
4986 ENABLE_EXPENSIVE_CHECKS=
4992 # Check whether --enable-debug-runtime was given.
4993 if test "${enable_debug_runtime+set}" = set; then
4994 enableval=$enable_debug_runtime;
4999 if test ${enableval} = "no" ; then
5003 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5007 # Check whether --enable-debug-symbols was given.
5008 if test "${enable_debug_symbols+set}" = set; then
5009 enableval=$enable_debug_symbols;
5014 if test ${enableval} = "no" ; then
5018 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5022 # Check whether --enable-jit was given.
5023 if test "${enable_jit+set}" = set; then
5024 enableval=$enable_jit;
5029 if test ${enableval} = "no"
5034 case "$llvm_cv_target_arch" in
5035 x86) TARGET_HAS_JIT=1
5037 Sparc) TARGET_HAS_JIT=0
5039 PowerPC) TARGET_HAS_JIT=1
5041 x86_64) TARGET_HAS_JIT=1
5043 Alpha) TARGET_HAS_JIT=0
5045 ARM) TARGET_HAS_JIT=1
5047 Mips) TARGET_HAS_JIT=1
5049 XCore) TARGET_HAS_JIT=0
5051 MSP430) TARGET_HAS_JIT=0
5053 SystemZ) TARGET_HAS_JIT=0
5055 Blackfin) TARGET_HAS_JIT=0
5057 MBlaze) TARGET_HAS_JIT=0
5059 PTX) TARGET_HAS_JIT=0
5066 # Check whether --enable-docs was given.
5067 if test "${enable_docs+set}" = set; then
5068 enableval=$enable_docs;
5073 case "$enableval" in
5078 default) ENABLE_DOCS=1
5080 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5081 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5082 { (exit 1); exit 1; }; } ;;
5085 # Check whether --enable-doxygen was given.
5086 if test "${enable_doxygen+set}" = set; then
5087 enableval=$enable_doxygen;
5092 case "$enableval" in
5093 yes) ENABLE_DOXYGEN=1
5095 no) ENABLE_DOXYGEN=0
5097 default) ENABLE_DOXYGEN=0
5099 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5100 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5101 { (exit 1); exit 1; }; } ;;
5104 # Check whether --enable-threads was given.
5105 if test "${enable_threads+set}" = set; then
5106 enableval=$enable_threads;
5111 case "$enableval" in
5112 yes) ENABLE_THREADS=1
5114 no) ENABLE_THREADS=0
5116 default) ENABLE_THREADS=1
5118 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5119 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5120 { (exit 1); exit 1; }; } ;;
5123 cat >>confdefs.h <<_ACEOF
5124 #define ENABLE_THREADS $ENABLE_THREADS
5128 # Check whether --enable-pthreads was given.
5129 if test "${enable_pthreads+set}" = set; then
5130 enableval=$enable_pthreads;
5135 case "$enableval" in
5136 yes) ENABLE_PTHREADS=1
5138 no) ENABLE_PTHREADS=0
5140 default) ENABLE_PTHREADS=1
5142 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5143 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5144 { (exit 1); exit 1; }; } ;;
5147 # Check whether --enable-pic was given.
5148 if test "${enable_pic+set}" = set; then
5149 enableval=$enable_pic;
5154 case "$enableval" in
5159 default) ENABLE_PIC=1
5161 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5162 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5163 { (exit 1); exit 1; }; } ;;
5166 cat >>confdefs.h <<_ACEOF
5167 #define ENABLE_PIC $ENABLE_PIC
5171 # Check whether --enable-shared was given.
5172 if test "${enable_shared+set}" = set; then
5173 enableval=$enable_shared;
5178 case "$enableval" in
5179 yes) ENABLE_SHARED=1
5183 default) ENABLE_SHARED=0
5185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
5190 # Check whether --enable-embed-stdcxx was given.
5191 if test "${enable_embed_stdcxx+set}" = set; then
5192 enableval=$enable_embed_stdcxx;
5197 case "$enableval" in
5198 yes) ENABLE_EMBED_STDCXX=1
5200 no) ENABLE_EMBED_STDCXX=0
5202 default) ENABLE_EMBED_STDCXX=1
5204 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5205 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5206 { (exit 1); exit 1; }; } ;;
5209 # Check whether --enable-timestamps was given.
5210 if test "${enable_timestamps+set}" = set; then
5211 enableval=$enable_timestamps;
5216 case "$enableval" in
5217 yes) ENABLE_TIMESTAMPS=1
5219 no) ENABLE_TIMESTAMPS=0
5221 default) ENABLE_TIMESTAMPS=1
5223 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5224 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5225 { (exit 1); exit 1; }; } ;;
5228 cat >>confdefs.h <<_ACEOF
5229 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5234 # Check whether --enable-targets was given.
5235 if test "${enable_targets+set}" = set; then
5236 enableval=$enable_targets;
5241 if test "$enableval" = host-only ; then
5244 case "$enableval" in
5245 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5246 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5248 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5249 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5250 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5251 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5252 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5253 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5254 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5255 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5256 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5257 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5258 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5259 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5260 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5261 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5262 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5263 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5264 host) case "$llvm_cv_target_arch" in
5265 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5266 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5267 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5268 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5269 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5270 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5271 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5272 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5273 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5274 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5275 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5276 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5277 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5278 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5279 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5280 echo "$as_me: error: Can not set target to build" >&2;}
5281 { (exit 1); exit 1; }; } ;;
5283 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5284 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5290 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5293 # Determine whether we are building LLVM support for the native architecture.
5294 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5295 for a_target in $TARGETS_TO_BUILD; do
5296 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5298 cat >>confdefs.h <<_ACEOF
5299 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5302 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5303 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5304 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5305 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5306 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5307 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5310 cat >>confdefs.h <<_ACEOF
5311 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5315 cat >>confdefs.h <<_ACEOF
5316 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5320 cat >>confdefs.h <<_ACEOF
5321 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5325 cat >>confdefs.h <<_ACEOF
5326 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5329 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5331 cat >>confdefs.h <<_ACEOF
5332 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5339 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5340 # target feature def files.
5341 LLVM_ENUM_TARGETS=""
5342 LLVM_ENUM_ASM_PRINTERS=""
5343 LLVM_ENUM_ASM_PARSERS=""
5344 LLVM_ENUM_DISASSEMBLERS=""
5345 for target_to_build in $TARGETS_TO_BUILD; do
5346 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5347 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5348 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5350 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5351 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5353 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5354 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5362 # Check whether --enable-cbe-printf-a was given.
5363 if test "${enable_cbe_printf_a+set}" = set; then
5364 enableval=$enable_cbe_printf_a;
5369 case "$enableval" in
5370 yes) ENABLE_CBE_PRINTF_A=1
5372 no) ENABLE_CBE_PRINTF_A=0
5374 default) ENABLE_CBE_PRINTF_A=1
5376 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5377 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5378 { (exit 1); exit 1; }; } ;;
5381 cat >>confdefs.h <<_ACEOF
5382 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5387 # Check whether --with-optimize-option was given.
5388 if test "${with_optimize_option+set}" = set; then
5389 withval=$with_optimize_option;
5394 { echo "$as_me:$LINENO: checking optimization flags" >&5
5395 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5398 case "$llvm_cv_os_type" in
5399 FreeBSD) optimize_option=-O2 ;;
5400 MingW) optimize_option=-O2 ;;
5401 *) optimize_option=-O3 ;;
5403 *) optimize_option="$withval" ;;
5405 OPTIMIZE_OPTION=$optimize_option
5407 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5408 echo "${ECHO_T}$optimize_option" >&6; }
5411 # Check whether --with-extra-options was given.
5412 if test "${with_extra_options+set}" = set; then
5413 withval=$with_extra_options;
5419 default) EXTRA_OPTIONS= ;;
5420 *) EXTRA_OPTIONS=$withval ;;
5422 EXTRA_OPTIONS=$EXTRA_OPTIONS
5426 # Check whether --with-extra-ld-options was given.
5427 if test "${with_extra_ld_options+set}" = set; then
5428 withval=$with_extra_ld_options;
5434 default) EXTRA_LD_OPTIONS= ;;
5435 *) EXTRA_LD_OPTIONS=$withval ;;
5437 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5440 # Check whether --enable-bindings was given.
5441 if test "${enable_bindings+set}" = set; then
5442 enableval=$enable_bindings;
5447 BINDINGS_TO_BUILD=""
5448 case "$enableval" in
5449 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5450 all ) BINDINGS_TO_BUILD="ocaml" ;;
5451 none | no) BINDINGS_TO_BUILD="" ;;
5452 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5453 case "$a_binding" in
5454 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5455 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5456 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5457 { (exit 1); exit 1; }; } ;;
5464 # Check whether --with-ocaml-libdir was given.
5465 if test "${with_ocaml_libdir+set}" = set; then
5466 withval=$with_ocaml_libdir;
5472 auto) with_ocaml_libdir="$withval" ;;
5473 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5474 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5475 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5480 # Check whether --with-clang-resource-dir was given.
5481 if test "${with_clang_resource_dir+set}" = set; then
5482 withval=$with_clang_resource_dir;
5488 cat >>confdefs.h <<_ACEOF
5489 #define CLANG_RESOURCE_DIR "$withval"
5494 # Check whether --with-c-include-dirs was given.
5495 if test "${with_c_include_dirs+set}" = set; then
5496 withval=$with_c_include_dirs;
5502 cat >>confdefs.h <<_ACEOF
5503 #define C_INCLUDE_DIRS "$withval"
5508 # Check whether --with-cxx-include-root was given.
5509 if test "${with_cxx_include_root+set}" = set; then
5510 withval=$with_cxx_include_root;
5516 cat >>confdefs.h <<_ACEOF
5517 #define CXX_INCLUDE_ROOT "$withval"
5522 # Check whether --with-cxx-include-arch was given.
5523 if test "${with_cxx_include_arch+set}" = set; then
5524 withval=$with_cxx_include_arch;
5530 cat >>confdefs.h <<_ACEOF
5531 #define CXX_INCLUDE_ARCH "$withval"
5536 # Check whether --with-cxx-include-32bit-dir was given.
5537 if test "${with_cxx_include_32bit_dir+set}" = set; then
5538 withval=$with_cxx_include_32bit_dir;
5544 cat >>confdefs.h <<_ACEOF
5545 #define CXX_INCLUDE_32BIT_DIR "$withval"
5550 # Check whether --with-cxx-include-64bit-dir was given.
5551 if test "${with_cxx_include_64bit_dir+set}" = set; then
5552 withval=$with_cxx_include_64bit_dir;
5558 cat >>confdefs.h <<_ACEOF
5559 #define CXX_INCLUDE_64BIT_DIR "$withval"
5564 # Check whether --with-binutils-include was given.
5565 if test "${with_binutils_include+set}" = set; then
5566 withval=$with_binutils_include;
5572 default) WITH_BINUTILS_INCDIR=default ;;
5573 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5574 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5575 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5576 { (exit 1); exit 1; }; } ;;
5578 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5579 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5581 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5582 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5583 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5584 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5585 { (exit 1); exit 1; }; };
5590 # Check whether --with-bug-report-url was given.
5591 if test "${with_bug_report_url+set}" = set; then
5592 withval=$with_bug_report_url;
5594 withval="http://llvm.org/bugs/"
5598 cat >>confdefs.h <<_ACEOF
5599 #define BUG_REPORT_URL "$withval"
5603 # Check whether --enable-libffi was given.
5604 if test "${enable_libffi+set}" = set; then
5605 enableval=$enable_libffi; case "$enableval" in
5606 yes) llvm_cv_enable_libffi="yes" ;;
5607 no) llvm_cv_enable_libffi="no" ;;
5608 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5609 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5610 { (exit 1); exit 1; }; } ;;
5613 llvm_cv_enable_libffi=no
5618 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5619 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5620 if test "${lt_cv_path_NM+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 if test -n "$NM"; then
5624 # Let the user override the test.
5627 lt_nm_to_check="${ac_tool_prefix}nm"
5628 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5629 lt_nm_to_check="$lt_nm_to_check nm"
5631 for lt_tmp_nm in $lt_nm_to_check; do
5632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5635 test -z "$ac_dir" && ac_dir=.
5636 tmp_nm="$ac_dir/$lt_tmp_nm"
5637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5638 # Check to see if the nm accepts a BSD-compat flag.
5639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5640 # nm: unknown option "B" ignored
5641 # Tru64's nm complains that /dev/null is an invalid object file
5642 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5643 */dev/null* | *'Invalid file or object type'*)
5644 lt_cv_path_NM="$tmp_nm -B"
5648 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5650 lt_cv_path_NM="$tmp_nm -p"
5654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5655 continue # so that we can try to find one that supports BSD flags
5664 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5667 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5668 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5673 { echo "$as_me:$LINENO: checking for GNU make" >&5
5674 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5675 if test "${llvm_cv_gnu_make_command+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 llvm_cv_gnu_make_command=''
5679 for a in "$MAKE" make gmake gnumake ; do
5680 if test -z "$a" ; then continue ; fi ;
5681 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5683 llvm_cv_gnu_make_command=$a ;
5688 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5689 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5690 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5694 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5695 echo "${ECHO_T}\"Not found\"" >&6; };
5699 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5700 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5702 if test "$LN_S" = "ln -s"; then
5703 { echo "$as_me:$LINENO: result: yes" >&5
5704 echo "${ECHO_T}yes" >&6; }
5706 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5707 echo "${ECHO_T}no, using $LN_S" >&6; }
5710 # Extract the first word of "cmp", so it can be a program name with args.
5711 set dummy cmp; ac_word=$2
5712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5714 if test "${ac_cv_path_CMP+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5742 if test -n "$CMP"; then
5743 { echo "$as_me:$LINENO: result: $CMP" >&5
5744 echo "${ECHO_T}$CMP" >&6; }
5746 { echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6; }
5751 # Extract the first word of "cp", so it can be a program name with args.
5752 set dummy cp; ac_word=$2
5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755 if test "${ac_cv_path_CP+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5783 if test -n "$CP"; then
5784 { echo "$as_me:$LINENO: result: $CP" >&5
5785 echo "${ECHO_T}$CP" >&6; }
5787 { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5792 # Extract the first word of "date", so it can be a program name with args.
5793 set dummy date; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_path_DATE+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5823 DATE=$ac_cv_path_DATE
5824 if test -n "$DATE"; then
5825 { echo "$as_me:$LINENO: result: $DATE" >&5
5826 echo "${ECHO_T}$DATE" >&6; }
5828 { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5833 # Extract the first word of "find", so it can be a program name with args.
5834 set dummy find; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_path_FIND+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5864 FIND=$ac_cv_path_FIND
5865 if test -n "$FIND"; then
5866 { echo "$as_me:$LINENO: result: $FIND" >&5
5867 echo "${ECHO_T}$FIND" >&6; }
5869 { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5874 # Extract the first word of "grep", so it can be a program name with args.
5875 set dummy grep; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_path_GREP+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5905 GREP=$ac_cv_path_GREP
5906 if test -n "$GREP"; then
5907 { echo "$as_me:$LINENO: result: $GREP" >&5
5908 echo "${ECHO_T}$GREP" >&6; }
5910 { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5915 # Extract the first word of "mkdir", so it can be a program name with args.
5916 set dummy mkdir; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_path_MKDIR+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5946 MKDIR=$ac_cv_path_MKDIR
5947 if test -n "$MKDIR"; then
5948 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5949 echo "${ECHO_T}$MKDIR" >&6; }
5951 { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5956 # Extract the first word of "mv", so it can be a program name with args.
5957 set dummy mv; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_path_MV+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5988 if test -n "$MV"; then
5989 { echo "$as_me:$LINENO: result: $MV" >&5
5990 echo "${ECHO_T}$MV" >&6; }
5992 { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_RANLIB+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 if test -n "$RANLIB"; then
6006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 RANLIB=$ac_cv_prog_RANLIB
6026 if test -n "$RANLIB"; then
6027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6028 echo "${ECHO_T}$RANLIB" >&6; }
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6036 if test -z "$ac_cv_prog_RANLIB"; then
6037 ac_ct_RANLIB=$RANLIB
6038 # Extract the first word of "ranlib", so it can be a program name with args.
6039 set dummy ranlib; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 if test -n "$ac_ct_RANLIB"; then
6046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_RANLIB="ranlib"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6066 if test -n "$ac_ct_RANLIB"; then
6067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6074 if test "x$ac_ct_RANLIB" = x; then
6077 case $cross_compiling:$ac_tool_warned in
6079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080 whose name does not start with the host triplet. If you think this
6081 configuration is useful to you, please write to autoconf@gnu.org." >&5
6082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet. If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6085 ac_tool_warned=yes ;;
6087 RANLIB=$ac_ct_RANLIB
6090 RANLIB="$ac_cv_prog_RANLIB"
6093 if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}ar; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_AR+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 if test -n "$AR"; then
6102 ac_cv_prog_AR="$AR" # Let the user override the test.
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_AR="${ac_tool_prefix}ar"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 if test -n "$AR"; then
6123 { echo "$as_me:$LINENO: result: $AR" >&5
6124 echo "${ECHO_T}$AR" >&6; }
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6132 if test -z "$ac_cv_prog_AR"; then
6134 # Extract the first word of "ar", so it can be a program name with args.
6135 set dummy ar; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -n "$ac_ct_AR"; then
6142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_ac_ct_AR="ar"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6162 if test -n "$ac_ct_AR"; then
6163 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6164 echo "${ECHO_T}$ac_ct_AR" >&6; }
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6170 if test "x$ac_ct_AR" = x; then
6173 case $cross_compiling:$ac_tool_warned in
6175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6176 whose name does not start with the host triplet. If you think this
6177 configuration is useful to you, please write to autoconf@gnu.org." >&5
6178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet. If you think this
6180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6181 ac_tool_warned=yes ;;
6189 # Extract the first word of "rm", so it can be a program name with args.
6190 set dummy rm; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_path_RM+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6221 if test -n "$RM"; then
6222 { echo "$as_me:$LINENO: result: $RM" >&5
6223 echo "${ECHO_T}$RM" >&6; }
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6230 # Extract the first word of "sed", so it can be a program name with args.
6231 set dummy sed; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_SED+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6262 if test -n "$SED"; then
6263 { echo "$as_me:$LINENO: result: $SED" >&5
6264 echo "${ECHO_T}$SED" >&6; }
6266 { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6271 # Extract the first word of "tar", so it can be a program name with args.
6272 set dummy tar; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_TAR+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6303 if test -n "$TAR"; then
6304 { echo "$as_me:$LINENO: result: $TAR" >&5
6305 echo "${ECHO_T}$TAR" >&6; }
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6312 # Extract the first word of "pwd", so it can be a program name with args.
6313 set dummy pwd; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_BINPWD+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6343 BINPWD=$ac_cv_path_BINPWD
6344 if test -n "$BINPWD"; then
6345 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6346 echo "${ECHO_T}$BINPWD" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6354 # Extract the first word of "Graphviz", so it can be a program name with args.
6355 set dummy Graphviz; ac_word=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6385 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6386 if test -n "$GRAPHVIZ"; then
6387 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6388 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6390 { echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6; }
6395 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6397 cat >>confdefs.h <<\_ACEOF
6398 #define HAVE_GRAPHVIZ 1
6401 if test "$llvm_cv_os_type" = "MingW" ; then
6402 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6405 cat >>confdefs.h <<_ACEOF
6406 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6410 # Extract the first word of "dot", so it can be a program name with args.
6411 set dummy dot; ac_word=$2
6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414 if test "${ac_cv_path_DOT+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6442 if test -n "$DOT"; then
6443 { echo "$as_me:$LINENO: result: $DOT" >&5
6444 echo "${ECHO_T}$DOT" >&6; }
6446 { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6451 if test "$DOT" != "echo dot" ; then
6453 cat >>confdefs.h <<\_ACEOF
6457 if test "$llvm_cv_os_type" = "MingW" ; then
6458 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6461 cat >>confdefs.h <<_ACEOF
6462 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6466 # Extract the first word of "fdp", so it can be a program name with args.
6467 set dummy fdp; ac_word=$2
6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470 if test "${ac_cv_path_FDP+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6498 if test -n "$FDP"; then
6499 { echo "$as_me:$LINENO: result: $FDP" >&5
6500 echo "${ECHO_T}$FDP" >&6; }
6502 { echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6; }
6507 if test "$FDP" != "echo fdp" ; then
6509 cat >>confdefs.h <<\_ACEOF
6513 if test "$llvm_cv_os_type" = "MingW" ; then
6514 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6517 cat >>confdefs.h <<_ACEOF
6518 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6522 # Extract the first word of "neato", so it can be a program name with args.
6523 set dummy neato; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_NEATO+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6553 NEATO=$ac_cv_path_NEATO
6554 if test -n "$NEATO"; then
6555 { echo "$as_me:$LINENO: result: $NEATO" >&5
6556 echo "${ECHO_T}$NEATO" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6563 if test "$NEATO" != "echo neato" ; then
6565 cat >>confdefs.h <<\_ACEOF
6566 #define HAVE_NEATO 1
6569 if test "$llvm_cv_os_type" = "MingW" ; then
6570 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6573 cat >>confdefs.h <<_ACEOF
6574 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6578 # Extract the first word of "twopi", so it can be a program name with args.
6579 set dummy twopi; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_TWOPI+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6609 TWOPI=$ac_cv_path_TWOPI
6610 if test -n "$TWOPI"; then
6611 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6612 echo "${ECHO_T}$TWOPI" >&6; }
6614 { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6619 if test "$TWOPI" != "echo twopi" ; then
6621 cat >>confdefs.h <<\_ACEOF
6622 #define HAVE_TWOPI 1
6625 if test "$llvm_cv_os_type" = "MingW" ; then
6626 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6629 cat >>confdefs.h <<_ACEOF
6630 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6634 # Extract the first word of "circo", so it can be a program name with args.
6635 set dummy circo; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_path_CIRCO+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6665 CIRCO=$ac_cv_path_CIRCO
6666 if test -n "$CIRCO"; then
6667 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6668 echo "${ECHO_T}$CIRCO" >&6; }
6670 { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6675 if test "$CIRCO" != "echo circo" ; then
6677 cat >>confdefs.h <<\_ACEOF
6678 #define HAVE_CIRCO 1
6681 if test "$llvm_cv_os_type" = "MingW" ; then
6682 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6685 cat >>confdefs.h <<_ACEOF
6686 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6690 for ac_prog in gv gsview32
6692 # Extract the first word of "$ac_prog", so it can be a program name with args.
6693 set dummy $ac_prog; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_GV+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 if test -n "$GV"; then
6724 { echo "$as_me:$LINENO: result: $GV" >&5
6725 echo "${ECHO_T}$GV" >&6; }
6727 { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6732 test -n "$GV" && break
6734 test -n "$GV" || GV="echo gv"
6736 if test "$GV" != "echo gv" ; then
6738 cat >>confdefs.h <<\_ACEOF
6742 if test "$llvm_cv_os_type" = "MingW" ; then
6743 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6746 cat >>confdefs.h <<_ACEOF
6747 #define LLVM_PATH_GV "$GV${EXEEXT}"
6751 # Extract the first word of "dotty", so it can be a program name with args.
6752 set dummy dotty; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_DOTTY+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6782 DOTTY=$ac_cv_path_DOTTY
6783 if test -n "$DOTTY"; then
6784 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6785 echo "${ECHO_T}$DOTTY" >&6; }
6787 { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6792 if test "$DOTTY" != "echo dotty" ; then
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_DOTTY 1
6798 if test "$llvm_cv_os_type" = "MingW" ; then
6799 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6802 cat >>confdefs.h <<_ACEOF
6803 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6807 # Extract the first word of "xdot.py", so it can be a program name with args.
6808 set dummy xdot.py; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6838 XDOT_PY=$ac_cv_path_XDOT_PY
6839 if test -n "$XDOT_PY"; then
6840 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6841 echo "${ECHO_T}$XDOT_PY" >&6; }
6843 { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6848 if test "$XDOT_PY" != "echo xdot.py" ; then
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_XDOT_PY 1
6854 if test "$llvm_cv_os_type" = "MingW" ; then
6855 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6858 cat >>confdefs.h <<_ACEOF
6859 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6865 # Extract the first word of "perl", so it can be a program name with args.
6866 set dummy perl; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_path_PERL+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6896 PERL=$ac_cv_path_PERL
6897 if test -n "$PERL"; then
6898 { echo "$as_me:$LINENO: result: $PERL" >&5
6899 echo "${ECHO_T}$PERL" >&6; }
6901 { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6906 if test "$PERL" != "none"; then
6907 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6908 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6909 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6910 { echo "$as_me:$LINENO: result: yes" >&5
6911 echo "${ECHO_T}yes" >&6; }
6914 { echo "$as_me:$LINENO: result: not found" >&5
6915 echo "${ECHO_T}not found" >&6; }
6920 if test x"$PERL" = xnone; then
6923 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6924 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6925 { (exit 1); exit 1; }; }
6931 # Find a good install program. We prefer a C program (faster),
6932 # so one script is as good as another. But avoid the broken or
6933 # incompatible versions:
6934 # SysV /etc/install, /usr/sbin/install
6935 # SunOS /usr/etc/install
6936 # IRIX /sbin/install
6938 # AmigaOS /C/install, which installs bootblocks on floppy discs
6939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6942 # OS/2's system install, which has a completely different semantic
6943 # ./install, which can be erroneously created by make from ./install.sh.
6944 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6946 if test -z "$INSTALL"; then
6947 if test "${ac_cv_path_install+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 # Account for people who put trailing slashes in PATH elements.
6957 ./ | .// | /cC/* | \
6958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6962 # OSF1 and SCO ODT 3.0 have their own names for install.
6963 # Don't use installbsd from OSF since it installs stuff as root
6965 for ac_prog in ginstall scoinst install; do
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6968 if test $ac_prog = install &&
6969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6970 # AIX install. It has an incompatible calling convention.
6972 elif test $ac_prog = install &&
6973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6974 # program-specific install script used by HP pwplus--don't use.
6977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6990 if test "${ac_cv_path_install+set}" = set; then
6991 INSTALL=$ac_cv_path_install
6993 # As a last resort, use the slow shell script. Don't cache a
6994 # value for INSTALL within a source directory, because that will
6995 # break other packages using the cache if that directory is
6996 # removed, or if the value is a relative name.
6997 INSTALL=$ac_install_sh
7000 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7001 echo "${ECHO_T}$INSTALL" >&6; }
7003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7004 # It thinks the first close brace ends the variable substitution.
7005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7012 [\\/$]* | ?:[\\/]* ) ;;
7013 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7016 # Extract the first word of "bzip2", so it can be a program name with args.
7017 set dummy bzip2; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_path_BZIP2+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 BZIP2=$ac_cv_path_BZIP2
7047 if test -n "$BZIP2"; then
7048 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7049 echo "${ECHO_T}$BZIP2" >&6; }
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7056 # Extract the first word of "cat", so it can be a program name with args.
7057 set dummy cat; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_CAT+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 if test -n "$CAT"; then
7088 { echo "$as_me:$LINENO: result: $CAT" >&5
7089 echo "${ECHO_T}$CAT" >&6; }
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7096 # Extract the first word of "doxygen", so it can be a program name with args.
7097 set dummy doxygen; ac_word=$2
7098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 DOXYGEN=$ac_cv_path_DOXYGEN
7127 if test -n "$DOXYGEN"; then
7128 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7129 echo "${ECHO_T}$DOXYGEN" >&6; }
7131 { echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6; }
7136 # Extract the first word of "groff", so it can be a program name with args.
7137 set dummy groff; ac_word=$2
7138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140 if test "${ac_cv_path_GROFF+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 GROFF=$ac_cv_path_GROFF
7167 if test -n "$GROFF"; then
7168 { echo "$as_me:$LINENO: result: $GROFF" >&5
7169 echo "${ECHO_T}$GROFF" >&6; }
7171 { echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6; }
7176 # Extract the first word of "gzip", so it can be a program name with args.
7177 set dummy gzip; ac_word=$2
7178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 GZIPBIN=$ac_cv_path_GZIPBIN
7207 if test -n "$GZIPBIN"; then
7208 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7209 echo "${ECHO_T}$GZIPBIN" >&6; }
7211 { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7216 # Extract the first word of "pod2html", so it can be a program name with args.
7217 set dummy pod2html; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_path_POD2HTML+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 POD2HTML=$ac_cv_path_POD2HTML
7247 if test -n "$POD2HTML"; then
7248 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7249 echo "${ECHO_T}$POD2HTML" >&6; }
7251 { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7256 # Extract the first word of "pod2man", so it can be a program name with args.
7257 set dummy pod2man; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_path_POD2MAN+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 POD2MAN=$ac_cv_path_POD2MAN
7287 if test -n "$POD2MAN"; then
7288 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7289 echo "${ECHO_T}$POD2MAN" >&6; }
7291 { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7296 # Extract the first word of "pdfroff", so it can be a program name with args.
7297 set dummy pdfroff; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_PDFROFF+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 PDFROFF=$ac_cv_path_PDFROFF
7327 if test -n "$PDFROFF"; then
7328 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7329 echo "${ECHO_T}$PDFROFF" >&6; }
7331 { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7336 # Extract the first word of "runtest", so it can be a program name with args.
7337 set dummy runtest; ac_word=$2
7338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340 if test "${ac_cv_path_RUNTEST+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 RUNTEST=$ac_cv_path_RUNTEST
7367 if test -n "$RUNTEST"; then
7368 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7369 echo "${ECHO_T}$RUNTEST" >&6; }
7371 { echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6; }
7378 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7379 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7381 # Check whether --with-tclinclude was given.
7382 if test "${with_tclinclude+set}" = set; then
7383 withval=$with_tclinclude; with_tclinclude=${withval}
7388 if test "${ac_cv_path_tclsh+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 if test x"${with_tclinclude}" != x ; then
7393 if test -f ${with_tclinclude}/tclsh ; then
7394 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7395 elif test -f ${with_tclinclude}/src/tclsh ; then
7396 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7398 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7399 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7400 { (exit 1); exit 1; }; }
7406 if test x"${ac_cv_path_tclsh}" = x ; then
7407 { echo "$as_me:$LINENO: result: none" >&5
7408 echo "${ECHO_T}none" >&6; }
7409 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
7411 # Extract the first word of "$ac_prog", so it can be a program name with args.
7412 set dummy $ac_prog; ac_word=$2
7413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415 if test "${ac_cv_path_TCLSH+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 TCLSH=$ac_cv_path_TCLSH
7442 if test -n "$TCLSH"; then
7443 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7444 echo "${ECHO_T}$TCLSH" >&6; }
7446 { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7451 test -n "$TCLSH" && break
7454 if test x"${TCLSH}" = x ; then
7455 ac_cv_path_tclsh='';
7457 ac_cv_path_tclsh="${TCLSH}";
7460 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7461 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7462 TCLSH="${ac_cv_path_tclsh}"
7466 # Extract the first word of "zip", so it can be a program name with args.
7467 set dummy zip; ac_word=$2
7468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7470 if test "${ac_cv_path_ZIP+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 if test -n "$ZIP"; then
7498 { echo "$as_me:$LINENO: result: $ZIP" >&5
7499 echo "${ECHO_T}$ZIP" >&6; }
7501 { echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6; }
7506 for ac_prog in ocamlc
7508 # Extract the first word of "$ac_prog", so it can be a program name with args.
7509 set dummy $ac_prog; ac_word=$2
7510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512 if test "${ac_cv_path_OCAMLC+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 OCAMLC=$ac_cv_path_OCAMLC
7539 if test -n "$OCAMLC"; then
7540 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7541 echo "${ECHO_T}$OCAMLC" >&6; }
7543 { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7548 test -n "$OCAMLC" && break
7551 for ac_prog in ocamlopt
7553 # Extract the first word of "$ac_prog", so it can be a program name with args.
7554 set dummy $ac_prog; ac_word=$2
7555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7557 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 OCAMLOPT=$ac_cv_path_OCAMLOPT
7584 if test -n "$OCAMLOPT"; then
7585 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7586 echo "${ECHO_T}$OCAMLOPT" >&6; }
7588 { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7593 test -n "$OCAMLOPT" && break
7596 for ac_prog in ocamldep
7598 # Extract the first word of "$ac_prog", so it can be a program name with args.
7599 set dummy $ac_prog; ac_word=$2
7600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7602 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 OCAMLDEP=$ac_cv_path_OCAMLDEP
7629 if test -n "$OCAMLDEP"; then
7630 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7631 echo "${ECHO_T}$OCAMLDEP" >&6; }
7633 { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7638 test -n "$OCAMLDEP" && break
7641 for ac_prog in ocamldoc
7643 # Extract the first word of "$ac_prog", so it can be a program name with args.
7644 set dummy $ac_prog; ac_word=$2
7645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 OCAMLDOC=$ac_cv_path_OCAMLDOC
7674 if test -n "$OCAMLDOC"; then
7675 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7676 echo "${ECHO_T}$OCAMLDOC" >&6; }
7678 { echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6; }
7683 test -n "$OCAMLDOC" && break
7686 for ac_prog in gas as
7688 # Extract the first word of "$ac_prog", so it can be a program name with args.
7689 set dummy $ac_prog; ac_word=$2
7690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7692 if test "${ac_cv_path_GAS+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 if test -n "$GAS"; then
7720 { echo "$as_me:$LINENO: result: $GAS" >&5
7721 echo "${ECHO_T}$GAS" >&6; }
7723 { echo "$as_me:$LINENO: result: no" >&5
7724 echo "${ECHO_T}no" >&6; }
7728 test -n "$GAS" && break
7732 { echo "$as_me:$LINENO: checking for linker version" >&5
7733 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7734 if test "${llvm_cv_link_version+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 version_string="$(ld -v 2>&1 | head -1)"
7741 if (echo "$version_string" | grep -q "ld64"); then
7742 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7744 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7748 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7749 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7751 cat >>confdefs.h <<_ACEOF
7752 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7757 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7758 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7759 if test "${llvm_cv_link_use_r+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 ac_cpp='$CPP $CPPFLAGS'
7764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7769 CFLAGS="$CFLAGS -Wl,-R."
7770 cat >conftest.$ac_ext <<_ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7785 rm -f conftest.$ac_objext conftest$ac_exeext
7786 if { (ac_try="$ac_link"
7788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_link") 2>conftest.er1
7794 grep -v '^ *+' conftest.er1 >conftest.err
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } &&
7799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7800 { (case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_try") 2>&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; } &&
7809 { ac_try='test -s conftest$ac_exeext'
7810 { (case "(($ac_try" in
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7815 (eval "$ac_try") 2>&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; }; then
7819 llvm_cv_link_use_r=yes
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7824 llvm_cv_link_use_r=no
7827 rm -f core conftest.err conftest.$ac_objext \
7828 conftest$ac_exeext conftest.$ac_ext
7831 ac_cpp='$CPP $CPPFLAGS'
7832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7838 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7839 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7840 if test "$llvm_cv_link_use_r" = yes ; then
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_LINK_R 1
7849 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7850 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7851 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 ac_cpp='$CPP $CPPFLAGS'
7856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7861 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7862 cat >conftest.$ac_ext <<_ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7877 rm -f conftest.$ac_objext conftest$ac_exeext
7878 if { (ac_try="$ac_link"
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_link") 2>conftest.er1
7886 grep -v '^ *+' conftest.er1 >conftest.err
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7892 { (case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_try") 2>&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; } &&
7901 { ac_try='test -s conftest$ac_exeext'
7902 { (case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_try") 2>&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 llvm_cv_link_use_export_dynamic=yes
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 llvm_cv_link_use_export_dynamic=no
7919 rm -f core conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7923 ac_cpp='$CPP $CPPFLAGS'
7924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7930 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7931 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7932 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7934 cat >>confdefs.h <<\_ACEOF
7935 #define HAVE_LINK_EXPORT_DYNAMIC 1
7941 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7942 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7943 if test "${llvm_cv_link_use_version_script+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 ac_cpp='$CPP $CPPFLAGS'
7948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7954 # The following code is from the autoconf manual,
7955 # "11.13: Limitations of Usual Tools".
7956 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7957 # Use mktemp if possible; otherwise fall back on mkdir,
7958 # with $RANDOM to make collisions less likely.
7962 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7964 test -n "$tmp" && test -d "$tmp"
7966 tmp=$TMPDIR/foo$$-$RANDOM
7967 (umask 077 && mkdir "$tmp")
7970 echo "{" > "$tmp/export.map"
7971 echo " global: main;" >> "$tmp/export.map"
7972 echo " local: *;" >> "$tmp/export.map"
7973 echo "};" >> "$tmp/export.map"
7975 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7976 cat >conftest.$ac_ext <<_ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7991 rm -f conftest.$ac_objext conftest$ac_exeext
7992 if { (ac_try="$ac_link"
7994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7995 *) ac_try_echo=$ac_try;;
7997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7998 (eval "$ac_link") 2>conftest.er1
8000 grep -v '^ *+' conftest.er1 >conftest.err
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8006 { (case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_try") 2>&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; } &&
8015 { ac_try='test -s conftest$ac_exeext'
8016 { (case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_try") 2>&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 llvm_cv_link_use_version_script=yes
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 llvm_cv_link_use_version_script=no
8033 rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 rm "$tmp/export.map"
8039 ac_cpp='$CPP $CPPFLAGS'
8040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8047 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8048 if test "$llvm_cv_link_use_version_script" = yes ; then
8049 HAVE_LINK_VERSION_SCRIPT=1
8056 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8057 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8058 if test "${ac_cv_c_const+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.$ac_ext <<_ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8071 /* FIXME: Include the comments suggested by Paul. */
8073 /* Ultrix mips cc rejects this. */
8074 typedef int charset[2];
8076 /* SunOS 4.1.1 cc rejects this. */
8077 char const *const *ccp;
8079 /* NEC SVR4.0.2 mips cc rejects this. */
8080 struct point {int x, y;};
8081 static struct point const zero = {0,0};
8082 /* AIX XL C 1.02.0.0 rejects this.
8083 It does not let you subtract one const X* pointer from another in
8084 an arm of an if-expression whose if-part is not a constant
8086 const char *g = "string";
8087 ccp = &g + (g ? g-g : 0);
8088 /* HPUX 7.0 cc rejects these. */
8091 ccp = (char const *const *) p;
8092 { /* SCO 3.2v4 cc rejects this. */
8094 char const *s = 0 ? (char *) 0 : (char const *) 0;
8099 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8101 const int *foo = &x[0];
8104 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8105 typedef const int *iptr;
8109 { /* AIX XL C 1.02.0.0 rejects this saying
8110 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8111 struct s { int j; const int *ap[3]; };
8112 struct s *b; b->j = 5;
8114 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8118 return !x[0] && !zero.x;
8125 rm -f conftest.$ac_objext
8126 if { (ac_try="$ac_compile"
8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129 *) ac_try_echo=$ac_try;;
8131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132 (eval "$ac_compile") 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_try") 2>&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest.$ac_objext'
8150 { (case "(($ac_try" in
8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8155 (eval "$ac_try") 2>&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8170 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8171 if test $ac_cv_c_const = no; then
8173 cat >>confdefs.h <<\_ACEOF
8185 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8186 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8187 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8188 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 cat >conftest.$ac_ext <<_ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198 #include <sys/types.h>
8210 rm -f conftest.$ac_objext
8211 if { (ac_try="$ac_compile"
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_compile") 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest.$ac_objext'
8235 { (case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_try") 2>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 eval "$as_ac_Header=yes"
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8249 eval "$as_ac_Header=no"
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254 ac_res=`eval echo '${'$as_ac_Header'}'`
8255 { echo "$as_me:$LINENO: result: $ac_res" >&5
8256 echo "${ECHO_T}$ac_res" >&6; }
8257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8258 cat >>confdefs.h <<_ACEOF
8259 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8262 ac_header_dirent=$ac_hdr; break
8266 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8267 if test $ac_header_dirent = dirent.h; then
8268 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8269 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8270 if test "${ac_cv_search_opendir+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 ac_func_search_save_LIBS=$LIBS
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8281 /* Override any GCC internal prototype to avoid an error.
8282 Use char because int might match the return type of a GCC
8283 builtin and then its argument prototype would still apply. */
8296 for ac_lib in '' dir; do
8297 if test -z "$ac_lib"; then
8298 ac_res="none required"
8301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (ac_try="$ac_link"
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_link") 2>conftest.er1
8312 grep -v '^ *+' conftest.er1 >conftest.err
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8318 { (case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_try") 2>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; } &&
8327 { ac_try='test -s conftest$ac_exeext'
8328 { (case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_try") 2>&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337 ac_cv_search_opendir=$ac_res
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8345 rm -f core conftest.err conftest.$ac_objext \
8347 if test "${ac_cv_search_opendir+set}" = set; then
8351 if test "${ac_cv_search_opendir+set}" = set; then
8354 ac_cv_search_opendir=no
8357 LIBS=$ac_func_search_save_LIBS
8359 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8360 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8361 ac_res=$ac_cv_search_opendir
8362 if test "$ac_res" != no; then
8363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8368 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8369 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8370 if test "${ac_cv_search_opendir+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 ac_func_search_save_LIBS=$LIBS
8374 cat >conftest.$ac_ext <<_ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8381 /* Override any GCC internal prototype to avoid an error.
8382 Use char because int might match the return type of a GCC
8383 builtin and then its argument prototype would still apply. */
8396 for ac_lib in '' x; do
8397 if test -z "$ac_lib"; then
8398 ac_res="none required"
8401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (ac_try="$ac_link"
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_link") 2>conftest.er1
8412 grep -v '^ *+' conftest.er1 >conftest.err
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8418 { (case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_try") 2>&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; } &&
8427 { ac_try='test -s conftest$ac_exeext'
8428 { (case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_try") 2>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 ac_cv_search_opendir=$ac_res
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8445 rm -f core conftest.err conftest.$ac_objext \
8447 if test "${ac_cv_search_opendir+set}" = set; then
8451 if test "${ac_cv_search_opendir+set}" = set; then
8454 ac_cv_search_opendir=no
8457 LIBS=$ac_func_search_save_LIBS
8459 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8460 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8461 ac_res=$ac_cv_search_opendir
8462 if test "$ac_res" != no; then
8463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8470 for ac_header in dlfcn.h
8472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 ac_res=`eval echo '${'$as_ac_Header'}'`
8480 { echo "$as_me:$LINENO: result: $ac_res" >&5
8481 echo "${ECHO_T}$ac_res" >&6; }
8483 # Is the header compilable?
8484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8486 cat >conftest.$ac_ext <<_ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 $ac_includes_default
8493 #include <$ac_header>
8495 rm -f conftest.$ac_objext
8496 if { (ac_try="$ac_compile"
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8504 grep -v '^ *+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } &&
8509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8510 { (case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_try") 2>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; } &&
8519 { ac_try='test -s conftest.$ac_objext'
8520 { (case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_try") 2>&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_header_compiler=yes
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 ac_header_compiler=no
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8539 echo "${ECHO_T}$ac_header_compiler" >&6; }
8541 # Is the header present?
8542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8544 cat >conftest.$ac_ext <<_ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550 #include <$ac_header>
8552 if { (ac_try="$ac_cpp conftest.$ac_ext"
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8560 grep -v '^ *+' conftest.er1 >conftest.err
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } >/dev/null; then
8565 if test -s conftest.err; then
8566 ac_cpp_err=$ac_c_preproc_warn_flag
8567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8574 if test -z "$ac_cpp_err"; then
8575 ac_header_preproc=yes
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 ac_header_preproc=no
8583 rm -f conftest.err conftest.$ac_ext
8584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8585 echo "${ECHO_T}$ac_header_preproc" >&6; }
8587 # So? What about this header?
8588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8594 ac_header_preproc=yes
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8610 ## ------------------------------ ##
8611 ## Report this to bugs@yourdomain ##
8612 ## ------------------------------ ##
8614 ) | sed "s/^/$as_me: WARNING: /" >&2
8617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 eval "$as_ac_Header=\$ac_header_preproc"
8624 ac_res=`eval echo '${'$as_ac_Header'}'`
8625 { echo "$as_me:$LINENO: result: $ac_res" >&5
8626 echo "${ECHO_T}$ac_res" >&6; }
8629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8630 cat >>confdefs.h <<_ACEOF
8631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8638 # Check whether --enable-ltdl-install was given.
8639 if test "${enable_ltdl_install+set}" = set; then
8640 enableval=$enable_ltdl_install;
8646 if test x"${enable_ltdl_install-no}" != xno; then
8648 INSTALL_LTDL_FALSE='#'
8650 INSTALL_LTDL_TRUE='#'
8656 if test x"${enable_ltdl_convenience-no}" != xno; then
8657 CONVENIENCE_LTDL_TRUE=
8658 CONVENIENCE_LTDL_FALSE='#'
8660 CONVENIENCE_LTDL_TRUE='#'
8661 CONVENIENCE_LTDL_FALSE=
8665 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8666 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8668 libname_spec='lib$name'
8676 shlibpath_overrides_runpath=unknown
8678 dynamic_linker="$host_os ld.so"
8679 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8680 if test "$GCC" = yes; then
8681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8682 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8683 # if the path contains ";" then we assume it to be the separator
8684 # otherwise default to the standard path separator (i.e. ":") - it is
8685 # assumed that no part of a normal pathname contains ";" but that should
8686 # okay in the real world where ";" in dirpaths is itself problematic.
8687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8692 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8694 need_lib_prefix=unknown
8695 hardcode_into_libs=no
8697 # when you set need_version to no, make sure it does not cause -set_version
8698 # flags to be left without arguments
8699 need_version=unknown
8704 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8705 shlibpath_var=LIBPATH
8707 # AIX 3 has no versioning support, so we append a major version to the name.
8708 soname_spec='${libname}${release}${shared_ext}$major'
8715 hardcode_into_libs=yes
8716 if test "$host_cpu" = ia64; then
8717 # AIX 5 supports IA64
8718 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8719 shlibpath_var=LD_LIBRARY_PATH
8721 # With GCC up to 2.95.x, collect2 would create an import file
8722 # for dependence libraries. The import file would start with
8723 # the line `#! .'. This would cause the generated library to
8724 # depend on `.', always an invalid library. This was fixed in
8725 # development snapshots of GCC prior to 3.0.
8727 aix4 | aix4.[01] | aix4.[01].*)
8728 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8730 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8737 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8738 # soname into executable. Probably we can add versioning support to
8739 # collect2, so additional links can be useful in future.
8740 if test "$aix_use_runtimelinking" = yes; then
8741 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8742 # instead of lib<name>.a to let people know that these are not
8743 # typical AIX shared libraries.
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 # We preserve .a as extension for shared libraries through AIX4.2
8747 # and later when we are not doing run time linking.
8748 library_names_spec='${libname}${release}.a $libname.a'
8749 soname_spec='${libname}${release}${shared_ext}$major'
8751 shlibpath_var=LIBPATH
8756 library_names_spec='$libname.ixlibrary $libname.a'
8757 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8758 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'
8762 library_names_spec='${libname}${shared_ext}'
8763 dynamic_linker="$host_os ld.so"
8764 shlibpath_var=LIBRARY_PATH
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8773 shlibpath_var=LD_LIBRARY_PATH
8774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8776 # the default ld.so.conf also contains /usr/contrib/lib and
8777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8778 # libtool to hard-code these into programs
8781 cygwin* | mingw* | pw32*)
8782 version_type=windows
8787 case $GCC,$host_os in
8788 yes,cygwin* | yes,mingw* | yes,pw32*)
8789 library_names_spec='$libname.dll.a'
8790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8791 postinstall_cmds='base_file=`basename \${file}`~
8792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8793 dldir=$destdir/`dirname \$dlpath`~
8794 test -d \$dldir || mkdir -p \$dldir~
8795 $install_prog $dir/$dlname \$dldir/$dlname~
8796 chmod a+x \$dldir/$dlname'
8797 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8798 dlpath=$dir/\$dldll~
8800 shlibpath_overrides_runpath=yes
8804 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8805 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8806 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8809 # MinGW DLLs use traditional 'lib' prefix
8810 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8811 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8812 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8813 # It is most probably a Windows format PATH printed by
8814 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8815 # path with ; separators, and with drive letters. We can handle the
8816 # drive letters (cygwin fileutils understands them), so leave them,
8817 # especially as we might pass files found there to a mingw objdump,
8818 # which wouldn't understand a cygwinified path. Ahh.
8819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8825 # pw32 DLLs use 'pw' prefix rather than 'lib'
8826 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8832 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8835 dynamic_linker='Win32 ld.exe'
8836 # FIXME: first we should search . and the directory the executable is in
8840 darwin* | rhapsody*)
8841 dynamic_linker="$host_os dyld"
8845 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8846 soname_spec='${libname}${release}${major}$shared_ext'
8847 shlibpath_overrides_runpath=yes
8848 shlibpath_var=DYLD_LIBRARY_PATH
8849 shrext_cmds='.dylib'
8850 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8851 if test "$GCC" = yes; then
8852 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"`
8854 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 shlibpath_var=LD_LIBRARY_PATH
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 shlibpath_var=LD_LIBRARY_PATH
8879 shlibpath_overrides_runpath=no
8880 hardcode_into_libs=yes
8881 dynamic_linker='GNU ld.so'
8884 freebsd* | dragonfly*)
8885 # DragonFly does not have aout. When/if they implement a new
8886 # versioning mechanism, adjust this.
8887 if test -x /usr/bin/objformat; then
8888 objformat=`/usr/bin/objformat`
8891 freebsd[123]*) objformat=aout ;;
8895 version_type=freebsd-$objformat
8896 case $version_type in
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8907 shlibpath_var=LD_LIBRARY_PATH
8910 shlibpath_overrides_runpath=yes
8912 freebsd3.[01]* | freebsdelf3.[01]*)
8913 shlibpath_overrides_runpath=yes
8914 hardcode_into_libs=yes
8916 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8917 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8918 shlibpath_overrides_runpath=no
8919 hardcode_into_libs=yes
8921 freebsd*) # from 4.6 on
8922 shlibpath_overrides_runpath=yes
8923 hardcode_into_libs=yes
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 hardcode_into_libs=yes
8938 hpux9* | hpux10* | hpux11*)
8939 # Give a soname corresponding to the major version so that dld.sl refuses to
8940 # link against other versions.
8947 hardcode_into_libs=yes
8948 dynamic_linker="$host_os dld.so"
8949 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 if test "X$HPUX_IA64_MODE" = X32; then
8954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8962 hardcode_into_libs=yes
8963 dynamic_linker="$host_os dld.sl"
8964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8973 dynamic_linker="$host_os dld.sl"
8974 shlibpath_var=SHLIB_PATH
8975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8980 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8981 postinstall_cmds='chmod 555 $lib'
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=no
8993 hardcode_into_libs=yes
8996 irix5* | irix6* | nonstopux*)
8998 nonstopux*) version_type=nonstopux ;;
9000 if test "$lt_cv_prog_gnu_ld" = yes; then
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9011 irix5* | nonstopux*)
9015 case $LD in # libtool.m4 will add one of these switches to LD
9016 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9017 libsuff= shlibsuff= libmagic=32-bit;;
9018 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9019 libsuff=32 shlibsuff=N32 libmagic=N32;;
9020 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9021 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9022 *) libsuff= shlibsuff= libmagic=never-match;;
9026 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9027 shlibpath_overrides_runpath=no
9028 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9029 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9030 hardcode_into_libs=yes
9033 # No shared lib support for Linux oldld, aout, or coff.
9034 linux*oldld* | linux*aout* | linux*coff*)
9038 # This must be Linux ELF.
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 shlibpath_overrides_runpath=no
9048 # This implies no fast_install, which is unacceptable.
9049 # Some rework will be needed to allow for fast_install
9050 # before this can be enabled.
9051 hardcode_into_libs=yes
9053 # Append ld.so.conf contents to the search path
9054 if test -f /etc/ld.so.conf; then
9055 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' ' '`
9056 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9059 # We used to test for /lib/ld.so.1 and disable shared libraries on
9060 # powerpc, because MkLinux only supported shared libraries with the
9061 # GNU dynamic linker. Since this was broken with cross compilers,
9062 # most powerpc-linux boxes support dynamic linking these days and
9063 # people can always --disable-shared, the test was removed, and we
9064 # assume the GNU/Linux dynamic linker is in use.
9065 dynamic_linker='GNU/Linux ld.so'
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=no
9076 hardcode_into_libs=yes
9077 dynamic_linker='GNU ld.so'
9084 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9087 dynamic_linker='NetBSD (a.out) ld.so'
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 dynamic_linker='NetBSD ld.elf_so'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 shlibpath_overrides_runpath=yes
9095 hardcode_into_libs=yes
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 shlibpath_overrides_runpath=yes
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 shlibpath_overrides_runpath=yes
9117 sys_lib_dlsearch_path_spec="/usr/lib"
9119 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9121 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9122 *) need_version=no ;;
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9129 openbsd2.[89] | openbsd2.[89].*)
9130 shlibpath_overrides_runpath=no
9133 shlibpath_overrides_runpath=yes
9137 shlibpath_overrides_runpath=yes
9142 libname_spec='$name'
9145 library_names_spec='$libname${shared_ext} $libname.a'
9146 dynamic_linker='OS/2 ld.exe'
9147 shlibpath_var=LIBPATH
9150 osf3* | osf4* | osf5*)
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9158 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=yes
9169 hardcode_into_libs=yes
9170 # ldd complains unless libraries are executable
9171 postinstall_cmds='chmod +x $lib'
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9177 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=yes
9180 if test "$with_gnu_ld" = yes; then
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 case $host_vendor in
9193 shlibpath_overrides_runpath=no
9195 export_dynamic_flag_spec='${wl}-Blargedynsym'
9196 runpath_var=LD_RUN_PATH
9204 shlibpath_overrides_runpath=no
9205 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9211 if test -d /usr/nec ;then
9213 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9214 soname_spec='$libname${shared_ext}.$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9220 version_type=freebsd-elf
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 hardcode_into_libs=yes
9227 if test "$with_gnu_ld" = yes; then
9228 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9229 shlibpath_overrides_runpath=no
9231 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9232 shlibpath_overrides_runpath=yes
9235 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9239 sys_lib_dlsearch_path_spec='/usr/lib'
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 shlibpath_var=LD_LIBRARY_PATH
9253 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9254 echo "${ECHO_T}$dynamic_linker" >&6; }
9255 test "$dynamic_linker" = no && can_build_shared=no
9257 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9258 if test "$GCC" = yes; then
9259 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9263 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9264 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9265 if test "${libltdl_cv_shlibext+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 eval libltdl_cv_shlibext=$shrext_cmds
9273 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9274 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9275 if test -n "$libltdl_cv_shlibext"; then
9277 cat >>confdefs.h <<_ACEOF
9278 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9284 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9285 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9286 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 libltdl_cv_shlibpath_var="$shlibpath_var"
9291 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9292 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9293 if test -n "$libltdl_cv_shlibpath_var"; then
9295 cat >>confdefs.h <<_ACEOF
9296 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9302 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9303 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9304 if test "${libltdl_cv_sys_search_path+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9309 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9310 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9311 if test -n "$libltdl_cv_sys_search_path"; then
9313 for dir in $libltdl_cv_sys_search_path; do
9314 if test -z "$sys_search_path"; then
9315 sys_search_path="$dir"
9317 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9321 cat >>confdefs.h <<_ACEOF
9322 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9327 { echo "$as_me:$LINENO: checking for objdir" >&5
9328 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9329 if test "${libltdl_cv_objdir+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 libltdl_cv_objdir="$objdir"
9333 if test -n "$objdir"; then
9336 rm -f .libs 2>/dev/null
9337 mkdir .libs 2>/dev/null
9338 if test -d .libs; then
9339 libltdl_cv_objdir=.libs
9341 # MS-DOS does not allow filenames that begin with a dot.
9342 libltdl_cv_objdir=_libs
9344 rmdir .libs 2>/dev/null
9348 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9349 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9351 cat >>confdefs.h <<_ACEOF
9352 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9360 # Check for command to grab the raw symbol name followed by C symbol from nm.
9361 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9362 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9363 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 # These are sane defaults that work on at least a few old systems.
9368 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9370 # Character class describing NM global symbol codes.
9371 symcode='[BCDEGRST]'
9373 # Regexp to match symbols that can be accessed directly from C.
9374 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9376 # Transform an extracted symbol line into a proper C declaration
9377 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9379 # Transform an extracted symbol line into symbol name and symbol address
9380 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'"
9382 # Define system-specific variables.
9387 cygwin* | mingw* | pw32*)
9388 symcode='[ABCDGISTW]'
9390 hpux*) # Its linker distinguishes data from code symbols
9391 if test "$host_cpu" = ia64; then
9392 symcode='[ABCDEGRST]'
9394 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9395 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'"
9398 if test "$host_cpu" = ia64; then
9399 symcode='[ABCDGIRSTW]'
9400 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9401 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'"
9405 symcode='[BCDEGRST]'
9408 symcode='[BCDEGQRST]'
9419 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9427 # Handle CRLF in mingw tool chain
9431 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9435 # If we're using GNU nm, then use its standard symbol codes.
9436 case `$NM -V 2>&1` in
9437 *GNU* | *'with BFD'*)
9438 symcode='[ABCDGIRSTW]' ;;
9441 # Try without a prefix undercore, then with it.
9442 for ac_symprfx in "" "_"; do
9444 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9445 symxfrm="\\1 $ac_symprfx\\2 \\2"
9447 # Write the raw and C identifiers.
9448 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9450 # Check to see that the pipe works correctly.
9454 cat > conftest.$ac_ext <<EOF
9459 void nm_test_func(){}
9463 int main(){nm_test_var='a';nm_test_func();return(0);}
9466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467 (eval $ac_compile) 2>&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; then
9471 # Now try to grab the symbols.
9473 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9474 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } && test -s "$nlist"; then
9478 # Try sorting and uniquifying the output.
9479 if sort "$nlist" | uniq > "$nlist"T; then
9480 mv -f "$nlist"T "$nlist"
9485 # Make sure that we snagged all the symbols we need.
9486 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9487 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9488 cat <<EOF > conftest.$ac_ext
9494 # Now generate the symbol file.
9495 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9497 cat <<EOF >> conftest.$ac_ext
9498 #if defined (__STDC__) && __STDC__
9499 # define lt_ptr_t void *
9501 # define lt_ptr_t char *
9505 /* The mapping between symbol names and symbols. */
9510 lt_preloaded_symbols[] =
9513 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9514 cat <<\EOF >> conftest.$ac_ext
9522 # Now try linking the two files.
9523 mv conftest.$ac_objext conftstm.$ac_objext
9524 lt_save_LIBS="$LIBS"
9525 lt_save_CFLAGS="$CFLAGS"
9526 LIBS="conftstm.$ac_objext"
9527 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9535 LIBS="$lt_save_LIBS"
9536 CFLAGS="$lt_save_CFLAGS"
9538 echo "cannot find nm_test_func in $nlist" >&5
9541 echo "cannot find nm_test_var in $nlist" >&5
9544 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9547 echo "$progname: failed program was:" >&5
9548 cat conftest.$ac_ext >&5
9550 rm -f conftest* conftst*
9552 # Do not use the global_symbol_pipe unless it works.
9553 if test "$pipe_works" = yes; then
9556 lt_cv_sys_global_symbol_pipe=
9562 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9563 lt_cv_sys_global_symbol_to_cdecl=
9565 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9566 { echo "$as_me:$LINENO: result: failed" >&5
9567 echo "${ECHO_T}failed" >&6; }
9569 { echo "$as_me:$LINENO: result: ok" >&5
9570 echo "${ECHO_T}ok" >&6; }
9574 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9575 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9576 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9580 libltdl_cv_preloaded_symbols=yes
9582 libltdl_cv_preloaded_symbols=no
9586 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9587 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9588 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9590 cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_PRELOADED_SYMBOLS 1
9599 ac_cpp='$CPP $CPPFLAGS'
9600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9605 { echo "$as_me:$LINENO: checking for shl_load" >&5
9606 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9607 if test "${ac_cv_func_shl_load+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 cat >conftest.$ac_ext <<_ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9618 #define shl_load innocuous_shl_load
9620 /* System header to define __stub macros and hopefully few prototypes,
9621 which can conflict with char shl_load (); below.
9622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9623 <limits.h> exists even on freestanding compilers. */
9626 # include <limits.h>
9628 # include <assert.h>
9633 /* Override any GCC internal prototype to avoid an error.
9634 Use char because int might match the return type of a GCC
9635 builtin and then its argument prototype would still apply. */
9640 /* The GNU C library defines this for functions which it implements
9641 to always fail with ENOSYS. Some functions are actually named
9642 something starting with __ and the normal name is an alias. */
9643 #if defined __stub_shl_load || defined __stub___shl_load
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (ac_try="$ac_link"
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_link") 2>conftest.er1
9664 grep -v '^ *+' conftest.er1 >conftest.err
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9670 { (case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_try") 2>&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; } &&
9679 { ac_try='test -s conftest$ac_exeext'
9680 { (case "(($ac_try" in
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685 (eval "$ac_try") 2>&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9689 ac_cv_func_shl_load=yes
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9694 ac_cv_func_shl_load=no
9697 rm -f core conftest.err conftest.$ac_objext \
9698 conftest$ac_exeext conftest.$ac_ext
9700 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9701 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9702 if test $ac_cv_func_shl_load = yes; then
9704 cat >>confdefs.h <<\_ACEOF
9705 #define HAVE_SHL_LOAD 1
9709 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9710 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9711 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 ac_check_lib_save_LIBS=$LIBS
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (ac_try="$ac_link"
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_link") 2>conftest.er1
9747 grep -v '^ *+' conftest.er1 >conftest.err
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9753 { (case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_try") 2>&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try='test -s conftest$ac_exeext'
9763 { (case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_try") 2>&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_lib_dld_shl_load=yes
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 ac_cv_lib_dld_shl_load=no
9780 rm -f core conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9782 LIBS=$ac_check_lib_save_LIBS
9784 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9785 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9786 if test $ac_cv_lib_dld_shl_load = yes; then
9788 cat >>confdefs.h <<\_ACEOF
9789 #define HAVE_SHL_LOAD 1
9792 LIBADD_DL="$LIBADD_DL -ldld"
9794 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 ac_check_lib_save_LIBS=$LIBS
9801 cat >conftest.$ac_ext <<_ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9808 /* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_link") 2>conftest.er1
9832 grep -v '^ *+' conftest.er1 >conftest.err
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } &&
9837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9838 { (case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_try") 2>&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest$ac_exeext'
9848 { (case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_try") 2>&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 ac_cv_lib_dl_dlopen=yes
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9862 ac_cv_lib_dl_dlopen=no
9865 rm -f core conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867 LIBS=$ac_check_lib_save_LIBS
9869 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9870 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9871 if test $ac_cv_lib_dl_dlopen = yes; then
9873 cat >>confdefs.h <<\_ACEOF
9874 #define HAVE_LIBDL 1
9877 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9879 cat >conftest.$ac_ext <<_ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9897 rm -f conftest.$ac_objext conftest$ac_exeext
9898 if { (ac_try="$ac_link"
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>conftest.er1
9906 grep -v '^ *+' conftest.er1 >conftest.err
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_try") 2>&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9932 cat >>confdefs.h <<\_ACEOF
9933 #define HAVE_LIBDL 1
9935 libltdl_cv_func_dlopen="yes"
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9941 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9942 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 ac_check_lib_save_LIBS=$LIBS
9947 cat >conftest.$ac_ext <<_ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9954 /* Override any GCC internal prototype to avoid an error.
9955 Use char because int might match the return type of a GCC
9956 builtin and then its argument prototype would still apply. */
9969 rm -f conftest.$ac_objext conftest$ac_exeext
9970 if { (ac_try="$ac_link"
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_link") 2>conftest.er1
9978 grep -v '^ *+' conftest.er1 >conftest.err
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984 { (case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_try") 2>&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_try") 2>&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_cv_lib_svld_dlopen=yes
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 ac_cv_lib_svld_dlopen=no
10011 rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 LIBS=$ac_check_lib_save_LIBS
10015 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10016 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10017 if test $ac_cv_lib_svld_dlopen = yes; then
10019 cat >>confdefs.h <<\_ACEOF
10020 #define HAVE_LIBDL 1
10023 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10025 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10026 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10027 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 ac_check_lib_save_LIBS=$LIBS
10032 cat >conftest.$ac_ext <<_ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10049 return dld_link ();
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (ac_try="$ac_link"
10056 case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_link") 2>conftest.er1
10063 grep -v '^ *+' conftest.er1 >conftest.err
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest$ac_exeext'
10079 { (case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_lib_dld_dld_link=yes
10090 echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10093 ac_cv_lib_dld_dld_link=no
10096 rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10098 LIBS=$ac_check_lib_save_LIBS
10100 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10101 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10102 if test $ac_cv_lib_dld_dld_link = yes; then
10104 cat >>confdefs.h <<\_ACEOF
10108 LIBADD_DL="$LIBADD_DL -ldld"
10110 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10111 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10112 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 cat >conftest.$ac_ext <<_ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10123 #define _dyld_func_lookup innocuous__dyld_func_lookup
10125 /* System header to define __stub macros and hopefully few prototypes,
10126 which can conflict with char _dyld_func_lookup (); below.
10127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128 <limits.h> exists even on freestanding compilers. */
10131 # include <limits.h>
10133 # include <assert.h>
10136 #undef _dyld_func_lookup
10138 /* Override any GCC internal prototype to avoid an error.
10139 Use char because int might match the return type of a GCC
10140 builtin and then its argument prototype would still apply. */
10144 char _dyld_func_lookup ();
10145 /* The GNU C library defines this for functions which it implements
10146 to always fail with ENOSYS. Some functions are actually named
10147 something starting with __ and the normal name is an alias. */
10148 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10155 return _dyld_func_lookup ();
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10169 grep -v '^ *+' conftest.er1 >conftest.err
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try='test -s conftest$ac_exeext'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_func__dyld_func_lookup=yes
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 ac_cv_func__dyld_func_lookup=no
10202 rm -f core conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10205 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10206 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10207 if test $ac_cv_func__dyld_func_lookup = yes; then
10209 cat >>confdefs.h <<\_ACEOF
10210 #define HAVE_DYLD 1
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10236 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10238 lt_save_LIBS="$LIBS"
10239 LIBS="$LIBS $LIBADD_DL"
10241 for ac_func in dlerror
10243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 cat >conftest.$ac_ext <<_ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10257 #define $ac_func innocuous_$ac_func
10259 /* System header to define __stub macros and hopefully few prototypes,
10260 which can conflict with char $ac_func (); below.
10261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10262 <limits.h> exists even on freestanding compilers. */
10265 # include <limits.h>
10267 # include <assert.h>
10272 /* Override any GCC internal prototype to avoid an error.
10273 Use char because int might match the return type of a GCC
10274 builtin and then its argument prototype would still apply. */
10279 /* The GNU C library defines this for functions which it implements
10280 to always fail with ENOSYS. Some functions are actually named
10281 something starting with __ and the normal name is an alias. */
10282 #if defined __stub_$ac_func || defined __stub___$ac_func
10289 return $ac_func ();
10294 rm -f conftest.$ac_objext conftest$ac_exeext
10295 if { (ac_try="$ac_link"
10296 case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_link") 2>conftest.er1
10303 grep -v '^ *+' conftest.er1 >conftest.err
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10309 { (case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_try") 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_try") 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 eval "$as_ac_var=yes"
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 eval "$as_ac_var=no"
10336 rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10339 ac_res=`eval echo '${'$as_ac_var'}'`
10340 { echo "$as_me:$LINENO: result: $ac_res" >&5
10341 echo "${ECHO_T}$ac_res" >&6; }
10342 if test `eval echo '${'$as_ac_var'}'` = yes; then
10343 cat >>confdefs.h <<_ACEOF
10344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10350 LIBS="$lt_save_LIBS"
10353 ac_cpp='$CPP $CPPFLAGS'
10354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10360 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10361 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10362 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 ac_cv_sys_symbol_underscore=no
10366 cat > conftest.$ac_ext <<EOF
10367 void nm_test_func(){}
10368 int main(){nm_test_func;return 0;}
10370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10371 (eval $ac_compile) 2>&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; then
10375 # Now try to grab the symbols.
10376 ac_nlist=conftest.nm
10377 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10378 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } && test -s "$ac_nlist"; then
10382 # See whether the symbols have a leading underscore.
10383 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10384 ac_cv_sys_symbol_underscore=yes
10386 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10389 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10393 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10396 echo "configure: failed program was:" >&5
10402 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10403 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10406 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10407 if test x"$libltdl_cv_func_dlopen" = xyes ||
10408 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10409 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10410 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10411 if test "${libltdl_cv_need_uscore+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 libltdl_cv_need_uscore=unknown
10416 LIBS="$LIBS $LIBADD_DL"
10417 if test "$cross_compiling" = yes; then :
10418 libltdl_cv_need_uscore=cross
10420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10421 lt_status=$lt_dlunknown
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10423 "configure"
10424 #include "confdefs.h"
10433 # define LT_DLGLOBAL RTLD_GLOBAL
10436 # define LT_DLGLOBAL DL_GLOBAL
10438 # define LT_DLGLOBAL 0
10442 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10443 find out it does not work in some platform. */
10444 #ifndef LT_DLLAZY_OR_NOW
10446 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10449 # define LT_DLLAZY_OR_NOW DL_LAZY
10452 # define LT_DLLAZY_OR_NOW RTLD_NOW
10455 # define LT_DLLAZY_OR_NOW DL_NOW
10457 # define LT_DLLAZY_OR_NOW 0
10465 extern "C" void exit (int);
10468 void fnord() { int i=42;}
10471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10472 int status = $lt_dlunknown;
10476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10478 /* dlclose (self); */
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487 (eval $ac_link) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10491 (./conftest; exit; ) >&5 2>/dev/null
10493 case x$lt_status in
10494 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10495 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10496 x$lt_dlunknown|x*) ;;
10499 # compilation failed
10508 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10509 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10513 if test x"$libltdl_cv_need_uscore" = xyes; then
10515 cat >>confdefs.h <<\_ACEOF
10516 #define NEED_USCORE 1
10522 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10523 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10524 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 # PORTME does your system automatically load deplibs for dlopen?
10528 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10529 # For now, we just catch OSes we know something about -- in the
10530 # future, we'll try test this programmatically.
10531 libltdl_cv_sys_dlopen_deplibs=unknown
10533 aix3*|aix4.1.*|aix4.2.*)
10534 # Unknown whether this is true for these versions of AIX, but
10535 # we want this `case' here to explicitly catch those versions.
10536 libltdl_cv_sys_dlopen_deplibs=unknown
10539 libltdl_cv_sys_dlopen_deplibs=yes
10542 # Assuming the user has installed a libdl from somewhere, this is true
10543 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10544 libltdl_cv_sys_dlopen_deplibs=yes
10546 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10547 # GNU and its variants, using gnu ld.so (Glibc)
10548 libltdl_cv_sys_dlopen_deplibs=yes
10551 libltdl_cv_sys_dlopen_deplibs=yes
10554 libltdl_cv_sys_dlopen_deplibs=yes
10556 irix[12345]*|irix6.[01]*)
10557 # Catch all versions of IRIX before 6.2, and indicate that we don't
10558 # know how it worked for any of those versions.
10559 libltdl_cv_sys_dlopen_deplibs=unknown
10562 # The case above catches anything before 6.2, and it's known that
10563 # at 6.2 and later dlopen does load deplibs.
10564 libltdl_cv_sys_dlopen_deplibs=yes
10567 libltdl_cv_sys_dlopen_deplibs=yes
10570 libltdl_cv_sys_dlopen_deplibs=yes
10573 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10574 # it did *not* use an RPATH in a shared library to find objects the
10575 # library depends on, so we explicitly say `no'.
10576 libltdl_cv_sys_dlopen_deplibs=no
10578 osf5.0|osf5.0a|osf5.1)
10579 # dlopen *does* load deplibs and with the right loader patch applied
10580 # it even uses RPATH in a shared library to search for shared objects
10581 # that the library depends on, but there's no easy way to know if that
10582 # patch is installed. Since this is the case, all we can really
10583 # say is unknown -- it depends on the patch being installed. If
10584 # it is, this changes to `yes'. Without it, it would be `no'.
10585 libltdl_cv_sys_dlopen_deplibs=unknown
10588 # the two cases above should catch all versions of osf <= 5.1. Read
10589 # the comments above for what we know about them.
10590 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10591 # is used to find them so we can finally say `yes'.
10592 libltdl_cv_sys_dlopen_deplibs=yes
10595 libltdl_cv_sys_dlopen_deplibs=yes
10597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10598 libltdl_cv_sys_dlopen_deplibs=yes
10603 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10604 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10605 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10607 cat >>confdefs.h <<\_ACEOF
10608 #define LTDL_DLOPEN_DEPLIBS 1
10614 for ac_header in argz.h
10616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 ac_res=`eval echo '${'$as_ac_Header'}'`
10624 { echo "$as_me:$LINENO: result: $ac_res" >&5
10625 echo "${ECHO_T}$ac_res" >&6; }
10627 # Is the header compilable?
10628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 $ac_includes_default
10637 #include <$ac_header>
10639 rm -f conftest.$ac_objext
10640 if { (ac_try="$ac_compile"
10641 case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_compile") 2>conftest.er1
10648 grep -v '^ *+' conftest.er1 >conftest.err
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest.$ac_objext'
10664 { (case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_try") 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_header_compiler=yes
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 ac_header_compiler=no
10681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10683 echo "${ECHO_T}$ac_header_compiler" >&6; }
10685 # Is the header present?
10686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10688 cat >conftest.$ac_ext <<_ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 #include <$ac_header>
10696 if { (ac_try="$ac_cpp conftest.$ac_ext"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10704 grep -v '^ *+' conftest.er1 >conftest.err
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } >/dev/null; then
10709 if test -s conftest.err; then
10710 ac_cpp_err=$ac_c_preproc_warn_flag
10711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10718 if test -z "$ac_cpp_err"; then
10719 ac_header_preproc=yes
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_header_preproc=no
10727 rm -f conftest.err conftest.$ac_ext
10728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10729 echo "${ECHO_T}$ac_header_preproc" >&6; }
10731 # So? What about this header?
10732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10738 ac_header_preproc=yes
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10754 ## ------------------------------ ##
10755 ## Report this to bugs@yourdomain ##
10756 ## ------------------------------ ##
10758 ) | sed "s/^/$as_me: WARNING: /" >&2
10761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 eval "$as_ac_Header=\$ac_header_preproc"
10768 ac_res=`eval echo '${'$as_ac_Header'}'`
10769 { echo "$as_me:$LINENO: result: $ac_res" >&5
10770 echo "${ECHO_T}$ac_res" >&6; }
10773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10774 cat >>confdefs.h <<_ACEOF
10775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10783 { echo "$as_me:$LINENO: checking for error_t" >&5
10784 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10785 if test "${ac_cv_type_error_t+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 cat >conftest.$ac_ext <<_ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10798 typedef error_t ac__type_new_;
10802 if ((ac__type_new_ *) 0)
10804 if (sizeof (ac__type_new_))
10810 rm -f conftest.$ac_objext
10811 if { (ac_try="$ac_compile"
10812 case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_compile") 2>conftest.er1
10819 grep -v '^ *+' conftest.er1 >conftest.err
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10825 { (case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_try") 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; } &&
10834 { ac_try='test -s conftest.$ac_objext'
10835 { (case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840 (eval "$ac_try") 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 ac_cv_type_error_t=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 ac_cv_type_error_t=no
10852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10854 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10855 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10856 if test $ac_cv_type_error_t = yes; then
10858 cat >>confdefs.h <<_ACEOF
10859 #define HAVE_ERROR_T 1
10865 cat >>confdefs.h <<\_ACEOF
10866 #define error_t int
10877 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 cat >conftest.$ac_ext <<_ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10893 #define $ac_func innocuous_$ac_func
10895 /* System header to define __stub macros and hopefully few prototypes,
10896 which can conflict with char $ac_func (); below.
10897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10898 <limits.h> exists even on freestanding compilers. */
10901 # include <limits.h>
10903 # include <assert.h>
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10915 /* The GNU C library defines this for functions which it implements
10916 to always fail with ENOSYS. Some functions are actually named
10917 something starting with __ and the normal name is an alias. */
10918 #if defined __stub_$ac_func || defined __stub___$ac_func
10925 return $ac_func ();
10930 rm -f conftest.$ac_objext conftest$ac_exeext
10931 if { (ac_try="$ac_link"
10932 case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_link") 2>conftest.er1
10939 grep -v '^ *+' conftest.er1 >conftest.err
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest$ac_exeext'
10955 { (case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_try") 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 eval "$as_ac_var=yes"
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 eval "$as_ac_var=no"
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10975 ac_res=`eval echo '${'$as_ac_var'}'`
10976 { echo "$as_me:$LINENO: result: $ac_res" >&5
10977 echo "${ECHO_T}$ac_res" >&6; }
10978 if test `eval echo '${'$as_ac_var'}'` = yes; then
10979 cat >>confdefs.h <<_ACEOF
10980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11013 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 ac_res=`eval echo '${'$as_ac_Header'}'`
11024 { echo "$as_me:$LINENO: result: $ac_res" >&5
11025 echo "${ECHO_T}$ac_res" >&6; }
11027 # Is the header compilable?
11028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 $ac_includes_default
11037 #include <$ac_header>
11039 rm -f conftest.$ac_objext
11040 if { (ac_try="$ac_compile"
11041 case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_compile") 2>conftest.er1
11048 grep -v '^ *+' conftest.er1 >conftest.err
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } &&
11053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; } &&
11063 { ac_try='test -s conftest.$ac_objext'
11064 { (case "(($ac_try" in
11065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066 *) ac_try_echo=$ac_try;;
11068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069 (eval "$ac_try") 2>&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 ac_header_compiler=yes
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 ac_header_compiler=no
11081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11083 echo "${ECHO_T}$ac_header_compiler" >&6; }
11085 # Is the header present?
11086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11088 cat >conftest.$ac_ext <<_ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 #include <$ac_header>
11096 if { (ac_try="$ac_cpp conftest.$ac_ext"
11097 case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11104 grep -v '^ *+' conftest.er1 >conftest.err
11106 cat conftest.err >&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } >/dev/null; then
11109 if test -s conftest.err; then
11110 ac_cpp_err=$ac_c_preproc_warn_flag
11111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11118 if test -z "$ac_cpp_err"; then
11119 ac_header_preproc=yes
11121 echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11124 ac_header_preproc=no
11127 rm -f conftest.err conftest.$ac_ext
11128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11129 echo "${ECHO_T}$ac_header_preproc" >&6; }
11131 # So? What about this header?
11132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11138 ac_header_preproc=yes
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11154 ## ------------------------------ ##
11155 ## Report this to bugs@yourdomain ##
11156 ## ------------------------------ ##
11158 ) | sed "s/^/$as_me: WARNING: /" >&2
11161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11164 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 eval "$as_ac_Header=\$ac_header_preproc"
11168 ac_res=`eval echo '${'$as_ac_Header'}'`
11169 { echo "$as_me:$LINENO: result: $ac_res" >&5
11170 echo "${ECHO_T}$ac_res" >&6; }
11173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11174 cat >>confdefs.h <<_ACEOF
11175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11186 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 ac_res=`eval echo '${'$as_ac_Header'}'`
11196 { echo "$as_me:$LINENO: result: $ac_res" >&5
11197 echo "${ECHO_T}$ac_res" >&6; }
11199 # Is the header compilable?
11200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11202 cat >conftest.$ac_ext <<_ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 $ac_includes_default
11209 #include <$ac_header>
11211 rm -f conftest.$ac_objext
11212 if { (ac_try="$ac_compile"
11213 case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_compile") 2>conftest.er1
11220 grep -v '^ *+' conftest.er1 >conftest.err
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11226 { (case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_try") 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try='test -s conftest.$ac_objext'
11236 { (case "(($ac_try" in
11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238 *) ac_try_echo=$ac_try;;
11240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11241 (eval "$ac_try") 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_header_compiler=yes
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 ac_header_compiler=no
11253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11255 echo "${ECHO_T}$ac_header_compiler" >&6; }
11257 # Is the header present?
11258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11260 cat >conftest.$ac_ext <<_ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11266 #include <$ac_header>
11268 if { (ac_try="$ac_cpp conftest.$ac_ext"
11269 case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11276 grep -v '^ *+' conftest.er1 >conftest.err
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } >/dev/null; then
11281 if test -s conftest.err; then
11282 ac_cpp_err=$ac_c_preproc_warn_flag
11283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11290 if test -z "$ac_cpp_err"; then
11291 ac_header_preproc=yes
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 ac_header_preproc=no
11299 rm -f conftest.err conftest.$ac_ext
11300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11301 echo "${ECHO_T}$ac_header_preproc" >&6; }
11303 # So? What about this header?
11304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11310 ac_header_preproc=yes
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11326 ## ------------------------------ ##
11327 ## Report this to bugs@yourdomain ##
11328 ## ------------------------------ ##
11330 ) | sed "s/^/$as_me: WARNING: /" >&2
11333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 eval "$as_ac_Header=\$ac_header_preproc"
11340 ac_res=`eval echo '${'$as_ac_Header'}'`
11341 { echo "$as_me:$LINENO: result: $ac_res" >&5
11342 echo "${ECHO_T}$ac_res" >&6; }
11345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11346 cat >>confdefs.h <<_ACEOF
11347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11356 for ac_header in string.h strings.h
11358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 ac_res=`eval echo '${'$as_ac_Header'}'`
11366 { echo "$as_me:$LINENO: result: $ac_res" >&5
11367 echo "${ECHO_T}$ac_res" >&6; }
11369 # Is the header compilable?
11370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11372 cat >conftest.$ac_ext <<_ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 $ac_includes_default
11379 #include <$ac_header>
11381 rm -f conftest.$ac_objext
11382 if { (ac_try="$ac_compile"
11383 case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_compile") 2>conftest.er1
11390 grep -v '^ *+' conftest.er1 >conftest.err
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } &&
11395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest.$ac_objext'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415 ac_header_compiler=yes
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_header_compiler=no
11423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11425 echo "${ECHO_T}$ac_header_compiler" >&6; }
11427 # Is the header present?
11428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11430 cat >conftest.$ac_ext <<_ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436 #include <$ac_header>
11438 if { (ac_try="$ac_cpp conftest.$ac_ext"
11439 case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11446 grep -v '^ *+' conftest.er1 >conftest.err
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } >/dev/null; then
11451 if test -s conftest.err; then
11452 ac_cpp_err=$ac_c_preproc_warn_flag
11453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11460 if test -z "$ac_cpp_err"; then
11461 ac_header_preproc=yes
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 ac_header_preproc=no
11469 rm -f conftest.err conftest.$ac_ext
11470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11471 echo "${ECHO_T}$ac_header_preproc" >&6; }
11473 # So? What about this header?
11474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11480 ac_header_preproc=yes
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11496 ## ------------------------------ ##
11497 ## Report this to bugs@yourdomain ##
11498 ## ------------------------------ ##
11500 ) | sed "s/^/$as_me: WARNING: /" >&2
11503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 eval "$as_ac_Header=\$ac_header_preproc"
11510 ac_res=`eval echo '${'$as_ac_Header'}'`
11511 { echo "$as_me:$LINENO: result: $ac_res" >&5
11512 echo "${ECHO_T}$ac_res" >&6; }
11515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11516 cat >>confdefs.h <<_ACEOF
11517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11527 for ac_func in strchr index
11529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 cat >conftest.$ac_ext <<_ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11543 #define $ac_func innocuous_$ac_func
11545 /* System header to define __stub macros and hopefully few prototypes,
11546 which can conflict with char $ac_func (); below.
11547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11548 <limits.h> exists even on freestanding compilers. */
11551 # include <limits.h>
11553 # include <assert.h>
11558 /* Override any GCC internal prototype to avoid an error.
11559 Use char because int might match the return type of a GCC
11560 builtin and then its argument prototype would still apply. */
11565 /* The GNU C library defines this for functions which it implements
11566 to always fail with ENOSYS. Some functions are actually named
11567 something starting with __ and the normal name is an alias. */
11568 #if defined __stub_$ac_func || defined __stub___$ac_func
11575 return $ac_func ();
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (ac_try="$ac_link"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_link") 2>conftest.er1
11589 grep -v '^ *+' conftest.er1 >conftest.err
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11595 { (case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_try") 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; } &&
11604 { ac_try='test -s conftest$ac_exeext'
11605 { (case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_try") 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 eval "$as_ac_var=yes"
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11619 eval "$as_ac_var=no"
11622 rm -f core conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11625 ac_res=`eval echo '${'$as_ac_var'}'`
11626 { echo "$as_me:$LINENO: result: $ac_res" >&5
11627 echo "${ECHO_T}$ac_res" >&6; }
11628 if test `eval echo '${'$as_ac_var'}'` = yes; then
11629 cat >>confdefs.h <<_ACEOF
11630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11638 for ac_func in strrchr rindex
11640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 cat >conftest.$ac_ext <<_ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11654 #define $ac_func innocuous_$ac_func
11656 /* System header to define __stub macros and hopefully few prototypes,
11657 which can conflict with char $ac_func (); below.
11658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11659 <limits.h> exists even on freestanding compilers. */
11662 # include <limits.h>
11664 # include <assert.h>
11669 /* Override any GCC internal prototype to avoid an error.
11670 Use char because int might match the return type of a GCC
11671 builtin and then its argument prototype would still apply. */
11676 /* The GNU C library defines this for functions which it implements
11677 to always fail with ENOSYS. Some functions are actually named
11678 something starting with __ and the normal name is an alias. */
11679 #if defined __stub_$ac_func || defined __stub___$ac_func
11686 return $ac_func ();
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (ac_try="$ac_link"
11693 case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_link") 2>conftest.er1
11700 grep -v '^ *+' conftest.er1 >conftest.err
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11706 { (case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_try") 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; } &&
11715 { ac_try='test -s conftest$ac_exeext'
11716 { (case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11721 (eval "$ac_try") 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 eval "$as_ac_var=yes"
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11730 eval "$as_ac_var=no"
11733 rm -f core conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11736 ac_res=`eval echo '${'$as_ac_var'}'`
11737 { echo "$as_me:$LINENO: result: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11749 for ac_func in memcpy bcopy
11751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 cat >conftest.$ac_ext <<_ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11765 #define $ac_func innocuous_$ac_func
11767 /* System header to define __stub macros and hopefully few prototypes,
11768 which can conflict with char $ac_func (); below.
11769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11770 <limits.h> exists even on freestanding compilers. */
11773 # include <limits.h>
11775 # include <assert.h>
11780 /* Override any GCC internal prototype to avoid an error.
11781 Use char because int might match the return type of a GCC
11782 builtin and then its argument prototype would still apply. */
11787 /* The GNU C library defines this for functions which it implements
11788 to always fail with ENOSYS. Some functions are actually named
11789 something starting with __ and the normal name is an alias. */
11790 #if defined __stub_$ac_func || defined __stub___$ac_func
11797 return $ac_func ();
11802 rm -f conftest.$ac_objext conftest$ac_exeext
11803 if { (ac_try="$ac_link"
11804 case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_link") 2>conftest.er1
11811 grep -v '^ *+' conftest.er1 >conftest.err
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11817 { (case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; } &&
11826 { ac_try='test -s conftest$ac_exeext'
11827 { (case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11832 (eval "$ac_try") 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 eval "$as_ac_var=yes"
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 eval "$as_ac_var=no"
11844 rm -f core conftest.err conftest.$ac_objext \
11845 conftest$ac_exeext conftest.$ac_ext
11847 ac_res=`eval echo '${'$as_ac_var'}'`
11848 { echo "$as_me:$LINENO: result: $ac_res" >&5
11849 echo "${ECHO_T}$ac_res" >&6; }
11850 if test `eval echo '${'$as_ac_var'}'` = yes; then
11851 cat >>confdefs.h <<_ACEOF
11852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11860 for ac_func in memmove strcmp
11862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 cat >conftest.$ac_ext <<_ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11876 #define $ac_func innocuous_$ac_func
11878 /* System header to define __stub macros and hopefully few prototypes,
11879 which can conflict with char $ac_func (); below.
11880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11881 <limits.h> exists even on freestanding compilers. */
11884 # include <limits.h>
11886 # include <assert.h>
11891 /* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
11898 /* The GNU C library defines this for functions which it implements
11899 to always fail with ENOSYS. Some functions are actually named
11900 something starting with __ and the normal name is an alias. */
11901 #if defined __stub_$ac_func || defined __stub___$ac_func
11908 return $ac_func ();
11913 rm -f conftest.$ac_objext conftest$ac_exeext
11914 if { (ac_try="$ac_link"
11915 case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_link") 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11928 { (case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_try") 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; } &&
11937 { ac_try='test -s conftest$ac_exeext'
11938 { (case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943 (eval "$ac_try") 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 eval "$as_ac_var=yes"
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 eval "$as_ac_var=no"
11955 rm -f core conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11958 ac_res=`eval echo '${'$as_ac_var'}'`
11959 { echo "$as_me:$LINENO: result: $ac_res" >&5
11960 echo "${ECHO_T}$ac_res" >&6; }
11961 if test `eval echo '${'$as_ac_var'}'` = yes; then
11962 cat >>confdefs.h <<_ACEOF
11963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11972 for ac_func in closedir opendir readdir
11974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11988 #define $ac_func innocuous_$ac_func
11990 /* System header to define __stub macros and hopefully few prototypes,
11991 which can conflict with char $ac_func (); below.
11992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993 <limits.h> exists even on freestanding compilers. */
11996 # include <limits.h>
11998 # include <assert.h>
12003 /* Override any GCC internal prototype to avoid an error.
12004 Use char because int might match the return type of a GCC
12005 builtin and then its argument prototype would still apply. */
12010 /* The GNU C library defines this for functions which it implements
12011 to always fail with ENOSYS. Some functions are actually named
12012 something starting with __ and the normal name is an alias. */
12013 #if defined __stub_$ac_func || defined __stub___$ac_func
12020 return $ac_func ();
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (ac_try="$ac_link"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_link") 2>conftest.er1
12034 grep -v '^ *+' conftest.er1 >conftest.err
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12040 { (case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_try") 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest$ac_exeext'
12050 { (case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_try") 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 eval "$as_ac_var=yes"
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 eval "$as_ac_var=no"
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12070 ac_res=`eval echo '${'$as_ac_var'}'`
12071 { echo "$as_me:$LINENO: result: $ac_res" >&5
12072 echo "${ECHO_T}$ac_res" >&6; }
12073 if test `eval echo '${'$as_ac_var'}'` = yes; then
12074 cat >>confdefs.h <<_ACEOF
12075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12083 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12084 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12097 if test "$GCC" != "yes" && test "$ICC" != "yes"
12099 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12100 echo "$as_me: error: gcc|icc required but not found" >&2;}
12101 { (exit 1); exit 1; }; }
12104 if test "$GXX" != "yes" && test "$IXX" != "yes"
12106 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12107 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12108 { (exit 1); exit 1; }; }
12111 if test "$GCC" = "yes"
12113 cat >conftest.$ac_ext <<_ACEOF
12114 #if !defined(__GNUC__) || __GNUC__ < 3
12115 #error Unsupported GCC version
12119 rm -f conftest.$ac_objext
12120 if { (ac_try="$ac_compile"
12121 case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_compile") 2>conftest.er1
12128 grep -v '^ *+' conftest.er1 >conftest.err
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
12133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12134 { (case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_try") 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; } &&
12143 { ac_try='test -s conftest.$ac_objext'
12144 { (case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_try") 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12159 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12160 { (exit 1); exit 1; }; }
12163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12166 if test -z "$llvm_cv_gnu_make_command"
12168 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12169 echo "$as_me: error: GNU Make required but not found" >&2;}
12170 { (exit 1); exit 1; }; }
12173 { echo "$as_me:$LINENO: result: ok" >&5
12174 echo "${ECHO_T}ok" >&6; }
12176 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12177 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12178 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12180 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12182 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12183 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12187 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12188 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12189 if test "${ac_cv_lib_m_sin+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 ac_check_lib_save_LIBS=$LIBS
12194 cat >conftest.$ac_ext <<_ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (ac_try="$ac_link"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12225 grep -v '^ *+' conftest.er1 >conftest.err
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12231 { (case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_try") 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; } &&
12240 { ac_try='test -s conftest$ac_exeext'
12241 { (case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_try") 2>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 ac_cv_lib_m_sin=yes
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12258 rm -f core conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12262 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12263 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12264 if test $ac_cv_lib_m_sin = yes; then
12265 cat >>confdefs.h <<_ACEOF
12266 #define HAVE_LIBM 1
12273 if test "$llvm_cv_os_type" = "MingW" ; then
12275 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12276 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12277 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 ac_check_lib_save_LIBS=$LIBS
12281 LIBS="-limagehlp $LIBS"
12282 cat >conftest.$ac_ext <<_ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (ac_try="$ac_link"
12300 case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_link") 2>conftest.er1
12307 grep -v '^ *+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313 { (case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_try") 2>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; } &&
12322 { ac_try='test -s conftest$ac_exeext'
12323 { (case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_try") 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 ac_cv_lib_imagehlp_main=yes
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12337 ac_cv_lib_imagehlp_main=no
12340 rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12344 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12345 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12346 if test $ac_cv_lib_imagehlp_main = yes; then
12347 cat >>confdefs.h <<_ACEOF
12348 #define HAVE_LIBIMAGEHLP 1
12351 LIBS="-limagehlp $LIBS"
12356 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12357 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12358 if test "${ac_cv_lib_psapi_main+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-lpsapi $LIBS"
12363 cat >conftest.$ac_ext <<_ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (ac_try="$ac_link"
12381 case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_link") 2>conftest.er1
12388 grep -v '^ *+' conftest.er1 >conftest.err
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest$ac_exeext'
12404 { (case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_try") 2>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_cv_lib_psapi_main=yes
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12418 ac_cv_lib_psapi_main=no
12421 rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423 LIBS=$ac_check_lib_save_LIBS
12425 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12426 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12427 if test $ac_cv_lib_psapi_main = yes; then
12428 cat >>confdefs.h <<_ACEOF
12429 #define HAVE_LIBPSAPI 1
12432 LIBS="-lpsapi $LIBS"
12438 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12439 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12440 if test "${ac_cv_search_dlopen+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 ac_func_search_save_LIBS=$LIBS
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12451 /* Override any GCC internal prototype to avoid an error.
12452 Use char because int might match the return type of a GCC
12453 builtin and then its argument prototype would still apply. */
12466 for ac_lib in '' dl; do
12467 if test -z "$ac_lib"; then
12468 ac_res="none required"
12471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_link") 2>conftest.er1
12482 grep -v '^ *+' conftest.er1 >conftest.err
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12488 { (case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_try") 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest$ac_exeext'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_search_dlopen=$ac_res
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12515 rm -f core conftest.err conftest.$ac_objext \
12517 if test "${ac_cv_search_dlopen+set}" = set; then
12521 if test "${ac_cv_search_dlopen+set}" = set; then
12524 ac_cv_search_dlopen=no
12526 rm conftest.$ac_ext
12527 LIBS=$ac_func_search_save_LIBS
12529 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12530 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12531 ac_res=$ac_cv_search_dlopen
12532 if test "$ac_res" != no; then
12533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12535 cat >>confdefs.h <<\_ACEOF
12536 #define HAVE_DLOPEN 1
12540 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12541 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12545 if test "$llvm_cv_enable_libffi" = "yes" ; then
12546 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12547 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12548 if test "${ac_cv_search_ffi_call+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 ac_func_search_save_LIBS=$LIBS
12552 cat >conftest.$ac_ext <<_ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12559 /* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12569 return ffi_call ();
12574 for ac_lib in '' ffi; do
12575 if test -z "$ac_lib"; then
12576 ac_res="none required"
12579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582 if { (ac_try="$ac_link"
12583 case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_link") 2>conftest.er1
12590 grep -v '^ *+' conftest.er1 >conftest.err
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12596 { (case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_try") 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; } &&
12605 { ac_try='test -s conftest$ac_exeext'
12606 { (case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_try") 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_cv_search_ffi_call=$ac_res
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12623 rm -f core conftest.err conftest.$ac_objext \
12625 if test "${ac_cv_search_ffi_call+set}" = set; then
12629 if test "${ac_cv_search_ffi_call+set}" = set; then
12632 ac_cv_search_ffi_call=no
12634 rm conftest.$ac_ext
12635 LIBS=$ac_func_search_save_LIBS
12637 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12638 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12639 ac_res=$ac_cv_search_ffi_call
12640 if test "$ac_res" != no; then
12641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12643 cat >>confdefs.h <<\_ACEOF
12644 #define HAVE_FFI_CALL 1
12648 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12649 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12650 { (exit 1); exit 1; }; }
12655 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12656 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12657 if test "${ac_cv_search_mallinfo+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 ac_func_search_save_LIBS=$LIBS
12661 cat >conftest.$ac_ext <<_ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12668 /* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
12678 return mallinfo ();
12683 for ac_lib in '' malloc; do
12684 if test -z "$ac_lib"; then
12685 ac_res="none required"
12688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12690 rm -f conftest.$ac_objext conftest$ac_exeext
12691 if { (ac_try="$ac_link"
12692 case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697 (eval "$ac_link") 2>conftest.er1
12699 grep -v '^ *+' conftest.er1 >conftest.err
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12705 { (case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_try") 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest$ac_exeext'
12715 { (case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720 (eval "$ac_try") 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 ac_cv_search_mallinfo=$ac_res
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12732 rm -f core conftest.err conftest.$ac_objext \
12734 if test "${ac_cv_search_mallinfo+set}" = set; then
12738 if test "${ac_cv_search_mallinfo+set}" = set; then
12741 ac_cv_search_mallinfo=no
12743 rm conftest.$ac_ext
12744 LIBS=$ac_func_search_save_LIBS
12746 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12747 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12748 ac_res=$ac_cv_search_mallinfo
12749 if test "$ac_res" != no; then
12750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_MALLINFO 1
12759 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12761 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12762 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12763 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 ac_check_lib_save_LIBS=$LIBS
12767 LIBS="-lpthread $LIBS"
12768 cat >conftest.$ac_ext <<_ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12775 /* Override any GCC internal prototype to avoid an error.
12776 Use char because int might match the return type of a GCC
12777 builtin and then its argument prototype would still apply. */
12781 char pthread_mutex_init ();
12785 return pthread_mutex_init ();
12790 rm -f conftest.$ac_objext conftest$ac_exeext
12791 if { (ac_try="$ac_link"
12792 case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_link") 2>conftest.er1
12799 grep -v '^ *+' conftest.er1 >conftest.err
12801 cat conftest.err >&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } &&
12804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12805 { (case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_try") 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest$ac_exeext'
12815 { (case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820 (eval "$ac_try") 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 ac_cv_lib_pthread_pthread_mutex_init=yes
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12829 ac_cv_lib_pthread_pthread_mutex_init=no
12832 rm -f core conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12834 LIBS=$ac_check_lib_save_LIBS
12836 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12837 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12838 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12839 cat >>confdefs.h <<_ACEOF
12840 #define HAVE_LIBPTHREAD 1
12843 LIBS="-lpthread $LIBS"
12847 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12848 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12849 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 ac_func_search_save_LIBS=$LIBS
12853 cat >conftest.$ac_ext <<_ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12860 /* Override any GCC internal prototype to avoid an error.
12861 Use char because int might match the return type of a GCC
12862 builtin and then its argument prototype would still apply. */
12866 char pthread_mutex_lock ();
12870 return pthread_mutex_lock ();
12875 for ac_lib in '' pthread; do
12876 if test -z "$ac_lib"; then
12877 ac_res="none required"
12880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (ac_try="$ac_link"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_link") 2>conftest.er1
12891 grep -v '^ *+' conftest.er1 >conftest.err
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_try") 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_cv_search_pthread_mutex_lock=$ac_res
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12924 rm -f core conftest.err conftest.$ac_objext \
12926 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12930 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12933 ac_cv_search_pthread_mutex_lock=no
12935 rm conftest.$ac_ext
12936 LIBS=$ac_func_search_save_LIBS
12938 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12939 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12940 ac_res=$ac_cv_search_pthread_mutex_lock
12941 if test "$ac_res" != no; then
12942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12944 cat >>confdefs.h <<\_ACEOF
12945 #define HAVE_PTHREAD_MUTEX_LOCK 1
12950 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12951 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12952 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 ac_func_search_save_LIBS=$LIBS
12956 cat >conftest.$ac_ext <<_ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12963 /* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12969 char pthread_rwlock_init ();
12973 return pthread_rwlock_init ();
12978 for ac_lib in '' pthread; do
12979 if test -z "$ac_lib"; then
12980 ac_res="none required"
12983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (ac_try="$ac_link"
12987 case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_link") 2>conftest.er1
12994 grep -v '^ *+' conftest.er1 >conftest.err
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } &&
12999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13000 { (case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_try") 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest$ac_exeext'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_search_pthread_rwlock_init=$ac_res
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13027 rm -f core conftest.err conftest.$ac_objext \
13029 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13033 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13036 ac_cv_search_pthread_rwlock_init=no
13038 rm conftest.$ac_ext
13039 LIBS=$ac_func_search_save_LIBS
13041 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13042 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13043 ac_res=$ac_cv_search_pthread_rwlock_init
13044 if test "$ac_res" != no; then
13045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13047 cat >>confdefs.h <<\_ACEOF
13048 #define HAVE_PTHREAD_RWLOCK_INIT 1
13053 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13054 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13055 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13058 ac_func_search_save_LIBS=$LIBS
13059 cat >conftest.$ac_ext <<_ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13066 /* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13072 char pthread_getspecific ();
13076 return pthread_getspecific ();
13081 for ac_lib in '' pthread; do
13082 if test -z "$ac_lib"; then
13083 ac_res="none required"
13086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (ac_try="$ac_link"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_link") 2>conftest.er1
13097 grep -v '^ *+' conftest.er1 >conftest.err
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13103 { (case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_try") 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest$ac_exeext'
13113 { (case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_try") 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 ac_cv_search_pthread_getspecific=$ac_res
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13130 rm -f core conftest.err conftest.$ac_objext \
13132 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13136 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13139 ac_cv_search_pthread_getspecific=no
13141 rm conftest.$ac_ext
13142 LIBS=$ac_func_search_save_LIBS
13144 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13145 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13146 ac_res=$ac_cv_search_pthread_getspecific
13147 if test "$ac_res" != no; then
13148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13150 cat >>confdefs.h <<\_ACEOF
13151 #define HAVE_PTHREAD_GETSPECIFIC 1
13159 # Check whether --with-udis86 was given.
13160 if test "${with_udis86+set}" = set; then
13161 withval=$with_udis86;
13166 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13169 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13170 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13171 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 ac_check_lib_save_LIBS=$LIBS
13175 LIBS="-ludis86 $LIBS"
13176 cat >conftest.$ac_ext <<_ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13183 /* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13198 rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (ac_try="$ac_link"
13200 case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_link") 2>conftest.er1
13207 grep -v '^ *+' conftest.er1 >conftest.err
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13213 { (case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_try") 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest$ac_exeext'
13223 { (case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_try") 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_lib_udis86_ud_init=yes
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ac_cv_lib_udis86_ud_init=no
13240 rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
13242 LIBS=$ac_check_lib_save_LIBS
13244 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13245 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13246 if test $ac_cv_lib_udis86_ud_init = yes; then
13247 cat >>confdefs.h <<_ACEOF
13248 #define HAVE_LIBUDIS86 1
13251 LIBS="-ludis86 $LIBS"
13255 echo "Error! You need to have libudis86 around."
13267 cat >>confdefs.h <<_ACEOF
13268 #define USE_UDIS86 $USE_UDIS86
13273 # Check whether --with-oprofile was given.
13274 if test "${with_oprofile+set}" = set; then
13275 withval=$with_oprofile;
13279 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13280 no) llvm_cv_oppath=
13283 *) llvm_cv_oppath="${withval}/lib/oprofile"
13284 CPPFLAGS="-I${withval}/include";;
13286 if test -n "$llvm_cv_oppath" ; then
13287 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13288 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13289 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13290 if test "${ac_cv_search_bfd_init+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 ac_func_search_save_LIBS=$LIBS
13294 cat >conftest.$ac_ext <<_ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13301 /* Override any GCC internal prototype to avoid an error.
13302 Use char because int might match the return type of a GCC
13303 builtin and then its argument prototype would still apply. */
13311 return bfd_init ();
13316 for ac_lib in '' bfd; do
13317 if test -z "$ac_lib"; then
13318 ac_res="none required"
13321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (ac_try="$ac_link"
13325 case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_link") 2>conftest.er1
13332 grep -v '^ *+' conftest.er1 >conftest.err
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; } &&
13347 { ac_try='test -s conftest$ac_exeext'
13348 { (case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_try") 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_cv_search_bfd_init=$ac_res
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13365 rm -f core conftest.err conftest.$ac_objext \
13367 if test "${ac_cv_search_bfd_init+set}" = set; then
13371 if test "${ac_cv_search_bfd_init+set}" = set; then
13374 ac_cv_search_bfd_init=no
13376 rm conftest.$ac_ext
13377 LIBS=$ac_func_search_save_LIBS
13379 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13380 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13381 ac_res=$ac_cv_search_bfd_init
13382 if test "$ac_res" != no; then
13383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13387 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13388 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13389 if test "${ac_cv_search_op_open_agent+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 ac_func_search_save_LIBS=$LIBS
13393 cat >conftest.$ac_ext <<_ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13400 /* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13406 char op_open_agent ();
13410 return op_open_agent ();
13415 for ac_lib in '' opagent; do
13416 if test -z "$ac_lib"; then
13417 ac_res="none required"
13420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423 if { (ac_try="$ac_link"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_link") 2>conftest.er1
13431 grep -v '^ *+' conftest.er1 >conftest.err
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try='test -s conftest$ac_exeext'
13447 { (case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_try") 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 ac_cv_search_op_open_agent=$ac_res
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13464 rm -f core conftest.err conftest.$ac_objext \
13466 if test "${ac_cv_search_op_open_agent+set}" = set; then
13470 if test "${ac_cv_search_op_open_agent+set}" = set; then
13473 ac_cv_search_op_open_agent=no
13475 rm conftest.$ac_ext
13476 LIBS=$ac_func_search_save_LIBS
13478 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13479 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13480 ac_res=$ac_cv_search_op_open_agent
13481 if test "$ac_res" != no; then
13482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13486 echo "Error! You need to have libopagent around."
13491 if test "${ac_cv_header_opagent_h+set}" = set; then
13492 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13493 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13494 if test "${ac_cv_header_opagent_h+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13498 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13500 # Is the header compilable?
13501 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13502 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13503 cat >conftest.$ac_ext <<_ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509 $ac_includes_default
13510 #include <opagent.h>
13512 rm -f conftest.$ac_objext
13513 if { (ac_try="$ac_compile"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_compile") 2>conftest.er1
13521 grep -v '^ *+' conftest.er1 >conftest.err
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try='test -s conftest.$ac_objext'
13537 { (case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_try") 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_header_compiler=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 ac_header_compiler=no
13554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13556 echo "${ECHO_T}$ac_header_compiler" >&6; }
13558 # Is the header present?
13559 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13560 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13561 cat >conftest.$ac_ext <<_ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13567 #include <opagent.h>
13569 if { (ac_try="$ac_cpp conftest.$ac_ext"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13577 grep -v '^ *+' conftest.er1 >conftest.err
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } >/dev/null; then
13582 if test -s conftest.err; then
13583 ac_cpp_err=$ac_c_preproc_warn_flag
13584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13591 if test -z "$ac_cpp_err"; then
13592 ac_header_preproc=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_header_preproc=no
13600 rm -f conftest.err conftest.$ac_ext
13601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13602 echo "${ECHO_T}$ac_header_preproc" >&6; }
13604 # So? What about this header?
13605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13607 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13608 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13610 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13611 ac_header_preproc=yes
13614 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13615 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13617 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13618 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13619 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13621 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13623 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13625 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13627 ## ------------------------------ ##
13628 ## Report this to bugs@yourdomain ##
13629 ## ------------------------------ ##
13631 ) | sed "s/^/$as_me: WARNING: /" >&2
13634 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13635 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13636 if test "${ac_cv_header_opagent_h+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 ac_cv_header_opagent_h=$ac_header_preproc
13641 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13642 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13645 if test $ac_cv_header_opagent_h = yes; then
13649 echo "Error! You need to have opagent.h around."
13665 cat >>confdefs.h <<_ACEOF
13666 #define USE_OPROFILE $USE_OPROFILE
13676 ac_header_dirent=no
13677 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13678 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13679 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13680 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 cat >conftest.$ac_ext <<_ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13690 #include <sys/types.h>
13702 rm -f conftest.$ac_objext
13703 if { (ac_try="$ac_compile"
13704 case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_compile") 2>conftest.er1
13711 grep -v '^ *+' conftest.er1 >conftest.err
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest.$ac_objext'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 eval "$as_ac_Header=yes"
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13741 eval "$as_ac_Header=no"
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 ac_res=`eval echo '${'$as_ac_Header'}'`
13747 { echo "$as_me:$LINENO: result: $ac_res" >&5
13748 echo "${ECHO_T}$ac_res" >&6; }
13749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13750 cat >>confdefs.h <<_ACEOF
13751 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13754 ac_header_dirent=$ac_hdr; break
13758 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13759 if test $ac_header_dirent = dirent.h; then
13760 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13761 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13762 if test "${ac_cv_search_opendir+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 ac_func_search_save_LIBS=$LIBS
13766 cat >conftest.$ac_ext <<_ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h. */
13773 /* Override any GCC internal prototype to avoid an error.
13774 Use char because int might match the return type of a GCC
13775 builtin and then its argument prototype would still apply. */
13788 for ac_lib in '' dir; do
13789 if test -z "$ac_lib"; then
13790 ac_res="none required"
13793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13795 rm -f conftest.$ac_objext conftest$ac_exeext
13796 if { (ac_try="$ac_link"
13797 case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_link") 2>conftest.er1
13804 grep -v '^ *+' conftest.er1 >conftest.err
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
13809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13810 { (case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_try") 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; } &&
13819 { ac_try='test -s conftest$ac_exeext'
13820 { (case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_try") 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 ac_cv_search_opendir=$ac_res
13831 echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13837 rm -f core conftest.err conftest.$ac_objext \
13839 if test "${ac_cv_search_opendir+set}" = set; then
13843 if test "${ac_cv_search_opendir+set}" = set; then
13846 ac_cv_search_opendir=no
13848 rm conftest.$ac_ext
13849 LIBS=$ac_func_search_save_LIBS
13851 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13852 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13853 ac_res=$ac_cv_search_opendir
13854 if test "$ac_res" != no; then
13855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13860 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13861 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13862 if test "${ac_cv_search_opendir+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 ac_func_search_save_LIBS=$LIBS
13866 cat >conftest.$ac_ext <<_ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13873 /* Override any GCC internal prototype to avoid an error.
13874 Use char because int might match the return type of a GCC
13875 builtin and then its argument prototype would still apply. */
13888 for ac_lib in '' x; do
13889 if test -z "$ac_lib"; then
13890 ac_res="none required"
13893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (ac_try="$ac_link"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_link") 2>conftest.er1
13904 grep -v '^ *+' conftest.er1 >conftest.err
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } &&
13909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13910 { (case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_try") 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; } &&
13919 { ac_try='test -s conftest$ac_exeext'
13920 { (case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_try") 2>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929 ac_cv_search_opendir=$ac_res
13931 echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.$ac_ext >&5
13937 rm -f core conftest.err conftest.$ac_objext \
13939 if test "${ac_cv_search_opendir+set}" = set; then
13943 if test "${ac_cv_search_opendir+set}" = set; then
13946 ac_cv_search_opendir=no
13948 rm conftest.$ac_ext
13949 LIBS=$ac_func_search_save_LIBS
13951 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13952 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13953 ac_res=$ac_cv_search_opendir
13954 if test "$ac_res" != no; then
13955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13961 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13962 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13963 if test "${ac_cv_header_mmap_anon+set}" = set; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 ac_cpp='$CPP $CPPFLAGS'
13968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13972 cat >conftest.$ac_ext <<_ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13978 #include <sys/mman.h>
13979 #include <unistd.h>
13984 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13989 rm -f conftest.$ac_objext
13990 if { (ac_try="$ac_compile"
13991 case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_compile") 2>conftest.er1
13998 grep -v '^ *+' conftest.er1 >conftest.err
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_try") 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 ac_cv_header_mmap_anon=yes
14025 echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14028 ac_cv_header_mmap_anon=no
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033 ac_cpp='$CPP $CPPFLAGS'
14034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14040 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14041 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14042 if test "$ac_cv_header_mmap_anon" = yes; then
14044 cat >>confdefs.h <<\_ACEOF
14045 #define HAVE_MMAP_ANONYMOUS 1
14050 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14051 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14052 if test "${ac_cv_header_stat_broken+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 cat >conftest.$ac_ext <<_ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 #include <sys/types.h>
14062 #include <sys/stat.h>
14064 #if defined S_ISBLK && defined S_IFDIR
14065 # if S_ISBLK (S_IFDIR)
14070 #if defined S_ISBLK && defined S_IFCHR
14071 # if S_ISBLK (S_IFCHR)
14076 #if defined S_ISLNK && defined S_IFREG
14077 # if S_ISLNK (S_IFREG)
14082 #if defined S_ISSOCK && defined S_IFREG
14083 # if S_ISSOCK (S_IFREG)
14089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14090 $EGREP "You lose" >/dev/null 2>&1; then
14091 ac_cv_header_stat_broken=yes
14093 ac_cv_header_stat_broken=no
14098 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14099 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14100 if test $ac_cv_header_stat_broken = yes; then
14102 cat >>confdefs.h <<\_ACEOF
14103 #define STAT_MACROS_BROKEN 1
14108 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14109 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14110 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 cat >conftest.$ac_ext <<_ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14119 #include <sys/types.h>
14120 #include <sys/wait.h>
14121 #ifndef WEXITSTATUS
14122 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14125 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14133 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14138 rm -f conftest.$ac_objext
14139 if { (ac_try="$ac_compile"
14140 case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_compile") 2>conftest.er1
14147 grep -v '^ *+' conftest.er1 >conftest.err
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
14152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14153 { (case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_try") 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; } &&
14162 { ac_try='test -s conftest.$ac_objext'
14163 { (case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_try") 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 ac_cv_header_sys_wait_h=yes
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_cv_header_sys_wait_h=no
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14182 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14183 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14184 if test $ac_cv_header_sys_wait_h = yes; then
14186 cat >>confdefs.h <<\_ACEOF
14187 #define HAVE_SYS_WAIT_H 1
14192 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14193 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14194 if test "${ac_cv_header_time+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 cat >conftest.$ac_ext <<_ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 #include <sys/types.h>
14204 #include <sys/time.h>
14210 if ((struct tm *) 0)
14216 rm -f conftest.$ac_objext
14217 if { (ac_try="$ac_compile"
14218 case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_compile") 2>conftest.er1
14225 grep -v '^ *+' conftest.er1 >conftest.err
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_try") 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14250 ac_cv_header_time=yes
14252 echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14255 ac_cv_header_time=no
14258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14260 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14261 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14262 if test $ac_cv_header_time = yes; then
14264 cat >>confdefs.h <<\_ACEOF
14265 #define TIME_WITH_SYS_TIME 1
14277 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 ac_res=`eval echo '${'$as_ac_Header'}'`
14287 { echo "$as_me:$LINENO: result: $ac_res" >&5
14288 echo "${ECHO_T}$ac_res" >&6; }
14290 # Is the header compilable?
14291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14293 cat >conftest.$ac_ext <<_ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 $ac_includes_default
14300 #include <$ac_header>
14302 rm -f conftest.$ac_objext
14303 if { (ac_try="$ac_compile"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14311 grep -v '^ *+' conftest.er1 >conftest.err
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14317 { (case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_try") 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_header_compiler=yes
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_header_compiler=no
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14346 echo "${ECHO_T}$ac_header_compiler" >&6; }
14348 # Is the header present?
14349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357 #include <$ac_header>
14359 if { (ac_try="$ac_cpp conftest.$ac_ext"
14360 case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14367 grep -v '^ *+' conftest.er1 >conftest.err
14369 cat conftest.err >&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } >/dev/null; then
14372 if test -s conftest.err; then
14373 ac_cpp_err=$ac_c_preproc_warn_flag
14374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14381 if test -z "$ac_cpp_err"; then
14382 ac_header_preproc=yes
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_header_preproc=no
14390 rm -f conftest.err conftest.$ac_ext
14391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14392 echo "${ECHO_T}$ac_header_preproc" >&6; }
14394 # So? What about this header?
14395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14401 ac_header_preproc=yes
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14417 ## ------------------------------ ##
14418 ## Report this to bugs@yourdomain ##
14419 ## ------------------------------ ##
14421 ) | sed "s/^/$as_me: WARNING: /" >&2
14424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 eval "$as_ac_Header=\$ac_header_preproc"
14431 ac_res=`eval echo '${'$as_ac_Header'}'`
14432 { echo "$as_me:$LINENO: result: $ac_res" >&5
14433 echo "${ECHO_T}$ac_res" >&6; }
14436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14437 cat >>confdefs.h <<_ACEOF
14438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14451 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 ac_res=`eval echo '${'$as_ac_Header'}'`
14461 { echo "$as_me:$LINENO: result: $ac_res" >&5
14462 echo "${ECHO_T}$ac_res" >&6; }
14464 # Is the header compilable?
14465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14467 cat >conftest.$ac_ext <<_ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14473 $ac_includes_default
14474 #include <$ac_header>
14476 rm -f conftest.$ac_objext
14477 if { (ac_try="$ac_compile"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_compile") 2>conftest.er1
14485 grep -v '^ *+' conftest.er1 >conftest.err
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
14490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14491 { (case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_try") 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; } &&
14500 { ac_try='test -s conftest.$ac_objext'
14501 { (case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_try") 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14510 ac_header_compiler=yes
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 ac_header_compiler=no
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14520 echo "${ECHO_T}$ac_header_compiler" >&6; }
14522 # Is the header present?
14523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14525 cat >conftest.$ac_ext <<_ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 #include <$ac_header>
14533 if { (ac_try="$ac_cpp conftest.$ac_ext"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } >/dev/null; then
14546 if test -s conftest.err; then
14547 ac_cpp_err=$ac_c_preproc_warn_flag
14548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14555 if test -z "$ac_cpp_err"; then
14556 ac_header_preproc=yes
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 ac_header_preproc=no
14564 rm -f conftest.err conftest.$ac_ext
14565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14566 echo "${ECHO_T}$ac_header_preproc" >&6; }
14568 # So? What about this header?
14569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14575 ac_header_preproc=yes
14578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14591 ## ------------------------------ ##
14592 ## Report this to bugs@yourdomain ##
14593 ## ------------------------------ ##
14595 ) | sed "s/^/$as_me: WARNING: /" >&2
14598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 eval "$as_ac_Header=\$ac_header_preproc"
14605 ac_res=`eval echo '${'$as_ac_Header'}'`
14606 { echo "$as_me:$LINENO: result: $ac_res" >&5
14607 echo "${ECHO_T}$ac_res" >&6; }
14610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14611 cat >>confdefs.h <<_ACEOF
14612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14621 for ac_header in utime.h windows.h
14623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 ac_res=`eval echo '${'$as_ac_Header'}'`
14631 { echo "$as_me:$LINENO: result: $ac_res" >&5
14632 echo "${ECHO_T}$ac_res" >&6; }
14634 # Is the header compilable?
14635 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14637 cat >conftest.$ac_ext <<_ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14643 $ac_includes_default
14644 #include <$ac_header>
14646 rm -f conftest.$ac_objext
14647 if { (ac_try="$ac_compile"
14648 case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_compile") 2>conftest.er1
14655 grep -v '^ *+' conftest.er1 >conftest.err
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14661 { (case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_try") 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; } &&
14670 { ac_try='test -s conftest.$ac_objext'
14671 { (case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_try") 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 ac_header_compiler=yes
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14685 ac_header_compiler=no
14688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14690 echo "${ECHO_T}$ac_header_compiler" >&6; }
14692 # Is the header present?
14693 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14695 cat >conftest.$ac_ext <<_ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14701 #include <$ac_header>
14703 if { (ac_try="$ac_cpp conftest.$ac_ext"
14704 case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14711 grep -v '^ *+' conftest.er1 >conftest.err
14713 cat conftest.err >&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } >/dev/null; then
14716 if test -s conftest.err; then
14717 ac_cpp_err=$ac_c_preproc_warn_flag
14718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14725 if test -z "$ac_cpp_err"; then
14726 ac_header_preproc=yes
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 ac_header_preproc=no
14734 rm -f conftest.err conftest.$ac_ext
14735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14736 echo "${ECHO_T}$ac_header_preproc" >&6; }
14738 # So? What about this header?
14739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14745 ac_header_preproc=yes
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14761 ## ------------------------------ ##
14762 ## Report this to bugs@yourdomain ##
14763 ## ------------------------------ ##
14765 ) | sed "s/^/$as_me: WARNING: /" >&2
14768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 eval "$as_ac_Header=\$ac_header_preproc"
14775 ac_res=`eval echo '${'$as_ac_Header'}'`
14776 { echo "$as_me:$LINENO: result: $ac_res" >&5
14777 echo "${ECHO_T}$ac_res" >&6; }
14780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14781 cat >>confdefs.h <<_ACEOF
14782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14794 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 ac_res=`eval echo '${'$as_ac_Header'}'`
14804 { echo "$as_me:$LINENO: result: $ac_res" >&5
14805 echo "${ECHO_T}$ac_res" >&6; }
14807 # Is the header compilable?
14808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14810 cat >conftest.$ac_ext <<_ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816 $ac_includes_default
14817 #include <$ac_header>
14819 rm -f conftest.$ac_objext
14820 if { (ac_try="$ac_compile"
14821 case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_compile") 2>conftest.er1
14828 grep -v '^ *+' conftest.er1 >conftest.err
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14834 { (case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_try") 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; } &&
14843 { ac_try='test -s conftest.$ac_objext'
14844 { (case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_try") 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; }; then
14853 ac_header_compiler=yes
14855 echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14858 ac_header_compiler=no
14861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14863 echo "${ECHO_T}$ac_header_compiler" >&6; }
14865 # Is the header present?
14866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14868 cat >conftest.$ac_ext <<_ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14874 #include <$ac_header>
14876 if { (ac_try="$ac_cpp conftest.$ac_ext"
14877 case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14884 grep -v '^ *+' conftest.er1 >conftest.err
14886 cat conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } >/dev/null; then
14889 if test -s conftest.err; then
14890 ac_cpp_err=$ac_c_preproc_warn_flag
14891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14898 if test -z "$ac_cpp_err"; then
14899 ac_header_preproc=yes
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_header_preproc=no
14907 rm -f conftest.err conftest.$ac_ext
14908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14909 echo "${ECHO_T}$ac_header_preproc" >&6; }
14911 # So? What about this header?
14912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14918 ac_header_preproc=yes
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14934 ## ------------------------------ ##
14935 ## Report this to bugs@yourdomain ##
14936 ## ------------------------------ ##
14938 ) | sed "s/^/$as_me: WARNING: /" >&2
14941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 eval "$as_ac_Header=\$ac_header_preproc"
14948 ac_res=`eval echo '${'$as_ac_Header'}'`
14949 { echo "$as_me:$LINENO: result: $ac_res" >&5
14950 echo "${ECHO_T}$ac_res" >&6; }
14953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14954 cat >>confdefs.h <<_ACEOF
14955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14966 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 ac_res=`eval echo '${'$as_ac_Header'}'`
14976 { echo "$as_me:$LINENO: result: $ac_res" >&5
14977 echo "${ECHO_T}$ac_res" >&6; }
14979 # Is the header compilable?
14980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14982 cat >conftest.$ac_ext <<_ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 $ac_includes_default
14989 #include <$ac_header>
14991 rm -f conftest.$ac_objext
14992 if { (ac_try="$ac_compile"
14993 case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_compile") 2>conftest.er1
15000 grep -v '^ *+' conftest.er1 >conftest.err
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } &&
15005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15006 { (case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_try") 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
15016 { (case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_try") 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
15025 ac_header_compiler=yes
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 ac_header_compiler=no
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15035 echo "${ECHO_T}$ac_header_compiler" >&6; }
15037 # Is the header present?
15038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15040 cat >conftest.$ac_ext <<_ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 #include <$ac_header>
15048 if { (ac_try="$ac_cpp conftest.$ac_ext"
15049 case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15056 grep -v '^ *+' conftest.er1 >conftest.err
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } >/dev/null; then
15061 if test -s conftest.err; then
15062 ac_cpp_err=$ac_c_preproc_warn_flag
15063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15070 if test -z "$ac_cpp_err"; then
15071 ac_header_preproc=yes
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_header_preproc=no
15079 rm -f conftest.err conftest.$ac_ext
15080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15081 echo "${ECHO_T}$ac_header_preproc" >&6; }
15083 # So? What about this header?
15084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15090 ac_header_preproc=yes
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15106 ## ------------------------------ ##
15107 ## Report this to bugs@yourdomain ##
15108 ## ------------------------------ ##
15110 ) | sed "s/^/$as_me: WARNING: /" >&2
15113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 eval "$as_ac_Header=\$ac_header_preproc"
15120 ac_res=`eval echo '${'$as_ac_Header'}'`
15121 { echo "$as_me:$LINENO: result: $ac_res" >&5
15122 echo "${ECHO_T}$ac_res" >&6; }
15125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15126 cat >>confdefs.h <<_ACEOF
15127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15135 for ac_header in valgrind/valgrind.h
15137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 ac_res=`eval echo '${'$as_ac_Header'}'`
15145 { echo "$as_me:$LINENO: result: $ac_res" >&5
15146 echo "${ECHO_T}$ac_res" >&6; }
15148 # Is the header compilable?
15149 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 $ac_includes_default
15158 #include <$ac_header>
15160 rm -f conftest.$ac_objext
15161 if { (ac_try="$ac_compile"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_compile") 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15175 { (case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_try") 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_try") 2>&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; }; then
15194 ac_header_compiler=yes
15196 echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15199 ac_header_compiler=no
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15204 echo "${ECHO_T}$ac_header_compiler" >&6; }
15206 # Is the header present?
15207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15209 cat >conftest.$ac_ext <<_ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15215 #include <$ac_header>
15217 if { (ac_try="$ac_cpp conftest.$ac_ext"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15225 grep -v '^ *+' conftest.er1 >conftest.err
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } >/dev/null; then
15230 if test -s conftest.err; then
15231 ac_cpp_err=$ac_c_preproc_warn_flag
15232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15239 if test -z "$ac_cpp_err"; then
15240 ac_header_preproc=yes
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 ac_header_preproc=no
15248 rm -f conftest.err conftest.$ac_ext
15249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15250 echo "${ECHO_T}$ac_header_preproc" >&6; }
15252 # So? What about this header?
15253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15259 ac_header_preproc=yes
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15269 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15275 ## ------------------------------ ##
15276 ## Report this to bugs@yourdomain ##
15277 ## ------------------------------ ##
15279 ) | sed "s/^/$as_me: WARNING: /" >&2
15282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 eval "$as_ac_Header=\$ac_header_preproc"
15289 ac_res=`eval echo '${'$as_ac_Header'}'`
15290 { echo "$as_me:$LINENO: result: $ac_res" >&5
15291 echo "${ECHO_T}$ac_res" >&6; }
15294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15295 cat >>confdefs.h <<_ACEOF
15296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15304 for ac_header in fenv.h
15306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 ac_res=`eval echo '${'$as_ac_Header'}'`
15314 { echo "$as_me:$LINENO: result: $ac_res" >&5
15315 echo "${ECHO_T}$ac_res" >&6; }
15317 # Is the header compilable?
15318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15320 cat >conftest.$ac_ext <<_ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 $ac_includes_default
15327 #include <$ac_header>
15329 rm -f conftest.$ac_objext
15330 if { (ac_try="$ac_compile"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_compile") 2>conftest.er1
15338 grep -v '^ *+' conftest.er1 >conftest.err
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15344 { (case "(($ac_try" in
15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346 *) ac_try_echo=$ac_try;;
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_try") 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; } &&
15353 { ac_try='test -s conftest.$ac_objext'
15354 { (case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_try") 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; }; then
15363 ac_header_compiler=yes
15365 echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15368 ac_header_compiler=no
15371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15373 echo "${ECHO_T}$ac_header_compiler" >&6; }
15375 # Is the header present?
15376 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15378 cat >conftest.$ac_ext <<_ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15384 #include <$ac_header>
15386 if { (ac_try="$ac_cpp conftest.$ac_ext"
15387 case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15394 grep -v '^ *+' conftest.er1 >conftest.err
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } >/dev/null; then
15399 if test -s conftest.err; then
15400 ac_cpp_err=$ac_c_preproc_warn_flag
15401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15408 if test -z "$ac_cpp_err"; then
15409 ac_header_preproc=yes
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 ac_header_preproc=no
15417 rm -f conftest.err conftest.$ac_ext
15418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15419 echo "${ECHO_T}$ac_header_preproc" >&6; }
15421 # So? What about this header?
15422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15428 ac_header_preproc=yes
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15444 ## ------------------------------ ##
15445 ## Report this to bugs@yourdomain ##
15446 ## ------------------------------ ##
15448 ) | sed "s/^/$as_me: WARNING: /" >&2
15451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 eval "$as_ac_Header=\$ac_header_preproc"
15458 ac_res=`eval echo '${'$as_ac_Header'}'`
15459 { echo "$as_me:$LINENO: result: $ac_res" >&5
15460 echo "${ECHO_T}$ac_res" >&6; }
15463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15464 cat >>confdefs.h <<_ACEOF
15465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15472 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15474 for ac_header in pthread.h
15476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15483 ac_res=`eval echo '${'$as_ac_Header'}'`
15484 { echo "$as_me:$LINENO: result: $ac_res" >&5
15485 echo "${ECHO_T}$ac_res" >&6; }
15487 # Is the header compilable?
15488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15490 cat >conftest.$ac_ext <<_ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 $ac_includes_default
15497 #include <$ac_header>
15499 rm -f conftest.$ac_objext
15500 if { (ac_try="$ac_compile"
15501 case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_compile") 2>conftest.er1
15508 grep -v '^ *+' conftest.er1 >conftest.err
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15514 { (case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519 (eval "$ac_try") 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_try") 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 ac_header_compiler=yes
15535 echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15538 ac_header_compiler=no
15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15543 echo "${ECHO_T}$ac_header_compiler" >&6; }
15545 # Is the header present?
15546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15548 cat >conftest.$ac_ext <<_ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15554 #include <$ac_header>
15556 if { (ac_try="$ac_cpp conftest.$ac_ext"
15557 case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15564 grep -v '^ *+' conftest.er1 >conftest.err
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } >/dev/null; then
15569 if test -s conftest.err; then
15570 ac_cpp_err=$ac_c_preproc_warn_flag
15571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15578 if test -z "$ac_cpp_err"; then
15579 ac_header_preproc=yes
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_header_preproc=no
15587 rm -f conftest.err conftest.$ac_ext
15588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15589 echo "${ECHO_T}$ac_header_preproc" >&6; }
15591 # So? What about this header?
15592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15598 ac_header_preproc=yes
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15614 ## ------------------------------ ##
15615 ## Report this to bugs@yourdomain ##
15616 ## ------------------------------ ##
15618 ) | sed "s/^/$as_me: WARNING: /" >&2
15621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 eval "$as_ac_Header=\$ac_header_preproc"
15628 ac_res=`eval echo '${'$as_ac_Header'}'`
15629 { echo "$as_me:$LINENO: result: $ac_res" >&5
15630 echo "${ECHO_T}$ac_res" >&6; }
15633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15634 cat >>confdefs.h <<_ACEOF
15635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15651 if test "$llvm_cv_enable_libffi" = "yes" ; then
15654 for ac_header in ffi.h ffi/ffi.h
15656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 ac_res=`eval echo '${'$as_ac_Header'}'`
15664 { echo "$as_me:$LINENO: result: $ac_res" >&5
15665 echo "${ECHO_T}$ac_res" >&6; }
15667 # Is the header compilable?
15668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15670 cat >conftest.$ac_ext <<_ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h. */
15676 $ac_includes_default
15677 #include <$ac_header>
15679 rm -f conftest.$ac_objext
15680 if { (ac_try="$ac_compile"
15681 case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_compile") 2>conftest.er1
15688 grep -v '^ *+' conftest.er1 >conftest.err
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } &&
15693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15694 { (case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_try") 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; } &&
15703 { ac_try='test -s conftest.$ac_objext'
15704 { (case "(($ac_try" in
15705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706 *) ac_try_echo=$ac_try;;
15708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709 (eval "$ac_try") 2>&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15713 ac_header_compiler=yes
15715 echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15718 ac_header_compiler=no
15721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15723 echo "${ECHO_T}$ac_header_compiler" >&6; }
15725 # Is the header present?
15726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15728 cat >conftest.$ac_ext <<_ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15734 #include <$ac_header>
15736 if { (ac_try="$ac_cpp conftest.$ac_ext"
15737 case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } >/dev/null; then
15749 if test -s conftest.err; then
15750 ac_cpp_err=$ac_c_preproc_warn_flag
15751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15758 if test -z "$ac_cpp_err"; then
15759 ac_header_preproc=yes
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 ac_header_preproc=no
15767 rm -f conftest.err conftest.$ac_ext
15768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15769 echo "${ECHO_T}$ac_header_preproc" >&6; }
15771 # So? What about this header?
15772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15778 ac_header_preproc=yes
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15794 ## ------------------------------ ##
15795 ## Report this to bugs@yourdomain ##
15796 ## ------------------------------ ##
15798 ) | sed "s/^/$as_me: WARNING: /" >&2
15801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15806 eval "$as_ac_Header=\$ac_header_preproc"
15808 ac_res=`eval echo '${'$as_ac_Header'}'`
15809 { echo "$as_me:$LINENO: result: $ac_res" >&5
15810 echo "${ECHO_T}$ac_res" >&6; }
15813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15814 cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15825 for ac_header in CrashReporterClient.h
15827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 ac_res=`eval echo '${'$as_ac_Header'}'`
15835 { echo "$as_me:$LINENO: result: $ac_res" >&5
15836 echo "${ECHO_T}$ac_res" >&6; }
15838 # Is the header compilable?
15839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15841 cat >conftest.$ac_ext <<_ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 $ac_includes_default
15848 #include <$ac_header>
15850 rm -f conftest.$ac_objext
15851 if { (ac_try="$ac_compile"
15852 case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_compile") 2>conftest.er1
15859 grep -v '^ *+' conftest.er1 >conftest.err
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15865 { (case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_try") 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; } &&
15874 { ac_try='test -s conftest.$ac_objext'
15875 { (case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_try") 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 ac_header_compiler=yes
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_header_compiler=no
15892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15894 echo "${ECHO_T}$ac_header_compiler" >&6; }
15896 # Is the header present?
15897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15899 cat >conftest.$ac_ext <<_ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 #include <$ac_header>
15907 if { (ac_try="$ac_cpp conftest.$ac_ext"
15908 case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15915 grep -v '^ *+' conftest.er1 >conftest.err
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } >/dev/null; then
15920 if test -s conftest.err; then
15921 ac_cpp_err=$ac_c_preproc_warn_flag
15922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15929 if test -z "$ac_cpp_err"; then
15930 ac_header_preproc=yes
15932 echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15935 ac_header_preproc=no
15938 rm -f conftest.err conftest.$ac_ext
15939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15940 echo "${ECHO_T}$ac_header_preproc" >&6; }
15942 # So? What about this header?
15943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15949 ac_header_preproc=yes
15952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15965 ## ------------------------------ ##
15966 ## Report this to bugs@yourdomain ##
15967 ## ------------------------------ ##
15969 ) | sed "s/^/$as_me: WARNING: /" >&2
15972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 eval "$as_ac_Header=\$ac_header_preproc"
15979 ac_res=`eval echo '${'$as_ac_Header'}'`
15980 { echo "$as_me:$LINENO: result: $ac_res" >&5
15981 echo "${ECHO_T}$ac_res" >&6; }
15984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15985 cat >>confdefs.h <<_ACEOF
15986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15994 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15995 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15996 cat >conftest.$ac_ext <<_ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16002 extern const char *__crashreporter_info__;
16004 __crashreporter_info__ = "test";
16009 rm -f conftest.$ac_objext conftest$ac_exeext
16010 if { (ac_try="$ac_link"
16011 case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016 (eval "$ac_link") 2>conftest.er1
16018 grep -v '^ *+' conftest.er1 >conftest.err
16020 cat conftest.err >&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } &&
16023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16024 { (case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_try") 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; } &&
16033 { ac_try='test -s conftest$ac_exeext'
16034 { (case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_try") 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 { echo "$as_me:$LINENO: result: yes" >&5
16044 echo "${ECHO_T}yes" >&6; }
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_CRASHREPORTER_INFO 1
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 { echo "$as_me:$LINENO: result: no" >&5
16055 echo "${ECHO_T}no" >&6; }
16057 cat >>confdefs.h <<\_ACEOF
16058 #define HAVE_CRASHREPORTER_INFO 0
16063 rm -f core conftest.err conftest.$ac_objext \
16064 conftest$ac_exeext conftest.$ac_ext
16069 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16070 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16071 if test "${ac_cv_huge_val_sanity+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 ac_cpp='$CXXCPP $CPPFLAGS'
16077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16081 ac_save_CXXFLAGS=$CXXFLAGS
16083 if test "$cross_compiling" = yes; then
16084 ac_cv_huge_val_sanity=yes
16086 cat >conftest.$ac_ext <<_ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16096 double x = HUGE_VAL; return x != x;
16101 rm -f conftest$ac_exeext
16102 if { (ac_try="$ac_link"
16103 case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_link") 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16112 { (case "(($ac_try" in
16113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114 *) ac_try_echo=$ac_try;;
16116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117 (eval "$ac_try") 2>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 ac_cv_huge_val_sanity=yes
16123 echo "$as_me: program exited with status $ac_status" >&5
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 ( exit $ac_status )
16128 ac_cv_huge_val_sanity=no
16130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16134 CXXFLAGS=$ac_save_CXXFLAGS
16136 ac_cpp='$CPP $CPPFLAGS'
16137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16143 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16144 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16145 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16148 { echo "$as_me:$LINENO: checking for pid_t" >&5
16149 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16150 if test "${ac_cv_type_pid_t+set}" = set; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 cat >conftest.$ac_ext <<_ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16159 $ac_includes_default
16160 typedef pid_t ac__type_new_;
16164 if ((ac__type_new_ *) 0)
16166 if (sizeof (ac__type_new_))
16172 rm -f conftest.$ac_objext
16173 if { (ac_try="$ac_compile"
16174 case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_compile") 2>conftest.er1
16181 grep -v '^ *+' conftest.er1 >conftest.err
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
16206 ac_cv_type_pid_t=yes
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 ac_cv_type_pid_t=no
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16216 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16217 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16218 if test $ac_cv_type_pid_t = yes; then
16222 cat >>confdefs.h <<_ACEOF
16228 { echo "$as_me:$LINENO: checking for size_t" >&5
16229 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16230 if test "${ac_cv_type_size_t+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 cat >conftest.$ac_ext <<_ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 $ac_includes_default
16240 typedef size_t ac__type_new_;
16244 if ((ac__type_new_ *) 0)
16246 if (sizeof (ac__type_new_))
16252 rm -f conftest.$ac_objext
16253 if { (ac_try="$ac_compile"
16254 case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_compile") 2>conftest.er1
16261 grep -v '^ *+' conftest.er1 >conftest.err
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16267 { (case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_try") 2>&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; } &&
16276 { ac_try='test -s conftest.$ac_objext'
16277 { (case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_try") 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_cv_type_size_t=yes
16288 echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16291 ac_cv_type_size_t=no
16294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16297 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16298 if test $ac_cv_type_size_t = yes; then
16302 cat >>confdefs.h <<_ACEOF
16303 #define size_t unsigned int
16309 cat >>confdefs.h <<_ACEOF
16310 #define RETSIGTYPE void
16313 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16314 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16315 if test "${ac_cv_struct_tm+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 #include <sys/types.h>
16330 struct tm *tp; tp->tm_sec;
16335 rm -f conftest.$ac_objext
16336 if { (ac_try="$ac_compile"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_compile") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350 { (case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_try") 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest.$ac_objext'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_cv_struct_tm=time.h
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 ac_cv_struct_tm=sys/time.h
16377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16379 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16380 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16381 if test $ac_cv_struct_tm = sys/time.h; then
16383 cat >>confdefs.h <<\_ACEOF
16384 #define TM_IN_SYS_TIME 1
16389 { echo "$as_me:$LINENO: checking for int64_t" >&5
16390 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16391 if test "${ac_cv_type_int64_t+set}" = set; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16394 cat >conftest.$ac_ext <<_ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 $ac_includes_default
16401 typedef int64_t ac__type_new_;
16405 if ((ac__type_new_ *) 0)
16407 if (sizeof (ac__type_new_))
16413 rm -f conftest.$ac_objext
16414 if { (ac_try="$ac_compile"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_compile") 2>conftest.er1
16422 grep -v '^ *+' conftest.er1 >conftest.err
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16428 { (case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_try") 2>&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; } &&
16437 { ac_try='test -s conftest.$ac_objext'
16438 { (case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_try") 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_cv_type_int64_t=yes
16449 echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16452 ac_cv_type_int64_t=no
16455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16457 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16458 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16459 if test $ac_cv_type_int64_t = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define HAVE_INT64_T 1
16467 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16468 echo "$as_me: error: Type int64_t required but not found" >&2;}
16469 { (exit 1); exit 1; }; }
16472 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16473 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16474 if test "${ac_cv_type_uint64_t+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 cat >conftest.$ac_ext <<_ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 $ac_includes_default
16484 typedef uint64_t ac__type_new_;
16488 if ((ac__type_new_ *) 0)
16490 if (sizeof (ac__type_new_))
16496 rm -f conftest.$ac_objext
16497 if { (ac_try="$ac_compile"
16498 case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_compile") 2>conftest.er1
16505 grep -v '^ *+' conftest.er1 >conftest.err
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
16510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16511 { (case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_try") 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } &&
16520 { ac_try='test -s conftest.$ac_objext'
16521 { (case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_try") 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 ac_cv_type_uint64_t=yes
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ac_cv_type_uint64_t=no
16538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16541 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16542 if test $ac_cv_type_uint64_t = yes; then
16544 cat >>confdefs.h <<_ACEOF
16545 #define HAVE_UINT64_T 1
16550 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16551 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16552 if test "${ac_cv_type_u_int64_t+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 cat >conftest.$ac_ext <<_ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 $ac_includes_default
16562 typedef u_int64_t ac__type_new_;
16566 if ((ac__type_new_ *) 0)
16568 if (sizeof (ac__type_new_))
16574 rm -f conftest.$ac_objext
16575 if { (ac_try="$ac_compile"
16576 case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_compile") 2>conftest.er1
16583 grep -v '^ *+' conftest.er1 >conftest.err
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } &&
16588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_try") 2>&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
16599 { (case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_try") 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_cv_type_u_int64_t=yes
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16613 ac_cv_type_u_int64_t=no
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16619 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16620 if test $ac_cv_type_u_int64_t = yes; then
16622 cat >>confdefs.h <<_ACEOF
16623 #define HAVE_U_INT64_T 1
16628 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16629 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16630 { (exit 1); exit 1; }; }
16644 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16652 cat >conftest.$ac_ext <<_ACEOF
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16660 #define $ac_func innocuous_$ac_func
16662 /* System header to define __stub macros and hopefully few prototypes,
16663 which can conflict with char $ac_func (); below.
16664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16665 <limits.h> exists even on freestanding compilers. */
16668 # include <limits.h>
16670 # include <assert.h>
16675 /* Override any GCC internal prototype to avoid an error.
16676 Use char because int might match the return type of a GCC
16677 builtin and then its argument prototype would still apply. */
16682 /* The GNU C library defines this for functions which it implements
16683 to always fail with ENOSYS. Some functions are actually named
16684 something starting with __ and the normal name is an alias. */
16685 #if defined __stub_$ac_func || defined __stub___$ac_func
16692 return $ac_func ();
16697 rm -f conftest.$ac_objext conftest$ac_exeext
16698 if { (ac_try="$ac_link"
16699 case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_link") 2>conftest.er1
16706 grep -v '^ *+' conftest.er1 >conftest.err
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16712 { (case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_try") 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest$ac_exeext'
16722 { (case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_try") 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 eval "$as_ac_var=yes"
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16736 eval "$as_ac_var=no"
16739 rm -f core conftest.err conftest.$ac_objext \
16740 conftest$ac_exeext conftest.$ac_ext
16742 ac_res=`eval echo '${'$as_ac_var'}'`
16743 { echo "$as_me:$LINENO: result: $ac_res" >&5
16744 echo "${ECHO_T}$ac_res" >&6; }
16745 if test `eval echo '${'$as_ac_var'}'` = yes; then
16746 cat >>confdefs.h <<_ACEOF
16747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16757 for ac_func in powf fmodf strtof round
16759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 cat >conftest.$ac_ext <<_ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16773 #define $ac_func innocuous_$ac_func
16775 /* System header to define __stub macros and hopefully few prototypes,
16776 which can conflict with char $ac_func (); below.
16777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16778 <limits.h> exists even on freestanding compilers. */
16781 # include <limits.h>
16783 # include <assert.h>
16788 /* Override any GCC internal prototype to avoid an error.
16789 Use char because int might match the return type of a GCC
16790 builtin and then its argument prototype would still apply. */
16795 /* The GNU C library defines this for functions which it implements
16796 to always fail with ENOSYS. Some functions are actually named
16797 something starting with __ and the normal name is an alias. */
16798 #if defined __stub_$ac_func || defined __stub___$ac_func
16805 return $ac_func ();
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_link") 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; } &&
16834 { ac_try='test -s conftest$ac_exeext'
16835 { (case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_try") 2>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 eval "$as_ac_var=yes"
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16849 eval "$as_ac_var=no"
16852 rm -f core conftest.err conftest.$ac_objext \
16853 conftest$ac_exeext conftest.$ac_ext
16855 ac_res=`eval echo '${'$as_ac_var'}'`
16856 { echo "$as_me:$LINENO: result: $ac_res" >&5
16857 echo "${ECHO_T}$ac_res" >&6; }
16858 if test `eval echo '${'$as_ac_var'}'` = yes; then
16859 cat >>confdefs.h <<_ACEOF
16860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16871 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16879 cat >conftest.$ac_ext <<_ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16887 #define $ac_func innocuous_$ac_func
16889 /* System header to define __stub macros and hopefully few prototypes,
16890 which can conflict with char $ac_func (); below.
16891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16892 <limits.h> exists even on freestanding compilers. */
16895 # include <limits.h>
16897 # include <assert.h>
16902 /* Override any GCC internal prototype to avoid an error.
16903 Use char because int might match the return type of a GCC
16904 builtin and then its argument prototype would still apply. */
16909 /* The GNU C library defines this for functions which it implements
16910 to always fail with ENOSYS. Some functions are actually named
16911 something starting with __ and the normal name is an alias. */
16912 #if defined __stub_$ac_func || defined __stub___$ac_func
16919 return $ac_func ();
16924 rm -f conftest.$ac_objext conftest$ac_exeext
16925 if { (ac_try="$ac_link"
16926 case "(($ac_try" in
16927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16928 *) ac_try_echo=$ac_try;;
16930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16931 (eval "$ac_link") 2>conftest.er1
16933 grep -v '^ *+' conftest.er1 >conftest.err
16935 cat conftest.err >&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } &&
16938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16939 { (case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_try") 2>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest$ac_exeext'
16949 { (case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_try") 2>&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 eval "$as_ac_var=yes"
16960 echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16963 eval "$as_ac_var=no"
16966 rm -f core conftest.err conftest.$ac_objext \
16967 conftest$ac_exeext conftest.$ac_ext
16969 ac_res=`eval echo '${'$as_ac_var'}'`
16970 { echo "$as_me:$LINENO: result: $ac_res" >&5
16971 echo "${ECHO_T}$ac_res" >&6; }
16972 if test `eval echo '${'$as_ac_var'}'` = yes; then
16973 cat >>confdefs.h <<_ACEOF
16974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16983 for ac_func in isatty mkdtemp mkstemp
16985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 cat >conftest.$ac_ext <<_ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16999 #define $ac_func innocuous_$ac_func
17001 /* System header to define __stub macros and hopefully few prototypes,
17002 which can conflict with char $ac_func (); below.
17003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17004 <limits.h> exists even on freestanding compilers. */
17007 # include <limits.h>
17009 # include <assert.h>
17014 /* Override any GCC internal prototype to avoid an error.
17015 Use char because int might match the return type of a GCC
17016 builtin and then its argument prototype would still apply. */
17021 /* The GNU C library defines this for functions which it implements
17022 to always fail with ENOSYS. Some functions are actually named
17023 something starting with __ and the normal name is an alias. */
17024 #if defined __stub_$ac_func || defined __stub___$ac_func
17031 return $ac_func ();
17036 rm -f conftest.$ac_objext conftest$ac_exeext
17037 if { (ac_try="$ac_link"
17038 case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_link") 2>conftest.er1
17045 grep -v '^ *+' conftest.er1 >conftest.err
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17051 { (case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_try") 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest$ac_exeext'
17061 { (case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_try") 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 eval "$as_ac_var=yes"
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 eval "$as_ac_var=no"
17078 rm -f core conftest.err conftest.$ac_objext \
17079 conftest$ac_exeext conftest.$ac_ext
17081 ac_res=`eval echo '${'$as_ac_var'}'`
17082 { echo "$as_me:$LINENO: result: $ac_res" >&5
17083 echo "${ECHO_T}$ac_res" >&6; }
17084 if test `eval echo '${'$as_ac_var'}'` = yes; then
17085 cat >>confdefs.h <<_ACEOF
17086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17098 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 cat >conftest.$ac_ext <<_ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17114 #define $ac_func innocuous_$ac_func
17116 /* System header to define __stub macros and hopefully few prototypes,
17117 which can conflict with char $ac_func (); below.
17118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17119 <limits.h> exists even on freestanding compilers. */
17122 # include <limits.h>
17124 # include <assert.h>
17129 /* Override any GCC internal prototype to avoid an error.
17130 Use char because int might match the return type of a GCC
17131 builtin and then its argument prototype would still apply. */
17136 /* The GNU C library defines this for functions which it implements
17137 to always fail with ENOSYS. Some functions are actually named
17138 something starting with __ and the normal name is an alias. */
17139 #if defined __stub_$ac_func || defined __stub___$ac_func
17146 return $ac_func ();
17151 rm -f conftest.$ac_objext conftest$ac_exeext
17152 if { (ac_try="$ac_link"
17153 case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_link") 2>conftest.er1
17160 grep -v '^ *+' conftest.er1 >conftest.err
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest$ac_exeext'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 eval "$as_ac_var=yes"
17187 echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17190 eval "$as_ac_var=no"
17193 rm -f core conftest.err conftest.$ac_objext \
17194 conftest$ac_exeext conftest.$ac_ext
17196 ac_res=`eval echo '${'$as_ac_var'}'`
17197 { echo "$as_me:$LINENO: result: $ac_res" >&5
17198 echo "${ECHO_T}$ac_res" >&6; }
17199 if test `eval echo '${'$as_ac_var'}'` = yes; then
17200 cat >>confdefs.h <<_ACEOF
17201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17210 for ac_func in strerror strerror_r setenv
17212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 cat >conftest.$ac_ext <<_ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17226 #define $ac_func innocuous_$ac_func
17228 /* System header to define __stub macros and hopefully few prototypes,
17229 which can conflict with char $ac_func (); below.
17230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17231 <limits.h> exists even on freestanding compilers. */
17234 # include <limits.h>
17236 # include <assert.h>
17241 /* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17248 /* The GNU C library defines this for functions which it implements
17249 to always fail with ENOSYS. Some functions are actually named
17250 something starting with __ and the normal name is an alias. */
17251 #if defined __stub_$ac_func || defined __stub___$ac_func
17258 return $ac_func ();
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (ac_try="$ac_link"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17272 grep -v '^ *+' conftest.er1 >conftest.err
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
17277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17278 { (case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_try") 2>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest$ac_exeext'
17288 { (case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_try") 2>&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 eval "$as_ac_var=yes"
17299 echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17302 eval "$as_ac_var=no"
17305 rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17308 ac_res=`eval echo '${'$as_ac_var'}'`
17309 { echo "$as_me:$LINENO: result: $ac_res" >&5
17310 echo "${ECHO_T}$ac_res" >&6; }
17311 if test `eval echo '${'$as_ac_var'}'` = yes; then
17312 cat >>confdefs.h <<_ACEOF
17313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17323 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 cat >conftest.$ac_ext <<_ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h. */
17337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17339 #define $ac_func innocuous_$ac_func
17341 /* System header to define __stub macros and hopefully few prototypes,
17342 which can conflict with char $ac_func (); below.
17343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17344 <limits.h> exists even on freestanding compilers. */
17347 # include <limits.h>
17349 # include <assert.h>
17354 /* Override any GCC internal prototype to avoid an error.
17355 Use char because int might match the return type of a GCC
17356 builtin and then its argument prototype would still apply. */
17361 /* The GNU C library defines this for functions which it implements
17362 to always fail with ENOSYS. Some functions are actually named
17363 something starting with __ and the normal name is an alias. */
17364 #if defined __stub_$ac_func || defined __stub___$ac_func
17371 return $ac_func ();
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (ac_try="$ac_link"
17378 case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_link") 2>conftest.er1
17385 grep -v '^ *+' conftest.er1 >conftest.err
17387 cat conftest.err >&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
17390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17391 { (case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_try") 2>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; } &&
17400 { ac_try='test -s conftest$ac_exeext'
17401 { (case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_try") 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 eval "$as_ac_var=yes"
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 eval "$as_ac_var=no"
17418 rm -f core conftest.err conftest.$ac_objext \
17419 conftest$ac_exeext conftest.$ac_ext
17421 ac_res=`eval echo '${'$as_ac_var'}'`
17422 { echo "$as_me:$LINENO: result: $ac_res" >&5
17423 echo "${ECHO_T}$ac_res" >&6; }
17424 if test `eval echo '${'$as_ac_var'}'` = yes; then
17425 cat >>confdefs.h <<_ACEOF
17426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17437 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 cat >conftest.$ac_ext <<_ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17453 #define $ac_func innocuous_$ac_func
17455 /* System header to define __stub macros and hopefully few prototypes,
17456 which can conflict with char $ac_func (); below.
17457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17458 <limits.h> exists even on freestanding compilers. */
17461 # include <limits.h>
17463 # include <assert.h>
17468 /* Override any GCC internal prototype to avoid an error.
17469 Use char because int might match the return type of a GCC
17470 builtin and then its argument prototype would still apply. */
17475 /* The GNU C library defines this for functions which it implements
17476 to always fail with ENOSYS. Some functions are actually named
17477 something starting with __ and the normal name is an alias. */
17478 #if defined __stub_$ac_func || defined __stub___$ac_func
17485 return $ac_func ();
17490 rm -f conftest.$ac_objext conftest$ac_exeext
17491 if { (ac_try="$ac_link"
17492 case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_link") 2>conftest.er1
17499 grep -v '^ *+' conftest.er1 >conftest.err
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest$ac_exeext'
17515 { (case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_try") 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 eval "$as_ac_var=yes"
17526 echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17529 eval "$as_ac_var=no"
17532 rm -f core conftest.err conftest.$ac_objext \
17533 conftest$ac_exeext conftest.$ac_ext
17535 ac_res=`eval echo '${'$as_ac_var'}'`
17536 { echo "$as_me:$LINENO: result: $ac_res" >&5
17537 echo "${ECHO_T}$ac_res" >&6; }
17538 if test `eval echo '${'$as_ac_var'}'` = yes; then
17539 cat >>confdefs.h <<_ACEOF
17540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17546 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17547 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17548 if test "${llvm_cv_c_printf_a+set}" = set; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17552 ac_cpp='$CPP $CPPFLAGS'
17553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17557 if test "$cross_compiling" = yes; then
17558 llvmac_cv_c_printf_a=no
17560 cat >conftest.$ac_ext <<_ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17569 #include <stdlib.h>
17575 volatile double A, B;
17579 sprintf(Buffer, "%a", A);
17583 if (A != 0x1.999999999999ap-4)
17590 rm -f conftest$ac_exeext
17591 if { (ac_try="$ac_link"
17592 case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_link") 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17601 { (case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_try") 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 llvm_cv_c_printf_a=yes
17612 echo "$as_me: program exited with status $ac_status" >&5
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17616 ( exit $ac_status )
17617 llvmac_cv_c_printf_a=no
17619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17624 ac_cpp='$CPP $CPPFLAGS'
17625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17630 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17631 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17632 if test "$llvm_cv_c_printf_a" = "yes"; then
17634 cat >>confdefs.h <<\_ACEOF
17635 #define HAVE_PRINTF_A 1
17641 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17642 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17643 if test "${ac_cv_func_rand48+set}" = set; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17647 ac_cpp='$CXXCPP $CPPFLAGS'
17648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 #include <stdlib.h>
17662 srand48(0);lrand48();drand48();
17667 rm -f conftest.$ac_objext
17668 if { (ac_try="$ac_compile"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_compile") 2>conftest.er1
17676 grep -v '^ *+' conftest.er1 >conftest.err
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
17681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17682 { (case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_try") 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest.$ac_objext'
17692 { (case "(($ac_try" in
17693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17697 (eval "$ac_try") 2>&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 ac_cv_func_rand48=yes
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17706 ac_cv_func_rand48=no
17709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17711 ac_cpp='$CPP $CPPFLAGS'
17712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17718 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17720 if test "$ac_cv_func_rand48" = "yes" ; then
17722 cat >>confdefs.h <<\_ACEOF
17723 #define HAVE_RAND48 1
17729 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17730 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17731 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 cat >conftest.$ac_ext <<_ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 $ac_includes_default
17745 char *p = (char *) strerror_s;
17753 rm -f conftest.$ac_objext
17754 if { (ac_try="$ac_compile"
17755 case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_compile") 2>conftest.er1
17762 grep -v '^ *+' conftest.er1 >conftest.err
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
17778 { (case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_try") 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 ac_cv_have_decl_strerror_s=yes
17789 echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17792 ac_cv_have_decl_strerror_s=no
17795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17797 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17798 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17799 if test $ac_cv_have_decl_strerror_s = yes; then
17801 cat >>confdefs.h <<_ACEOF
17802 #define HAVE_DECL_STRERROR_S 1
17807 cat >>confdefs.h <<_ACEOF
17808 #define HAVE_DECL_STRERROR_S 0
17816 if test "$llvm_cv_os_type" = "MingW" ; then
17817 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17818 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17819 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17820 echo $ECHO_N "(cached) $ECHO_C" >&6
17822 ac_check_lib_save_LIBS=$LIBS
17824 cat >conftest.$ac_ext <<_ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17831 /* Override any GCC internal prototype to avoid an error.
17832 Use char because int might match the return type of a GCC
17833 builtin and then its argument prototype would still apply. */
17846 rm -f conftest.$ac_objext conftest$ac_exeext
17847 if { (ac_try="$ac_link"
17848 case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853 (eval "$ac_link") 2>conftest.er1
17855 grep -v '^ *+' conftest.er1 >conftest.err
17857 cat conftest.err >&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
17860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17861 { (case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_try") 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest$ac_exeext'
17871 { (case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_try") 2>&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; }; then
17880 ac_cv_lib_gcc__alloca=yes
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17885 ac_cv_lib_gcc__alloca=no
17888 rm -f core conftest.err conftest.$ac_objext \
17889 conftest$ac_exeext conftest.$ac_ext
17890 LIBS=$ac_check_lib_save_LIBS
17892 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17893 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17894 if test $ac_cv_lib_gcc__alloca = yes; then
17896 cat >>confdefs.h <<\_ACEOF
17897 #define HAVE__ALLOCA 1
17902 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17903 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17904 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 ac_check_lib_save_LIBS=$LIBS
17909 cat >conftest.$ac_ext <<_ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17916 /* Override any GCC internal prototype to avoid an error.
17917 Use char because int might match the return type of a GCC
17918 builtin and then its argument prototype would still apply. */
17926 return __alloca ();
17931 rm -f conftest.$ac_objext conftest$ac_exeext
17932 if { (ac_try="$ac_link"
17933 case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_link") 2>conftest.er1
17940 grep -v '^ *+' conftest.er1 >conftest.err
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17946 { (case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_try") 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } &&
17955 { ac_try='test -s conftest$ac_exeext'
17956 { (case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_try") 2>&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_lib_gcc___alloca=yes
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 ac_cv_lib_gcc___alloca=no
17973 rm -f core conftest.err conftest.$ac_objext \
17974 conftest$ac_exeext conftest.$ac_ext
17975 LIBS=$ac_check_lib_save_LIBS
17977 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17978 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17979 if test $ac_cv_lib_gcc___alloca = yes; then
17981 cat >>confdefs.h <<\_ACEOF
17982 #define HAVE___ALLOCA 1
17987 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17988 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17989 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17992 ac_check_lib_save_LIBS=$LIBS
17994 cat >conftest.$ac_ext <<_ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18001 /* Override any GCC internal prototype to avoid an error.
18002 Use char because int might match the return type of a GCC
18003 builtin and then its argument prototype would still apply. */
18011 return __chkstk ();
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (ac_try="$ac_link"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_link") 2>conftest.er1
18025 grep -v '^ *+' conftest.er1 >conftest.err
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } &&
18030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; } &&
18040 { ac_try='test -s conftest$ac_exeext'
18041 { (case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_try") 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 ac_cv_lib_gcc___chkstk=yes
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 ac_cv_lib_gcc___chkstk=no
18058 rm -f core conftest.err conftest.$ac_objext \
18059 conftest$ac_exeext conftest.$ac_ext
18060 LIBS=$ac_check_lib_save_LIBS
18062 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18063 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18064 if test $ac_cv_lib_gcc___chkstk = yes; then
18066 cat >>confdefs.h <<\_ACEOF
18067 #define HAVE___CHKSTK 1
18072 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18073 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18074 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 ac_check_lib_save_LIBS=$LIBS
18079 cat >conftest.$ac_ext <<_ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18086 /* Override any GCC internal prototype to avoid an error.
18087 Use char because int might match the return type of a GCC
18088 builtin and then its argument prototype would still apply. */
18096 return ___chkstk ();
18101 rm -f conftest.$ac_objext conftest$ac_exeext
18102 if { (ac_try="$ac_link"
18103 case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108 (eval "$ac_link") 2>conftest.er1
18110 grep -v '^ *+' conftest.er1 >conftest.err
18112 cat conftest.err >&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18116 { (case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_try") 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest$ac_exeext'
18126 { (case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_try") 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_cv_lib_gcc____chkstk=yes
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 ac_cv_lib_gcc____chkstk=no
18143 rm -f core conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18145 LIBS=$ac_check_lib_save_LIBS
18147 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18148 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18149 if test $ac_cv_lib_gcc____chkstk = yes; then
18151 cat >>confdefs.h <<\_ACEOF
18152 #define HAVE____CHKSTK 1
18158 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18159 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18160 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 ac_check_lib_save_LIBS=$LIBS
18165 cat >conftest.$ac_ext <<_ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18172 /* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18182 return __ashldi3 ();
18187 rm -f conftest.$ac_objext conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>conftest.er1
18196 grep -v '^ *+' conftest.er1 >conftest.err
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } &&
18201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest$ac_exeext'
18212 { (case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_try") 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_cv_lib_gcc___ashldi3=yes
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_cv_lib_gcc___ashldi3=no
18229 rm -f core conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
18231 LIBS=$ac_check_lib_save_LIBS
18233 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18234 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18235 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18237 cat >>confdefs.h <<\_ACEOF
18238 #define HAVE___ASHLDI3 1
18243 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18244 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18245 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 ac_check_lib_save_LIBS=$LIBS
18250 cat >conftest.$ac_ext <<_ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18257 /* Override any GCC internal prototype to avoid an error.
18258 Use char because int might match the return type of a GCC
18259 builtin and then its argument prototype would still apply. */
18267 return __ashrdi3 ();
18272 rm -f conftest.$ac_objext conftest$ac_exeext
18273 if { (ac_try="$ac_link"
18274 case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_link") 2>conftest.er1
18281 grep -v '^ *+' conftest.er1 >conftest.err
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
18286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; } &&
18296 { ac_try='test -s conftest$ac_exeext'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_lib_gcc___ashrdi3=yes
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 ac_cv_lib_gcc___ashrdi3=no
18314 rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18316 LIBS=$ac_check_lib_save_LIBS
18318 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18319 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18320 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18322 cat >>confdefs.h <<\_ACEOF
18323 #define HAVE___ASHRDI3 1
18328 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18329 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18330 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18331 echo $ECHO_N "(cached) $ECHO_C" >&6
18333 ac_check_lib_save_LIBS=$LIBS
18335 cat >conftest.$ac_ext <<_ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h. */
18342 /* Override any GCC internal prototype to avoid an error.
18343 Use char because int might match the return type of a GCC
18344 builtin and then its argument prototype would still apply. */
18352 return __divdi3 ();
18357 rm -f conftest.$ac_objext conftest$ac_exeext
18358 if { (ac_try="$ac_link"
18359 case "(($ac_try" in
18360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361 *) ac_try_echo=$ac_try;;
18363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364 (eval "$ac_link") 2>conftest.er1
18366 grep -v '^ *+' conftest.er1 >conftest.err
18368 cat conftest.err >&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18372 { (case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_try") 2>&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; } &&
18381 { ac_try='test -s conftest$ac_exeext'
18382 { (case "(($ac_try" in
18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384 *) ac_try_echo=$ac_try;;
18386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18387 (eval "$ac_try") 2>&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_cv_lib_gcc___divdi3=yes
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 ac_cv_lib_gcc___divdi3=no
18399 rm -f core conftest.err conftest.$ac_objext \
18400 conftest$ac_exeext conftest.$ac_ext
18401 LIBS=$ac_check_lib_save_LIBS
18403 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18404 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18405 if test $ac_cv_lib_gcc___divdi3 = yes; then
18407 cat >>confdefs.h <<\_ACEOF
18408 #define HAVE___DIVDI3 1
18413 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18414 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18415 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18418 ac_check_lib_save_LIBS=$LIBS
18420 cat >conftest.$ac_ext <<_ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18427 /* Override any GCC internal prototype to avoid an error.
18428 Use char because int might match the return type of a GCC
18429 builtin and then its argument prototype would still apply. */
18437 return __fixdfdi ();
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (ac_try="$ac_link"
18444 case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_link") 2>conftest.er1
18451 grep -v '^ *+' conftest.er1 >conftest.err
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } &&
18456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest$ac_exeext'
18467 { (case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_try") 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 ac_cv_lib_gcc___fixdfdi=yes
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 ac_cv_lib_gcc___fixdfdi=no
18484 rm -f core conftest.err conftest.$ac_objext \
18485 conftest$ac_exeext conftest.$ac_ext
18486 LIBS=$ac_check_lib_save_LIBS
18488 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18489 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18490 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18492 cat >>confdefs.h <<\_ACEOF
18493 #define HAVE___FIXDFDI 1
18498 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18499 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18500 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 ac_check_lib_save_LIBS=$LIBS
18505 cat >conftest.$ac_ext <<_ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18512 /* Override any GCC internal prototype to avoid an error.
18513 Use char because int might match the return type of a GCC
18514 builtin and then its argument prototype would still apply. */
18522 return __fixsfdi ();
18527 rm -f conftest.$ac_objext conftest$ac_exeext
18528 if { (ac_try="$ac_link"
18529 case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_link") 2>conftest.er1
18536 grep -v '^ *+' conftest.er1 >conftest.err
18538 cat conftest.err >&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18542 { (case "(($ac_try" in
18543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544 *) ac_try_echo=$ac_try;;
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547 (eval "$ac_try") 2>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; } &&
18551 { ac_try='test -s conftest$ac_exeext'
18552 { (case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_try") 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_cv_lib_gcc___fixsfdi=yes
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 ac_cv_lib_gcc___fixsfdi=no
18569 rm -f core conftest.err conftest.$ac_objext \
18570 conftest$ac_exeext conftest.$ac_ext
18571 LIBS=$ac_check_lib_save_LIBS
18573 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18574 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18575 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18577 cat >>confdefs.h <<\_ACEOF
18578 #define HAVE___FIXSFDI 1
18583 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18584 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18585 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18588 ac_check_lib_save_LIBS=$LIBS
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18597 /* Override any GCC internal prototype to avoid an error.
18598 Use char because int might match the return type of a GCC
18599 builtin and then its argument prototype would still apply. */
18603 char __floatdidf ();
18607 return __floatdidf ();
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_link") 2>conftest.er1
18621 grep -v '^ *+' conftest.er1 >conftest.err
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18627 { (case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_try") 2>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest$ac_exeext'
18637 { (case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 ac_cv_lib_gcc___floatdidf=yes
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18651 ac_cv_lib_gcc___floatdidf=no
18654 rm -f core conftest.err conftest.$ac_objext \
18655 conftest$ac_exeext conftest.$ac_ext
18656 LIBS=$ac_check_lib_save_LIBS
18658 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18659 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18660 if test $ac_cv_lib_gcc___floatdidf = yes; then
18662 cat >>confdefs.h <<\_ACEOF
18663 #define HAVE___FLOATDIDF 1
18668 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18669 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18670 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 ac_check_lib_save_LIBS=$LIBS
18675 cat >conftest.$ac_ext <<_ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18682 /* Override any GCC internal prototype to avoid an error.
18683 Use char because int might match the return type of a GCC
18684 builtin and then its argument prototype would still apply. */
18692 return __lshrdi3 ();
18697 rm -f conftest.$ac_objext conftest$ac_exeext
18698 if { (ac_try="$ac_link"
18699 case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_link") 2>conftest.er1
18706 grep -v '^ *+' conftest.er1 >conftest.err
18708 cat conftest.err >&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } &&
18711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18712 { (case "(($ac_try" in
18713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714 *) ac_try_echo=$ac_try;;
18716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717 (eval "$ac_try") 2>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; } &&
18721 { ac_try='test -s conftest$ac_exeext'
18722 { (case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727 (eval "$ac_try") 2>&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
18731 ac_cv_lib_gcc___lshrdi3=yes
18733 echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18736 ac_cv_lib_gcc___lshrdi3=no
18739 rm -f core conftest.err conftest.$ac_objext \
18740 conftest$ac_exeext conftest.$ac_ext
18741 LIBS=$ac_check_lib_save_LIBS
18743 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18744 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18745 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18747 cat >>confdefs.h <<\_ACEOF
18748 #define HAVE___LSHRDI3 1
18753 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18754 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18755 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18758 ac_check_lib_save_LIBS=$LIBS
18760 cat >conftest.$ac_ext <<_ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18767 /* Override any GCC internal prototype to avoid an error.
18768 Use char because int might match the return type of a GCC
18769 builtin and then its argument prototype would still apply. */
18777 return __moddi3 ();
18782 rm -f conftest.$ac_objext conftest$ac_exeext
18783 if { (ac_try="$ac_link"
18784 case "(($ac_try" in
18785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786 *) ac_try_echo=$ac_try;;
18788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_link") 2>conftest.er1
18791 grep -v '^ *+' conftest.er1 >conftest.err
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
18796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18797 { (case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_try") 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; } &&
18806 { ac_try='test -s conftest$ac_exeext'
18807 { (case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_try") 2>&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; }; then
18816 ac_cv_lib_gcc___moddi3=yes
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 ac_cv_lib_gcc___moddi3=no
18824 rm -f core conftest.err conftest.$ac_objext \
18825 conftest$ac_exeext conftest.$ac_ext
18826 LIBS=$ac_check_lib_save_LIBS
18828 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18829 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18830 if test $ac_cv_lib_gcc___moddi3 = yes; then
18832 cat >>confdefs.h <<\_ACEOF
18833 #define HAVE___MODDI3 1
18838 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18839 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18840 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18843 ac_check_lib_save_LIBS=$LIBS
18845 cat >conftest.$ac_ext <<_ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18852 /* Override any GCC internal prototype to avoid an error.
18853 Use char because int might match the return type of a GCC
18854 builtin and then its argument prototype would still apply. */
18862 return __udivdi3 ();
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (ac_try="$ac_link"
18869 case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_link") 2>conftest.er1
18876 grep -v '^ *+' conftest.er1 >conftest.err
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18882 { (case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_try") 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try='test -s conftest$ac_exeext'
18892 { (case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_try") 2>&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; }; then
18901 ac_cv_lib_gcc___udivdi3=yes
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18906 ac_cv_lib_gcc___udivdi3=no
18909 rm -f core conftest.err conftest.$ac_objext \
18910 conftest$ac_exeext conftest.$ac_ext
18911 LIBS=$ac_check_lib_save_LIBS
18913 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18914 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18915 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18917 cat >>confdefs.h <<\_ACEOF
18918 #define HAVE___UDIVDI3 1
18923 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18924 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18925 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 ac_check_lib_save_LIBS=$LIBS
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18937 /* Override any GCC internal prototype to avoid an error.
18938 Use char because int might match the return type of a GCC
18939 builtin and then its argument prototype would still apply. */
18947 return __umoddi3 ();
18952 rm -f conftest.$ac_objext conftest$ac_exeext
18953 if { (ac_try="$ac_link"
18954 case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959 (eval "$ac_link") 2>conftest.er1
18961 grep -v '^ *+' conftest.er1 >conftest.err
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
18966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18967 { (case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_try") 2>&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; } &&
18976 { ac_try='test -s conftest$ac_exeext'
18977 { (case "(($ac_try" in
18978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979 *) ac_try_echo=$ac_try;;
18981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18982 (eval "$ac_try") 2>&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; }; then
18986 ac_cv_lib_gcc___umoddi3=yes
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18991 ac_cv_lib_gcc___umoddi3=no
18994 rm -f core conftest.err conftest.$ac_objext \
18995 conftest$ac_exeext conftest.$ac_ext
18996 LIBS=$ac_check_lib_save_LIBS
18998 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18999 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19000 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19002 cat >>confdefs.h <<\_ACEOF
19003 #define HAVE___UMODDI3 1
19009 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19010 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19011 if test "${ac_cv_lib_gcc___main+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 ac_check_lib_save_LIBS=$LIBS
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19023 /* Override any GCC internal prototype to avoid an error.
19024 Use char because int might match the return type of a GCC
19025 builtin and then its argument prototype would still apply. */
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19047 grep -v '^ *+' conftest.er1 >conftest.err
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_try") 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; }; then
19072 ac_cv_lib_gcc___main=yes
19074 echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19077 ac_cv_lib_gcc___main=no
19080 rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19082 LIBS=$ac_check_lib_save_LIBS
19084 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19085 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19086 if test $ac_cv_lib_gcc___main = yes; then
19088 cat >>confdefs.h <<\_ACEOF
19089 #define HAVE___MAIN 1
19094 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19095 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19096 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19099 ac_check_lib_save_LIBS=$LIBS
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19108 /* Override any GCC internal prototype to avoid an error.
19109 Use char because int might match the return type of a GCC
19110 builtin and then its argument prototype would still apply. */
19118 return __cmpdi2 ();
19123 rm -f conftest.$ac_objext conftest$ac_exeext
19124 if { (ac_try="$ac_link"
19125 case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_link") 2>conftest.er1
19132 grep -v '^ *+' conftest.er1 >conftest.err
19134 cat conftest.err >&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } &&
19137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19138 { (case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_try") 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; } &&
19147 { ac_try='test -s conftest$ac_exeext'
19148 { (case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_try") 2>&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; }; then
19157 ac_cv_lib_gcc___cmpdi2=yes
19159 echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_lib_gcc___cmpdi2=no
19165 rm -f core conftest.err conftest.$ac_objext \
19166 conftest$ac_exeext conftest.$ac_ext
19167 LIBS=$ac_check_lib_save_LIBS
19169 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19170 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19171 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19173 cat >>confdefs.h <<\_ACEOF
19174 #define HAVE___CMPDI2 1
19181 if test "$llvm_cv_os_type" = "MingW" ; then
19182 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19183 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19184 cat >conftest.$ac_ext <<_ACEOF
19185 #include <windows.h>
19186 #include <imagehlp.h>
19187 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19188 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19199 grep -v '^ *+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
19204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; } &&
19214 { ac_try='test -s conftest.$ac_objext'
19215 { (case "(($ac_try" in
19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220 (eval "$ac_try") 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19225 { echo "$as_me:$LINENO: result: yes" >&5
19226 echo "${ECHO_T}yes" >&6; }
19227 llvm_cv_win32_elmcb_pcstr="PCSTR"
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19234 { echo "$as_me:$LINENO: result: no" >&5
19235 echo "${ECHO_T}no" >&6; }
19236 llvm_cv_win32_elmcb_pcstr="PSTR"
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19242 cat >>confdefs.h <<_ACEOF
19243 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19249 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19250 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19251 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19255 ac_cpp='$CXXCPP $CPPFLAGS'
19256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19260 cat >conftest.$ac_ext <<_ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19275 rm -f conftest.$ac_objext
19276 if { (ac_try="$ac_compile"
19277 case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_compile") 2>conftest.er1
19284 grep -v '^ *+' conftest.er1 >conftest.err
19286 cat conftest.err >&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } &&
19289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19290 { (case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_try") 2>&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; } &&
19299 { ac_try='test -s conftest.$ac_objext'
19300 { (case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_try") 2>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 ac_cv_func_isnan_in_math_h=yes
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ac_cv_func_isnan_in_math_h=no
19317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319 ac_cpp='$CPP $CPPFLAGS'
19320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19325 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19326 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19329 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19331 cat >>confdefs.h <<\_ACEOF
19332 #define HAVE_ISNAN_IN_MATH_H 1
19337 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19338 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19339 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 ac_cpp='$CXXCPP $CPPFLAGS'
19344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19348 cat >conftest.$ac_ext <<_ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19363 rm -f conftest.$ac_objext
19364 if { (ac_try="$ac_compile"
19365 case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_compile") 2>conftest.er1
19372 grep -v '^ *+' conftest.er1 >conftest.err
19374 cat conftest.err >&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 ac_cv_func_isnan_in_cmath=yes
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 ac_cv_func_isnan_in_cmath=no
19405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19413 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19414 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19416 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19418 cat >>confdefs.h <<\_ACEOF
19419 #define HAVE_ISNAN_IN_CMATH 1
19424 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19425 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19426 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 ac_cpp='$CXXCPP $CPPFLAGS'
19431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19435 cat >conftest.$ac_ext <<_ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19445 float f; std::isnan(f);
19450 rm -f conftest.$ac_objext
19451 if { (ac_try="$ac_compile"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_compile") 2>conftest.er1
19459 grep -v '^ *+' conftest.er1 >conftest.err
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
19464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19465 { (case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_try") 2>&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; } &&
19474 { ac_try='test -s conftest.$ac_objext'
19475 { (case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_try") 2>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 ac_cv_func_std_isnan_in_cmath=yes
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 ac_cv_func_std_isnan_in_cmath=no
19492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19494 ac_cpp='$CPP $CPPFLAGS'
19495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19500 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19501 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19503 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19505 cat >>confdefs.h <<\_ACEOF
19506 #define HAVE_STD_ISNAN_IN_CMATH 1
19512 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19513 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19514 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 ac_cpp='$CXXCPP $CPPFLAGS'
19519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19538 rm -f conftest.$ac_objext
19539 if { (ac_try="$ac_compile"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_compile") 2>conftest.er1
19547 grep -v '^ *+' conftest.er1 >conftest.err
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19553 { (case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_try") 2>&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_try") 2>&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; }; then
19572 ac_cv_func_isinf_in_math_h=yes
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 ac_cv_func_isinf_in_math_h=no
19580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582 ac_cpp='$CPP $CPPFLAGS'
19583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19588 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19589 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19591 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_ISINF_IN_MATH_H 1
19599 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19600 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19601 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 ac_cpp='$CXXCPP $CPPFLAGS'
19606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19610 cat >conftest.$ac_ext <<_ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19625 rm -f conftest.$ac_objext
19626 if { (ac_try="$ac_compile"
19627 case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_compile") 2>conftest.er1
19634 grep -v '^ *+' conftest.er1 >conftest.err
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; } &&
19649 { ac_try='test -s conftest.$ac_objext'
19650 { (case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_try") 2>&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; }; then
19659 ac_cv_func_isinf_in_cmath=yes
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19664 ac_cv_func_isinf_in_cmath=no
19667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19669 ac_cpp='$CPP $CPPFLAGS'
19670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19675 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19676 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19678 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE_ISINF_IN_CMATH 1
19686 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19687 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19688 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 ac_cpp='$CXXCPP $CPPFLAGS'
19693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19697 cat >conftest.$ac_ext <<_ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19707 float f; std::isinf(f)}
19712 rm -f conftest.$ac_objext
19713 if { (ac_try="$ac_compile"
19714 case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_compile") 2>conftest.er1
19721 grep -v '^ *+' conftest.er1 >conftest.err
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest.$ac_objext'
19737 { (case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742 (eval "$ac_try") 2>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 ac_cv_func_std_isinf_in_cmath=yes
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19751 ac_cv_func_std_isinf_in_cmath=no
19754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19756 ac_cpp='$CPP $CPPFLAGS'
19757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19762 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19763 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19765 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19767 cat >>confdefs.h <<\_ACEOF
19768 #define HAVE_STD_ISINF_IN_CMATH 1
19773 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19774 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19775 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 ac_cpp='$CXXCPP $CPPFLAGS'
19780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19784 cat >conftest.$ac_ext <<_ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 #include <ieeefp.h>
19794 float f; finite(f);
19799 rm -f conftest.$ac_objext
19800 if { (ac_try="$ac_compile"
19801 case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_compile") 2>conftest.er1
19808 grep -v '^ *+' conftest.er1 >conftest.err
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19814 { (case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_try") 2>&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest.$ac_objext'
19824 { (case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_try") 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 ac_cv_func_finite_in_ieeefp_h=yes
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19838 ac_cv_func_finite_in_ieeefp_h=no
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19843 ac_cpp='$CPP $CPPFLAGS'
19844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19849 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19850 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19852 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19854 cat >>confdefs.h <<\_ACEOF
19855 #define HAVE_FINITE_IN_IEEEFP_H 1
19862 if test "$llvm_cv_platform_type" = "Unix" ; then
19865 for ac_header in stdlib.h unistd.h
19867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 ac_res=`eval echo '${'$as_ac_Header'}'`
19875 { echo "$as_me:$LINENO: result: $ac_res" >&5
19876 echo "${ECHO_T}$ac_res" >&6; }
19878 # Is the header compilable?
19879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19881 cat >conftest.$ac_ext <<_ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 $ac_includes_default
19888 #include <$ac_header>
19890 rm -f conftest.$ac_objext
19891 if { (ac_try="$ac_compile"
19892 case "(($ac_try" in
19893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894 *) ac_try_echo=$ac_try;;
19896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897 (eval "$ac_compile") 2>conftest.er1
19899 grep -v '^ *+' conftest.er1 >conftest.err
19901 cat conftest.err >&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
19904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19905 { (case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_try") 2>&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; } &&
19914 { ac_try='test -s conftest.$ac_objext'
19915 { (case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19920 (eval "$ac_try") 2>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19924 ac_header_compiler=yes
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ac_header_compiler=no
19932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19934 echo "${ECHO_T}$ac_header_compiler" >&6; }
19936 # Is the header present?
19937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19939 cat >conftest.$ac_ext <<_ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19945 #include <$ac_header>
19947 if { (ac_try="$ac_cpp conftest.$ac_ext"
19948 case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19955 grep -v '^ *+' conftest.er1 >conftest.err
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } >/dev/null; then
19960 if test -s conftest.err; then
19961 ac_cpp_err=$ac_c_preproc_warn_flag
19962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19969 if test -z "$ac_cpp_err"; then
19970 ac_header_preproc=yes
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 ac_header_preproc=no
19978 rm -f conftest.err conftest.$ac_ext
19979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19980 echo "${ECHO_T}$ac_header_preproc" >&6; }
19982 # So? What about this header?
19983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19989 ac_header_preproc=yes
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20005 ## ------------------------------ ##
20006 ## Report this to bugs@yourdomain ##
20007 ## ------------------------------ ##
20009 ) | sed "s/^/$as_me: WARNING: /" >&2
20012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20017 eval "$as_ac_Header=\$ac_header_preproc"
20019 ac_res=`eval echo '${'$as_ac_Header'}'`
20020 { echo "$as_me:$LINENO: result: $ac_res" >&5
20021 echo "${ECHO_T}$ac_res" >&6; }
20024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20034 for ac_func in getpagesize
20036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 cat >conftest.$ac_ext <<_ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h. */
20048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20050 #define $ac_func innocuous_$ac_func
20052 /* System header to define __stub macros and hopefully few prototypes,
20053 which can conflict with char $ac_func (); below.
20054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20055 <limits.h> exists even on freestanding compilers. */
20058 # include <limits.h>
20060 # include <assert.h>
20065 /* Override any GCC internal prototype to avoid an error.
20066 Use char because int might match the return type of a GCC
20067 builtin and then its argument prototype would still apply. */
20072 /* The GNU C library defines this for functions which it implements
20073 to always fail with ENOSYS. Some functions are actually named
20074 something starting with __ and the normal name is an alias. */
20075 #if defined __stub_$ac_func || defined __stub___$ac_func
20082 return $ac_func ();
20087 rm -f conftest.$ac_objext conftest$ac_exeext
20088 if { (ac_try="$ac_link"
20089 case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_link") 2>conftest.er1
20096 grep -v '^ *+' conftest.er1 >conftest.err
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
20101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20102 { (case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_try") 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest$ac_exeext'
20112 { (case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_try") 2>&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 eval "$as_ac_var=yes"
20123 echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20126 eval "$as_ac_var=no"
20129 rm -f core conftest.err conftest.$ac_objext \
20130 conftest$ac_exeext conftest.$ac_ext
20132 ac_res=`eval echo '${'$as_ac_var'}'`
20133 { echo "$as_me:$LINENO: result: $ac_res" >&5
20134 echo "${ECHO_T}$ac_res" >&6; }
20135 if test `eval echo '${'$as_ac_var'}'` = yes; then
20136 cat >>confdefs.h <<_ACEOF
20137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20143 { echo "$as_me:$LINENO: checking for working mmap" >&5
20144 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20145 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 if test "$cross_compiling" = yes; then
20149 ac_cv_func_mmap_fixed_mapped=no
20151 cat >conftest.$ac_ext <<_ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 $ac_includes_default
20158 /* malloc might have been renamed as rpl_malloc. */
20161 /* Thanks to Mike Haertel and Jim Avera for this test.
20162 Here is a matrix of mmap possibilities:
20163 mmap private not fixed
20164 mmap private fixed at somewhere currently unmapped
20165 mmap private fixed at somewhere already mapped
20166 mmap shared not fixed
20167 mmap shared fixed at somewhere currently unmapped
20168 mmap shared fixed at somewhere already mapped
20169 For private mappings, we should verify that changes cannot be read()
20170 back from the file, nor mmap's back from the file at a different
20171 address. (There have been systems where private was not correctly
20172 implemented like the infamous i386 svr4.0, and systems where the
20173 VM page cache was not coherent with the file system buffer cache
20174 like early versions of FreeBSD and possibly contemporary NetBSD.)
20175 For shared mappings, we should conversely verify that changes get
20176 propagated back to all the places they're supposed to be.
20178 Grep wants private fixed already mapped.
20179 The main things grep needs to know about mmap are:
20180 * does it exist and is it safe to write into the mmap'd area
20181 * how to use it (BSD variants) */
20184 #include <sys/mman.h>
20186 #if !STDC_HEADERS && !HAVE_STDLIB_H
20190 /* This mess was copied from the GNU getpagesize.h. */
20191 #if !HAVE_GETPAGESIZE
20192 /* Assume that all systems that can run configure have sys/param.h. */
20193 # if !HAVE_SYS_PARAM_H
20194 # define HAVE_SYS_PARAM_H 1
20197 # ifdef _SC_PAGESIZE
20198 # define getpagesize() sysconf(_SC_PAGESIZE)
20199 # else /* no _SC_PAGESIZE */
20200 # if HAVE_SYS_PARAM_H
20201 # include <sys/param.h>
20202 # ifdef EXEC_PAGESIZE
20203 # define getpagesize() EXEC_PAGESIZE
20204 # else /* no EXEC_PAGESIZE */
20206 # define getpagesize() NBPG * CLSIZE
20209 # endif /* no CLSIZE */
20210 # else /* no NBPG */
20212 # define getpagesize() NBPC
20213 # else /* no NBPC */
20215 # define getpagesize() PAGESIZE
20216 # endif /* PAGESIZE */
20217 # endif /* no NBPC */
20218 # endif /* no NBPG */
20219 # endif /* no EXEC_PAGESIZE */
20220 # else /* no HAVE_SYS_PARAM_H */
20221 # define getpagesize() 8192 /* punt totally */
20222 # endif /* no HAVE_SYS_PARAM_H */
20223 # endif /* no _SC_PAGESIZE */
20225 #endif /* no HAVE_GETPAGESIZE */
20230 char *data, *data2, *data3;
20234 pagesize = getpagesize ();
20236 /* First, make a file with some known garbage in it. */
20237 data = (char *) malloc (pagesize);
20240 for (i = 0; i < pagesize; ++i)
20241 *(data + i) = rand ();
20243 fd = creat ("conftest.mmap", 0600);
20246 if (write (fd, data, pagesize) != pagesize)
20250 /* Next, try to mmap the file at a fixed address which already has
20251 something else allocated at it. If we can, also make sure that
20252 we see the same garbage. */
20253 fd = open ("conftest.mmap", O_RDWR);
20256 data2 = (char *) malloc (2 * pagesize);
20259 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20260 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20261 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20263 for (i = 0; i < pagesize; ++i)
20264 if (*(data + i) != *(data2 + i))
20267 /* Finally, make sure that changes to the mapped area do not
20268 percolate back to the file as seen by read(). (This is a bug on
20269 some variants of i386 svr4.0.) */
20270 for (i = 0; i < pagesize; ++i)
20271 *(data2 + i) = *(data2 + i) + 1;
20272 data3 = (char *) malloc (pagesize);
20275 if (read (fd, data3, pagesize) != pagesize)
20277 for (i = 0; i < pagesize; ++i)
20278 if (*(data + i) != *(data3 + i))
20284 rm -f conftest$ac_exeext
20285 if { (ac_try="$ac_link"
20286 case "(($ac_try" in
20287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288 *) ac_try_echo=$ac_try;;
20290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20291 (eval "$ac_link") 2>&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20295 { (case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300 (eval "$ac_try") 2>&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 ac_cv_func_mmap_fixed_mapped=yes
20306 echo "$as_me: program exited with status $ac_status" >&5
20307 echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20310 ( exit $ac_status )
20311 ac_cv_func_mmap_fixed_mapped=no
20313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20318 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20319 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20320 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20322 cat >>confdefs.h <<\_ACEOF
20323 #define HAVE_MMAP 1
20327 rm -f conftest.mmap
20329 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20330 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20331 if test "${ac_cv_func_mmap_file+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20335 ac_cpp='$CPP $CPPFLAGS'
20336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20340 if test "$cross_compiling" = yes; then
20341 ac_cv_func_mmap_file=no
20343 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20351 #include <sys/types.h>
20352 #include <sys/mman.h>
20360 fd = creat ("foo",0777);
20361 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20363 return (fd != (int) MAP_FAILED);
20368 rm -f conftest$ac_exeext
20369 if { (ac_try="$ac_link"
20370 case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_link") 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20379 { (case "(($ac_try" in
20380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381 *) ac_try_echo=$ac_try;;
20383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384 (eval "$ac_try") 2>&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; }; then
20388 ac_cv_func_mmap_file=yes
20390 echo "$as_me: program exited with status $ac_status" >&5
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ( exit $ac_status )
20395 ac_cv_func_mmap_file=no
20397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20402 ac_cpp='$CPP $CPPFLAGS'
20403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20409 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20410 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20411 if test "$ac_cv_func_mmap_file" = yes; then
20413 cat >>confdefs.h <<\_ACEOF
20414 #define HAVE_MMAP_FILE
20421 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20422 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20423 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20424 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 if test "$llvm_cv_os_type" = "Interix" ; then
20427 ac_cv_need_dev_zero_for_mmap=yes
20429 ac_cv_need_dev_zero_for_mmap=no
20433 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20434 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20435 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20437 cat >>confdefs.h <<\_ACEOF
20438 #define NEED_DEV_ZERO_FOR_MMAP 1
20443 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20445 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20446 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20448 if test "$ac_cv_func_mmap_file" = "no"
20450 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20451 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20455 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20456 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20458 ac_cpp='$CXXCPP $CPPFLAGS'
20459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20463 cat >conftest.$ac_ext <<_ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20470 volatile unsigned long val = 1;
20471 __sync_synchronize();
20472 __sync_val_compare_and_swap(&val, 1, 0);
20473 __sync_add_and_fetch(&val, 1);
20474 __sync_sub_and_fetch(&val, 1);
20479 rm -f conftest.$ac_objext conftest$ac_exeext
20480 if { (ac_try="$ac_link"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_link") 2>conftest.er1
20488 grep -v '^ *+' conftest.er1 >conftest.err
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20494 { (case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_try") 2>&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; } &&
20503 { ac_try='test -s conftest$ac_exeext'
20504 { (case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_try") 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20514 ac_cpp='$CPP $CPPFLAGS'
20515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20519 { echo "$as_me:$LINENO: result: yes" >&5
20520 echo "${ECHO_T}yes" >&6; }
20522 cat >>confdefs.h <<\_ACEOF
20523 #define LLVM_HAS_ATOMICS 1
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20530 { echo "$as_me:$LINENO: result: no" >&5
20531 echo "${ECHO_T}no" >&6; }
20533 cat >>confdefs.h <<\_ACEOF
20534 #define LLVM_HAS_ATOMICS 0
20537 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20538 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20541 rm -f core conftest.err conftest.$ac_objext \
20542 conftest$ac_exeext conftest.$ac_ext
20545 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20546 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20547 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20548 if test "${llvm_cv_linux_mixed+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 ac_cpp='$CPP $CPPFLAGS'
20553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20557 cat >conftest.$ac_ext <<_ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20564 error: Not x86-64 even if uname says so!
20575 rm -f conftest.$ac_objext
20576 if { (ac_try="$ac_compile"
20577 case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_compile") 2>conftest.er1
20584 grep -v '^ *+' conftest.er1 >conftest.err
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } &&
20589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20590 { (case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_try") 2>&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; } &&
20599 { ac_try='test -s conftest.$ac_objext'
20600 { (case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_try") 2>&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; }; then
20609 llvm_cv_linux_mixed=no
20611 echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20614 llvm_cv_linux_mixed=yes
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20619 ac_cpp='$CPP $CPPFLAGS'
20620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20626 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20627 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20629 if test "$llvm_cv_linux_mixed" = "yes"; then
20630 llvm_cv_target_arch="x86"
20636 for ac_func in __dso_handle
20638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20652 #define $ac_func innocuous_$ac_func
20654 /* System header to define __stub macros and hopefully few prototypes,
20655 which can conflict with char $ac_func (); below.
20656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20657 <limits.h> exists even on freestanding compilers. */
20660 # include <limits.h>
20662 # include <assert.h>
20667 /* Override any GCC internal prototype to avoid an error.
20668 Use char because int might match the return type of a GCC
20669 builtin and then its argument prototype would still apply. */
20674 /* The GNU C library defines this for functions which it implements
20675 to always fail with ENOSYS. Some functions are actually named
20676 something starting with __ and the normal name is an alias. */
20677 #if defined __stub_$ac_func || defined __stub___$ac_func
20684 return $ac_func ();
20689 rm -f conftest.$ac_objext conftest$ac_exeext
20690 if { (ac_try="$ac_link"
20691 case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_link") 2>conftest.er1
20698 grep -v '^ *+' conftest.er1 >conftest.err
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
20703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest$ac_exeext'
20714 { (case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_try") 2>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20723 eval "$as_ac_var=yes"
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 eval "$as_ac_var=no"
20731 rm -f core conftest.err conftest.$ac_objext \
20732 conftest$ac_exeext conftest.$ac_ext
20734 ac_res=`eval echo '${'$as_ac_var'}'`
20735 { echo "$as_me:$LINENO: result: $ac_res" >&5
20736 echo "${ECHO_T}$ac_res" >&6; }
20737 if test `eval echo '${'$as_ac_var'}'` = yes; then
20738 cat >>confdefs.h <<_ACEOF
20739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20746 SHLIBEXT=$libltdl_cv_shlibext
20749 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20752 # Translate the various configuration directories and other basic
20753 # information into substitutions that will end up in Makefile.config.in
20754 # that these configured values can be used by the makefiles
20755 if test "${prefix}" = "NONE" ; then
20756 prefix="/usr/local"
20758 eval LLVM_PREFIX="${prefix}";
20759 eval LLVM_BINDIR="${prefix}/bin";
20760 eval LLVM_LIBDIR="${prefix}/lib";
20761 eval LLVM_DATADIR="${prefix}/share/llvm";
20762 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20763 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20764 eval LLVM_INCLUDEDIR="${prefix}/include";
20765 eval LLVM_INFODIR="${prefix}/info";
20766 eval LLVM_MANDIR="${prefix}/man";
20767 LLVM_CONFIGTIME=`date`
20779 # Place the various directores into the config.h file as #defines so that we
20780 # can know about the installation paths within LLVM.
20782 cat >>confdefs.h <<_ACEOF
20783 #define LLVM_PREFIX "$LLVM_PREFIX"
20787 cat >>confdefs.h <<_ACEOF
20788 #define LLVM_BINDIR "$LLVM_BINDIR"
20792 cat >>confdefs.h <<_ACEOF
20793 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20797 cat >>confdefs.h <<_ACEOF
20798 #define LLVM_DATADIR "$LLVM_DATADIR"
20802 cat >>confdefs.h <<_ACEOF
20803 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20807 cat >>confdefs.h <<_ACEOF
20808 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20812 cat >>confdefs.h <<_ACEOF
20813 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20817 cat >>confdefs.h <<_ACEOF
20818 #define LLVM_INFODIR "$LLVM_INFODIR"
20822 cat >>confdefs.h <<_ACEOF
20823 #define LLVM_MANDIR "$LLVM_MANDIR"
20827 cat >>confdefs.h <<_ACEOF
20828 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20832 cat >>confdefs.h <<_ACEOF
20833 #define LLVM_HOSTTRIPLE "$host"
20837 # Determine which bindings to build.
20838 if test "$BINDINGS_TO_BUILD" = auto ; then
20839 BINDINGS_TO_BUILD=""
20840 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20841 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20844 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20847 # This isn't really configurey, but it avoids having to repeat the list in
20852 # Do any work necessary to ensure that bindings have what they need.
20853 binding_prereqs_failed=0
20854 for a_binding in $BINDINGS_TO_BUILD ; do
20855 case "$a_binding" in
20857 if test "x$OCAMLC" = x ; then
20858 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20859 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20860 binding_prereqs_failed=1
20862 if test "x$OCAMLDEP" = x ; then
20863 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20864 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20865 binding_prereqs_failed=1
20867 if test "x$OCAMLOPT" = x ; then
20868 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20869 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20871 if test "x$with_ocaml_libdir" != xauto ; then
20872 OCAML_LIBDIR=$with_ocaml_libdir
20875 ocaml_stdlib="`"$OCAMLC" -where`"
20876 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20878 # ocaml stdlib is beneath our prefix; use stdlib
20879 OCAML_LIBDIR=$ocaml_stdlib
20882 # ocaml stdlib is outside our prefix; use libdir/ocaml
20883 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20890 if test "$binding_prereqs_failed" = 1 ; then
20891 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20892 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20893 { (exit 1); exit 1; }; }
20896 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20897 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20898 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20902 ac_cpp='$CXXCPP $CPPFLAGS'
20903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20907 oldcxxflags="$CXXFLAGS"
20908 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20909 cat >conftest.$ac_ext <<_ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_compile") 2>conftest.er1
20933 grep -v '^ *+' conftest.er1 >conftest.err
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20939 { (case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_try") 2>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; } &&
20948 { ac_try='test -s conftest.$ac_objext'
20949 { (case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20954 (eval "$ac_try") 2>&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 llvm_cv_cxx_visibility_inlines_hidden=yes
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 llvm_cv_cxx_visibility_inlines_hidden=no
20966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20967 CXXFLAGS="$oldcxxflags"
20969 ac_cpp='$CPP $CPPFLAGS'
20970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20976 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20977 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20978 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20979 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20982 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20987 if test "$llvm_cv_link_use_r" = "yes" ; then
20994 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20995 RDYNAMIC="-Wl,-export-dynamic"
21003 ac_config_files="$ac_config_files Makefile.common"
21005 ac_config_files="$ac_config_files Makefile.llvm.config"
21008 ac_config_commands="$ac_config_commands Makefile"
21011 ac_config_commands="$ac_config_commands lib/Makefile"
21014 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21017 ac_config_commands="$ac_config_commands tools/Makefile"
21020 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21024 cat >confcache <<\_ACEOF
21025 # This file is a shell script that caches the results of configure
21026 # tests run on this system so they can be shared between configure
21027 # scripts and configure runs, see configure's option --config-cache.
21028 # It is not useful on other systems. If it contains results you don't
21029 # want to keep, you may remove or edit it.
21031 # config.status only pays attention to the cache file if you give it
21032 # the --recheck option to rerun configure.
21034 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21035 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21036 # following values.
21040 # The following way of writing the cache mishandles newlines in values,
21041 # but we know of no workaround that is simple, portable, and efficient.
21042 # So, we kill variables containing newlines.
21043 # Ultrix sh set writes to stderr and can't be redirected directly,
21044 # and sets the high bit in the cache file unless we assign to the vars.
21046 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21047 eval ac_val=\$$ac_var
21051 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21052 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21055 _ | IFS | as_nl) ;; #(
21056 *) $as_unset $ac_var ;;
21062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21063 *${as_nl}ac_space=\ *)
21064 # `set' does not quote correctly, so add quotes (double-quote
21065 # substitution turns \\\\ into \\, and sed turns \\ into \).
21068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21071 # `set' quotes correctly as required by POSIX, so do not add quotes.
21072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21085 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21086 if test -w "$cache_file"; then
21087 test "x$cache_file" != "x/dev/null" &&
21088 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21089 echo "$as_me: updating cache $cache_file" >&6;}
21090 cat confcache >$cache_file
21092 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21093 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21098 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21099 # Let make expand exec_prefix.
21100 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21102 # Transform confdefs.h into DEFS.
21103 # Protect against shell expansion while executing Makefile rules.
21104 # Protect against Makefile macro expansion.
21106 # If the first sed substitution is executed (which looks for macros that
21107 # take arguments), then branch to the quote section. Otherwise,
21108 # look for a macro that doesn't take arguments.
21112 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21114 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21118 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21131 DEFS=`sed -n "$ac_script" confdefs.h`
21136 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21137 # 1. Remove the extension, and $U if already installed.
21138 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21139 ac_i=`echo "$ac_i" | sed "$ac_script"`
21140 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21141 # will be set to the directory where LIBOBJS objects are built.
21142 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21143 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21145 LIBOBJS=$ac_libobjs
21147 LTLIBOBJS=$ac_ltlibobjs
21150 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21151 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21152 Usually this means the macro was only invoked conditionally." >&5
21153 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21154 Usually this means the macro was only invoked conditionally." >&2;}
21155 { (exit 1); exit 1; }; }
21157 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21158 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21159 Usually this means the macro was only invoked conditionally." >&5
21160 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21161 Usually this means the macro was only invoked conditionally." >&2;}
21162 { (exit 1); exit 1; }; }
21165 : ${CONFIG_STATUS=./config.status}
21166 ac_clean_files_save=$ac_clean_files
21167 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21168 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21169 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21170 cat >$CONFIG_STATUS <<_ACEOF
21172 # Generated by $as_me.
21173 # Run this file to recreate the current configuration.
21174 # Compiler output produced by configure, useful for debugging
21175 # configure, is in config.log if it exists.
21178 ac_cs_recheck=false
21180 SHELL=\${CONFIG_SHELL-$SHELL}
21183 cat >>$CONFIG_STATUS <<\_ACEOF
21184 ## --------------------- ##
21185 ## M4sh Initialization. ##
21186 ## --------------------- ##
21188 # Be Bourne compatible
21189 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21192 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21193 # is contrary to our usage. Disable this feature.
21194 alias -g '${1+"$@"}'='"$@"'
21195 setopt NO_GLOB_SUBST
21197 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21199 BIN_SH=xpg4; export BIN_SH # for Tru64
21200 DUALCASE=1; export DUALCASE # for MKS sh
21204 # Avoid depending upon Character Ranges.
21205 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21206 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21207 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21208 as_cr_digits='0123456789'
21209 as_cr_alnum=$as_cr_Letters$as_cr_digits
21211 # The user is always right.
21212 if test "${PATH_SEPARATOR+set}" != set; then
21213 echo "#! /bin/sh" >conf$$.sh
21214 echo "exit 0" >>conf$$.sh
21216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21224 # Support unset when possible.
21225 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21233 # We need space, tab and new line, in precisely that order. Quoting is
21234 # there to prevent editors from complaining about space-tab.
21235 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21236 # splitting by setting IFS to empty value.)
21241 # Find who we are. Look in the path if we contain no directory separator.
21243 *[\\/]* ) as_myself=$0 ;;
21244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21245 for as_dir in $PATH
21248 test -z "$as_dir" && as_dir=.
21249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21255 # We did not find ourselves, most probably we were run as `sh COMMAND'
21256 # in which case we are not to be found in the path.
21257 if test "x$as_myself" = x; then
21260 if test ! -f "$as_myself"; then
21261 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21262 { (exit 1); exit 1; }
21265 # Work around bugs in pre-3.0 UWIN ksh.
21266 for as_var in ENV MAIL MAILPATH
21267 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21275 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21276 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21277 LC_TELEPHONE LC_TIME
21279 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21280 eval $as_var=C; export $as_var
21282 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21286 # Required to use basename.
21287 if expr a : '\(a\)' >/dev/null 2>&1 &&
21288 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21294 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21295 as_basename=basename
21301 # Name of the executable.
21302 as_me=`$as_basename -- "$0" ||
21303 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21304 X"$0" : 'X\(//\)$' \| \
21305 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21307 sed '/^.*\/\([^/][^/]*\)\/*$/{
21326 as_lineno_1=$LINENO
21327 as_lineno_2=$LINENO
21328 test "x$as_lineno_1" != "x$as_lineno_2" &&
21329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21331 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21332 # uniformly replaced by the line number. The first 'sed' inserts a
21333 # line-number line after each line using $LINENO; the second 'sed'
21334 # does the real work. The second script uses 'N' to pair each
21335 # line-number line with the line containing $LINENO, and appends
21336 # trailing '-' during substitution so that $LINENO is not a special
21337 # case at line end.
21338 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21339 # scripts with optimization help from Paolo Bonzini. Blame Lee
21340 # E. McMahon (1931-1989) for sed's syntax. :-)
21352 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21355 ' >$as_me.lineno &&
21356 chmod +x "$as_me.lineno" ||
21357 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21358 { (exit 1); exit 1; }; }
21360 # Don't try to exec as it changes $[0], causing all sort of problems
21361 # (the dirname of $[0] is not the place where we might find the
21362 # original and so on. Autoconf is especially sensitive to this).
21363 . "./$as_me.lineno"
21364 # Exit status is that of the last command.
21369 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21375 ECHO_C= ECHO_N= ECHO_T=
21376 case `echo -n x` in
21378 case `echo 'x\c'` in
21379 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21386 if expr a : '\(a\)' >/dev/null 2>&1 &&
21387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21393 rm -f conf$$ conf$$.exe conf$$.file
21394 if test -d conf$$.dir; then
21395 rm -f conf$$.dir/conf$$.file
21401 if ln -s conf$$.file conf$$ 2>/dev/null; then
21403 # ... but there are two gotchas:
21404 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21405 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21406 # In both cases, we have to default to `cp -p'.
21407 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21409 elif ln conf$$.file conf$$ 2>/dev/null; then
21414 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21415 rmdir conf$$.dir 2>/dev/null
21417 if mkdir -p . 2>/dev/null; then
21420 test -d ./-p && rmdir ./-p
21424 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21425 # systems may use methods other than mode bits to determine executability.
21426 cat >conf$$.file <<_ASEOF
21430 chmod +x conf$$.file
21431 if test -x conf$$.file >/dev/null 2>&1; then
21432 as_executable_p="test -x"
21438 # Sed expression to map a string onto a valid CPP name.
21439 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21441 # Sed expression to map a string onto a valid variable name.
21442 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21447 # Save the log message, to keep $[0] and so on meaningful, and to
21448 # report actual input values of CONFIG_FILES etc. instead of their
21449 # values after options handling.
21451 This file was extended by [SAMPLE] $as_me [x.xx], which was
21452 generated by GNU Autoconf 2.60. Invocation command line was
21454 CONFIG_FILES = $CONFIG_FILES
21455 CONFIG_HEADERS = $CONFIG_HEADERS
21456 CONFIG_LINKS = $CONFIG_LINKS
21457 CONFIG_COMMANDS = $CONFIG_COMMANDS
21460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21465 cat >>$CONFIG_STATUS <<_ACEOF
21466 # Files that config.status was made for.
21467 config_files="$ac_config_files"
21468 config_commands="$ac_config_commands"
21472 cat >>$CONFIG_STATUS <<\_ACEOF
21474 \`$as_me' instantiates files from templates according to the
21475 current configuration.
21477 Usage: $0 [OPTIONS] [FILE]...
21479 -h, --help print this help, then exit
21480 -V, --version print version number, then exit
21481 -q, --quiet do not print progress messages
21482 -d, --debug don't remove temporary files
21483 --recheck update $as_me by reconfiguring in the same conditions
21484 --file=FILE[:TEMPLATE]
21485 instantiate the configuration file FILE
21487 Configuration files:
21490 Configuration commands:
21493 Report bugs to <bug-autoconf@gnu.org>."
21496 cat >>$CONFIG_STATUS <<_ACEOF
21498 [SAMPLE] config.status [x.xx]
21499 configured by $0, generated by GNU Autoconf 2.60,
21500 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21502 Copyright (C) 2006 Free Software Foundation, Inc.
21503 This config.status script is free software; the Free Software Foundation
21504 gives unlimited permission to copy, distribute and modify it."
21511 cat >>$CONFIG_STATUS <<\_ACEOF
21512 # If no file are specified by the user, then we need to provide default
21513 # value. By we need to know if files were specified by the user.
21519 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21520 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21531 # Handling of the options.
21532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21534 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21535 echo "$ac_cs_version"; exit ;;
21536 --debug | --debu | --deb | --de | --d | -d )
21538 --file | --fil | --fi | --f )
21540 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21541 ac_need_defaults=false;;
21542 --he | --h | --help | --hel | -h )
21543 echo "$ac_cs_usage"; exit ;;
21544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21548 # This is an error.
21549 -*) { echo "$as_me: error: unrecognized option: $1
21550 Try \`$0 --help' for more information." >&2
21551 { (exit 1); exit 1; }; } ;;
21553 *) ac_config_targets="$ac_config_targets $1"
21554 ac_need_defaults=false ;;
21560 ac_configure_extra_args=
21562 if $ac_cs_silent; then
21564 ac_configure_extra_args="$ac_configure_extra_args --silent"
21568 cat >>$CONFIG_STATUS <<_ACEOF
21569 if \$ac_cs_recheck; then
21570 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21571 CONFIG_SHELL=$SHELL
21572 export CONFIG_SHELL
21573 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21577 cat >>$CONFIG_STATUS <<\_ACEOF
21581 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21582 ## Running $as_me. ##
21588 cat >>$CONFIG_STATUS <<_ACEOF
21592 llvm_src="${LLVM_SRC}"
21596 cat >>$CONFIG_STATUS <<\_ACEOF
21598 # Handling of arguments.
21599 for ac_config_target in $ac_config_targets
21601 case $ac_config_target in
21602 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21603 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21604 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21605 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21606 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21607 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21608 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21609 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21611 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21612 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21613 { (exit 1); exit 1; }; };;
21618 # If the user did not use the arguments to specify the items to instantiate,
21619 # then the envvar interface is used. Set only those that are not.
21620 # We use the long form for the default assignment because of an extremely
21621 # bizarre bug on SunOS 4.1.3.
21622 if $ac_need_defaults; then
21623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21627 # Have a temporary directory for convenience. Make it in the build tree
21628 # simply because there is no reason against having it here, and in addition,
21629 # creating and moving files from /tmp can sometimes cause problems.
21630 # Hook for its removal unless debugging.
21631 # Note that there is a small window in which the directory will not be cleaned:
21632 # after its creation but before its name has been assigned to `$tmp'.
21636 trap 'exit_status=$?
21637 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21639 trap '{ (exit 1); exit 1; }' 1 2 13 15
21641 # Create a (secure) tmp directory for tmp files.
21644 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21645 test -n "$tmp" && test -d "$tmp"
21648 tmp=./conf$$-$RANDOM
21649 (umask 077 && mkdir "$tmp")
21652 echo "$me: cannot create a temporary directory in ." >&2
21653 { (exit 1); exit 1; }
21657 # Set up the sed scripts for CONFIG_FILES section.
21660 # No need to generate the scripts if there are no CONFIG_FILES.
21661 # This happens for instance when ./config.status config.h
21662 if test -n "$CONFIG_FILES"; then
21669 for ac_last_try in false false false false false :; do
21670 cat >conf$$subs.sed <<_ACEOF
21671 SHELL!$SHELL$ac_delim
21672 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21673 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21674 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21675 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21676 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21677 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21678 exec_prefix!$exec_prefix$ac_delim
21679 prefix!$prefix$ac_delim
21680 program_transform_name!$program_transform_name$ac_delim
21681 bindir!$bindir$ac_delim
21682 sbindir!$sbindir$ac_delim
21683 libexecdir!$libexecdir$ac_delim
21684 datarootdir!$datarootdir$ac_delim
21685 datadir!$datadir$ac_delim
21686 sysconfdir!$sysconfdir$ac_delim
21687 sharedstatedir!$sharedstatedir$ac_delim
21688 localstatedir!$localstatedir$ac_delim
21689 includedir!$includedir$ac_delim
21690 oldincludedir!$oldincludedir$ac_delim
21691 docdir!$docdir$ac_delim
21692 infodir!$infodir$ac_delim
21693 htmldir!$htmldir$ac_delim
21694 dvidir!$dvidir$ac_delim
21695 pdfdir!$pdfdir$ac_delim
21696 psdir!$psdir$ac_delim
21697 libdir!$libdir$ac_delim
21698 localedir!$localedir$ac_delim
21699 mandir!$mandir$ac_delim
21700 DEFS!$DEFS$ac_delim
21701 ECHO_C!$ECHO_C$ac_delim
21702 ECHO_N!$ECHO_N$ac_delim
21703 ECHO_T!$ECHO_T$ac_delim
21704 LIBS!$LIBS$ac_delim
21705 build_alias!$build_alias$ac_delim
21706 host_alias!$host_alias$ac_delim
21707 target_alias!$target_alias$ac_delim
21708 LLVM_SRC!$LLVM_SRC$ac_delim
21709 LLVM_OBJ!$LLVM_OBJ$ac_delim
21710 LLVM_VERSION!$LLVM_VERSION$ac_delim
21712 CFLAGS!$CFLAGS$ac_delim
21713 LDFLAGS!$LDFLAGS$ac_delim
21714 CPPFLAGS!$CPPFLAGS$ac_delim
21715 ac_ct_CC!$ac_ct_CC$ac_delim
21716 EXEEXT!$EXEEXT$ac_delim
21717 OBJEXT!$OBJEXT$ac_delim
21719 CXXFLAGS!$CXXFLAGS$ac_delim
21720 ac_ct_CXX!$ac_ct_CXX$ac_delim
21722 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21723 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21724 subdirs!$subdirs$ac_delim
21725 build!$build$ac_delim
21726 build_cpu!$build_cpu$ac_delim
21727 build_vendor!$build_vendor$ac_delim
21728 build_os!$build_os$ac_delim
21729 host!$host$ac_delim
21730 host_cpu!$host_cpu$ac_delim
21731 host_vendor!$host_vendor$ac_delim
21732 host_os!$host_os$ac_delim
21733 target!$target$ac_delim
21734 target_cpu!$target_cpu$ac_delim
21735 target_vendor!$target_vendor$ac_delim
21736 target_os!$target_os$ac_delim
21738 HOST_OS!$HOST_OS$ac_delim
21739 TARGET_OS!$TARGET_OS$ac_delim
21740 LINKALL!$LINKALL$ac_delim
21741 NOLINKALL!$NOLINKALL$ac_delim
21742 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21743 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21744 ARCH!$ARCH$ac_delim
21745 ENDIAN!$ENDIAN$ac_delim
21746 GREP!$GREP$ac_delim
21747 EGREP!$EGREP$ac_delim
21748 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21749 BUILD_CC!$BUILD_CC$ac_delim
21750 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21751 BUILD_CXX!$BUILD_CXX$ac_delim
21752 CVSBUILD!$CVSBUILD$ac_delim
21753 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21754 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21755 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21756 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21757 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21758 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21759 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21761 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21762 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21763 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21764 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21765 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21766 ENABLE_PIC!$ENABLE_PIC$ac_delim
21767 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21770 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21772 elif $ac_last_try; then
21773 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21774 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21775 { (exit 1); exit 1; }; }
21777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21781 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21782 if test -n "$ac_eof"; then
21783 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21784 ac_eof=`expr $ac_eof + 1`
21787 cat >>$CONFIG_STATUS <<_ACEOF
21788 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21792 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21793 s/^/s,@/; s/!/@,|#_!!_#|/
21796 s/'"$ac_delim"'$/,g/; t
21798 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21799 ' >>$CONFIG_STATUS <conf$$subs.sed
21800 rm -f conf$$subs.sed
21801 cat >>$CONFIG_STATUS <<_ACEOF
21807 for ac_last_try in false false false false false :; do
21808 cat >conf$$subs.sed <<_ACEOF
21809 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21810 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21811 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21812 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21813 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21814 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21815 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21816 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21817 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21818 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21819 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21820 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21822 ifGNUmake!$ifGNUmake$ac_delim
21823 LN_S!$LN_S$ac_delim
21826 DATE!$DATE$ac_delim
21827 FIND!$FIND$ac_delim
21828 MKDIR!$MKDIR$ac_delim
21830 RANLIB!$RANLIB$ac_delim
21835 BINPWD!$BINPWD$ac_delim
21836 GRAPHVIZ!$GRAPHVIZ$ac_delim
21839 NEATO!$NEATO$ac_delim
21840 TWOPI!$TWOPI$ac_delim
21841 CIRCO!$CIRCO$ac_delim
21843 DOTTY!$DOTTY$ac_delim
21844 XDOT_PY!$XDOT_PY$ac_delim
21845 PERL!$PERL$ac_delim
21846 HAVE_PERL!$HAVE_PERL$ac_delim
21847 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21848 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21849 INSTALL_DATA!$INSTALL_DATA$ac_delim
21850 BZIP2!$BZIP2$ac_delim
21852 DOXYGEN!$DOXYGEN$ac_delim
21853 GROFF!$GROFF$ac_delim
21854 GZIPBIN!$GZIPBIN$ac_delim
21855 POD2HTML!$POD2HTML$ac_delim
21856 POD2MAN!$POD2MAN$ac_delim
21857 PDFROFF!$PDFROFF$ac_delim
21858 RUNTEST!$RUNTEST$ac_delim
21859 TCLSH!$TCLSH$ac_delim
21861 OCAMLC!$OCAMLC$ac_delim
21862 OCAMLOPT!$OCAMLOPT$ac_delim
21863 OCAMLDEP!$OCAMLDEP$ac_delim
21864 OCAMLDOC!$OCAMLDOC$ac_delim
21866 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21867 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21868 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21869 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21870 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21871 LIBADD_DL!$LIBADD_DL$ac_delim
21872 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21873 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21874 USE_UDIS86!$USE_UDIS86$ac_delim
21875 USE_OPROFILE!$USE_OPROFILE$ac_delim
21876 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21877 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21878 MMAP_FILE!$MMAP_FILE$ac_delim
21879 SHLIBEXT!$SHLIBEXT$ac_delim
21880 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21881 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21882 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21883 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21884 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21885 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21886 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21887 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21888 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21889 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21890 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21891 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21892 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21893 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21894 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21895 RPATH!$RPATH$ac_delim
21896 RDYNAMIC!$RDYNAMIC$ac_delim
21897 LIBOBJS!$LIBOBJS$ac_delim
21898 LTLIBOBJS!$LTLIBOBJS$ac_delim
21901 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21903 elif $ac_last_try; then
21904 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21905 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21906 { (exit 1); exit 1; }; }
21908 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21912 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21913 if test -n "$ac_eof"; then
21914 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21915 ac_eof=`expr $ac_eof + 1`
21918 cat >>$CONFIG_STATUS <<_ACEOF
21919 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21923 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21924 s/^/s,@/; s/!/@,|#_!!_#|/
21927 s/'"$ac_delim"'$/,g/; t
21929 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21930 ' >>$CONFIG_STATUS <conf$$subs.sed
21931 rm -f conf$$subs.sed
21932 cat >>$CONFIG_STATUS <<_ACEOF
21939 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21940 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21941 # trailing colons and then remove the whole line if VPATH becomes empty
21942 # (actually we leave an empty line to preserve line numbers).
21943 if test "x$srcdir" = x.; then
21944 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21945 s/:*\$(srcdir):*/:/
21946 s/:*\${srcdir}:*/:/
21948 s/^\([^=]*=[ ]*\):*/\1/
21954 cat >>$CONFIG_STATUS <<\_ACEOF
21955 fi # test -n "$CONFIG_FILES"
21958 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21961 :[FHLC]) ac_mode=$ac_tag; continue;;
21963 case $ac_mode$ac_tag in
21965 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21966 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21967 { (exit 1); exit 1; }; };;
21968 :[FH]-) ac_tag=-:-;;
21969 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21986 -) ac_f="$tmp/stdin";;
21987 *) # Look for the file first in the build tree, then in the source tree
21988 # (if the path is not absolute). The absolute path cannot be DOS-style,
21989 # because $ac_f cannot contain `:'.
21993 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21995 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21996 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21997 { (exit 1); exit 1; }; };;
21999 ac_file_inputs="$ac_file_inputs $ac_f"
22002 # Let's still pretend it is `configure' which instantiates (i.e., don't
22003 # use $as_me), people would be surprised to read:
22004 # /* config.h. Generated by config.status. */
22005 configure_input="Generated from "`IFS=:
22006 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22007 if test x"$ac_file" != x-; then
22008 configure_input="$ac_file. $configure_input"
22009 { echo "$as_me:$LINENO: creating $ac_file" >&5
22010 echo "$as_me: creating $ac_file" >&6;}
22014 *:-:* | *:-) cat >"$tmp/stdin";;
22019 ac_dir=`$as_dirname -- "$ac_file" ||
22020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22021 X"$ac_file" : 'X\(//\)[^/]' \| \
22022 X"$ac_file" : 'X\(//\)$' \| \
22023 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22029 /^X\(\/\/\)[^/].*/{
22044 -*) as_dir=./$as_dir;;
22046 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22050 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22051 *) as_qdir=$as_dir;;
22053 as_dirs="'$as_qdir' $as_dirs"
22054 as_dir=`$as_dirname -- "$as_dir" ||
22055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22056 X"$as_dir" : 'X\(//\)[^/]' \| \
22057 X"$as_dir" : 'X\(//\)$' \| \
22058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22064 /^X\(\/\/\)[^/].*/{
22077 test -d "$as_dir" && break
22079 test -z "$as_dirs" || eval "mkdir $as_dirs"
22080 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22081 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22082 { (exit 1); exit 1; }; }; }
22086 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22089 # A ".." for each directory in $ac_dir_suffix.
22090 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22091 case $ac_top_builddir_sub in
22092 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22093 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22096 ac_abs_top_builddir=$ac_pwd
22097 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22098 # for backward compatibility:
22099 ac_top_builddir=$ac_top_build_prefix
22102 .) # We are building in place.
22104 ac_top_srcdir=$ac_top_builddir_sub
22105 ac_abs_top_srcdir=$ac_pwd ;;
22106 [\\/]* | ?:[\\/]* ) # Absolute name.
22107 ac_srcdir=$srcdir$ac_dir_suffix;
22108 ac_top_srcdir=$srcdir
22109 ac_abs_top_srcdir=$srcdir ;;
22110 *) # Relative name.
22111 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22112 ac_top_srcdir=$ac_top_build_prefix$srcdir
22113 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22115 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22125 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22126 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22130 cat >>$CONFIG_STATUS <<\_ACEOF
22131 # If the template does not know about datarootdir, expand it.
22132 # FIXME: This hack should be removed a few years after 2.60.
22133 ac_datarootdir_hack=; ac_datarootdir_seen=
22135 case `sed -n '/datarootdir/ {
22144 ' $ac_file_inputs` in
22145 *datarootdir*) ac_datarootdir_seen=yes;;
22146 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22147 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22148 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22150 cat >>$CONFIG_STATUS <<_ACEOF
22151 ac_datarootdir_hack='
22152 s&@datadir@&$datadir&g
22153 s&@docdir@&$docdir&g
22154 s&@infodir@&$infodir&g
22155 s&@localedir@&$localedir&g
22156 s&@mandir@&$mandir&g
22157 s&\\\${datarootdir}&$datarootdir&g' ;;
22161 # Neutralize VPATH when `$srcdir' = `.'.
22162 # Shell code in configure.ac might set extrasub.
22163 # FIXME: do we really want to maintain this feature?
22164 cat >>$CONFIG_STATUS <<_ACEOF
22168 cat >>$CONFIG_STATUS <<\_ACEOF
22170 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22171 s&@configure_input@&$configure_input&;t t
22172 s&@top_builddir@&$ac_top_builddir_sub&;t t
22173 s&@srcdir@&$ac_srcdir&;t t
22174 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22175 s&@top_srcdir@&$ac_top_srcdir&;t t
22176 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22177 s&@builddir@&$ac_builddir&;t t
22178 s&@abs_builddir@&$ac_abs_builddir&;t t
22179 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22180 s&@INSTALL@&$ac_INSTALL&;t t
22181 $ac_datarootdir_hack
22182 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22184 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22185 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22186 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22187 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22188 which seems to be undefined. Please make sure it is defined." >&5
22189 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22190 which seems to be undefined. Please make sure it is defined." >&2;}
22194 -) cat "$tmp/out"; rm -f "$tmp/out";;
22195 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22200 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22201 echo "$as_me: executing $ac_file commands" >&6;}
22206 case $ac_file$ac_mode in
22207 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22208 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22209 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22210 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22211 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22212 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22213 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22214 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22215 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22216 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22222 { (exit 0); exit 0; }
22224 chmod +x $CONFIG_STATUS
22225 ac_clean_files=$ac_clean_files_save
22228 # configure is writing to config.log, and then calls config.status.
22229 # config.status does its own redirection, appending to config.log.
22230 # Unfortunately, on DOS this fails, as config.log is still kept open
22231 # by configure, so config.status won't be able to write to it; its
22232 # output is simply discarded. So we exec the FD to /dev/null,
22233 # effectively closing config.log, so it can be properly (re)opened and
22234 # appended to by config.status. When coming back to configure, we
22235 # need to make the FD available again.
22236 if test "$no_create" != yes; then
22238 ac_config_status_args=
22239 test "$silent" = yes &&
22240 ac_config_status_args="$ac_config_status_args --quiet"
22242 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22244 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22245 # would make configure fail if this is the last instruction.
22246 $ac_cs_success || { (exit 1); exit 1; }
22250 # CONFIG_SUBDIRS section.
22252 if test "$no_recursion" != yes; then
22254 # Remove --cache-file and --srcdir arguments so they do not pile up.
22255 ac_sub_configure_args=
22257 eval "set x $ac_configure_args"
22261 if test -n "$ac_prev"; then
22266 -cache-file | --cache-file | --cache-fil | --cache-fi \
22267 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22268 ac_prev=cache_file ;;
22269 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22270 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22273 --config-cache | -C)
22275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22285 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22287 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22291 # Always prepend --prefix to ensure using the same prefix
22292 # in subdir configurations.
22293 ac_arg="--prefix=$prefix"
22295 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22297 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22300 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22302 # Do not complain, so a configure script can configure whichever
22303 # parts of a large source tree are present.
22304 test -d "$srcdir/$ac_dir" || continue
22306 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22307 echo "$as_me:$LINENO: $ac_msg" >&5
22311 -*) as_dir=./$as_dir;;
22313 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22317 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22318 *) as_qdir=$as_dir;;
22320 as_dirs="'$as_qdir' $as_dirs"
22321 as_dir=`$as_dirname -- "$as_dir" ||
22322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22323 X"$as_dir" : 'X\(//\)[^/]' \| \
22324 X"$as_dir" : 'X\(//\)$' \| \
22325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22331 /^X\(\/\/\)[^/].*/{
22344 test -d "$as_dir" && break
22346 test -z "$as_dirs" || eval "mkdir $as_dirs"
22347 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22348 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22349 { (exit 1); exit 1; }; }; }
22353 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22355 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22356 # A ".." for each directory in $ac_dir_suffix.
22357 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22358 case $ac_top_builddir_sub in
22359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22363 ac_abs_top_builddir=$ac_pwd
22364 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22365 # for backward compatibility:
22366 ac_top_builddir=$ac_top_build_prefix
22369 .) # We are building in place.
22371 ac_top_srcdir=$ac_top_builddir_sub
22372 ac_abs_top_srcdir=$ac_pwd ;;
22373 [\\/]* | ?:[\\/]* ) # Absolute name.
22374 ac_srcdir=$srcdir$ac_dir_suffix;
22375 ac_top_srcdir=$srcdir
22376 ac_abs_top_srcdir=$srcdir ;;
22377 *) # Relative name.
22378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22379 ac_top_srcdir=$ac_top_build_prefix$srcdir
22380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22382 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22387 # Check for guested configure; otherwise get Cygnus style configure.
22388 if test -f "$ac_srcdir/configure.gnu"; then
22389 ac_sub_configure=$ac_srcdir/configure.gnu
22390 elif test -f "$ac_srcdir/configure"; then
22391 ac_sub_configure=$ac_srcdir/configure
22392 elif test -f "$ac_srcdir/configure.in"; then
22393 # This should be Cygnus configure.
22394 ac_sub_configure=$ac_aux_dir/configure
22396 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22397 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22401 # The recursion is here.
22402 if test -n "$ac_sub_configure"; then
22403 # Make the cache file name correct relative to the subdirectory.
22404 case $cache_file in
22405 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22406 *) # Relative name.
22407 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22410 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22411 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22412 # The eval makes quoting arguments work.
22413 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22414 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22415 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22416 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22417 { (exit 1); exit 1; }; }