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, arm, mips, spu, hexagon,
1405 xcore, msp430, ptx, cbe, and cpp (default=all)
1406 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1408 --enable-bindings Build specific language bindings:
1409 all,auto,none,{binding-name} (default=auto)
1410 --enable-libffi Check for the presence of libffi (default is NO)
1411 --enable-ltdl-install install libltdl
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --with-llvmsrc Location of LLVM Source Code
1417 --with-llvmobj Location of LLVM Object Code
1418 --with-optimize-option Select the compiler options to use for optimized
1420 --with-extra-options Specify additional options to compile LLVM with
1421 --with-extra-ld-options Specify additional options to link LLVM with
1422 --with-ocaml-libdir Specify install location for ocaml bindings (default
1424 --with-clang-resource-dir
1425 Relative directory from the Clang binary for
1427 --with-c-include-dirs Colon separated list of directories clang will
1429 --with-cxx-include-root Directory with the libstdc++ headers.
1430 --with-cxx-include-arch Architecture of the libstdc++ headers.
1431 --with-cxx-include-32bit-dir
1432 32 bit multilib dir.
1433 --with-cxx-include-64bit-dir
1434 64 bit multilib directory.
1435 --with-binutils-include Specify path to binutils/include/ containing
1436 plugin-api.h file for gold plugin.
1437 --with-bug-report-url Specify the URL where bug reports should be
1438 submitted (default=http://llvm.org/bugs/)
1439 --with-tclinclude directory where tcl headers are
1440 --with-udis86=<path> Use udis86 external x86 disassembler library
1441 --with-oprofile=<prefix>
1442 Tell OProfile >= 0.9.4 how to symbolize JIT output
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CXX C++ compiler command
1452 CXXFLAGS C++ compiler flags
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1458 Report bugs to <bugs@yourdomain>.
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" || continue
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1486 .) # We are building in place.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1510 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1519 [SAMPLE] configure [x.xx]
1520 generated by GNU Autoconf 2.60
1522 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1523 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1524 This configure script is free software; the Free Software Foundation
1525 gives unlimited permission to copy, distribute and modify it.
1529 cat >config.log <<_ACEOF
1530 This file contains any messages produced by compilers while
1531 running configure, to aid debugging if configure makes a mistake.
1533 It was created by [SAMPLE] $as_me [x.xx], which was
1534 generated by GNU Autoconf 2.60. Invocation command line was
1546 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1547 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1548 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1549 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1550 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1552 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1553 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1555 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1556 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1557 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1558 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1559 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1560 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1561 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir=.
1570 echo "PATH: $as_dir"
1586 # Keep a trace of the command line.
1587 # Strip out --no-create and --no-recursion so they do not pile up.
1588 # Strip out --silent because we don't want to record it for future runs.
1589 # Also quote any args containing shell meta-characters.
1590 # Make two passes to allow for proper duplicate-argument suppression.
1594 ac_must_keep_next=false
1600 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1601 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1602 | -silent | --silent | --silen | --sile | --sil)
1605 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1608 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1610 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1611 if test $ac_must_keep_next = true; then
1612 ac_must_keep_next=false # Got value, back to normal.
1615 *=* | --config-cache | -C | -disable-* | --disable-* \
1616 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1617 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1618 | -with-* | --with-* | -without-* | --without-* | --x)
1619 case "$ac_configure_args0 " in
1620 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1623 -* ) ac_must_keep_next=true ;;
1626 ac_configure_args="$ac_configure_args '$ac_arg'"
1631 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1632 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1634 # When interrupted or exit'd, cleanup temporary files, and complete
1635 # config.log. We remove comments because anyway the quotes in there
1636 # would cause problems or look ugly.
1637 # WARNING: Use '\'' to represent an apostrophe within the trap.
1638 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1639 trap 'exit_status=$?
1640 # Save into config.log some information that might help in debugging.
1645 ## ---------------- ##
1646 ## Cache variables. ##
1647 ## ---------------- ##
1650 # The following way of writing the cache mishandles newlines in values,
1652 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1653 eval ac_val=\$$ac_var
1657 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1658 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1661 _ | IFS | as_nl) ;; #(
1662 *) $as_unset $ac_var ;;
1667 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1668 *${as_nl}ac_space=\ *)
1670 "s/'\''/'\''\\\\'\'''\''/g;
1671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1674 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1682 ## ----------------- ##
1683 ## Output variables. ##
1684 ## ----------------- ##
1687 for ac_var in $ac_subst_vars
1689 eval ac_val=\$$ac_var
1691 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693 echo "$ac_var='\''$ac_val'\''"
1697 if test -n "$ac_subst_files"; then
1699 ## ------------------- ##
1700 ## File substitutions. ##
1701 ## ------------------- ##
1704 for ac_var in $ac_subst_files
1706 eval ac_val=\$$ac_var
1708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710 echo "$ac_var='\''$ac_val'\''"
1715 if test -s confdefs.h; then
1725 test "$ac_signal" != 0 &&
1726 echo "$as_me: caught signal $ac_signal"
1727 echo "$as_me: exit $exit_status"
1729 rm -f core *.core core.conftest.* &&
1730 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1733 for ac_signal in 1 2 13 15; do
1734 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1738 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1739 rm -f -r conftest* confdefs.h
1741 # Predefined preprocessor variables.
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_NAME "$PACKAGE_NAME"
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_STRING "$PACKAGE_STRING"
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1768 # Let the site file select an alternate cache file if it wants to.
1769 # Prefer explicitly selected file to automatically selected ones.
1770 if test -n "$CONFIG_SITE"; then
1771 set x "$CONFIG_SITE"
1772 elif test "x$prefix" != xNONE; then
1773 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1775 set x "$ac_default_prefix/share/config.site" \
1776 "$ac_default_prefix/etc/config.site"
1781 if test -r "$ac_site_file"; then
1782 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1783 echo "$as_me: loading site script $ac_site_file" >&6;}
1784 sed 's/^/| /' "$ac_site_file" >&5
1789 if test -r "$cache_file"; then
1790 # Some versions of bash will fail to source /dev/null (special
1791 # files actually), so we avoid doing that.
1792 if test -f "$cache_file"; then
1793 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1794 echo "$as_me: loading cache $cache_file" >&6;}
1796 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1797 *) . "./$cache_file";;
1801 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1802 echo "$as_me: creating cache $cache_file" >&6;}
1806 # Check that the precious variables saved in the cache have kept the same
1808 ac_cache_corrupted=false
1809 for ac_var in $ac_precious_vars; do
1810 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1811 eval ac_new_set=\$ac_env_${ac_var}_set
1812 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1813 eval ac_new_val=\$ac_env_${ac_var}_value
1814 case $ac_old_set,$ac_new_set in
1816 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1817 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1818 ac_cache_corrupted=: ;;
1820 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1821 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1822 ac_cache_corrupted=: ;;
1825 if test "x$ac_old_val" != "x$ac_new_val"; then
1826 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1827 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1828 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1829 echo "$as_me: former value: $ac_old_val" >&2;}
1830 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1831 echo "$as_me: current value: $ac_new_val" >&2;}
1832 ac_cache_corrupted=:
1835 # Pass precious variables to config.status.
1836 if test "$ac_new_set" = set; then
1838 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1839 *) ac_arg=$ac_var=$ac_new_val ;;
1841 case " $ac_configure_args " in
1842 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1843 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1847 if $ac_cache_corrupted; then
1848 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1849 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1850 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1851 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1852 { (exit 1); exit 1; }; }
1880 ac_cpp='$CPP $CPPFLAGS'
1881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1887 LLVM_SRC_ROOT="../.."
1888 LLVM_OBJ_ROOT="../.."
1890 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1891 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1894 # Check whether --with-llvmsrc was given.
1895 if test "${with_llvmsrc+set}" = set; then
1896 withval=$with_llvmsrc; llvm_src="$withval"
1898 llvm_src="$LLVM_ABS_SRC_ROOT"
1904 # Check whether --with-llvmobj was given.
1905 if test "${with_llvmobj+set}" = set; then
1906 withval=$with_llvmobj; llvm_obj="$withval"
1908 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1913 ac_config_commands="$ac_config_commands setup"
1917 { echo "$as_me:$LINENO: checking llvm-config" >&5
1918 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1919 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1920 if ! test -f "$llvm_config_path" ; then
1921 llvm_config_path="no"
1923 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1924 echo "${ECHO_T}$llvm_config_path" >&6; }
1926 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1927 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1928 if test "$llvm_config_path" != no ; then
1929 llvm_package_version=`$llvm_config_path --version`
1931 llvm_package_version="unknown";
1933 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1934 echo "${ECHO_T}$llvm_package_version" >&6; }
1935 LLVM_VERSION=$llvm_package_version
1941 for ac_dir in autoconf "$srcdir"/autoconf; do
1942 if test -f "$ac_dir/install-sh"; then
1944 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 elif test -f "$ac_dir/install.sh"; then
1948 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 elif test -f "$ac_dir/shtool"; then
1952 ac_install_sh="$ac_aux_dir/shtool install -c"
1956 if test -z "$ac_aux_dir"; then
1957 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1958 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978 if test -n "$ac_tool_prefix"; then
1979 for ac_prog in clang llvm-gcc gcc
1981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1985 if test "${ac_cv_prog_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test -n "$CC"; then
2010 { echo "$as_me:$LINENO: result: $CC" >&5
2011 echo "${ECHO_T}$CC" >&6; }
2013 { echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6; }
2018 test -n "$CC" && break
2021 if test -z "$CC"; then
2023 for ac_prog in clang llvm-gcc gcc
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2042 ac_cv_prog_ac_ct_CC="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6; }
2057 { echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6; }
2062 test -n "$ac_ct_CC" && break
2065 if test "x$ac_ct_CC" = x; then
2068 case $cross_compiling:$ac_tool_warned in
2070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet. If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&5
2073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2074 whose name does not start with the host triplet. If you think this
2075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2076 ac_tool_warned=yes ;;
2083 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2084 See \`config.log' for more details." >&5
2085 echo "$as_me: error: no acceptable C compiler found in \$PATH
2086 See \`config.log' for more details." >&2;}
2087 { (exit 1); exit 1; }; }
2089 # Provide some information about the compiler.
2090 echo "$as_me:$LINENO: checking for C compiler version" >&5
2091 ac_compiler=`set X $ac_compile; echo $2`
2092 { (ac_try="$ac_compiler --version >&5"
2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095 *) ac_try_echo=$ac_try;;
2097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098 (eval "$ac_compiler --version >&5") 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }
2102 { (ac_try="$ac_compiler -v >&5"
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108 (eval "$ac_compiler -v >&5") 2>&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112 { (ac_try="$ac_compiler -V >&5"
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118 (eval "$ac_compiler -V >&5") 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2123 cat >conftest.$ac_ext <<_ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2138 ac_clean_files_save=$ac_clean_files
2139 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2140 # Try to create an executable without -o first, disregard a.out.
2141 # It will help us diagnose broken compilers, and finding out an intuition
2143 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2144 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2145 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2147 # List of possible output files, starting from the most likely.
2148 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2149 # only as a last resort. b.out is created by i960 compilers.
2150 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2152 # The IRIX 6 linker writes into existing files which may not be
2153 # executable, retaining their permissions. Remove them first so a
2154 # subsequent execution test works.
2156 for ac_file in $ac_files
2159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2160 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2165 if { (ac_try="$ac_link_default"
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2171 (eval "$ac_link_default") 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2176 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2177 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2178 # so that the user can short-circuit this test for compilers unknown to
2180 for ac_file in $ac_files
2182 test -f "$ac_file" || continue
2184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2187 # We found the default executable, but exeext='' is most
2191 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2193 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 # We set ac_cv_exeext here because the later test for it is not
2196 # safe: cross compilers may not add the suffix if given an `-o'
2197 # argument, so we may need to know it at that point already.
2198 # Even if this section looks crufty: it has the advantage of
2205 test "$ac_cv_exeext" = no && ac_cv_exeext=
2208 echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215 { (exit 77); exit 77; }; }
2218 ac_exeext=$ac_cv_exeext
2219 { echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6; }
2222 # Check that the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229 if { ac_try='./$ac_file'
2230 { (case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2235 (eval "$ac_try") 2>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2241 if test "$cross_compiling" = maybe; then
2244 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2254 { echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6; }
2257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258 ac_clean_files=$ac_clean_files_save
2259 # Check that the compiler produces executables we can run. If not, either
2260 # the compiler is broken, or we cross compile.
2261 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2263 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264 echo "${ECHO_T}$cross_compiling" >&6; }
2266 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2268 if { (ac_try="$ac_link"
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274 (eval "$ac_link") 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2280 # work properly (i.e., refer to `conftest.exe'), while it won't with
2282 for ac_file in conftest.exe conftest conftest.*; do
2283 test -f "$ac_file" || continue
2285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }
2299 rm -f conftest$ac_cv_exeext
2300 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2303 rm -f conftest.$ac_ext
2304 EXEEXT=$ac_cv_exeext
2306 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2308 if test "${ac_cv_objext+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 cat >conftest.$ac_ext <<_ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2326 rm -f conftest.o conftest.obj
2327 if { (ac_try="$ac_compile"
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333 (eval "$ac_compile") 2>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; then
2337 for ac_file in conftest.o conftest.obj conftest.*; do
2338 test -f "$ac_file" || continue;
2340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2349 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&5
2351 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&2;}
2353 { (exit 1); exit 1; }; }
2356 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2359 echo "${ECHO_T}$ac_cv_objext" >&6; }
2360 OBJEXT=$ac_cv_objext
2362 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2363 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2364 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat >conftest.$ac_ext <<_ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2385 rm -f conftest.$ac_objext
2386 if { (ac_try="$ac_compile"
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_compile") 2>conftest.er1
2394 grep -v '^ *+' conftest.er1 >conftest.err
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2400 { (case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_try") 2>&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415 (eval "$ac_try") 2>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2431 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2432 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2433 GCC=`test $ac_compiler_gnu = yes && echo yes`
2434 ac_test_CFLAGS=${CFLAGS+set}
2435 ac_save_CFLAGS=$CFLAGS
2436 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2437 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_cc_g+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 ac_save_c_werror_flag=$ac_c_werror_flag
2442 ac_c_werror_flag=yes
2445 cat >conftest.$ac_ext <<_ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2460 rm -f conftest.$ac_objext
2461 if { (ac_try="$ac_compile"
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_compile") 2>conftest.er1
2469 grep -v '^ *+' conftest.er1 >conftest.err
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2475 { (case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_try") 2>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest.$ac_objext'
2485 { (case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_try") 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2500 cat >conftest.$ac_ext <<_ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2515 rm -f conftest.$ac_objext
2516 if { (ac_try="$ac_compile"
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_compile") 2>conftest.er1
2524 grep -v '^ *+' conftest.er1 >conftest.err
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2530 { (case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_try") 2>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; } &&
2539 { ac_try='test -s conftest.$ac_objext'
2540 { (case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_try") 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2554 ac_c_werror_flag=$ac_save_c_werror_flag
2556 cat >conftest.$ac_ext <<_ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2571 rm -f conftest.$ac_objext
2572 if { (ac_try="$ac_compile"
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_compile") 2>conftest.er1
2580 grep -v '^ *+' conftest.er1 >conftest.err
2582 cat conftest.err >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2586 { (case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_try") 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (case "(($ac_try" in
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_try") 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 ac_c_werror_flag=$ac_save_c_werror_flag
2622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2623 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2624 if test "$ac_test_CFLAGS" = set; then
2625 CFLAGS=$ac_save_CFLAGS
2626 elif test $ac_cv_prog_cc_g = yes; then
2627 if test "$GCC" = yes; then
2633 if test "$GCC" = yes; then
2639 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2640 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_cc_c89+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 ac_cv_prog_cc_c89=no
2646 cat >conftest.$ac_ext <<_ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2654 #include <sys/types.h>
2655 #include <sys/stat.h>
2656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2657 struct buf { int x; };
2658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2659 static char *e (p, i)
2665 static char *f (char * (*g) (char **, int), char **p, ...)
2670 s = g (p, va_arg (v,int));
2675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2676 function prototypes and stuff, but not '\xHH' hex character constants.
2677 These don't provoke an error unfortunately, instead are silently treated
2678 as 'x'. The following induces an error, until -std is added to get
2679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2680 array size at least. It's necessary to write '\x00'==0 to get something
2681 that's true only with -std. */
2682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2685 inside strings and character constants. */
2687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2689 int test (int i, double x);
2690 struct s1 {int (*f) (int a);};
2691 struct s2 {int (*f) (double a);};
2692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706 CC="$ac_save_CC $ac_arg"
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compile") 2>conftest.er1
2716 grep -v '^ *+' conftest.er1 >conftest.err
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2722 { (case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_try") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_try") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 ac_cv_prog_cc_c89=$ac_arg
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f core conftest.err conftest.$ac_objext
2750 test "x$ac_cv_prog_cc_c89" != "xno" && break
2752 rm -f conftest.$ac_ext
2757 case "x$ac_cv_prog_cc_c89" in
2759 { echo "$as_me:$LINENO: result: none needed" >&5
2760 echo "${ECHO_T}none needed" >&6; } ;;
2762 { echo "$as_me:$LINENO: result: unsupported" >&5
2763 echo "${ECHO_T}unsupported" >&6; } ;;
2765 CC="$CC $ac_cv_prog_cc_c89"
2766 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2767 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778 ac_cpp='$CXXCPP $CPPFLAGS'
2779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2782 if test -z "$CXX"; then
2783 if test -n "$CCC"; then
2786 if test -n "$ac_tool_prefix"; then
2787 for ac_prog in clang++ llvm-g++ g++
2789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2793 if test "${ac_cv_prog_CXX+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 if test -n "$CXX"; then
2797 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 if test -n "$CXX"; then
2818 { echo "$as_me:$LINENO: result: $CXX" >&5
2819 echo "${ECHO_T}$CXX" >&6; }
2821 { echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6; }
2826 test -n "$CXX" && break
2829 if test -z "$CXX"; then
2831 for ac_prog in clang++ llvm-g++ g++
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 if test -n "$ac_ct_CXX"; then
2841 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_ac_ct_CXX="$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2861 if test -n "$ac_ct_CXX"; then
2862 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2863 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2865 { echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6; }
2870 test -n "$ac_ct_CXX" && break
2873 if test "x$ac_ct_CXX" = x; then
2876 case $cross_compiling:$ac_tool_warned in
2878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet. If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&5
2881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet. If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2884 ac_tool_warned=yes ;;
2892 # Provide some information about the compiler.
2893 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2894 ac_compiler=`set X $ac_compile; echo $2`
2895 { (ac_try="$ac_compiler --version >&5"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compiler --version >&5") 2>&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905 { (ac_try="$ac_compiler -v >&5"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compiler -v >&5") 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915 { (ac_try="$ac_compiler -V >&5"
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler -V >&5") 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2926 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2927 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2928 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2949 rm -f conftest.$ac_objext
2950 if { (ac_try="$ac_compile"
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2964 { (case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_try") 2>&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_try") 2>&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2995 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2996 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2997 GXX=`test $ac_compiler_gnu = yes && echo yes`
2998 ac_test_CXXFLAGS=${CXXFLAGS+set}
2999 ac_save_CXXFLAGS=$CXXFLAGS
3000 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3001 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_cxx_g+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3006 ac_cxx_werror_flag=yes
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3058 ac_cv_prog_cxx_g=yes
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 ac_cv_prog_cxx_g=yes
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3186 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3187 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3188 if test "$ac_test_CXXFLAGS" = set; then
3189 CXXFLAGS=$ac_save_CXXFLAGS
3190 elif test $ac_cv_prog_cxx_g = yes; then
3191 if test "$GXX" = yes; then
3197 if test "$GXX" = yes; then
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3215 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3216 # On Suns, sometimes $CPP names a directory.
3217 if test -n "$CPP" && test -d "$CPP"; then
3220 if test -z "$CPP"; then
3221 if test "${ac_cv_prog_CPP+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 # Double quotes because CPP needs to be expanded
3225 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3228 for ac_c_preproc_warn_flag in '' yes
3230 # Use a header file that comes with gcc, so configuring glibc
3231 # with a fresh cross-compiler works.
3232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233 # <limits.h> exists even on freestanding compilers.
3234 # On the NeXT, cc -E runs the code through the compiler's parser,
3235 # not just through cpp. "Syntax error" is here to catch this case.
3236 cat >conftest.$ac_ext <<_ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3243 # include <limits.h>
3245 # include <assert.h>
3249 if { (ac_try="$ac_cpp conftest.$ac_ext"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3257 grep -v '^ *+' conftest.er1 >conftest.err
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null; then
3262 if test -s conftest.err; then
3263 ac_cpp_err=$ac_c_preproc_warn_flag
3264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3271 if test -z "$ac_cpp_err"; then
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 # Broken: fails on valid input.
3281 rm -f conftest.err conftest.$ac_ext
3283 # OK, works on sane cases. Now check whether nonexistent headers
3284 # can be detected and how.
3285 cat >conftest.$ac_ext <<_ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include <ac_nonexistent.h>
3293 if { (ac_try="$ac_cpp conftest.$ac_ext"
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301 grep -v '^ *+' conftest.er1 >conftest.err
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } >/dev/null; then
3306 if test -s conftest.err; then
3307 ac_cpp_err=$ac_c_preproc_warn_flag
3308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3315 if test -z "$ac_cpp_err"; then
3316 # Broken: success on invalid input.
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 # Passes both tests.
3327 rm -f conftest.err conftest.$ac_ext
3330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331 rm -f conftest.err conftest.$ac_ext
3332 if $ac_preproc_ok; then
3344 { echo "$as_me:$LINENO: result: $CPP" >&5
3345 echo "${ECHO_T}$CPP" >&6; }
3347 for ac_c_preproc_warn_flag in '' yes
3349 # Use a header file that comes with gcc, so configuring glibc
3350 # with a fresh cross-compiler works.
3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352 # <limits.h> exists even on freestanding compilers.
3353 # On the NeXT, cc -E runs the code through the compiler's parser,
3354 # not just through cpp. "Syntax error" is here to catch this case.
3355 cat >conftest.$ac_ext <<_ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3362 # include <limits.h>
3364 # include <assert.h>
3368 if { (ac_try="$ac_cpp conftest.$ac_ext"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376 grep -v '^ *+' conftest.er1 >conftest.err
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } >/dev/null; then
3381 if test -s conftest.err; then
3382 ac_cpp_err=$ac_c_preproc_warn_flag
3383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3390 if test -z "$ac_cpp_err"; then
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 # Broken: fails on valid input.
3400 rm -f conftest.err conftest.$ac_ext
3402 # OK, works on sane cases. Now check whether nonexistent headers
3403 # can be detected and how.
3404 cat >conftest.$ac_ext <<_ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 #include <ac_nonexistent.h>
3412 if { (ac_try="$ac_cpp conftest.$ac_ext"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } >/dev/null; then
3425 if test -s conftest.err; then
3426 ac_cpp_err=$ac_c_preproc_warn_flag
3427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3434 if test -z "$ac_cpp_err"; then
3435 # Broken: success on invalid input.
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3441 # Passes both tests.
3446 rm -f conftest.err conftest.$ac_ext
3449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3450 rm -f conftest.err conftest.$ac_ext
3451 if $ac_preproc_ok; then
3454 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3455 See \`config.log' for more details." >&5
3456 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3457 See \`config.log' for more details." >&2;}
3458 { (exit 1); exit 1; }; }
3462 ac_cpp='$CPP $CPPFLAGS'
3463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 # Check whether --enable-polly was given.
3471 if test "${enable_polly+set}" = set; then
3472 enableval=$enable_polly;
3477 case "$enableval" in
3482 default) ENABLE_POLLY=1
3484 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3485 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3486 { (exit 1); exit 1; }; } ;;
3490 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3493 subdirs="$subdirs tools/polly"
3498 # Make sure we can run config.sub.
3499 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3500 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3501 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3502 { (exit 1); exit 1; }; }
3504 { echo "$as_me:$LINENO: checking build system type" >&5
3505 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3506 if test "${ac_cv_build+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 ac_build_alias=$build_alias
3510 test "x$ac_build_alias" = x &&
3511 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3512 test "x$ac_build_alias" = x &&
3513 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3514 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3515 { (exit 1); exit 1; }; }
3516 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3517 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3518 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3519 { (exit 1); exit 1; }; }
3522 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3523 echo "${ECHO_T}$ac_cv_build" >&6; }
3524 case $ac_cv_build in
3526 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3527 echo "$as_me: error: invalid value of canonical build" >&2;}
3528 { (exit 1); exit 1; }; };;
3531 ac_save_IFS=$IFS; IFS='-'
3537 # Remember, the first character of IFS is used to create $*,
3538 # except with old shells:
3541 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3544 { echo "$as_me:$LINENO: checking host system type" >&5
3545 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3546 if test "${ac_cv_host+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 if test "x$host_alias" = x; then
3550 ac_cv_host=$ac_cv_build
3552 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3553 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3554 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3555 { (exit 1); exit 1; }; }
3559 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3560 echo "${ECHO_T}$ac_cv_host" >&6; }
3563 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3564 echo "$as_me: error: invalid value of canonical host" >&2;}
3565 { (exit 1); exit 1; }; };;
3568 ac_save_IFS=$IFS; IFS='-'
3574 # Remember, the first character of IFS is used to create $*,
3575 # except with old shells:
3578 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3581 { echo "$as_me:$LINENO: checking target system type" >&5
3582 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3583 if test "${ac_cv_target+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 if test "x$target_alias" = x; then
3587 ac_cv_target=$ac_cv_host
3589 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3590 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3591 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3592 { (exit 1); exit 1; }; }
3596 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3597 echo "${ECHO_T}$ac_cv_target" >&6; }
3598 case $ac_cv_target in
3600 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3601 echo "$as_me: error: invalid value of canonical target" >&2;}
3602 { (exit 1); exit 1; }; };;
3604 target=$ac_cv_target
3605 ac_save_IFS=$IFS; IFS='-'
3611 # Remember, the first character of IFS is used to create $*,
3612 # except with old shells:
3615 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3618 # The aliases save the names the user supplied, while $host etc.
3619 # will get canonicalized.
3620 test -n "$target_alias" &&
3621 test "$program_prefix$program_suffix$program_transform_name" = \
3623 program_prefix=${target_alias}-
3625 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3626 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3627 if test "${llvm_cv_os_type+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 llvm_cv_link_all_option="-Wl,--whole-archive"
3633 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3634 llvm_cv_os_type="AIX"
3635 llvm_cv_platform_type="Unix" ;;
3637 llvm_cv_link_all_option="-Wl,--whole-archive"
3638 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3639 llvm_cv_os_type="IRIX"
3640 llvm_cv_platform_type="Unix" ;;
3642 llvm_cv_link_all_option="-Wl,--whole-archive"
3643 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3644 llvm_cv_os_type="Cygwin"
3645 llvm_cv_platform_type="Unix" ;;
3647 llvm_cv_link_all_option="-Wl,-all_load"
3648 llvm_cv_no_link_all_option="-Wl,-noall_load"
3649 llvm_cv_os_type="Darwin"
3650 llvm_cv_platform_type="Unix" ;;
3652 llvm_cv_link_all_option="-Wl,-all_load"
3653 llvm_cv_no_link_all_option="-Wl,-noall_load"
3654 llvm_cv_os_type="Minix"
3655 llvm_cv_platform_type="Unix" ;;
3657 llvm_cv_link_all_option="-Wl,--whole-archive"
3658 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3659 llvm_cv_os_type="FreeBSD"
3660 llvm_cv_platform_type="Unix" ;;
3662 llvm_cv_link_all_option="-Wl,--whole-archive"
3663 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3664 llvm_cv_os_type="OpenBSD"
3665 llvm_cv_platform_type="Unix" ;;
3667 llvm_cv_link_all_option="-Wl,--whole-archive"
3668 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669 llvm_cv_os_type="NetBSD"
3670 llvm_cv_platform_type="Unix" ;;
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="DragonFly"
3675 llvm_cv_platform_type="Unix" ;;
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="HP-UX"
3680 llvm_cv_platform_type="Unix" ;;
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Interix"
3685 llvm_cv_platform_type="Unix" ;;
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="Linux"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,-z,allextract"
3693 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3694 llvm_cv_os_type="SunOS"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,-z,allextract"
3698 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3699 llvm_cv_os_type="AuroraUX"
3700 llvm_cv_platform_type="Unix" ;;
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="Win32"
3705 llvm_cv_platform_type="Win32" ;;
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="MingW"
3710 llvm_cv_platform_type="Win32" ;;
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="Haiku"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="Freestanding"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Freestanding"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option=""
3728 llvm_cv_no_link_all_option=""
3729 llvm_cv_os_type="Unknown"
3730 llvm_cv_platform_type="Unknown" ;;
3733 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3734 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3736 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3737 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3738 if test "${llvm_cv_target_os_type+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 llvm_cv_target_os_type="AIX" ;;
3745 llvm_cv_target_os_type="IRIX" ;;
3747 llvm_cv_target_os_type="Cygwin" ;;
3749 llvm_cv_target_os_type="Darwin" ;;
3751 llvm_cv_target_os_type="Minix" ;;
3753 llvm_cv_target_os_type="FreeBSD" ;;
3755 llvm_cv_target_os_type="OpenBSD" ;;
3757 llvm_cv_target_os_type="NetBSD" ;;
3759 llvm_cv_target_os_type="DragonFly" ;;
3761 llvm_cv_target_os_type="HP-UX" ;;
3763 llvm_cv_target_os_type="Interix" ;;
3765 llvm_cv_target_os_type="Linux" ;;
3767 llvm_cv_target_os_type="SunOS" ;;
3769 llvm_cv_target_os_type="AuroraUX" ;;
3771 llvm_cv_target_os_type="Win32" ;;
3773 llvm_cv_target_os_type="MingW" ;;
3775 llvm_cv_target_os_type="Haiku" ;;
3777 llvm_cv_target_os_type="RTEMS" ;;
3779 llvm_cv_target_os_type="NativeClient" ;;
3781 llvm_cv_target_os_type="Freestanding" ;;
3783 llvm_cv_target_os_type="Unknown" ;;
3786 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3787 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3789 if test "$llvm_cv_os_type" = "Unknown" ; then
3790 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3791 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3792 { (exit 1); exit 1; }; }
3797 HOST_OS=$llvm_cv_os_type
3799 TARGET_OS=$llvm_cv_target_os_type
3802 LINKALL=$llvm_cv_link_all_option
3804 NOLINKALL=$llvm_cv_no_link_all_option
3807 case $llvm_cv_platform_type in
3810 cat >>confdefs.h <<\_ACEOF
3811 #define LLVM_ON_UNIX 1
3821 cat >>confdefs.h <<\_ACEOF
3822 #define LLVM_ON_WIN32 1
3832 { echo "$as_me:$LINENO: checking target architecture" >&5
3833 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3834 if test "${llvm_cv_target_arch+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 i?86-*) llvm_cv_target_arch="x86" ;;
3839 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3840 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3841 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3842 arm*-*) llvm_cv_target_arch="ARM" ;;
3843 mips-*) llvm_cv_target_arch="Mips" ;;
3844 xcore-*) llvm_cv_target_arch="XCore" ;;
3845 msp430-*) llvm_cv_target_arch="MSP430" ;;
3846 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3847 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3848 ptx-*) llvm_cv_target_arch="PTX" ;;
3849 *) llvm_cv_target_arch="Unknown" ;;
3852 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3853 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3855 if test "$llvm_cv_target_arch" = "Unknown" ; then
3856 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3857 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3860 # Determine the LLVM native architecture for the target
3861 case "$llvm_cv_target_arch" in
3862 x86) LLVM_NATIVE_ARCH="X86" ;;
3863 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3864 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3867 ARCH=$llvm_cv_target_arch
3872 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3873 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3874 if test "${ac_cv_path_GREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 # Extract the first word of "grep ggrep" to use in msg output
3878 if test -z "$GREP"; then
3879 set dummy grep ggrep; ac_prog_name=$2
3880 if test "${ac_cv_path_GREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 ac_path_GREP_found=false
3884 # Loop through the user's path and test for each of PROGNAME-LIST
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in grep ggrep; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3893 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3894 # Check for GNU ac_path_GREP and select it if it is found.
3895 # Check for GNU $ac_path_GREP
3896 case `"$ac_path_GREP" --version 2>&1` in
3898 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3901 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3904 cat "conftest.in" "conftest.in" >"conftest.tmp"
3905 mv "conftest.tmp" "conftest.in"
3906 cp "conftest.in" "conftest.nl"
3907 echo 'GREP' >> "conftest.nl"
3908 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3910 ac_count=`expr $ac_count + 1`
3911 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3912 # Best one so far, save it but keep looking for a better one
3913 ac_cv_path_GREP="$ac_path_GREP"
3914 ac_path_GREP_max=$ac_count
3916 # 10*(2^10) chars as input seems more than enough
3917 test $ac_count -gt 10 && break
3919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923 $ac_path_GREP_found && break 3
3933 GREP="$ac_cv_path_GREP"
3934 if test -z "$GREP"; then
3935 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937 { (exit 1); exit 1; }; }
3941 ac_cv_path_GREP=$GREP
3946 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3947 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3948 GREP="$ac_cv_path_GREP"
3951 { echo "$as_me:$LINENO: checking for egrep" >&5
3952 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3953 if test "${ac_cv_path_EGREP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3957 then ac_cv_path_EGREP="$GREP -E"
3959 # Extract the first word of "egrep" to use in msg output
3960 if test -z "$EGREP"; then
3961 set dummy egrep; ac_prog_name=$2
3962 if test "${ac_cv_path_EGREP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 ac_path_EGREP_found=false
3966 # Loop through the user's path and test for each of PROGNAME-LIST
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971 test -z "$as_dir" && as_dir=.
3972 for ac_prog in egrep; do
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3975 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3976 # Check for GNU ac_path_EGREP and select it if it is found.
3977 # Check for GNU $ac_path_EGREP
3978 case `"$ac_path_EGREP" --version 2>&1` in
3980 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3983 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3986 cat "conftest.in" "conftest.in" >"conftest.tmp"
3987 mv "conftest.tmp" "conftest.in"
3988 cp "conftest.in" "conftest.nl"
3989 echo 'EGREP' >> "conftest.nl"
3990 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3992 ac_count=`expr $ac_count + 1`
3993 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3994 # Best one so far, save it but keep looking for a better one
3995 ac_cv_path_EGREP="$ac_path_EGREP"
3996 ac_path_EGREP_max=$ac_count
3998 # 10*(2^10) chars as input seems more than enough
3999 test $ac_count -gt 10 && break
4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005 $ac_path_EGREP_found && break 3
4015 EGREP="$ac_cv_path_EGREP"
4016 if test -z "$EGREP"; then
4017 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019 { (exit 1); exit 1; }; }
4023 ac_cv_path_EGREP=$EGREP
4029 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4030 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4031 EGREP="$ac_cv_path_EGREP"
4034 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4035 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4036 if test "${ac_cv_header_stdc+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4067 grep -v '^ *+' conftest.er1 >conftest.err
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_try") 2>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 ac_cv_header_stdc=yes
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 ac_cv_header_stdc=no
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 if test $ac_cv_header_stdc = yes; then
4103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "memchr" >/dev/null 2>&1; then
4117 ac_cv_header_stdc=no
4123 if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "free" >/dev/null 2>&1; then
4138 ac_cv_header_stdc=no
4144 if test $ac_cv_header_stdc = yes; then
4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146 if test "$cross_compiling" = yes; then
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4157 #if ((' ' & 0x0FF) == 0x020)
4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4161 # define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4180 rm -f conftest$ac_exeext
4181 if { (ac_try="$ac_link"
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_link") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4202 echo "$as_me: program exited with status $ac_status" >&5
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4207 ac_cv_header_stdc=no
4209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4217 if test $ac_cv_header_stdc = yes; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define STDC_HEADERS 1
4225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4236 inttypes.h stdint.h unistd.h
4238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_includes_default
4252 #include <$ac_header>
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 eval "$as_ac_Header=yes"
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 eval "$as_ac_Header=no"
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 ac_res=`eval echo '${'$as_ac_Header'}'`
4299 { echo "$as_me:$LINENO: result: $ac_res" >&5
4300 echo "${ECHO_T}$ac_res" >&6; }
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302 cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4311 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4312 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4313 if test "${ac_cv_c_bigendian+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 # See if sys/param.h defines the BYTE_ORDER macro.
4317 cat >conftest.$ac_ext <<_ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4323 #include <sys/types.h>
4324 #include <sys/param.h>
4329 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4337 rm -f conftest.$ac_objext
4338 if { (ac_try="$ac_compile"
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_compile") 2>conftest.er1
4346 grep -v '^ *+' conftest.er1 >conftest.err
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4352 { (case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 (eval "$ac_try") 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_try") 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 # It does; now see whether it defined to BIG_ENDIAN or not.
4372 cat >conftest.$ac_ext <<_ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 #include <sys/types.h>
4379 #include <sys/param.h>
4384 #if BYTE_ORDER != BIG_ENDIAN
4392 rm -f conftest.$ac_objext
4393 if { (ac_try="$ac_compile"
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407 { (case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_try") 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_try") 2>&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_cv_c_bigendian=yes
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 ac_cv_c_bigendian=no
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 # It does not; compile a test program.
4440 if test "$cross_compiling" = yes; then
4441 # try to guess the endianness by grepping values into an object file
4442 ac_cv_c_bigendian=unknown
4443 cat >conftest.$ac_ext <<_ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4450 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4451 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4452 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4453 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4454 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4458 _ascii (); _ebcdic ();
4463 rm -f conftest.$ac_objext
4464 if { (ac_try="$ac_compile"
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_compile") 2>conftest.er1
4472 grep -v '^ *+' conftest.er1 >conftest.err
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4478 { (case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483 (eval "$ac_try") 2>&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; } &&
4487 { ac_try='test -s conftest.$ac_objext'
4488 { (case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_try") 2>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4498 ac_cv_c_bigendian=yes
4500 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4501 if test "$ac_cv_c_bigendian" = unknown; then
4502 ac_cv_c_bigendian=no
4504 # finding both strings is unlikely to happen, but who knows?
4505 ac_cv_c_bigendian=unknown
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 cat >conftest.$ac_ext <<_ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 $ac_includes_default
4528 /* Are we little or big endian? From Harbison&Steele. */
4532 char c[sizeof (long int)];
4535 return u.c[sizeof (long int) - 1] == 1;
4541 rm -f conftest$ac_exeext
4542 if { (ac_try="$ac_link"
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_link") 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552 { (case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_try") 2>&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 ac_cv_c_bigendian=no
4563 echo "$as_me: program exited with status $ac_status" >&5
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4568 ac_cv_c_bigendian=yes
4570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4579 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4580 case $ac_cv_c_bigendian in
4588 { { echo "$as_me:$LINENO: error: unknown endianness
4589 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4590 echo "$as_me: error: unknown endianness
4591 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4592 { (exit 1); exit 1; }; } ;;
4596 if test "$cross_compiling" = yes; then
4597 LLVM_CROSS_COMPILING=1
4600 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4601 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4602 if test "${ac_cv_build_exeext+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4606 ac_cv_build_exeext=.exe
4608 ac_build_prefix=${build_alias}-
4610 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4611 set dummy ${ac_build_prefix}gcc; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 if test -n "$BUILD_CC"; then
4618 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 BUILD_CC=$ac_cv_prog_BUILD_CC
4638 if test -n "$BUILD_CC"; then
4639 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4640 echo "${ECHO_T}$BUILD_CC" >&6; }
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4647 if test -z "$BUILD_CC"; then
4648 # Extract the first word of "gcc", so it can be a program name with args.
4649 set dummy gcc; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 if test -n "$BUILD_CC"; then
4656 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_BUILD_CC="gcc"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 BUILD_CC=$ac_cv_prog_BUILD_CC
4676 if test -n "$BUILD_CC"; then
4677 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4678 echo "${ECHO_T}$BUILD_CC" >&6; }
4680 { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4685 if test -z "$BUILD_CC"; then
4686 # Extract the first word of "cc", so it can be a program name with args.
4687 set dummy cc; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 if test -n "$BUILD_CC"; then
4694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4705 ac_prog_rejected=yes
4708 ac_cv_prog_BUILD_CC="cc"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 if test $ac_prog_rejected = yes; then
4717 # We found a bogon in the path, so make sure we never use it.
4718 set dummy $ac_cv_prog_BUILD_CC
4720 if test $# != 0; then
4721 # We chose a different compiler from the bogus one.
4722 # However, it has the same basename, so the bogon will be chosen
4723 # first if we set BUILD_CC to just the basename; use the full file name.
4725 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4730 BUILD_CC=$ac_cv_prog_BUILD_CC
4731 if test -n "$BUILD_CC"; then
4732 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4733 echo "${ECHO_T}$BUILD_CC" >&6; }
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4742 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4743 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4744 { (exit 1); exit 1; }; }
4745 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4747 echo 'int main () { return 0; }' > conftest.$ac_ext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4750 (eval $ac_build_link) 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; then
4754 for file in conftest.*; do
4756 *.c | *.o | *.obj | *.dSYM) ;;
4757 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4761 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4762 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4763 { (exit 1); exit 1; }; }
4766 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4771 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4772 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4773 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4774 ac_build_exeext=$BUILD_EXEEXT
4776 ac_build_prefix=${build_alias}-
4777 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4778 set dummy ${ac_build_prefix}g++; ac_word=$2
4779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4781 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 if test -n "$BUILD_CXX"; then
4785 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4805 if test -n "$BUILD_CXX"; then
4806 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4807 echo "${ECHO_T}$BUILD_CXX" >&6; }
4809 { echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6; }
4814 if test -z "$BUILD_CXX"; then
4815 # Extract the first word of "g++", so it can be a program name with args.
4816 set dummy g++; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$BUILD_CXX"; then
4823 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_BUILD_CXX="g++"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4843 if test -n "$BUILD_CXX"; then
4844 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4845 echo "${ECHO_T}$BUILD_CXX" >&6; }
4847 { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4852 if test -z "$BUILD_CXX"; then
4853 # Extract the first word of "c++", so it can be a program name with args.
4854 set dummy c++; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$BUILD_CXX"; then
4861 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4872 ac_prog_rejected=yes
4875 ac_cv_prog_BUILD_CXX="c++"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 if test $ac_prog_rejected = yes; then
4884 # We found a bogon in the path, so make sure we never use it.
4885 set dummy $ac_cv_prog_BUILD_CXX
4887 if test $# != 0; then
4888 # We chose a different compiler from the bogus one.
4889 # However, it has the same basename, so the bogon will be chosen
4890 # first if we set BUILD_CXX to just the basename; use the full file name.
4892 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4897 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4898 if test -n "$BUILD_CXX"; then
4899 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4900 echo "${ECHO_T}$BUILD_CXX" >&6; }
4902 { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4910 LLVM_CROSS_COMPILING=0
4914 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4925 # Check whether --enable-optimized was given.
4926 if test "${enable_optimized+set}" = set; then
4927 enableval=$enable_optimized;
4932 if test ${enableval} = "no" ; then
4936 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4940 # Check whether --enable-profiling was given.
4941 if test "${enable_profiling+set}" = set; then
4942 enableval=$enable_profiling;
4947 if test ${enableval} = "no" ; then
4951 ENABLE_PROFILING=ENABLE_PROFILING=1
4955 # Check whether --enable-assertions was given.
4956 if test "${enable_assertions+set}" = set; then
4957 enableval=$enable_assertions;
4962 if test ${enableval} = "yes" ; then
4966 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4970 # Check whether --enable-expensive-checks was given.
4971 if test "${enable_expensive_checks+set}" = set; then
4972 enableval=$enable_expensive_checks;
4977 if test ${enableval} = "yes" ; then
4978 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4980 EXPENSIVE_CHECKS=yes
4983 ENABLE_EXPENSIVE_CHECKS=
4989 # Check whether --enable-debug-runtime was given.
4990 if test "${enable_debug_runtime+set}" = set; then
4991 enableval=$enable_debug_runtime;
4996 if test ${enableval} = "no" ; then
5000 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5004 # Check whether --enable-debug-symbols was given.
5005 if test "${enable_debug_symbols+set}" = set; then
5006 enableval=$enable_debug_symbols;
5011 if test ${enableval} = "no" ; then
5015 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5019 # Check whether --enable-jit was given.
5020 if test "${enable_jit+set}" = set; then
5021 enableval=$enable_jit;
5026 if test ${enableval} = "no"
5031 case "$llvm_cv_target_arch" in
5032 x86) TARGET_HAS_JIT=1
5034 Sparc) TARGET_HAS_JIT=0
5036 PowerPC) TARGET_HAS_JIT=1
5038 x86_64) TARGET_HAS_JIT=1
5040 ARM) TARGET_HAS_JIT=1
5042 Mips) TARGET_HAS_JIT=1
5044 XCore) TARGET_HAS_JIT=0
5046 MSP430) TARGET_HAS_JIT=0
5048 Hexagon) TARGET_HAS_JIT=0
5050 MBlaze) TARGET_HAS_JIT=0
5052 PTX) TARGET_HAS_JIT=0
5059 # Check whether --enable-docs was given.
5060 if test "${enable_docs+set}" = set; then
5061 enableval=$enable_docs;
5066 case "$enableval" in
5071 default) ENABLE_DOCS=1
5073 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5074 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5075 { (exit 1); exit 1; }; } ;;
5078 # Check whether --enable-doxygen was given.
5079 if test "${enable_doxygen+set}" = set; then
5080 enableval=$enable_doxygen;
5085 case "$enableval" in
5086 yes) ENABLE_DOXYGEN=1
5088 no) ENABLE_DOXYGEN=0
5090 default) ENABLE_DOXYGEN=0
5092 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5093 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5094 { (exit 1); exit 1; }; } ;;
5097 # Check whether --enable-threads was given.
5098 if test "${enable_threads+set}" = set; then
5099 enableval=$enable_threads;
5104 case "$enableval" in
5105 yes) ENABLE_THREADS=1
5107 no) ENABLE_THREADS=0
5109 default) ENABLE_THREADS=1
5111 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5112 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5113 { (exit 1); exit 1; }; } ;;
5116 cat >>confdefs.h <<_ACEOF
5117 #define ENABLE_THREADS $ENABLE_THREADS
5121 # Check whether --enable-pthreads was given.
5122 if test "${enable_pthreads+set}" = set; then
5123 enableval=$enable_pthreads;
5128 case "$enableval" in
5129 yes) ENABLE_PTHREADS=1
5131 no) ENABLE_PTHREADS=0
5133 default) ENABLE_PTHREADS=1
5135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5136 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5140 # Check whether --enable-pic was given.
5141 if test "${enable_pic+set}" = set; then
5142 enableval=$enable_pic;
5147 case "$enableval" in
5152 default) ENABLE_PIC=1
5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5159 cat >>confdefs.h <<_ACEOF
5160 #define ENABLE_PIC $ENABLE_PIC
5164 # Check whether --enable-shared was given.
5165 if test "${enable_shared+set}" = set; then
5166 enableval=$enable_shared;
5171 case "$enableval" in
5172 yes) ENABLE_SHARED=1
5176 default) ENABLE_SHARED=0
5178 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5179 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5180 { (exit 1); exit 1; }; } ;;
5183 # Check whether --enable-embed-stdcxx was given.
5184 if test "${enable_embed_stdcxx+set}" = set; then
5185 enableval=$enable_embed_stdcxx;
5190 case "$enableval" in
5191 yes) ENABLE_EMBED_STDCXX=1
5193 no) ENABLE_EMBED_STDCXX=0
5195 default) ENABLE_EMBED_STDCXX=1
5197 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5198 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5199 { (exit 1); exit 1; }; } ;;
5202 # Check whether --enable-timestamps was given.
5203 if test "${enable_timestamps+set}" = set; then
5204 enableval=$enable_timestamps;
5209 case "$enableval" in
5210 yes) ENABLE_TIMESTAMPS=1
5212 no) ENABLE_TIMESTAMPS=0
5214 default) ENABLE_TIMESTAMPS=1
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5217 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5221 cat >>confdefs.h <<_ACEOF
5222 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5227 # Check whether --enable-targets was given.
5228 if test "${enable_targets+set}" = set; then
5229 enableval=$enable_targets;
5234 if test "$enableval" = host-only ; then
5237 case "$enableval" in
5238 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
5239 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5241 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5242 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5243 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5244 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5245 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5246 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5247 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5248 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5249 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5250 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5251 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5252 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5253 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5254 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5255 host) case "$llvm_cv_target_arch" in
5256 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5257 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5258 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5259 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5260 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5261 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5262 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5263 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5264 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5265 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5266 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5267 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5268 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5269 echo "$as_me: error: Can not set target to build" >&2;}
5270 { (exit 1); exit 1; }; } ;;
5272 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5273 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5279 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5282 # Determine whether we are building LLVM support for the native architecture.
5283 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5284 for a_target in $TARGETS_TO_BUILD; do
5285 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5287 cat >>confdefs.h <<_ACEOF
5288 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5291 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5292 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5293 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5294 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5295 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5296 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5299 cat >>confdefs.h <<_ACEOF
5300 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5304 cat >>confdefs.h <<_ACEOF
5305 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5309 cat >>confdefs.h <<_ACEOF
5310 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5314 cat >>confdefs.h <<_ACEOF
5315 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5318 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5320 cat >>confdefs.h <<_ACEOF
5321 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5328 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5329 # target feature def files.
5330 LLVM_ENUM_TARGETS=""
5331 LLVM_ENUM_ASM_PRINTERS=""
5332 LLVM_ENUM_ASM_PARSERS=""
5333 LLVM_ENUM_DISASSEMBLERS=""
5334 for target_to_build in $TARGETS_TO_BUILD; do
5335 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5336 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5337 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5339 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5340 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5342 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5343 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5351 # Check whether --enable-cbe-printf-a was given.
5352 if test "${enable_cbe_printf_a+set}" = set; then
5353 enableval=$enable_cbe_printf_a;
5358 case "$enableval" in
5359 yes) ENABLE_CBE_PRINTF_A=1
5361 no) ENABLE_CBE_PRINTF_A=0
5363 default) ENABLE_CBE_PRINTF_A=1
5365 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5366 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5367 { (exit 1); exit 1; }; } ;;
5370 cat >>confdefs.h <<_ACEOF
5371 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5376 # Check whether --with-optimize-option was given.
5377 if test "${with_optimize_option+set}" = set; then
5378 withval=$with_optimize_option;
5383 { echo "$as_me:$LINENO: checking optimization flags" >&5
5384 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5387 case "$llvm_cv_os_type" in
5388 FreeBSD) optimize_option=-O2 ;;
5389 MingW) optimize_option=-O2 ;;
5390 *) optimize_option=-O3 ;;
5392 *) optimize_option="$withval" ;;
5394 OPTIMIZE_OPTION=$optimize_option
5396 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5397 echo "${ECHO_T}$optimize_option" >&6; }
5400 # Check whether --with-extra-options was given.
5401 if test "${with_extra_options+set}" = set; then
5402 withval=$with_extra_options;
5408 default) EXTRA_OPTIONS= ;;
5409 *) EXTRA_OPTIONS=$withval ;;
5411 EXTRA_OPTIONS=$EXTRA_OPTIONS
5415 # Check whether --with-extra-ld-options was given.
5416 if test "${with_extra_ld_options+set}" = set; then
5417 withval=$with_extra_ld_options;
5423 default) EXTRA_LD_OPTIONS= ;;
5424 *) EXTRA_LD_OPTIONS=$withval ;;
5426 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5429 # Check whether --enable-bindings was given.
5430 if test "${enable_bindings+set}" = set; then
5431 enableval=$enable_bindings;
5436 BINDINGS_TO_BUILD=""
5437 case "$enableval" in
5438 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5439 all ) BINDINGS_TO_BUILD="ocaml" ;;
5440 none | no) BINDINGS_TO_BUILD="" ;;
5441 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5442 case "$a_binding" in
5443 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5444 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5445 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5446 { (exit 1); exit 1; }; } ;;
5453 # Check whether --with-ocaml-libdir was given.
5454 if test "${with_ocaml_libdir+set}" = set; then
5455 withval=$with_ocaml_libdir;
5461 auto) with_ocaml_libdir="$withval" ;;
5462 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5463 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5464 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5465 { (exit 1); exit 1; }; } ;;
5469 # Check whether --with-clang-resource-dir was given.
5470 if test "${with_clang_resource_dir+set}" = set; then
5471 withval=$with_clang_resource_dir;
5477 cat >>confdefs.h <<_ACEOF
5478 #define CLANG_RESOURCE_DIR "$withval"
5483 # Check whether --with-c-include-dirs was given.
5484 if test "${with_c_include_dirs+set}" = set; then
5485 withval=$with_c_include_dirs;
5491 cat >>confdefs.h <<_ACEOF
5492 #define C_INCLUDE_DIRS "$withval"
5497 # Check whether --with-cxx-include-root was given.
5498 if test "${with_cxx_include_root+set}" = set; then
5499 withval=$with_cxx_include_root;
5505 cat >>confdefs.h <<_ACEOF
5506 #define CXX_INCLUDE_ROOT "$withval"
5511 # Check whether --with-cxx-include-arch was given.
5512 if test "${with_cxx_include_arch+set}" = set; then
5513 withval=$with_cxx_include_arch;
5519 cat >>confdefs.h <<_ACEOF
5520 #define CXX_INCLUDE_ARCH "$withval"
5525 # Check whether --with-cxx-include-32bit-dir was given.
5526 if test "${with_cxx_include_32bit_dir+set}" = set; then
5527 withval=$with_cxx_include_32bit_dir;
5533 cat >>confdefs.h <<_ACEOF
5534 #define CXX_INCLUDE_32BIT_DIR "$withval"
5539 # Check whether --with-cxx-include-64bit-dir was given.
5540 if test "${with_cxx_include_64bit_dir+set}" = set; then
5541 withval=$with_cxx_include_64bit_dir;
5547 cat >>confdefs.h <<_ACEOF
5548 #define CXX_INCLUDE_64BIT_DIR "$withval"
5553 # Check whether --with-binutils-include was given.
5554 if test "${with_binutils_include+set}" = set; then
5555 withval=$with_binutils_include;
5561 default) WITH_BINUTILS_INCDIR=default ;;
5562 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5563 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5564 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5565 { (exit 1); exit 1; }; } ;;
5567 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5568 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5570 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5571 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5572 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5573 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5574 { (exit 1); exit 1; }; };
5579 # Check whether --with-bug-report-url was given.
5580 if test "${with_bug_report_url+set}" = set; then
5581 withval=$with_bug_report_url;
5583 withval="http://llvm.org/bugs/"
5587 cat >>confdefs.h <<_ACEOF
5588 #define BUG_REPORT_URL "$withval"
5592 # Check whether --enable-libffi was given.
5593 if test "${enable_libffi+set}" = set; then
5594 enableval=$enable_libffi; case "$enableval" in
5595 yes) llvm_cv_enable_libffi="yes" ;;
5596 no) llvm_cv_enable_libffi="no" ;;
5597 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5598 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5599 { (exit 1); exit 1; }; } ;;
5602 llvm_cv_enable_libffi=no
5607 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5608 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5609 if test "${lt_cv_path_NM+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 if test -n "$NM"; then
5613 # Let the user override the test.
5616 lt_nm_to_check="${ac_tool_prefix}nm"
5617 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5618 lt_nm_to_check="$lt_nm_to_check nm"
5620 for lt_tmp_nm in $lt_nm_to_check; do
5621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5622 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5624 test -z "$ac_dir" && ac_dir=.
5625 tmp_nm="$ac_dir/$lt_tmp_nm"
5626 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5627 # Check to see if the nm accepts a BSD-compat flag.
5628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5629 # nm: unknown option "B" ignored
5630 # Tru64's nm complains that /dev/null is an invalid object file
5631 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5632 */dev/null* | *'Invalid file or object type'*)
5633 lt_cv_path_NM="$tmp_nm -B"
5637 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5639 lt_cv_path_NM="$tmp_nm -p"
5643 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5644 continue # so that we can try to find one that supports BSD flags
5653 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5656 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5657 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5662 { echo "$as_me:$LINENO: checking for GNU make" >&5
5663 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5664 if test "${llvm_cv_gnu_make_command+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 llvm_cv_gnu_make_command=''
5668 for a in "$MAKE" make gmake gnumake ; do
5669 if test -z "$a" ; then continue ; fi ;
5670 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5672 llvm_cv_gnu_make_command=$a ;
5677 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5678 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5679 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5683 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5684 echo "${ECHO_T}\"Not found\"" >&6; };
5688 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5689 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5691 if test "$LN_S" = "ln -s"; then
5692 { echo "$as_me:$LINENO: result: yes" >&5
5693 echo "${ECHO_T}yes" >&6; }
5695 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5696 echo "${ECHO_T}no, using $LN_S" >&6; }
5699 # Extract the first word of "cmp", so it can be a program name with args.
5700 set dummy cmp; ac_word=$2
5701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5703 if test "${ac_cv_path_CMP+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5731 if test -n "$CMP"; then
5732 { echo "$as_me:$LINENO: result: $CMP" >&5
5733 echo "${ECHO_T}$CMP" >&6; }
5735 { echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6; }
5740 # Extract the first word of "cp", so it can be a program name with args.
5741 set dummy cp; ac_word=$2
5742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5744 if test "${ac_cv_path_CP+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5772 if test -n "$CP"; then
5773 { echo "$as_me:$LINENO: result: $CP" >&5
5774 echo "${ECHO_T}$CP" >&6; }
5776 { echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6; }
5781 # Extract the first word of "date", so it can be a program name with args.
5782 set dummy date; ac_word=$2
5783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5785 if test "${ac_cv_path_DATE+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5800 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5812 DATE=$ac_cv_path_DATE
5813 if test -n "$DATE"; then
5814 { echo "$as_me:$LINENO: result: $DATE" >&5
5815 echo "${ECHO_T}$DATE" >&6; }
5817 { echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6; }
5822 # Extract the first word of "find", so it can be a program name with args.
5823 set dummy find; ac_word=$2
5824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826 if test "${ac_cv_path_FIND+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5853 FIND=$ac_cv_path_FIND
5854 if test -n "$FIND"; then
5855 { echo "$as_me:$LINENO: result: $FIND" >&5
5856 echo "${ECHO_T}$FIND" >&6; }
5858 { echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6; }
5863 # Extract the first word of "grep", so it can be a program name with args.
5864 set dummy grep; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_path_GREP+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5882 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5894 GREP=$ac_cv_path_GREP
5895 if test -n "$GREP"; then
5896 { echo "$as_me:$LINENO: result: $GREP" >&5
5897 echo "${ECHO_T}$GREP" >&6; }
5899 { echo "$as_me:$LINENO: result: no" >&5
5900 echo "${ECHO_T}no" >&6; }
5904 # Extract the first word of "mkdir", so it can be a program name with args.
5905 set dummy mkdir; ac_word=$2
5906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908 if test "${ac_cv_path_MKDIR+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5935 MKDIR=$ac_cv_path_MKDIR
5936 if test -n "$MKDIR"; then
5937 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5938 echo "${ECHO_T}$MKDIR" >&6; }
5940 { echo "$as_me:$LINENO: result: no" >&5
5941 echo "${ECHO_T}no" >&6; }
5945 # Extract the first word of "mv", so it can be a program name with args.
5946 set dummy mv; ac_word=$2
5947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949 if test "${ac_cv_path_MV+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5964 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5977 if test -n "$MV"; then
5978 { echo "$as_me:$LINENO: result: $MV" >&5
5979 echo "${ECHO_T}$MV" >&6; }
5981 { echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6; }
5986 if test -n "$ac_tool_prefix"; then
5987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5991 if test "${ac_cv_prog_RANLIB+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 if test -n "$RANLIB"; then
5995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 RANLIB=$ac_cv_prog_RANLIB
6015 if test -n "$RANLIB"; then
6016 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6017 echo "${ECHO_T}$RANLIB" >&6; }
6019 { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6025 if test -z "$ac_cv_prog_RANLIB"; then
6026 ac_ct_RANLIB=$RANLIB
6027 # Extract the first word of "ranlib", so it can be a program name with args.
6028 set dummy ranlib; ac_word=$2
6029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6031 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 if test -n "$ac_ct_RANLIB"; then
6035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_prog_ac_ct_RANLIB="ranlib"
6045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6055 if test -n "$ac_ct_RANLIB"; then
6056 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6057 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6059 { echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6; }
6063 if test "x$ac_ct_RANLIB" = x; then
6066 case $cross_compiling:$ac_tool_warned in
6068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6069 whose name does not start with the host triplet. If you think this
6070 configuration is useful to you, please write to autoconf@gnu.org." >&5
6071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6072 whose name does not start with the host triplet. If you think this
6073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6074 ac_tool_warned=yes ;;
6076 RANLIB=$ac_ct_RANLIB
6079 RANLIB="$ac_cv_prog_RANLIB"
6082 if test -n "$ac_tool_prefix"; then
6083 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6084 set dummy ${ac_tool_prefix}ar; ac_word=$2
6085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087 if test "${ac_cv_prog_AR+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 if test -n "$AR"; then
6091 ac_cv_prog_AR="$AR" # Let the user override the test.
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6100 ac_cv_prog_AR="${ac_tool_prefix}ar"
6101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 if test -n "$AR"; then
6112 { echo "$as_me:$LINENO: result: $AR" >&5
6113 echo "${ECHO_T}$AR" >&6; }
6115 { echo "$as_me:$LINENO: result: no" >&5
6116 echo "${ECHO_T}no" >&6; }
6121 if test -z "$ac_cv_prog_AR"; then
6123 # Extract the first word of "ar", so it can be a program name with args.
6124 set dummy ar; ac_word=$2
6125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6127 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 if test -n "$ac_ct_AR"; then
6131 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_prog_ac_ct_AR="ar"
6141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6151 if test -n "$ac_ct_AR"; then
6152 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6153 echo "${ECHO_T}$ac_ct_AR" >&6; }
6155 { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }
6159 if test "x$ac_ct_AR" = x; then
6162 case $cross_compiling:$ac_tool_warned in
6164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6165 whose name does not start with the host triplet. If you think this
6166 configuration is useful to you, please write to autoconf@gnu.org." >&5
6167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6168 whose name does not start with the host triplet. If you think this
6169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6170 ac_tool_warned=yes ;;
6178 # Extract the first word of "rm", so it can be a program name with args.
6179 set dummy rm; ac_word=$2
6180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182 if test "${ac_cv_path_RM+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6210 if test -n "$RM"; then
6211 { echo "$as_me:$LINENO: result: $RM" >&5
6212 echo "${ECHO_T}$RM" >&6; }
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6219 # Extract the first word of "sed", so it can be a program name with args.
6220 set dummy sed; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_path_SED+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6251 if test -n "$SED"; then
6252 { echo "$as_me:$LINENO: result: $SED" >&5
6253 echo "${ECHO_T}$SED" >&6; }
6255 { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6260 # Extract the first word of "tar", so it can be a program name with args.
6261 set dummy tar; ac_word=$2
6262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6264 if test "${ac_cv_path_TAR+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6292 if test -n "$TAR"; then
6293 { echo "$as_me:$LINENO: result: $TAR" >&5
6294 echo "${ECHO_T}$TAR" >&6; }
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6301 # Extract the first word of "pwd", so it can be a program name with args.
6302 set dummy pwd; ac_word=$2
6303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305 if test "${ac_cv_path_BINPWD+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6332 BINPWD=$ac_cv_path_BINPWD
6333 if test -n "$BINPWD"; then
6334 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6335 echo "${ECHO_T}$BINPWD" >&6; }
6337 { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6343 # Extract the first word of "Graphviz", so it can be a program name with args.
6344 set dummy Graphviz; ac_word=$2
6345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6374 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6375 if test -n "$GRAPHVIZ"; then
6376 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6377 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6379 { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6384 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6386 cat >>confdefs.h <<\_ACEOF
6387 #define HAVE_GRAPHVIZ 1
6390 if test "$llvm_cv_os_type" = "MingW" ; then
6391 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6394 cat >>confdefs.h <<_ACEOF
6395 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6399 # Extract the first word of "dot", so it can be a program name with args.
6400 set dummy dot; ac_word=$2
6401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6403 if test "${ac_cv_path_DOT+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6431 if test -n "$DOT"; then
6432 { echo "$as_me:$LINENO: result: $DOT" >&5
6433 echo "${ECHO_T}$DOT" >&6; }
6435 { echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6; }
6440 if test "$DOT" != "echo dot" ; then
6442 cat >>confdefs.h <<\_ACEOF
6446 if test "$llvm_cv_os_type" = "MingW" ; then
6447 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6450 cat >>confdefs.h <<_ACEOF
6451 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6455 # Extract the first word of "fdp", so it can be a program name with args.
6456 set dummy fdp; ac_word=$2
6457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459 if test "${ac_cv_path_FDP+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6487 if test -n "$FDP"; then
6488 { echo "$as_me:$LINENO: result: $FDP" >&5
6489 echo "${ECHO_T}$FDP" >&6; }
6491 { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6496 if test "$FDP" != "echo fdp" ; then
6498 cat >>confdefs.h <<\_ACEOF
6502 if test "$llvm_cv_os_type" = "MingW" ; then
6503 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6506 cat >>confdefs.h <<_ACEOF
6507 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6511 # Extract the first word of "neato", so it can be a program name with args.
6512 set dummy neato; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_path_NEATO+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6530 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6542 NEATO=$ac_cv_path_NEATO
6543 if test -n "$NEATO"; then
6544 { echo "$as_me:$LINENO: result: $NEATO" >&5
6545 echo "${ECHO_T}$NEATO" >&6; }
6547 { echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6; }
6552 if test "$NEATO" != "echo neato" ; then
6554 cat >>confdefs.h <<\_ACEOF
6555 #define HAVE_NEATO 1
6558 if test "$llvm_cv_os_type" = "MingW" ; then
6559 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6562 cat >>confdefs.h <<_ACEOF
6563 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6567 # Extract the first word of "twopi", so it can be a program name with args.
6568 set dummy twopi; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_path_TWOPI+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6598 TWOPI=$ac_cv_path_TWOPI
6599 if test -n "$TWOPI"; then
6600 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6601 echo "${ECHO_T}$TWOPI" >&6; }
6603 { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6608 if test "$TWOPI" != "echo twopi" ; then
6610 cat >>confdefs.h <<\_ACEOF
6611 #define HAVE_TWOPI 1
6614 if test "$llvm_cv_os_type" = "MingW" ; then
6615 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6618 cat >>confdefs.h <<_ACEOF
6619 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6623 # Extract the first word of "circo", so it can be a program name with args.
6624 set dummy circo; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_CIRCO+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6654 CIRCO=$ac_cv_path_CIRCO
6655 if test -n "$CIRCO"; then
6656 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6657 echo "${ECHO_T}$CIRCO" >&6; }
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6664 if test "$CIRCO" != "echo circo" ; then
6666 cat >>confdefs.h <<\_ACEOF
6667 #define HAVE_CIRCO 1
6670 if test "$llvm_cv_os_type" = "MingW" ; then
6671 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6674 cat >>confdefs.h <<_ACEOF
6675 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6679 for ac_prog in gv gsview32
6681 # Extract the first word of "$ac_prog", so it can be a program name with args.
6682 set dummy $ac_prog; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_path_GV+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 if test -n "$GV"; then
6713 { echo "$as_me:$LINENO: result: $GV" >&5
6714 echo "${ECHO_T}$GV" >&6; }
6716 { echo "$as_me:$LINENO: result: no" >&5
6717 echo "${ECHO_T}no" >&6; }
6721 test -n "$GV" && break
6723 test -n "$GV" || GV="echo gv"
6725 if test "$GV" != "echo gv" ; then
6727 cat >>confdefs.h <<\_ACEOF
6731 if test "$llvm_cv_os_type" = "MingW" ; then
6732 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6735 cat >>confdefs.h <<_ACEOF
6736 #define LLVM_PATH_GV "$GV${EXEEXT}"
6740 # Extract the first word of "dotty", so it can be a program name with args.
6741 set dummy dotty; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_DOTTY+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6771 DOTTY=$ac_cv_path_DOTTY
6772 if test -n "$DOTTY"; then
6773 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6774 echo "${ECHO_T}$DOTTY" >&6; }
6776 { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6781 if test "$DOTTY" != "echo dotty" ; then
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_DOTTY 1
6787 if test "$llvm_cv_os_type" = "MingW" ; then
6788 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6791 cat >>confdefs.h <<_ACEOF
6792 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6796 # Extract the first word of "xdot.py", so it can be a program name with args.
6797 set dummy xdot.py; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6827 XDOT_PY=$ac_cv_path_XDOT_PY
6828 if test -n "$XDOT_PY"; then
6829 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6830 echo "${ECHO_T}$XDOT_PY" >&6; }
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6837 if test "$XDOT_PY" != "echo xdot.py" ; then
6839 cat >>confdefs.h <<\_ACEOF
6840 #define HAVE_XDOT_PY 1
6843 if test "$llvm_cv_os_type" = "MingW" ; then
6844 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6847 cat >>confdefs.h <<_ACEOF
6848 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6854 # Extract the first word of "perl", so it can be a program name with args.
6855 set dummy perl; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_PERL+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6885 PERL=$ac_cv_path_PERL
6886 if test -n "$PERL"; then
6887 { echo "$as_me:$LINENO: result: $PERL" >&5
6888 echo "${ECHO_T}$PERL" >&6; }
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6895 if test "$PERL" != "none"; then
6896 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6897 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6898 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6899 { echo "$as_me:$LINENO: result: yes" >&5
6900 echo "${ECHO_T}yes" >&6; }
6903 { echo "$as_me:$LINENO: result: not found" >&5
6904 echo "${ECHO_T}not found" >&6; }
6909 if test x"$PERL" = xnone; then
6912 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6913 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6914 { (exit 1); exit 1; }; }
6920 # Find a good install program. We prefer a C program (faster),
6921 # so one script is as good as another. But avoid the broken or
6922 # incompatible versions:
6923 # SysV /etc/install, /usr/sbin/install
6924 # SunOS /usr/etc/install
6925 # IRIX /sbin/install
6927 # AmigaOS /C/install, which installs bootblocks on floppy discs
6928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6931 # OS/2's system install, which has a completely different semantic
6932 # ./install, which can be erroneously created by make from ./install.sh.
6933 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6934 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6935 if test -z "$INSTALL"; then
6936 if test "${ac_cv_path_install+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir=.
6944 # Account for people who put trailing slashes in PATH elements.
6946 ./ | .// | /cC/* | \
6947 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6948 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6951 # OSF1 and SCO ODT 3.0 have their own names for install.
6952 # Don't use installbsd from OSF since it installs stuff as root
6954 for ac_prog in ginstall scoinst install; do
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6957 if test $ac_prog = install &&
6958 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6959 # AIX install. It has an incompatible calling convention.
6961 elif test $ac_prog = install &&
6962 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6963 # program-specific install script used by HP pwplus--don't use.
6966 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6979 if test "${ac_cv_path_install+set}" = set; then
6980 INSTALL=$ac_cv_path_install
6982 # As a last resort, use the slow shell script. Don't cache a
6983 # value for INSTALL within a source directory, because that will
6984 # break other packages using the cache if that directory is
6985 # removed, or if the value is a relative name.
6986 INSTALL=$ac_install_sh
6989 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6990 echo "${ECHO_T}$INSTALL" >&6; }
6992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6993 # It thinks the first close brace ends the variable substitution.
6994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7001 [\\/$]* | ?:[\\/]* ) ;;
7002 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7005 # Extract the first word of "bzip2", so it can be a program name with args.
7006 set dummy bzip2; ac_word=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_path_BZIP2+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 BZIP2=$ac_cv_path_BZIP2
7036 if test -n "$BZIP2"; then
7037 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7038 echo "${ECHO_T}$BZIP2" >&6; }
7040 { echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6; }
7045 # Extract the first word of "cat", so it can be a program name with args.
7046 set dummy cat; ac_word=$2
7047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049 if test "${ac_cv_path_CAT+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 if test -n "$CAT"; then
7077 { echo "$as_me:$LINENO: result: $CAT" >&5
7078 echo "${ECHO_T}$CAT" >&6; }
7080 { echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6; }
7085 # Extract the first word of "doxygen", so it can be a program name with args.
7086 set dummy doxygen; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 DOXYGEN=$ac_cv_path_DOXYGEN
7116 if test -n "$DOXYGEN"; then
7117 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7118 echo "${ECHO_T}$DOXYGEN" >&6; }
7120 { echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6; }
7125 # Extract the first word of "groff", so it can be a program name with args.
7126 set dummy groff; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_path_GROFF+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 GROFF=$ac_cv_path_GROFF
7156 if test -n "$GROFF"; then
7157 { echo "$as_me:$LINENO: result: $GROFF" >&5
7158 echo "${ECHO_T}$GROFF" >&6; }
7160 { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7165 # Extract the first word of "gzip", so it can be a program name with args.
7166 set dummy gzip; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 GZIPBIN=$ac_cv_path_GZIPBIN
7196 if test -n "$GZIPBIN"; then
7197 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7198 echo "${ECHO_T}$GZIPBIN" >&6; }
7200 { echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6; }
7205 # Extract the first word of "pod2html", so it can be a program name with args.
7206 set dummy pod2html; ac_word=$2
7207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7209 if test "${ac_cv_path_POD2HTML+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7224 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 POD2HTML=$ac_cv_path_POD2HTML
7236 if test -n "$POD2HTML"; then
7237 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7238 echo "${ECHO_T}$POD2HTML" >&6; }
7240 { echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6; }
7245 # Extract the first word of "pod2man", so it can be a program name with args.
7246 set dummy pod2man; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_POD2MAN+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 POD2MAN=$ac_cv_path_POD2MAN
7276 if test -n "$POD2MAN"; then
7277 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7278 echo "${ECHO_T}$POD2MAN" >&6; }
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7285 # Extract the first word of "pdfroff", so it can be a program name with args.
7286 set dummy pdfroff; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_path_PDFROFF+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 PDFROFF=$ac_cv_path_PDFROFF
7316 if test -n "$PDFROFF"; then
7317 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7318 echo "${ECHO_T}$PDFROFF" >&6; }
7320 { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7325 # Extract the first word of "runtest", so it can be a program name with args.
7326 set dummy runtest; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_RUNTEST+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 RUNTEST=$ac_cv_path_RUNTEST
7356 if test -n "$RUNTEST"; then
7357 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7358 echo "${ECHO_T}$RUNTEST" >&6; }
7360 { echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6; }
7367 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7368 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7370 # Check whether --with-tclinclude was given.
7371 if test "${with_tclinclude+set}" = set; then
7372 withval=$with_tclinclude; with_tclinclude=${withval}
7377 if test "${ac_cv_path_tclsh+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 if test x"${with_tclinclude}" != x ; then
7382 if test -f ${with_tclinclude}/tclsh ; then
7383 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7384 elif test -f ${with_tclinclude}/src/tclsh ; then
7385 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7387 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7388 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7389 { (exit 1); exit 1; }; }
7395 if test x"${ac_cv_path_tclsh}" = x ; then
7396 { echo "$as_me:$LINENO: result: none" >&5
7397 echo "${ECHO_T}none" >&6; }
7398 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
7400 # Extract the first word of "$ac_prog", so it can be a program name with args.
7401 set dummy $ac_prog; ac_word=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_path_TCLSH+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 TCLSH=$ac_cv_path_TCLSH
7431 if test -n "$TCLSH"; then
7432 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7433 echo "${ECHO_T}$TCLSH" >&6; }
7435 { echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6; }
7440 test -n "$TCLSH" && break
7443 if test x"${TCLSH}" = x ; then
7444 ac_cv_path_tclsh='';
7446 ac_cv_path_tclsh="${TCLSH}";
7449 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7450 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7451 TCLSH="${ac_cv_path_tclsh}"
7455 # Extract the first word of "zip", so it can be a program name with args.
7456 set dummy zip; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_ZIP+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 if test -n "$ZIP"; then
7487 { echo "$as_me:$LINENO: result: $ZIP" >&5
7488 echo "${ECHO_T}$ZIP" >&6; }
7490 { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7495 for ac_prog in ocamlc
7497 # Extract the first word of "$ac_prog", so it can be a program name with args.
7498 set dummy $ac_prog; ac_word=$2
7499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501 if test "${ac_cv_path_OCAMLC+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7516 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 OCAMLC=$ac_cv_path_OCAMLC
7528 if test -n "$OCAMLC"; then
7529 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7530 echo "${ECHO_T}$OCAMLC" >&6; }
7532 { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7537 test -n "$OCAMLC" && break
7540 for ac_prog in ocamlopt
7542 # Extract the first word of "$ac_prog", so it can be a program name with args.
7543 set dummy $ac_prog; ac_word=$2
7544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7546 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 OCAMLOPT=$ac_cv_path_OCAMLOPT
7573 if test -n "$OCAMLOPT"; then
7574 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7575 echo "${ECHO_T}$OCAMLOPT" >&6; }
7577 { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7582 test -n "$OCAMLOPT" && break
7585 for ac_prog in ocamldep
7587 # Extract the first word of "$ac_prog", so it can be a program name with args.
7588 set dummy $ac_prog; ac_word=$2
7589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 OCAMLDEP=$ac_cv_path_OCAMLDEP
7618 if test -n "$OCAMLDEP"; then
7619 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7620 echo "${ECHO_T}$OCAMLDEP" >&6; }
7622 { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7627 test -n "$OCAMLDEP" && break
7630 for ac_prog in ocamldoc
7632 # Extract the first word of "$ac_prog", so it can be a program name with args.
7633 set dummy $ac_prog; ac_word=$2
7634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7636 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 OCAMLDOC=$ac_cv_path_OCAMLDOC
7663 if test -n "$OCAMLDOC"; then
7664 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7665 echo "${ECHO_T}$OCAMLDOC" >&6; }
7667 { echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6; }
7672 test -n "$OCAMLDOC" && break
7675 for ac_prog in gas as
7677 # Extract the first word of "$ac_prog", so it can be a program name with args.
7678 set dummy $ac_prog; ac_word=$2
7679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7681 if test "${ac_cv_path_GAS+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7696 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 if test -n "$GAS"; then
7709 { echo "$as_me:$LINENO: result: $GAS" >&5
7710 echo "${ECHO_T}$GAS" >&6; }
7712 { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7717 test -n "$GAS" && break
7721 { echo "$as_me:$LINENO: checking for linker version" >&5
7722 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7723 if test "${llvm_cv_link_version+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 version_string="$(ld -v 2>&1 | head -1)"
7730 if (echo "$version_string" | grep -q "ld64"); then
7731 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7733 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7737 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7738 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7740 cat >>confdefs.h <<_ACEOF
7741 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7746 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7747 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7748 if test "${llvm_cv_link_use_r+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 ac_cpp='$CPP $CPPFLAGS'
7753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7758 CFLAGS="$CFLAGS -Wl,-R."
7759 cat >conftest.$ac_ext <<_ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h. */
7774 rm -f conftest.$ac_objext conftest$ac_exeext
7775 if { (ac_try="$ac_link"
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_link") 2>conftest.er1
7783 grep -v '^ *+' conftest.er1 >conftest.err
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
7788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7789 { (case "(($ac_try" in
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794 (eval "$ac_try") 2>&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; } &&
7798 { ac_try='test -s conftest$ac_exeext'
7799 { (case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_try") 2>&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 llvm_cv_link_use_r=yes
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 llvm_cv_link_use_r=no
7816 rm -f core conftest.err conftest.$ac_objext \
7817 conftest$ac_exeext conftest.$ac_ext
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7828 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7829 if test "$llvm_cv_link_use_r" = yes ; then
7831 cat >>confdefs.h <<\_ACEOF
7832 #define HAVE_LINK_R 1
7838 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7839 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7840 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 ac_cpp='$CPP $CPPFLAGS'
7845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7851 cat >conftest.$ac_ext <<_ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (ac_try="$ac_link"
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_link") 2>conftest.er1
7875 grep -v '^ *+' conftest.er1 >conftest.err
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7881 { (case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7886 (eval "$ac_try") 2>&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_try") 2>&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 llvm_cv_link_use_export_dynamic=yes
7902 echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7905 llvm_cv_link_use_export_dynamic=no
7908 rm -f core conftest.err conftest.$ac_objext \
7909 conftest$ac_exeext conftest.$ac_ext
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7920 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7921 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7923 cat >>confdefs.h <<\_ACEOF
7924 #define HAVE_LINK_EXPORT_DYNAMIC 1
7930 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7931 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7932 if test "${llvm_cv_link_use_version_script+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 ac_cpp='$CPP $CPPFLAGS'
7937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943 # The following code is from the autoconf manual,
7944 # "11.13: Limitations of Usual Tools".
7945 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7946 # Use mktemp if possible; otherwise fall back on mkdir,
7947 # with $RANDOM to make collisions less likely.
7951 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7953 test -n "$tmp" && test -d "$tmp"
7955 tmp=$TMPDIR/foo$$-$RANDOM
7956 (umask 077 && mkdir "$tmp")
7959 echo "{" > "$tmp/export.map"
7960 echo " global: main;" >> "$tmp/export.map"
7961 echo " local: *;" >> "$tmp/export.map"
7962 echo "};" >> "$tmp/export.map"
7964 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7965 cat >conftest.$ac_ext <<_ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7980 rm -f conftest.$ac_objext conftest$ac_exeext
7981 if { (ac_try="$ac_link"
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_link") 2>conftest.er1
7989 grep -v '^ *+' conftest.er1 >conftest.err
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7995 { (case "(($ac_try" in
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_try") 2>&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest$ac_exeext'
8005 { (case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_try") 2>&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 llvm_cv_link_use_version_script=yes
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 llvm_cv_link_use_version_script=no
8022 rm -f core conftest.err conftest.$ac_objext \
8023 conftest$ac_exeext conftest.$ac_ext
8024 rm "$tmp/export.map"
8028 ac_cpp='$CPP $CPPFLAGS'
8029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8036 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8037 if test "$llvm_cv_link_use_version_script" = yes ; then
8038 HAVE_LINK_VERSION_SCRIPT=1
8045 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8046 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8047 if test "${ac_cv_c_const+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8060 /* FIXME: Include the comments suggested by Paul. */
8062 /* Ultrix mips cc rejects this. */
8063 typedef int charset[2];
8065 /* SunOS 4.1.1 cc rejects this. */
8066 char const *const *ccp;
8068 /* NEC SVR4.0.2 mips cc rejects this. */
8069 struct point {int x, y;};
8070 static struct point const zero = {0,0};
8071 /* AIX XL C 1.02.0.0 rejects this.
8072 It does not let you subtract one const X* pointer from another in
8073 an arm of an if-expression whose if-part is not a constant
8075 const char *g = "string";
8076 ccp = &g + (g ? g-g : 0);
8077 /* HPUX 7.0 cc rejects these. */
8080 ccp = (char const *const *) p;
8081 { /* SCO 3.2v4 cc rejects this. */
8083 char const *s = 0 ? (char *) 0 : (char const *) 0;
8088 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8090 const int *foo = &x[0];
8093 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8094 typedef const int *iptr;
8098 { /* AIX XL C 1.02.0.0 rejects this saying
8099 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8100 struct s { int j; const int *ap[3]; };
8101 struct s *b; b->j = 5;
8103 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8107 return !x[0] && !zero.x;
8114 rm -f conftest.$ac_objext
8115 if { (ac_try="$ac_compile"
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_try") 2>&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8159 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8160 if test $ac_cv_c_const = no; then
8162 cat >>confdefs.h <<\_ACEOF
8174 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8175 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8176 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8177 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 #include <sys/types.h>
8199 rm -f conftest.$ac_objext
8200 if { (ac_try="$ac_compile"
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_compile") 2>conftest.er1
8208 grep -v '^ *+' conftest.er1 >conftest.err
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8214 { (case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_try") 2>&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest.$ac_objext'
8224 { (case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_try") 2>&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 eval "$as_ac_Header=yes"
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 eval "$as_ac_Header=no"
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 ac_res=`eval echo '${'$as_ac_Header'}'`
8244 { echo "$as_me:$LINENO: result: $ac_res" >&5
8245 echo "${ECHO_T}$ac_res" >&6; }
8246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8247 cat >>confdefs.h <<_ACEOF
8248 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8251 ac_header_dirent=$ac_hdr; break
8255 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8256 if test $ac_header_dirent = dirent.h; then
8257 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8258 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8259 if test "${ac_cv_search_opendir+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 ac_func_search_save_LIBS=$LIBS
8263 cat >conftest.$ac_ext <<_ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8270 /* Override any GCC internal prototype to avoid an error.
8271 Use char because int might match the return type of a GCC
8272 builtin and then its argument prototype would still apply. */
8285 for ac_lib in '' dir; do
8286 if test -z "$ac_lib"; then
8287 ac_res="none required"
8290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8292 rm -f conftest.$ac_objext conftest$ac_exeext
8293 if { (ac_try="$ac_link"
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_link") 2>conftest.er1
8301 grep -v '^ *+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8307 { (case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_try") 2>&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; } &&
8316 { ac_try='test -s conftest$ac_exeext'
8317 { (case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_try") 2>&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 ac_cv_search_opendir=$ac_res
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8334 rm -f core conftest.err conftest.$ac_objext \
8336 if test "${ac_cv_search_opendir+set}" = set; then
8340 if test "${ac_cv_search_opendir+set}" = set; then
8343 ac_cv_search_opendir=no
8346 LIBS=$ac_func_search_save_LIBS
8348 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8349 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8350 ac_res=$ac_cv_search_opendir
8351 if test "$ac_res" != no; then
8352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8357 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8358 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8359 if test "${ac_cv_search_opendir+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 ac_func_search_save_LIBS=$LIBS
8363 cat >conftest.$ac_ext <<_ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8370 /* Override any GCC internal prototype to avoid an error.
8371 Use char because int might match the return type of a GCC
8372 builtin and then its argument prototype would still apply. */
8385 for ac_lib in '' x; do
8386 if test -z "$ac_lib"; then
8387 ac_res="none required"
8390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (ac_try="$ac_link"
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_link") 2>conftest.er1
8401 grep -v '^ *+' conftest.er1 >conftest.err
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8407 { (case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_try") 2>&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest$ac_exeext'
8417 { (case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_try") 2>&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_cv_search_opendir=$ac_res
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8434 rm -f core conftest.err conftest.$ac_objext \
8436 if test "${ac_cv_search_opendir+set}" = set; then
8440 if test "${ac_cv_search_opendir+set}" = set; then
8443 ac_cv_search_opendir=no
8446 LIBS=$ac_func_search_save_LIBS
8448 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8449 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8450 ac_res=$ac_cv_search_opendir
8451 if test "$ac_res" != no; then
8452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8459 for ac_header in dlfcn.h
8461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 ac_res=`eval echo '${'$as_ac_Header'}'`
8469 { echo "$as_me:$LINENO: result: $ac_res" >&5
8470 echo "${ECHO_T}$ac_res" >&6; }
8472 # Is the header compilable?
8473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8481 $ac_includes_default
8482 #include <$ac_header>
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_compile") 2>conftest.er1
8493 grep -v '^ *+' conftest.er1 >conftest.err
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
8498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8499 { (case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504 (eval "$ac_try") 2>&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest.$ac_objext'
8509 { (case "(($ac_try" in
8510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511 *) ac_try_echo=$ac_try;;
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514 (eval "$ac_try") 2>&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; }; then
8518 ac_header_compiler=yes
8520 echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8523 ac_header_compiler=no
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8528 echo "${ECHO_T}$ac_header_compiler" >&6; }
8530 # Is the header present?
8531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8533 cat >conftest.$ac_ext <<_ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 #include <$ac_header>
8541 if { (ac_try="$ac_cpp conftest.$ac_ext"
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8549 grep -v '^ *+' conftest.er1 >conftest.err
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } >/dev/null; then
8554 if test -s conftest.err; then
8555 ac_cpp_err=$ac_c_preproc_warn_flag
8556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8563 if test -z "$ac_cpp_err"; then
8564 ac_header_preproc=yes
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 ac_header_preproc=no
8572 rm -f conftest.err conftest.$ac_ext
8573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8574 echo "${ECHO_T}$ac_header_preproc" >&6; }
8576 # So? What about this header?
8577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8583 ac_header_preproc=yes
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8599 ## ------------------------------ ##
8600 ## Report this to bugs@yourdomain ##
8601 ## ------------------------------ ##
8603 ) | sed "s/^/$as_me: WARNING: /" >&2
8606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 eval "$as_ac_Header=\$ac_header_preproc"
8613 ac_res=`eval echo '${'$as_ac_Header'}'`
8614 { echo "$as_me:$LINENO: result: $ac_res" >&5
8615 echo "${ECHO_T}$ac_res" >&6; }
8618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8619 cat >>confdefs.h <<_ACEOF
8620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8627 # Check whether --enable-ltdl-install was given.
8628 if test "${enable_ltdl_install+set}" = set; then
8629 enableval=$enable_ltdl_install;
8635 if test x"${enable_ltdl_install-no}" != xno; then
8637 INSTALL_LTDL_FALSE='#'
8639 INSTALL_LTDL_TRUE='#'
8645 if test x"${enable_ltdl_convenience-no}" != xno; then
8646 CONVENIENCE_LTDL_TRUE=
8647 CONVENIENCE_LTDL_FALSE='#'
8649 CONVENIENCE_LTDL_TRUE='#'
8650 CONVENIENCE_LTDL_FALSE=
8654 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8655 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8657 libname_spec='lib$name'
8665 shlibpath_overrides_runpath=unknown
8667 dynamic_linker="$host_os ld.so"
8668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8669 if test "$GCC" = yes; then
8670 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8671 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8672 # if the path contains ";" then we assume it to be the separator
8673 # otherwise default to the standard path separator (i.e. ":") - it is
8674 # assumed that no part of a normal pathname contains ";" but that should
8675 # okay in the real world where ";" in dirpaths is itself problematic.
8676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8681 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8683 need_lib_prefix=unknown
8684 hardcode_into_libs=no
8686 # when you set need_version to no, make sure it does not cause -set_version
8687 # flags to be left without arguments
8688 need_version=unknown
8693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8694 shlibpath_var=LIBPATH
8696 # AIX 3 has no versioning support, so we append a major version to the name.
8697 soname_spec='${libname}${release}${shared_ext}$major'
8704 hardcode_into_libs=yes
8705 if test "$host_cpu" = ia64; then
8706 # AIX 5 supports IA64
8707 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8708 shlibpath_var=LD_LIBRARY_PATH
8710 # With GCC up to 2.95.x, collect2 would create an import file
8711 # for dependence libraries. The import file would start with
8712 # the line `#! .'. This would cause the generated library to
8713 # depend on `.', always an invalid library. This was fixed in
8714 # development snapshots of GCC prior to 3.0.
8716 aix4 | aix4.[01] | aix4.[01].*)
8717 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8719 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8726 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8727 # soname into executable. Probably we can add versioning support to
8728 # collect2, so additional links can be useful in future.
8729 if test "$aix_use_runtimelinking" = yes; then
8730 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8731 # instead of lib<name>.a to let people know that these are not
8732 # typical AIX shared libraries.
8733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8735 # We preserve .a as extension for shared libraries through AIX4.2
8736 # and later when we are not doing run time linking.
8737 library_names_spec='${libname}${release}.a $libname.a'
8738 soname_spec='${libname}${release}${shared_ext}$major'
8740 shlibpath_var=LIBPATH
8745 library_names_spec='$libname.ixlibrary $libname.a'
8746 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8747 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'
8751 library_names_spec='${libname}${shared_ext}'
8752 dynamic_linker="$host_os ld.so"
8753 shlibpath_var=LIBRARY_PATH
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8760 soname_spec='${libname}${release}${shared_ext}$major'
8761 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8762 shlibpath_var=LD_LIBRARY_PATH
8763 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8764 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8765 # the default ld.so.conf also contains /usr/contrib/lib and
8766 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8767 # libtool to hard-code these into programs
8770 cygwin* | mingw* | pw32*)
8771 version_type=windows
8776 case $GCC,$host_os in
8777 yes,cygwin* | yes,mingw* | yes,pw32*)
8778 library_names_spec='$libname.dll.a'
8779 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8780 postinstall_cmds='base_file=`basename \${file}`~
8781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8782 dldir=$destdir/`dirname \$dlpath`~
8783 test -d \$dldir || mkdir -p \$dldir~
8784 $install_prog $dir/$dlname \$dldir/$dlname~
8785 chmod a+x \$dldir/$dlname'
8786 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8787 dlpath=$dir/\$dldll~
8789 shlibpath_overrides_runpath=yes
8793 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8794 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8795 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8798 # MinGW DLLs use traditional 'lib' prefix
8799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8801 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8802 # It is most probably a Windows format PATH printed by
8803 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8804 # path with ; separators, and with drive letters. We can handle the
8805 # drive letters (cygwin fileutils understands them), so leave them,
8806 # especially as we might pass files found there to a mingw objdump,
8807 # which wouldn't understand a cygwinified path. Ahh.
8808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8814 # pw32 DLLs use 'pw' prefix rather than 'lib'
8815 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8821 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8824 dynamic_linker='Win32 ld.exe'
8825 # FIXME: first we should search . and the directory the executable is in
8829 darwin* | rhapsody*)
8830 dynamic_linker="$host_os dyld"
8834 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8835 soname_spec='${libname}${release}${major}$shared_ext'
8836 shlibpath_overrides_runpath=yes
8837 shlibpath_var=DYLD_LIBRARY_PATH
8838 shrext_cmds='.dylib'
8839 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8840 if test "$GCC" = yes; then
8841 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"`
8843 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8845 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 shlibpath_var=LD_LIBRARY_PATH
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 shlibpath_var=LD_LIBRARY_PATH
8868 shlibpath_overrides_runpath=no
8869 hardcode_into_libs=yes
8870 dynamic_linker='GNU ld.so'
8873 freebsd* | dragonfly*)
8874 # DragonFly does not have aout. When/if they implement a new
8875 # versioning mechanism, adjust this.
8876 if test -x /usr/bin/objformat; then
8877 objformat=`/usr/bin/objformat`
8880 freebsd[123].*) objformat=aout ;;
8884 version_type=freebsd-$objformat
8885 case $version_type in
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8896 shlibpath_var=LD_LIBRARY_PATH
8899 shlibpath_overrides_runpath=yes
8901 freebsd3.[01]* | freebsdelf3.[01]*)
8902 shlibpath_overrides_runpath=yes
8903 hardcode_into_libs=yes
8905 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8906 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8907 shlibpath_overrides_runpath=no
8908 hardcode_into_libs=yes
8910 freebsd*) # from 4.6 on
8911 shlibpath_overrides_runpath=yes
8912 hardcode_into_libs=yes
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 hardcode_into_libs=yes
8927 hpux9* | hpux10* | hpux11*)
8928 # Give a soname corresponding to the major version so that dld.sl refuses to
8929 # link against other versions.
8936 hardcode_into_libs=yes
8937 dynamic_linker="$host_os dld.so"
8938 shlibpath_var=LD_LIBRARY_PATH
8939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 if test "X$HPUX_IA64_MODE" = X32; then
8943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8951 hardcode_into_libs=yes
8952 dynamic_linker="$host_os dld.sl"
8953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8962 dynamic_linker="$host_os dld.sl"
8963 shlibpath_var=SHLIB_PATH
8964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8969 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8970 postinstall_cmds='chmod 555 $lib'
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=no
8982 hardcode_into_libs=yes
8985 irix5* | irix6* | nonstopux*)
8987 nonstopux*) version_type=nonstopux ;;
8989 if test "$lt_cv_prog_gnu_ld" = yes; then
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9000 irix5* | nonstopux*)
9004 case $LD in # libtool.m4 will add one of these switches to LD
9005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9006 libsuff= shlibsuff= libmagic=32-bit;;
9007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9008 libsuff=32 shlibsuff=N32 libmagic=N32;;
9009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9011 *) libsuff= shlibsuff= libmagic=never-match;;
9015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9016 shlibpath_overrides_runpath=no
9017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9019 hardcode_into_libs=yes
9022 # No shared lib support for Linux oldld, aout, or coff.
9023 linux*oldld* | linux*aout* | linux*coff*)
9027 # This must be Linux ELF.
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 # This implies no fast_install, which is unacceptable.
9038 # Some rework will be needed to allow for fast_install
9039 # before this can be enabled.
9040 hardcode_into_libs=yes
9042 # Append ld.so.conf contents to the search path
9043 if test -f /etc/ld.so.conf; then
9044 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' ' '`
9045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9048 # We used to test for /lib/ld.so.1 and disable shared libraries on
9049 # powerpc, because MkLinux only supported shared libraries with the
9050 # GNU dynamic linker. Since this was broken with cross compilers,
9051 # most powerpc-linux boxes support dynamic linking these days and
9052 # people can always --disable-shared, the test was removed, and we
9053 # assume the GNU/Linux dynamic linker is in use.
9054 dynamic_linker='GNU/Linux ld.so'
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 shlibpath_overrides_runpath=no
9065 hardcode_into_libs=yes
9066 dynamic_linker='GNU ld.so'
9073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9076 dynamic_linker='NetBSD (a.out) ld.so'
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 dynamic_linker='NetBSD ld.elf_so'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=yes
9084 hardcode_into_libs=yes
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=yes
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=yes
9106 sys_lib_dlsearch_path_spec="/usr/lib"
9108 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9110 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9111 *) need_version=no ;;
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9118 openbsd2.[89] | openbsd2.[89].*)
9119 shlibpath_overrides_runpath=no
9122 shlibpath_overrides_runpath=yes
9126 shlibpath_overrides_runpath=yes
9131 libname_spec='$name'
9134 library_names_spec='$libname${shared_ext} $libname.a'
9135 dynamic_linker='OS/2 ld.exe'
9136 shlibpath_var=LIBPATH
9139 osf3* | osf4* | osf5*)
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9147 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=yes
9158 hardcode_into_libs=yes
9159 # ldd complains unless libraries are executable
9160 postinstall_cmds='chmod +x $lib'
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=yes
9169 if test "$with_gnu_ld" = yes; then
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 case $host_vendor in
9182 shlibpath_overrides_runpath=no
9184 export_dynamic_flag_spec='${wl}-Blargedynsym'
9185 runpath_var=LD_RUN_PATH
9193 shlibpath_overrides_runpath=no
9194 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9200 if test -d /usr/nec ;then
9202 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9203 soname_spec='$libname${shared_ext}.$major'
9204 shlibpath_var=LD_LIBRARY_PATH
9208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9209 version_type=freebsd-elf
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 hardcode_into_libs=yes
9216 if test "$with_gnu_ld" = yes; then
9217 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9218 shlibpath_overrides_runpath=no
9220 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9221 shlibpath_overrides_runpath=yes
9224 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9228 sys_lib_dlsearch_path_spec='/usr/lib'
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 shlibpath_var=LD_LIBRARY_PATH
9242 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9243 echo "${ECHO_T}$dynamic_linker" >&6; }
9244 test "$dynamic_linker" = no && can_build_shared=no
9246 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9247 if test "$GCC" = yes; then
9248 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9252 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9253 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9254 if test "${libltdl_cv_shlibext+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 eval libltdl_cv_shlibext=$shrext_cmds
9262 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9263 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9264 if test -n "$libltdl_cv_shlibext"; then
9266 cat >>confdefs.h <<_ACEOF
9267 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9273 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9274 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9275 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 libltdl_cv_shlibpath_var="$shlibpath_var"
9280 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9281 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9282 if test -n "$libltdl_cv_shlibpath_var"; then
9284 cat >>confdefs.h <<_ACEOF
9285 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9291 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9292 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9293 if test "${libltdl_cv_sys_search_path+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9298 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9299 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9300 if test -n "$libltdl_cv_sys_search_path"; then
9302 for dir in $libltdl_cv_sys_search_path; do
9303 if test -z "$sys_search_path"; then
9304 sys_search_path="$dir"
9306 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9310 cat >>confdefs.h <<_ACEOF
9311 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9316 { echo "$as_me:$LINENO: checking for objdir" >&5
9317 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9318 if test "${libltdl_cv_objdir+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 libltdl_cv_objdir="$objdir"
9322 if test -n "$objdir"; then
9325 rm -f .libs 2>/dev/null
9326 mkdir .libs 2>/dev/null
9327 if test -d .libs; then
9328 libltdl_cv_objdir=.libs
9330 # MS-DOS does not allow filenames that begin with a dot.
9331 libltdl_cv_objdir=_libs
9333 rmdir .libs 2>/dev/null
9337 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9338 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9340 cat >>confdefs.h <<_ACEOF
9341 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9349 # Check for command to grab the raw symbol name followed by C symbol from nm.
9350 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9351 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9352 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 # These are sane defaults that work on at least a few old systems.
9357 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9359 # Character class describing NM global symbol codes.
9360 symcode='[BCDEGRST]'
9362 # Regexp to match symbols that can be accessed directly from C.
9363 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9365 # Transform an extracted symbol line into a proper C declaration
9366 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9368 # Transform an extracted symbol line into symbol name and symbol address
9369 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'"
9371 # Define system-specific variables.
9376 cygwin* | mingw* | pw32*)
9377 symcode='[ABCDGISTW]'
9379 hpux*) # Its linker distinguishes data from code symbols
9380 if test "$host_cpu" = ia64; then
9381 symcode='[ABCDEGRST]'
9383 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9384 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'"
9387 if test "$host_cpu" = ia64; then
9388 symcode='[ABCDGIRSTW]'
9389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9390 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9394 symcode='[BCDEGRST]'
9397 symcode='[BCDEGQRST]'
9408 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9416 # Handle CRLF in mingw tool chain
9420 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9424 # If we're using GNU nm, then use its standard symbol codes.
9425 case `$NM -V 2>&1` in
9426 *GNU* | *'with BFD'*)
9427 symcode='[ABCDGIRSTW]' ;;
9430 # Try without a prefix undercore, then with it.
9431 for ac_symprfx in "" "_"; do
9433 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9434 symxfrm="\\1 $ac_symprfx\\2 \\2"
9436 # Write the raw and C identifiers.
9437 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9439 # Check to see that the pipe works correctly.
9443 cat > conftest.$ac_ext <<EOF
9448 void nm_test_func(){}
9452 int main(){nm_test_var='a';nm_test_func();return(0);}
9455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9456 (eval $ac_compile) 2>&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; then
9460 # Now try to grab the symbols.
9462 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9463 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } && test -s "$nlist"; then
9467 # Try sorting and uniquifying the output.
9468 if sort "$nlist" | uniq > "$nlist"T; then
9469 mv -f "$nlist"T "$nlist"
9474 # Make sure that we snagged all the symbols we need.
9475 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9476 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9477 cat <<EOF > conftest.$ac_ext
9483 # Now generate the symbol file.
9484 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9486 cat <<EOF >> conftest.$ac_ext
9487 #if defined (__STDC__) && __STDC__
9488 # define lt_ptr_t void *
9490 # define lt_ptr_t char *
9494 /* The mapping between symbol names and symbols. */
9499 lt_preloaded_symbols[] =
9502 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9503 cat <<\EOF >> conftest.$ac_ext
9511 # Now try linking the two files.
9512 mv conftest.$ac_objext conftstm.$ac_objext
9513 lt_save_LIBS="$LIBS"
9514 lt_save_CFLAGS="$CFLAGS"
9515 LIBS="conftstm.$ac_objext"
9516 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9518 (eval $ac_link) 2>&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9524 LIBS="$lt_save_LIBS"
9525 CFLAGS="$lt_save_CFLAGS"
9527 echo "cannot find nm_test_func in $nlist" >&5
9530 echo "cannot find nm_test_var in $nlist" >&5
9533 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9536 echo "$progname: failed program was:" >&5
9537 cat conftest.$ac_ext >&5
9539 rm -f conftest* conftst*
9541 # Do not use the global_symbol_pipe unless it works.
9542 if test "$pipe_works" = yes; then
9545 lt_cv_sys_global_symbol_pipe=
9551 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9552 lt_cv_sys_global_symbol_to_cdecl=
9554 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9555 { echo "$as_me:$LINENO: result: failed" >&5
9556 echo "${ECHO_T}failed" >&6; }
9558 { echo "$as_me:$LINENO: result: ok" >&5
9559 echo "${ECHO_T}ok" >&6; }
9563 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9564 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9565 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9569 libltdl_cv_preloaded_symbols=yes
9571 libltdl_cv_preloaded_symbols=no
9575 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9576 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9577 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9579 cat >>confdefs.h <<\_ACEOF
9580 #define HAVE_PRELOADED_SYMBOLS 1
9588 ac_cpp='$CPP $CPPFLAGS'
9589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9594 { echo "$as_me:$LINENO: checking for shl_load" >&5
9595 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9596 if test "${ac_cv_func_shl_load+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9607 #define shl_load innocuous_shl_load
9609 /* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char shl_load (); below.
9611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612 <limits.h> exists even on freestanding compilers. */
9615 # include <limits.h>
9617 # include <assert.h>
9622 /* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9629 /* The GNU C library defines this for functions which it implements
9630 to always fail with ENOSYS. Some functions are actually named
9631 something starting with __ and the normal name is an alias. */
9632 #if defined __stub_shl_load || defined __stub___shl_load
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (ac_try="$ac_link"
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_link") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1 >conftest.err
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659 { (case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_try") 2>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_try") 2>&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 ac_cv_func_shl_load=yes
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ac_cv_func_shl_load=no
9686 rm -f core conftest.err conftest.$ac_objext \
9687 conftest$ac_exeext conftest.$ac_ext
9689 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9690 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9691 if test $ac_cv_func_shl_load = yes; then
9693 cat >>confdefs.h <<\_ACEOF
9694 #define HAVE_SHL_LOAD 1
9698 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9699 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9700 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 ac_check_lib_save_LIBS=$LIBS
9705 cat >conftest.$ac_ext <<_ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9712 /* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (ac_try="$ac_link"
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_link") 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742 { (case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_try") 2>&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_lib_dld_shl_load=yes
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9766 ac_cv_lib_dld_shl_load=no
9769 rm -f core conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
9771 LIBS=$ac_check_lib_save_LIBS
9773 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9774 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9775 if test $ac_cv_lib_dld_shl_load = yes; then
9777 cat >>confdefs.h <<\_ACEOF
9778 #define HAVE_SHL_LOAD 1
9781 LIBADD_DL="$LIBADD_DL -ldld"
9783 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9784 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9785 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 ac_check_lib_save_LIBS=$LIBS
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9797 /* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (ac_try="$ac_link"
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>conftest.er1
9821 grep -v '^ *+' conftest.er1 >conftest.err
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest$ac_exeext'
9837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_lib_dl_dlopen=yes
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_cv_lib_dl_dlopen=no
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 LIBS=$ac_check_lib_save_LIBS
9858 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9859 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9860 if test $ac_cv_lib_dl_dlopen = yes; then
9862 cat >>confdefs.h <<\_ACEOF
9863 #define HAVE_LIBDL 1
9866 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_link") 2>conftest.er1
9895 grep -v '^ *+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest$ac_exeext'
9911 { (case "(($ac_try" in
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_try") 2>&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9921 cat >>confdefs.h <<\_ACEOF
9922 #define HAVE_LIBDL 1
9924 libltdl_cv_func_dlopen="yes"
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9930 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9931 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 ac_check_lib_save_LIBS=$LIBS
9936 cat >conftest.$ac_ext <<_ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9943 /* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
9958 rm -f conftest.$ac_objext conftest$ac_exeext
9959 if { (ac_try="$ac_link"
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_link") 2>conftest.er1
9967 grep -v '^ *+' conftest.er1 >conftest.err
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest$ac_exeext'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_cv_lib_svld_dlopen=yes
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9997 ac_cv_lib_svld_dlopen=no
10000 rm -f core conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002 LIBS=$ac_check_lib_save_LIBS
10004 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10005 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10006 if test $ac_cv_lib_svld_dlopen = yes; then
10008 cat >>confdefs.h <<\_ACEOF
10009 #define HAVE_LIBDL 1
10012 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10014 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10015 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 ac_check_lib_save_LIBS=$LIBS
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10028 /* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10038 return dld_link ();
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
10052 grep -v '^ *+' conftest.er1 >conftest.err
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10058 { (case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_try") 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_lib_dld_dld_link=yes
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 ac_cv_lib_dld_dld_link=no
10085 rm -f core conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087 LIBS=$ac_check_lib_save_LIBS
10089 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10090 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10091 if test $ac_cv_lib_dld_dld_link = yes; then
10093 cat >>confdefs.h <<\_ACEOF
10097 LIBADD_DL="$LIBADD_DL -ldld"
10099 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10100 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10101 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 cat >conftest.$ac_ext <<_ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10112 #define _dyld_func_lookup innocuous__dyld_func_lookup
10114 /* System header to define __stub macros and hopefully few prototypes,
10115 which can conflict with char _dyld_func_lookup (); below.
10116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10117 <limits.h> exists even on freestanding compilers. */
10120 # include <limits.h>
10122 # include <assert.h>
10125 #undef _dyld_func_lookup
10127 /* Override any GCC internal prototype to avoid an error.
10128 Use char because int might match the return type of a GCC
10129 builtin and then its argument prototype would still apply. */
10133 char _dyld_func_lookup ();
10134 /* The GNU C library defines this for functions which it implements
10135 to always fail with ENOSYS. Some functions are actually named
10136 something starting with __ and the normal name is an alias. */
10137 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10144 return _dyld_func_lookup ();
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (ac_try="$ac_link"
10151 case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_link") 2>conftest.er1
10158 grep -v '^ *+' conftest.er1 >conftest.err
10160 cat conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
10163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10164 { (case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169 (eval "$ac_try") 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; } &&
10173 { ac_try='test -s conftest$ac_exeext'
10174 { (case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_try") 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_func__dyld_func_lookup=yes
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_cv_func__dyld_func_lookup=no
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10194 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10195 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10196 if test $ac_cv_func__dyld_func_lookup = yes; then
10198 cat >>confdefs.h <<\_ACEOF
10199 #define HAVE_DYLD 1
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10225 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10227 lt_save_LIBS="$LIBS"
10228 LIBS="$LIBS $LIBADD_DL"
10230 for ac_func in dlerror
10232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 cat >conftest.$ac_ext <<_ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10246 #define $ac_func innocuous_$ac_func
10248 /* System header to define __stub macros and hopefully few prototypes,
10249 which can conflict with char $ac_func (); below.
10250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10251 <limits.h> exists even on freestanding compilers. */
10254 # include <limits.h>
10256 # include <assert.h>
10261 /* Override any GCC internal prototype to avoid an error.
10262 Use char because int might match the return type of a GCC
10263 builtin and then its argument prototype would still apply. */
10268 /* The GNU C library defines this for functions which it implements
10269 to always fail with ENOSYS. Some functions are actually named
10270 something starting with __ and the normal name is an alias. */
10271 #if defined __stub_$ac_func || defined __stub___$ac_func
10278 return $ac_func ();
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (ac_try="$ac_link"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1 >conftest.err
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } &&
10297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10298 { (case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303 (eval "$ac_try") 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; } &&
10307 { ac_try='test -s conftest$ac_exeext'
10308 { (case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_try") 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 eval "$as_ac_var=yes"
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 eval "$as_ac_var=no"
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10328 ac_res=`eval echo '${'$as_ac_var'}'`
10329 { echo "$as_me:$LINENO: result: $ac_res" >&5
10330 echo "${ECHO_T}$ac_res" >&6; }
10331 if test `eval echo '${'$as_ac_var'}'` = yes; then
10332 cat >>confdefs.h <<_ACEOF
10333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10339 LIBS="$lt_save_LIBS"
10342 ac_cpp='$CPP $CPPFLAGS'
10343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10349 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10350 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10351 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 ac_cv_sys_symbol_underscore=no
10355 cat > conftest.$ac_ext <<EOF
10356 void nm_test_func(){}
10357 int main(){nm_test_func;return 0;}
10359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360 (eval $ac_compile) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; then
10364 # Now try to grab the symbols.
10365 ac_nlist=conftest.nm
10366 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10367 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && test -s "$ac_nlist"; then
10371 # See whether the symbols have a leading underscore.
10372 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10373 ac_cv_sys_symbol_underscore=yes
10375 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10378 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10382 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10385 echo "configure: failed program was:" >&5
10391 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10392 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10395 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10396 if test x"$libltdl_cv_func_dlopen" = xyes ||
10397 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10398 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10399 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10400 if test "${libltdl_cv_need_uscore+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 libltdl_cv_need_uscore=unknown
10405 LIBS="$LIBS $LIBADD_DL"
10406 if test "$cross_compiling" = yes; then :
10407 libltdl_cv_need_uscore=cross
10409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10410 lt_status=$lt_dlunknown
10411 cat > conftest.$ac_ext <<EOF
10412 #line 10412 "configure"
10413 #include "confdefs.h"
10422 # define LT_DLGLOBAL RTLD_GLOBAL
10425 # define LT_DLGLOBAL DL_GLOBAL
10427 # define LT_DLGLOBAL 0
10431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10432 find out it does not work in some platform. */
10433 #ifndef LT_DLLAZY_OR_NOW
10435 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10438 # define LT_DLLAZY_OR_NOW DL_LAZY
10441 # define LT_DLLAZY_OR_NOW RTLD_NOW
10444 # define LT_DLLAZY_OR_NOW DL_NOW
10446 # define LT_DLLAZY_OR_NOW 0
10454 extern "C" void exit (int);
10457 void fnord() { int i=42;}
10460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10461 int status = $lt_dlunknown;
10465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10466 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10467 /* dlclose (self); */
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10480 (./conftest; exit; ) >&5 2>/dev/null
10482 case x$lt_status in
10483 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10484 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10485 x$lt_dlunknown|x*) ;;
10488 # compilation failed
10497 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10498 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10502 if test x"$libltdl_cv_need_uscore" = xyes; then
10504 cat >>confdefs.h <<\_ACEOF
10505 #define NEED_USCORE 1
10511 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10512 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10513 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 # PORTME does your system automatically load deplibs for dlopen?
10517 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10518 # For now, we just catch OSes we know something about -- in the
10519 # future, we'll try test this programmatically.
10520 libltdl_cv_sys_dlopen_deplibs=unknown
10522 aix3*|aix4.1.*|aix4.2.*)
10523 # Unknown whether this is true for these versions of AIX, but
10524 # we want this `case' here to explicitly catch those versions.
10525 libltdl_cv_sys_dlopen_deplibs=unknown
10528 libltdl_cv_sys_dlopen_deplibs=yes
10531 # Assuming the user has installed a libdl from somewhere, this is true
10532 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10533 libltdl_cv_sys_dlopen_deplibs=yes
10535 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10536 # GNU and its variants, using gnu ld.so (Glibc)
10537 libltdl_cv_sys_dlopen_deplibs=yes
10540 libltdl_cv_sys_dlopen_deplibs=yes
10543 libltdl_cv_sys_dlopen_deplibs=yes
10545 irix[12345]*|irix6.[01]*)
10546 # Catch all versions of IRIX before 6.2, and indicate that we don't
10547 # know how it worked for any of those versions.
10548 libltdl_cv_sys_dlopen_deplibs=unknown
10551 # The case above catches anything before 6.2, and it's known that
10552 # at 6.2 and later dlopen does load deplibs.
10553 libltdl_cv_sys_dlopen_deplibs=yes
10556 libltdl_cv_sys_dlopen_deplibs=yes
10559 libltdl_cv_sys_dlopen_deplibs=yes
10562 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10563 # it did *not* use an RPATH in a shared library to find objects the
10564 # library depends on, so we explicitly say `no'.
10565 libltdl_cv_sys_dlopen_deplibs=no
10567 osf5.0|osf5.0a|osf5.1)
10568 # dlopen *does* load deplibs and with the right loader patch applied
10569 # it even uses RPATH in a shared library to search for shared objects
10570 # that the library depends on, but there's no easy way to know if that
10571 # patch is installed. Since this is the case, all we can really
10572 # say is unknown -- it depends on the patch being installed. If
10573 # it is, this changes to `yes'. Without it, it would be `no'.
10574 libltdl_cv_sys_dlopen_deplibs=unknown
10577 # the two cases above should catch all versions of osf <= 5.1. Read
10578 # the comments above for what we know about them.
10579 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10580 # is used to find them so we can finally say `yes'.
10581 libltdl_cv_sys_dlopen_deplibs=yes
10584 libltdl_cv_sys_dlopen_deplibs=yes
10586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10587 libltdl_cv_sys_dlopen_deplibs=yes
10592 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10593 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10594 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10596 cat >>confdefs.h <<\_ACEOF
10597 #define LTDL_DLOPEN_DEPLIBS 1
10603 for ac_header in argz.h
10605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 ac_res=`eval echo '${'$as_ac_Header'}'`
10613 { echo "$as_me:$LINENO: result: $ac_res" >&5
10614 echo "${ECHO_T}$ac_res" >&6; }
10616 # Is the header compilable?
10617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10619 cat >conftest.$ac_ext <<_ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 $ac_includes_default
10626 #include <$ac_header>
10628 rm -f conftest.$ac_objext
10629 if { (ac_try="$ac_compile"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_compile") 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest.$ac_objext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_header_compiler=yes
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ac_header_compiler=no
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10672 echo "${ECHO_T}$ac_header_compiler" >&6; }
10674 # Is the header present?
10675 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10677 cat >conftest.$ac_ext <<_ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 #include <$ac_header>
10685 if { (ac_try="$ac_cpp conftest.$ac_ext"
10686 case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10693 grep -v '^ *+' conftest.er1 >conftest.err
10695 cat conftest.err >&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } >/dev/null; then
10698 if test -s conftest.err; then
10699 ac_cpp_err=$ac_c_preproc_warn_flag
10700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10707 if test -z "$ac_cpp_err"; then
10708 ac_header_preproc=yes
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10713 ac_header_preproc=no
10716 rm -f conftest.err conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10718 echo "${ECHO_T}$ac_header_preproc" >&6; }
10720 # So? What about this header?
10721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10727 ac_header_preproc=yes
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10743 ## ------------------------------ ##
10744 ## Report this to bugs@yourdomain ##
10745 ## ------------------------------ ##
10747 ) | sed "s/^/$as_me: WARNING: /" >&2
10750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 eval "$as_ac_Header=\$ac_header_preproc"
10757 ac_res=`eval echo '${'$as_ac_Header'}'`
10758 { echo "$as_me:$LINENO: result: $ac_res" >&5
10759 echo "${ECHO_T}$ac_res" >&6; }
10762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10763 cat >>confdefs.h <<_ACEOF
10764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10772 { echo "$as_me:$LINENO: checking for error_t" >&5
10773 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10774 if test "${ac_cv_type_error_t+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 cat >conftest.$ac_ext <<_ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10787 typedef error_t ac__type_new_;
10791 if ((ac__type_new_ *) 0)
10793 if (sizeof (ac__type_new_))
10799 rm -f conftest.$ac_objext
10800 if { (ac_try="$ac_compile"
10801 case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_compile") 2>conftest.er1
10808 grep -v '^ *+' conftest.er1 >conftest.err
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10814 { (case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_try") 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; } &&
10823 { ac_try='test -s conftest.$ac_objext'
10824 { (case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_try") 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_type_error_t=yes
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_type_error_t=no
10841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10844 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10845 if test $ac_cv_type_error_t = yes; then
10847 cat >>confdefs.h <<_ACEOF
10848 #define HAVE_ERROR_T 1
10854 cat >>confdefs.h <<\_ACEOF
10855 #define error_t int
10866 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 cat >conftest.$ac_ext <<_ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10882 #define $ac_func innocuous_$ac_func
10884 /* System header to define __stub macros and hopefully few prototypes,
10885 which can conflict with char $ac_func (); below.
10886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10887 <limits.h> exists even on freestanding compilers. */
10890 # include <limits.h>
10892 # include <assert.h>
10897 /* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10904 /* The GNU C library defines this for functions which it implements
10905 to always fail with ENOSYS. Some functions are actually named
10906 something starting with __ and the normal name is an alias. */
10907 #if defined __stub_$ac_func || defined __stub___$ac_func
10914 return $ac_func ();
10919 rm -f conftest.$ac_objext conftest$ac_exeext
10920 if { (ac_try="$ac_link"
10921 case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_link") 2>conftest.er1
10928 grep -v '^ *+' conftest.er1 >conftest.err
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try='test -s conftest$ac_exeext'
10944 { (case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_try") 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
10953 eval "$as_ac_var=yes"
10955 echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 eval "$as_ac_var=no"
10961 rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10964 ac_res=`eval echo '${'$as_ac_var'}'`
10965 { echo "$as_me:$LINENO: result: $ac_res" >&5
10966 echo "${ECHO_T}$ac_res" >&6; }
10967 if test `eval echo '${'$as_ac_var'}'` = yes; then
10968 cat >>confdefs.h <<_ACEOF
10969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11002 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 ac_res=`eval echo '${'$as_ac_Header'}'`
11013 { echo "$as_me:$LINENO: result: $ac_res" >&5
11014 echo "${ECHO_T}$ac_res" >&6; }
11016 # Is the header compilable?
11017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 $ac_includes_default
11026 #include <$ac_header>
11028 rm -f conftest.$ac_objext
11029 if { (ac_try="$ac_compile"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_compile") 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043 { (case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_try") 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try='test -s conftest.$ac_objext'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_header_compiler=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_header_compiler=no
11070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11072 echo "${ECHO_T}$ac_header_compiler" >&6; }
11074 # Is the header present?
11075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11077 cat >conftest.$ac_ext <<_ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 #include <$ac_header>
11085 if { (ac_try="$ac_cpp conftest.$ac_ext"
11086 case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11093 grep -v '^ *+' conftest.er1 >conftest.err
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } >/dev/null; then
11098 if test -s conftest.err; then
11099 ac_cpp_err=$ac_c_preproc_warn_flag
11100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11107 if test -z "$ac_cpp_err"; then
11108 ac_header_preproc=yes
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_header_preproc=no
11116 rm -f conftest.err conftest.$ac_ext
11117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11118 echo "${ECHO_T}$ac_header_preproc" >&6; }
11120 # So? What about this header?
11121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11127 ac_header_preproc=yes
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11143 ## ------------------------------ ##
11144 ## Report this to bugs@yourdomain ##
11145 ## ------------------------------ ##
11147 ) | sed "s/^/$as_me: WARNING: /" >&2
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 eval "$as_ac_Header=\$ac_header_preproc"
11157 ac_res=`eval echo '${'$as_ac_Header'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11163 cat >>confdefs.h <<_ACEOF
11164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11175 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 ac_res=`eval echo '${'$as_ac_Header'}'`
11185 { echo "$as_me:$LINENO: result: $ac_res" >&5
11186 echo "${ECHO_T}$ac_res" >&6; }
11188 # Is the header compilable?
11189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11191 cat >conftest.$ac_ext <<_ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11197 $ac_includes_default
11198 #include <$ac_header>
11200 rm -f conftest.$ac_objext
11201 if { (ac_try="$ac_compile"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_compile") 2>conftest.er1
11209 grep -v '^ *+' conftest.er1 >conftest.err
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } &&
11214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11215 { (case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_try") 2>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try='test -s conftest.$ac_objext'
11225 { (case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_try") 2>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 ac_header_compiler=yes
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ac_header_compiler=no
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11244 echo "${ECHO_T}$ac_header_compiler" >&6; }
11246 # Is the header present?
11247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <$ac_header>
11257 if { (ac_try="$ac_cpp conftest.$ac_ext"
11258 case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11265 grep -v '^ *+' conftest.er1 >conftest.err
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } >/dev/null; then
11270 if test -s conftest.err; then
11271 ac_cpp_err=$ac_c_preproc_warn_flag
11272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11279 if test -z "$ac_cpp_err"; then
11280 ac_header_preproc=yes
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 ac_header_preproc=no
11288 rm -f conftest.err conftest.$ac_ext
11289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11290 echo "${ECHO_T}$ac_header_preproc" >&6; }
11292 # So? What about this header?
11293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11299 ac_header_preproc=yes
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11315 ## ------------------------------ ##
11316 ## Report this to bugs@yourdomain ##
11317 ## ------------------------------ ##
11319 ) | sed "s/^/$as_me: WARNING: /" >&2
11322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 eval "$as_ac_Header=\$ac_header_preproc"
11329 ac_res=`eval echo '${'$as_ac_Header'}'`
11330 { echo "$as_me:$LINENO: result: $ac_res" >&5
11331 echo "${ECHO_T}$ac_res" >&6; }
11334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11335 cat >>confdefs.h <<_ACEOF
11336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11345 for ac_header in string.h strings.h
11347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 ac_res=`eval echo '${'$as_ac_Header'}'`
11355 { echo "$as_me:$LINENO: result: $ac_res" >&5
11356 echo "${ECHO_T}$ac_res" >&6; }
11358 # Is the header compilable?
11359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11361 cat >conftest.$ac_ext <<_ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 $ac_includes_default
11368 #include <$ac_header>
11370 rm -f conftest.$ac_objext
11371 if { (ac_try="$ac_compile"
11372 case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_compile") 2>conftest.er1
11379 grep -v '^ *+' conftest.er1 >conftest.err
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11385 { (case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_try") 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest.$ac_objext'
11395 { (case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_try") 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_header_compiler=yes
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11409 ac_header_compiler=no
11412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11414 echo "${ECHO_T}$ac_header_compiler" >&6; }
11416 # Is the header present?
11417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 #include <$ac_header>
11427 if { (ac_try="$ac_cpp conftest.$ac_ext"
11428 case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11435 grep -v '^ *+' conftest.er1 >conftest.err
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } >/dev/null; then
11440 if test -s conftest.err; then
11441 ac_cpp_err=$ac_c_preproc_warn_flag
11442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11449 if test -z "$ac_cpp_err"; then
11450 ac_header_preproc=yes
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_header_preproc=no
11458 rm -f conftest.err conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460 echo "${ECHO_T}$ac_header_preproc" >&6; }
11462 # So? What about this header?
11463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11469 ac_header_preproc=yes
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11485 ## ------------------------------ ##
11486 ## Report this to bugs@yourdomain ##
11487 ## ------------------------------ ##
11489 ) | sed "s/^/$as_me: WARNING: /" >&2
11492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 eval "$as_ac_Header=\$ac_header_preproc"
11499 ac_res=`eval echo '${'$as_ac_Header'}'`
11500 { echo "$as_me:$LINENO: result: $ac_res" >&5
11501 echo "${ECHO_T}$ac_res" >&6; }
11504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11505 cat >>confdefs.h <<_ACEOF
11506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11516 for ac_func in strchr index
11518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 cat >conftest.$ac_ext <<_ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11532 #define $ac_func innocuous_$ac_func
11534 /* System header to define __stub macros and hopefully few prototypes,
11535 which can conflict with char $ac_func (); below.
11536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537 <limits.h> exists even on freestanding compilers. */
11540 # include <limits.h>
11542 # include <assert.h>
11547 /* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11554 /* The GNU C library defines this for functions which it implements
11555 to always fail with ENOSYS. Some functions are actually named
11556 something starting with __ and the normal name is an alias. */
11557 #if defined __stub_$ac_func || defined __stub___$ac_func
11564 return $ac_func ();
11569 rm -f conftest.$ac_objext conftest$ac_exeext
11570 if { (ac_try="$ac_link"
11571 case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_link") 2>conftest.er1
11578 grep -v '^ *+' conftest.er1 >conftest.err
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
11583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11584 { (case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_try") 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest$ac_exeext'
11594 { (case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_try") 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 eval "$as_ac_var=yes"
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11608 eval "$as_ac_var=no"
11611 rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11614 ac_res=`eval echo '${'$as_ac_var'}'`
11615 { echo "$as_me:$LINENO: result: $ac_res" >&5
11616 echo "${ECHO_T}$ac_res" >&6; }
11617 if test `eval echo '${'$as_ac_var'}'` = yes; then
11618 cat >>confdefs.h <<_ACEOF
11619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11627 for ac_func in strrchr rindex
11629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 cat >conftest.$ac_ext <<_ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11643 #define $ac_func innocuous_$ac_func
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func (); below.
11647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11648 <limits.h> exists even on freestanding compilers. */
11651 # include <limits.h>
11653 # include <assert.h>
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11665 /* The GNU C library defines this for functions which it implements
11666 to always fail with ENOSYS. Some functions are actually named
11667 something starting with __ and the normal name is an alias. */
11668 #if defined __stub_$ac_func || defined __stub___$ac_func
11675 return $ac_func ();
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_link") 2>conftest.er1
11689 grep -v '^ *+' conftest.er1 >conftest.err
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11695 { (case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_try") 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest$ac_exeext'
11705 { (case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_try") 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 eval "$as_ac_var=yes"
11716 echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11719 eval "$as_ac_var=no"
11722 rm -f core conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
11725 ac_res=`eval echo '${'$as_ac_var'}'`
11726 { echo "$as_me:$LINENO: result: $ac_res" >&5
11727 echo "${ECHO_T}$ac_res" >&6; }
11728 if test `eval echo '${'$as_ac_var'}'` = yes; then
11729 cat >>confdefs.h <<_ACEOF
11730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 for ac_func in memcpy bcopy
11740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define $ac_func innocuous_$ac_func
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11762 # include <limits.h>
11764 # include <assert.h>
11769 /* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11776 /* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779 #if defined __stub_$ac_func || defined __stub___$ac_func
11786 return $ac_func ();
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11800 grep -v '^ *+' conftest.er1 >conftest.err
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest$ac_exeext'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 eval "$as_ac_var=yes"
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 eval "$as_ac_var=no"
11833 rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11836 ac_res=`eval echo '${'$as_ac_var'}'`
11837 { echo "$as_me:$LINENO: result: $ac_res" >&5
11838 echo "${ECHO_T}$ac_res" >&6; }
11839 if test `eval echo '${'$as_ac_var'}'` = yes; then
11840 cat >>confdefs.h <<_ACEOF
11841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11849 for ac_func in memmove strcmp
11851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 cat >conftest.$ac_ext <<_ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11865 #define $ac_func innocuous_$ac_func
11867 /* System header to define __stub macros and hopefully few prototypes,
11868 which can conflict with char $ac_func (); below.
11869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870 <limits.h> exists even on freestanding compilers. */
11873 # include <limits.h>
11875 # include <assert.h>
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11887 /* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890 #if defined __stub_$ac_func || defined __stub___$ac_func
11897 return $ac_func ();
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (ac_try="$ac_link"
11904 case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_link") 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11917 { (case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922 (eval "$ac_try") 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_try") 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 eval "$as_ac_var=yes"
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 eval "$as_ac_var=no"
11944 rm -f core conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11947 ac_res=`eval echo '${'$as_ac_var'}'`
11948 { echo "$as_me:$LINENO: result: $ac_res" >&5
11949 echo "${ECHO_T}$ac_res" >&6; }
11950 if test `eval echo '${'$as_ac_var'}'` = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11961 for ac_func in closedir opendir readdir
11963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 cat >conftest.$ac_ext <<_ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11977 #define $ac_func innocuous_$ac_func
11979 /* System header to define __stub macros and hopefully few prototypes,
11980 which can conflict with char $ac_func (); below.
11981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11982 <limits.h> exists even on freestanding compilers. */
11985 # include <limits.h>
11987 # include <assert.h>
11992 /* Override any GCC internal prototype to avoid an error.
11993 Use char because int might match the return type of a GCC
11994 builtin and then its argument prototype would still apply. */
11999 /* The GNU C library defines this for functions which it implements
12000 to always fail with ENOSYS. Some functions are actually named
12001 something starting with __ and the normal name is an alias. */
12002 #if defined __stub_$ac_func || defined __stub___$ac_func
12009 return $ac_func ();
12014 rm -f conftest.$ac_objext conftest$ac_exeext
12015 if { (ac_try="$ac_link"
12016 case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_link") 2>conftest.er1
12023 grep -v '^ *+' conftest.er1 >conftest.err
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
12028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12029 { (case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_try") 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest$ac_exeext'
12039 { (case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_try") 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 eval "$as_ac_var=yes"
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 eval "$as_ac_var=no"
12056 rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12059 ac_res=`eval echo '${'$as_ac_var'}'`
12060 { echo "$as_me:$LINENO: result: $ac_res" >&5
12061 echo "${ECHO_T}$ac_res" >&6; }
12062 if test `eval echo '${'$as_ac_var'}'` = yes; then
12063 cat >>confdefs.h <<_ACEOF
12064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12072 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12073 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12086 if test "$GCC" != "yes" && test "$ICC" != "yes"
12088 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12089 echo "$as_me: error: gcc|icc required but not found" >&2;}
12090 { (exit 1); exit 1; }; }
12093 if test "$GXX" != "yes" && test "$IXX" != "yes"
12095 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12096 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12097 { (exit 1); exit 1; }; }
12100 if test "$GCC" = "yes"
12102 cat >conftest.$ac_ext <<_ACEOF
12103 #if !defined(__GNUC__) || __GNUC__ < 3
12104 #error Unsupported GCC version
12108 rm -f conftest.$ac_objext
12109 if { (ac_try="$ac_compile"
12110 case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_compile") 2>conftest.er1
12117 grep -v '^ *+' conftest.er1 >conftest.err
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_try") 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12147 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12148 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12149 { (exit 1); exit 1; }; }
12152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 if test -z "$llvm_cv_gnu_make_command"
12157 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12158 echo "$as_me: error: GNU Make required but not found" >&2;}
12159 { (exit 1); exit 1; }; }
12162 { echo "$as_me:$LINENO: result: ok" >&5
12163 echo "${ECHO_T}ok" >&6; }
12165 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12166 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12167 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12169 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12171 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12172 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12176 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12177 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12178 if test "${ac_cv_lib_m_sin+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 ac_check_lib_save_LIBS=$LIBS
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12190 /* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (ac_try="$ac_link"
12207 case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_link") 2>conftest.er1
12214 grep -v '^ *+' conftest.er1 >conftest.err
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest$ac_exeext'
12230 { (case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_try") 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_cv_lib_m_sin=yes
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12247 rm -f core conftest.err conftest.$ac_objext \
12248 conftest$ac_exeext conftest.$ac_ext
12249 LIBS=$ac_check_lib_save_LIBS
12251 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12252 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12253 if test $ac_cv_lib_m_sin = yes; then
12254 cat >>confdefs.h <<_ACEOF
12255 #define HAVE_LIBM 1
12262 if test "$llvm_cv_os_type" = "MingW" ; then
12264 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12265 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12266 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 ac_check_lib_save_LIBS=$LIBS
12270 LIBS="-limagehlp $LIBS"
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12287 rm -f conftest.$ac_objext conftest$ac_exeext
12288 if { (ac_try="$ac_link"
12289 case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_link") 2>conftest.er1
12296 grep -v '^ *+' conftest.er1 >conftest.err
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12302 { (case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_try") 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest$ac_exeext'
12312 { (case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_try") 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 ac_cv_lib_imagehlp_main=yes
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_cv_lib_imagehlp_main=no
12329 rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331 LIBS=$ac_check_lib_save_LIBS
12333 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12334 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12335 if test $ac_cv_lib_imagehlp_main = yes; then
12336 cat >>confdefs.h <<_ACEOF
12337 #define HAVE_LIBIMAGEHLP 1
12340 LIBS="-limagehlp $LIBS"
12345 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12346 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12347 if test "${ac_cv_lib_psapi_main+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 ac_check_lib_save_LIBS=$LIBS
12351 LIBS="-lpsapi $LIBS"
12352 cat >conftest.$ac_ext <<_ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12368 rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (ac_try="$ac_link"
12370 case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_link") 2>conftest.er1
12377 grep -v '^ *+' conftest.er1 >conftest.err
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest$ac_exeext'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_lib_psapi_main=yes
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12407 ac_cv_lib_psapi_main=no
12410 rm -f core conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12412 LIBS=$ac_check_lib_save_LIBS
12414 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12415 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12416 if test $ac_cv_lib_psapi_main = yes; then
12417 cat >>confdefs.h <<_ACEOF
12418 #define HAVE_LIBPSAPI 1
12421 LIBS="-lpsapi $LIBS"
12427 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12428 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12429 if test "${ac_cv_search_dlopen+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 ac_func_search_save_LIBS=$LIBS
12433 cat >conftest.$ac_ext <<_ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12440 /* Override any GCC internal prototype to avoid an error.
12441 Use char because int might match the return type of a GCC
12442 builtin and then its argument prototype would still apply. */
12455 for ac_lib in '' dl; do
12456 if test -z "$ac_lib"; then
12457 ac_res="none required"
12460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (ac_try="$ac_link"
12464 case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_link") 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12477 { (case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_try") 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try='test -s conftest$ac_exeext'
12487 { (case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_try") 2>&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12496 ac_cv_search_dlopen=$ac_res
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12504 rm -f core conftest.err conftest.$ac_objext \
12506 if test "${ac_cv_search_dlopen+set}" = set; then
12510 if test "${ac_cv_search_dlopen+set}" = set; then
12513 ac_cv_search_dlopen=no
12515 rm conftest.$ac_ext
12516 LIBS=$ac_func_search_save_LIBS
12518 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12519 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12520 ac_res=$ac_cv_search_dlopen
12521 if test "$ac_res" != no; then
12522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12524 cat >>confdefs.h <<\_ACEOF
12525 #define HAVE_DLOPEN 1
12529 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12530 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12534 if test "$llvm_cv_enable_libffi" = "yes" ; then
12535 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12536 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12537 if test "${ac_cv_search_ffi_call+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 ac_func_search_save_LIBS=$LIBS
12541 cat >conftest.$ac_ext <<_ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h. */
12548 /* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12558 return ffi_call ();
12563 for ac_lib in '' ffi; do
12564 if test -z "$ac_lib"; then
12565 ac_res="none required"
12568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (ac_try="$ac_link"
12572 case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_link") 2>conftest.er1
12579 grep -v '^ *+' conftest.er1 >conftest.err
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12585 { (case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_try") 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest$ac_exeext'
12595 { (case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_try") 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 ac_cv_search_ffi_call=$ac_res
12606 echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12612 rm -f core conftest.err conftest.$ac_objext \
12614 if test "${ac_cv_search_ffi_call+set}" = set; then
12618 if test "${ac_cv_search_ffi_call+set}" = set; then
12621 ac_cv_search_ffi_call=no
12623 rm conftest.$ac_ext
12624 LIBS=$ac_func_search_save_LIBS
12626 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12627 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12628 ac_res=$ac_cv_search_ffi_call
12629 if test "$ac_res" != no; then
12630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12632 cat >>confdefs.h <<\_ACEOF
12633 #define HAVE_FFI_CALL 1
12637 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12638 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12639 { (exit 1); exit 1; }; }
12644 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12645 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12646 if test "${ac_cv_search_mallinfo+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 ac_func_search_save_LIBS=$LIBS
12650 cat >conftest.$ac_ext <<_ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12657 /* Override any GCC internal prototype to avoid an error.
12658 Use char because int might match the return type of a GCC
12659 builtin and then its argument prototype would still apply. */
12667 return mallinfo ();
12672 for ac_lib in '' malloc; do
12673 if test -z "$ac_lib"; then
12674 ac_res="none required"
12677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (ac_try="$ac_link"
12681 case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_link") 2>conftest.er1
12688 grep -v '^ *+' conftest.er1 >conftest.err
12690 cat conftest.err >&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
12693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12694 { (case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_try") 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; } &&
12703 { ac_try='test -s conftest$ac_exeext'
12704 { (case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_try") 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_search_mallinfo=$ac_res
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12721 rm -f core conftest.err conftest.$ac_objext \
12723 if test "${ac_cv_search_mallinfo+set}" = set; then
12727 if test "${ac_cv_search_mallinfo+set}" = set; then
12730 ac_cv_search_mallinfo=no
12732 rm conftest.$ac_ext
12733 LIBS=$ac_func_search_save_LIBS
12735 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12736 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12737 ac_res=$ac_cv_search_mallinfo
12738 if test "$ac_res" != no; then
12739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12741 cat >>confdefs.h <<\_ACEOF
12742 #define HAVE_MALLINFO 1
12748 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12750 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12751 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12752 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lpthread $LIBS"
12757 cat >conftest.$ac_ext <<_ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 /* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12770 char pthread_mutex_init ();
12774 return pthread_mutex_init ();
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (ac_try="$ac_link"
12781 case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_link") 2>conftest.er1
12788 grep -v '^ *+' conftest.er1 >conftest.err
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12794 { (case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_try") 2>&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest$ac_exeext'
12804 { (case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_cv_lib_pthread_pthread_mutex_init=yes
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12818 ac_cv_lib_pthread_pthread_mutex_init=no
12821 rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12825 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12826 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12827 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12828 cat >>confdefs.h <<_ACEOF
12829 #define HAVE_LIBPTHREAD 1
12832 LIBS="-lpthread $LIBS"
12836 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12837 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12838 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 ac_func_search_save_LIBS=$LIBS
12842 cat >conftest.$ac_ext <<_ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12849 /* Override any GCC internal prototype to avoid an error.
12850 Use char because int might match the return type of a GCC
12851 builtin and then its argument prototype would still apply. */
12855 char pthread_mutex_lock ();
12859 return pthread_mutex_lock ();
12864 for ac_lib in '' pthread; do
12865 if test -z "$ac_lib"; then
12866 ac_res="none required"
12869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12871 rm -f conftest.$ac_objext conftest$ac_exeext
12872 if { (ac_try="$ac_link"
12873 case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_link") 2>conftest.er1
12880 grep -v '^ *+' conftest.er1 >conftest.err
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886 { (case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_try") 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; } &&
12895 { ac_try='test -s conftest$ac_exeext'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 ac_cv_search_pthread_mutex_lock=$ac_res
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12913 rm -f core conftest.err conftest.$ac_objext \
12915 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12919 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12922 ac_cv_search_pthread_mutex_lock=no
12924 rm conftest.$ac_ext
12925 LIBS=$ac_func_search_save_LIBS
12927 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12928 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12929 ac_res=$ac_cv_search_pthread_mutex_lock
12930 if test "$ac_res" != no; then
12931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12933 cat >>confdefs.h <<\_ACEOF
12934 #define HAVE_PTHREAD_MUTEX_LOCK 1
12939 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12940 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12941 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 ac_func_search_save_LIBS=$LIBS
12945 cat >conftest.$ac_ext <<_ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12952 /* Override any GCC internal prototype to avoid an error.
12953 Use char because int might match the return type of a GCC
12954 builtin and then its argument prototype would still apply. */
12958 char pthread_rwlock_init ();
12962 return pthread_rwlock_init ();
12967 for ac_lib in '' pthread; do
12968 if test -z "$ac_lib"; then
12969 ac_res="none required"
12972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12974 rm -f conftest.$ac_objext conftest$ac_exeext
12975 if { (ac_try="$ac_link"
12976 case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_link") 2>conftest.er1
12983 grep -v '^ *+' conftest.er1 >conftest.err
12985 cat conftest.err >&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12989 { (case "(($ac_try" in
12990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991 *) ac_try_echo=$ac_try;;
12993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994 (eval "$ac_try") 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest$ac_exeext'
12999 { (case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004 (eval "$ac_try") 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 ac_cv_search_pthread_rwlock_init=$ac_res
13010 echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13016 rm -f core conftest.err conftest.$ac_objext \
13018 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13022 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13025 ac_cv_search_pthread_rwlock_init=no
13027 rm conftest.$ac_ext
13028 LIBS=$ac_func_search_save_LIBS
13030 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13031 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13032 ac_res=$ac_cv_search_pthread_rwlock_init
13033 if test "$ac_res" != no; then
13034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13036 cat >>confdefs.h <<\_ACEOF
13037 #define HAVE_PTHREAD_RWLOCK_INIT 1
13042 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13043 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13044 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 ac_func_search_save_LIBS=$LIBS
13048 cat >conftest.$ac_ext <<_ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13055 /* Override any GCC internal prototype to avoid an error.
13056 Use char because int might match the return type of a GCC
13057 builtin and then its argument prototype would still apply. */
13061 char pthread_getspecific ();
13065 return pthread_getspecific ();
13070 for ac_lib in '' pthread; do
13071 if test -z "$ac_lib"; then
13072 ac_res="none required"
13075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13077 rm -f conftest.$ac_objext conftest$ac_exeext
13078 if { (ac_try="$ac_link"
13079 case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_link") 2>conftest.er1
13086 grep -v '^ *+' conftest.er1 >conftest.err
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13092 { (case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_try") 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; } &&
13101 { ac_try='test -s conftest$ac_exeext'
13102 { (case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_try") 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_search_pthread_getspecific=$ac_res
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13119 rm -f core conftest.err conftest.$ac_objext \
13121 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13125 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13128 ac_cv_search_pthread_getspecific=no
13130 rm conftest.$ac_ext
13131 LIBS=$ac_func_search_save_LIBS
13133 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13134 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13135 ac_res=$ac_cv_search_pthread_getspecific
13136 if test "$ac_res" != no; then
13137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13139 cat >>confdefs.h <<\_ACEOF
13140 #define HAVE_PTHREAD_GETSPECIFIC 1
13148 # Check whether --with-udis86 was given.
13149 if test "${with_udis86+set}" = set; then
13150 withval=$with_udis86;
13155 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13158 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13159 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13160 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 ac_check_lib_save_LIBS=$LIBS
13164 LIBS="-ludis86 $LIBS"
13165 cat >conftest.$ac_ext <<_ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13172 /* Override any GCC internal prototype to avoid an error.
13173 Use char because int might match the return type of a GCC
13174 builtin and then its argument prototype would still apply. */
13187 rm -f conftest.$ac_objext conftest$ac_exeext
13188 if { (ac_try="$ac_link"
13189 case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_link") 2>conftest.er1
13196 grep -v '^ *+' conftest.er1 >conftest.err
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } &&
13201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13202 { (case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_try") 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest$ac_exeext'
13212 { (case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_try") 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 ac_cv_lib_udis86_ud_init=yes
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ac_cv_lib_udis86_ud_init=no
13229 rm -f core conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13231 LIBS=$ac_check_lib_save_LIBS
13233 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13234 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13235 if test $ac_cv_lib_udis86_ud_init = yes; then
13236 cat >>confdefs.h <<_ACEOF
13237 #define HAVE_LIBUDIS86 1
13240 LIBS="-ludis86 $LIBS"
13244 echo "Error! You need to have libudis86 around."
13256 cat >>confdefs.h <<_ACEOF
13257 #define USE_UDIS86 $USE_UDIS86
13262 # Check whether --with-oprofile was given.
13263 if test "${with_oprofile+set}" = set; then
13264 withval=$with_oprofile;
13268 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13269 no) llvm_cv_oppath=
13272 *) llvm_cv_oppath="${withval}/lib/oprofile"
13273 CPPFLAGS="-I${withval}/include";;
13275 if test -n "$llvm_cv_oppath" ; then
13276 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13277 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13278 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13279 if test "${ac_cv_search_bfd_init+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 ac_func_search_save_LIBS=$LIBS
13283 cat >conftest.$ac_ext <<_ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13300 return bfd_init ();
13305 for ac_lib in '' bfd; do
13306 if test -z "$ac_lib"; then
13307 ac_res="none required"
13310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1 >conftest.err
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest$ac_exeext'
13337 { (case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_try") 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 ac_cv_search_bfd_init=$ac_res
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13354 rm -f core conftest.err conftest.$ac_objext \
13356 if test "${ac_cv_search_bfd_init+set}" = set; then
13360 if test "${ac_cv_search_bfd_init+set}" = set; then
13363 ac_cv_search_bfd_init=no
13365 rm conftest.$ac_ext
13366 LIBS=$ac_func_search_save_LIBS
13368 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13369 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13370 ac_res=$ac_cv_search_bfd_init
13371 if test "$ac_res" != no; then
13372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13376 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13377 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13378 if test "${ac_cv_search_op_open_agent+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 ac_func_search_save_LIBS=$LIBS
13382 cat >conftest.$ac_ext <<_ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13389 /* Override any GCC internal prototype to avoid an error.
13390 Use char because int might match the return type of a GCC
13391 builtin and then its argument prototype would still apply. */
13395 char op_open_agent ();
13399 return op_open_agent ();
13404 for ac_lib in '' opagent; do
13405 if test -z "$ac_lib"; then
13406 ac_res="none required"
13409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13411 rm -f conftest.$ac_objext conftest$ac_exeext
13412 if { (ac_try="$ac_link"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_link") 2>conftest.er1
13420 grep -v '^ *+' conftest.er1 >conftest.err
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest$ac_exeext'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_cv_search_op_open_agent=$ac_res
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13453 rm -f core conftest.err conftest.$ac_objext \
13455 if test "${ac_cv_search_op_open_agent+set}" = set; then
13459 if test "${ac_cv_search_op_open_agent+set}" = set; then
13462 ac_cv_search_op_open_agent=no
13464 rm conftest.$ac_ext
13465 LIBS=$ac_func_search_save_LIBS
13467 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13468 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13469 ac_res=$ac_cv_search_op_open_agent
13470 if test "$ac_res" != no; then
13471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13475 echo "Error! You need to have libopagent around."
13480 if test "${ac_cv_header_opagent_h+set}" = set; then
13481 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13482 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13483 if test "${ac_cv_header_opagent_h+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13487 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13489 # Is the header compilable?
13490 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13491 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 $ac_includes_default
13499 #include <opagent.h>
13501 rm -f conftest.$ac_objext
13502 if { (ac_try="$ac_compile"
13503 case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_compile") 2>conftest.er1
13510 grep -v '^ *+' conftest.er1 >conftest.err
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13516 { (case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_try") 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_try") 2>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 ac_header_compiler=yes
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13540 ac_header_compiler=no
13543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13545 echo "${ECHO_T}$ac_header_compiler" >&6; }
13547 # Is the header present?
13548 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13549 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13550 cat >conftest.$ac_ext <<_ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h. */
13556 #include <opagent.h>
13558 if { (ac_try="$ac_cpp conftest.$ac_ext"
13559 case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13566 grep -v '^ *+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } >/dev/null; then
13571 if test -s conftest.err; then
13572 ac_cpp_err=$ac_c_preproc_warn_flag
13573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13580 if test -z "$ac_cpp_err"; then
13581 ac_header_preproc=yes
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13586 ac_header_preproc=no
13589 rm -f conftest.err conftest.$ac_ext
13590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13591 echo "${ECHO_T}$ac_header_preproc" >&6; }
13593 # So? What about this header?
13594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13596 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13597 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13599 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13600 ac_header_preproc=yes
13603 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13604 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13605 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13606 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13607 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13608 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13610 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13612 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13614 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13616 ## ------------------------------ ##
13617 ## Report this to bugs@yourdomain ##
13618 ## ------------------------------ ##
13620 ) | sed "s/^/$as_me: WARNING: /" >&2
13623 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13624 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13625 if test "${ac_cv_header_opagent_h+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 ac_cv_header_opagent_h=$ac_header_preproc
13630 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13631 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13634 if test $ac_cv_header_opagent_h = yes; then
13638 echo "Error! You need to have opagent.h around."
13654 cat >>confdefs.h <<_ACEOF
13655 #define USE_OPROFILE $USE_OPROFILE
13665 ac_header_dirent=no
13666 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13667 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13668 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13669 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 cat >conftest.$ac_ext <<_ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13679 #include <sys/types.h>
13691 rm -f conftest.$ac_objext
13692 if { (ac_try="$ac_compile"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13706 { (case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_try") 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest.$ac_objext'
13716 { (case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_try") 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 eval "$as_ac_Header=yes"
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 eval "$as_ac_Header=no"
13733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 ac_res=`eval echo '${'$as_ac_Header'}'`
13736 { echo "$as_me:$LINENO: result: $ac_res" >&5
13737 echo "${ECHO_T}$ac_res" >&6; }
13738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13739 cat >>confdefs.h <<_ACEOF
13740 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13743 ac_header_dirent=$ac_hdr; break
13747 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13748 if test $ac_header_dirent = dirent.h; then
13749 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13750 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13751 if test "${ac_cv_search_opendir+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 ac_func_search_save_LIBS=$LIBS
13755 cat >conftest.$ac_ext <<_ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13762 /* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13777 for ac_lib in '' dir; do
13778 if test -z "$ac_lib"; then
13779 ac_res="none required"
13782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13784 rm -f conftest.$ac_objext conftest$ac_exeext
13785 if { (ac_try="$ac_link"
13786 case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_link") 2>conftest.er1
13793 grep -v '^ *+' conftest.er1 >conftest.err
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest$ac_exeext'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 ac_cv_search_opendir=$ac_res
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13826 rm -f core conftest.err conftest.$ac_objext \
13828 if test "${ac_cv_search_opendir+set}" = set; then
13832 if test "${ac_cv_search_opendir+set}" = set; then
13835 ac_cv_search_opendir=no
13837 rm conftest.$ac_ext
13838 LIBS=$ac_func_search_save_LIBS
13840 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13841 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13842 ac_res=$ac_cv_search_opendir
13843 if test "$ac_res" != no; then
13844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13849 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13850 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13851 if test "${ac_cv_search_opendir+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 ac_func_search_save_LIBS=$LIBS
13855 cat >conftest.$ac_ext <<_ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13862 /* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13877 for ac_lib in '' x; do
13878 if test -z "$ac_lib"; then
13879 ac_res="none required"
13882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13884 rm -f conftest.$ac_objext conftest$ac_exeext
13885 if { (ac_try="$ac_link"
13886 case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_link") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1 >conftest.err
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } &&
13898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13899 { (case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_try") 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest$ac_exeext'
13909 { (case "(($ac_try" in
13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_try") 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_search_opendir=$ac_res
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13926 rm -f core conftest.err conftest.$ac_objext \
13928 if test "${ac_cv_search_opendir+set}" = set; then
13932 if test "${ac_cv_search_opendir+set}" = set; then
13935 ac_cv_search_opendir=no
13937 rm conftest.$ac_ext
13938 LIBS=$ac_func_search_save_LIBS
13940 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13941 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13942 ac_res=$ac_cv_search_opendir
13943 if test "$ac_res" != no; then
13944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13950 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13951 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13952 if test "${ac_cv_header_mmap_anon+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 ac_cpp='$CPP $CPPFLAGS'
13957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13961 cat >conftest.$ac_ext <<_ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 #include <sys/mman.h>
13968 #include <unistd.h>
13973 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13978 rm -f conftest.$ac_objext
13979 if { (ac_try="$ac_compile"
13980 case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_compile") 2>conftest.er1
13987 grep -v '^ *+' conftest.er1 >conftest.err
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13993 { (case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13998 (eval "$ac_try") 2>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; } &&
14002 { ac_try='test -s conftest.$ac_objext'
14003 { (case "(($ac_try" in
14004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005 *) ac_try_echo=$ac_try;;
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008 (eval "$ac_try") 2>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 ac_cv_header_mmap_anon=yes
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14017 ac_cv_header_mmap_anon=no
14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14022 ac_cpp='$CPP $CPPFLAGS'
14023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14029 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14030 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14031 if test "$ac_cv_header_mmap_anon" = yes; then
14033 cat >>confdefs.h <<\_ACEOF
14034 #define HAVE_MMAP_ANONYMOUS 1
14039 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14040 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14041 if test "${ac_cv_header_stat_broken+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14050 #include <sys/types.h>
14051 #include <sys/stat.h>
14053 #if defined S_ISBLK && defined S_IFDIR
14054 # if S_ISBLK (S_IFDIR)
14059 #if defined S_ISBLK && defined S_IFCHR
14060 # if S_ISBLK (S_IFCHR)
14065 #if defined S_ISLNK && defined S_IFREG
14066 # if S_ISLNK (S_IFREG)
14071 #if defined S_ISSOCK && defined S_IFREG
14072 # if S_ISSOCK (S_IFREG)
14078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14079 $EGREP "You lose" >/dev/null 2>&1; then
14080 ac_cv_header_stat_broken=yes
14082 ac_cv_header_stat_broken=no
14087 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14088 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14089 if test $ac_cv_header_stat_broken = yes; then
14091 cat >>confdefs.h <<\_ACEOF
14092 #define STAT_MACROS_BROKEN 1
14097 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14098 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14099 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 cat >conftest.$ac_ext <<_ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 #include <sys/types.h>
14109 #include <sys/wait.h>
14110 #ifndef WEXITSTATUS
14111 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14114 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14122 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14127 rm -f conftest.$ac_objext
14128 if { (ac_try="$ac_compile"
14129 case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134 (eval "$ac_compile") 2>conftest.er1
14136 grep -v '^ *+' conftest.er1 >conftest.err
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14142 { (case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_try") 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; } &&
14151 { ac_try='test -s conftest.$ac_objext'
14152 { (case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_try") 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 ac_cv_header_sys_wait_h=yes
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ac_cv_header_sys_wait_h=no
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14172 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14173 if test $ac_cv_header_sys_wait_h = yes; then
14175 cat >>confdefs.h <<\_ACEOF
14176 #define HAVE_SYS_WAIT_H 1
14181 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14182 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14183 if test "${ac_cv_header_time+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 cat >conftest.$ac_ext <<_ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 #include <sys/types.h>
14193 #include <sys/time.h>
14199 if ((struct tm *) 0)
14205 rm -f conftest.$ac_objext
14206 if { (ac_try="$ac_compile"
14207 case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_compile") 2>conftest.er1
14214 grep -v '^ *+' conftest.er1 >conftest.err
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } &&
14219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14220 { (case "(($ac_try" in
14221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222 *) ac_try_echo=$ac_try;;
14224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225 (eval "$ac_try") 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try='test -s conftest.$ac_objext'
14230 { (case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_try") 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; }; then
14239 ac_cv_header_time=yes
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14244 ac_cv_header_time=no
14247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14250 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14251 if test $ac_cv_header_time = yes; then
14253 cat >>confdefs.h <<\_ACEOF
14254 #define TIME_WITH_SYS_TIME 1
14266 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 ac_res=`eval echo '${'$as_ac_Header'}'`
14276 { echo "$as_me:$LINENO: result: $ac_res" >&5
14277 echo "${ECHO_T}$ac_res" >&6; }
14279 # Is the header compilable?
14280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14282 cat >conftest.$ac_ext <<_ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14288 $ac_includes_default
14289 #include <$ac_header>
14291 rm -f conftest.$ac_objext
14292 if { (ac_try="$ac_compile"
14293 case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_compile") 2>conftest.er1
14300 grep -v '^ *+' conftest.er1 >conftest.err
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14306 { (case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_try") 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try='test -s conftest.$ac_objext'
14316 { (case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_try") 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14325 ac_header_compiler=yes
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ac_header_compiler=no
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14335 echo "${ECHO_T}$ac_header_compiler" >&6; }
14337 # Is the header present?
14338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14340 cat >conftest.$ac_ext <<_ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14346 #include <$ac_header>
14348 if { (ac_try="$ac_cpp conftest.$ac_ext"
14349 case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14356 grep -v '^ *+' conftest.er1 >conftest.err
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } >/dev/null; then
14361 if test -s conftest.err; then
14362 ac_cpp_err=$ac_c_preproc_warn_flag
14363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14370 if test -z "$ac_cpp_err"; then
14371 ac_header_preproc=yes
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_header_preproc=no
14379 rm -f conftest.err conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14381 echo "${ECHO_T}$ac_header_preproc" >&6; }
14383 # So? What about this header?
14384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14390 ac_header_preproc=yes
14393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14406 ## ------------------------------ ##
14407 ## Report this to bugs@yourdomain ##
14408 ## ------------------------------ ##
14410 ) | sed "s/^/$as_me: WARNING: /" >&2
14413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 eval "$as_ac_Header=\$ac_header_preproc"
14420 ac_res=`eval echo '${'$as_ac_Header'}'`
14421 { echo "$as_me:$LINENO: result: $ac_res" >&5
14422 echo "${ECHO_T}$ac_res" >&6; }
14425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14426 cat >>confdefs.h <<_ACEOF
14427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14440 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 ac_res=`eval echo '${'$as_ac_Header'}'`
14450 { echo "$as_me:$LINENO: result: $ac_res" >&5
14451 echo "${ECHO_T}$ac_res" >&6; }
14453 # Is the header compilable?
14454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14456 cat >conftest.$ac_ext <<_ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 $ac_includes_default
14463 #include <$ac_header>
14465 rm -f conftest.$ac_objext
14466 if { (ac_try="$ac_compile"
14467 case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_compile") 2>conftest.er1
14474 grep -v '^ *+' conftest.er1 >conftest.err
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14480 { (case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485 (eval "$ac_try") 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; } &&
14489 { ac_try='test -s conftest.$ac_objext'
14490 { (case "(($ac_try" in
14491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492 *) ac_try_echo=$ac_try;;
14494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495 (eval "$ac_try") 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_header_compiler=yes
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 ac_header_compiler=no
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14509 echo "${ECHO_T}$ac_header_compiler" >&6; }
14511 # Is the header present?
14512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <$ac_header>
14522 if { (ac_try="$ac_cpp conftest.$ac_ext"
14523 case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14530 grep -v '^ *+' conftest.er1 >conftest.err
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } >/dev/null; then
14535 if test -s conftest.err; then
14536 ac_cpp_err=$ac_c_preproc_warn_flag
14537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14544 if test -z "$ac_cpp_err"; then
14545 ac_header_preproc=yes
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 ac_header_preproc=no
14553 rm -f conftest.err conftest.$ac_ext
14554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14555 echo "${ECHO_T}$ac_header_preproc" >&6; }
14557 # So? What about this header?
14558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14564 ac_header_preproc=yes
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14580 ## ------------------------------ ##
14581 ## Report this to bugs@yourdomain ##
14582 ## ------------------------------ ##
14584 ) | sed "s/^/$as_me: WARNING: /" >&2
14587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 eval "$as_ac_Header=\$ac_header_preproc"
14594 ac_res=`eval echo '${'$as_ac_Header'}'`
14595 { echo "$as_me:$LINENO: result: $ac_res" >&5
14596 echo "${ECHO_T}$ac_res" >&6; }
14599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14600 cat >>confdefs.h <<_ACEOF
14601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14610 for ac_header in utime.h windows.h
14612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 ac_res=`eval echo '${'$as_ac_Header'}'`
14620 { echo "$as_me:$LINENO: result: $ac_res" >&5
14621 echo "${ECHO_T}$ac_res" >&6; }
14623 # Is the header compilable?
14624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14626 cat >conftest.$ac_ext <<_ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14632 $ac_includes_default
14633 #include <$ac_header>
14635 rm -f conftest.$ac_objext
14636 if { (ac_try="$ac_compile"
14637 case "(($ac_try" in
14638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639 *) ac_try_echo=$ac_try;;
14641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642 (eval "$ac_compile") 2>conftest.er1
14644 grep -v '^ *+' conftest.er1 >conftest.err
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14650 { (case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655 (eval "$ac_try") 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; } &&
14659 { ac_try='test -s conftest.$ac_objext'
14660 { (case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_try") 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 ac_header_compiler=yes
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ac_header_compiler=no
14677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14679 echo "${ECHO_T}$ac_header_compiler" >&6; }
14681 # Is the header present?
14682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14684 cat >conftest.$ac_ext <<_ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14690 #include <$ac_header>
14692 if { (ac_try="$ac_cpp conftest.$ac_ext"
14693 case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14700 grep -v '^ *+' conftest.er1 >conftest.err
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } >/dev/null; then
14705 if test -s conftest.err; then
14706 ac_cpp_err=$ac_c_preproc_warn_flag
14707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14714 if test -z "$ac_cpp_err"; then
14715 ac_header_preproc=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_header_preproc=no
14723 rm -f conftest.err conftest.$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14725 echo "${ECHO_T}$ac_header_preproc" >&6; }
14727 # So? What about this header?
14728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14734 ac_header_preproc=yes
14737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14750 ## ------------------------------ ##
14751 ## Report this to bugs@yourdomain ##
14752 ## ------------------------------ ##
14754 ) | sed "s/^/$as_me: WARNING: /" >&2
14757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 eval "$as_ac_Header=\$ac_header_preproc"
14764 ac_res=`eval echo '${'$as_ac_Header'}'`
14765 { echo "$as_me:$LINENO: result: $ac_res" >&5
14766 echo "${ECHO_T}$ac_res" >&6; }
14769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14770 cat >>confdefs.h <<_ACEOF
14771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14783 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 ac_res=`eval echo '${'$as_ac_Header'}'`
14793 { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14796 # Is the header compilable?
14797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14799 cat >conftest.$ac_ext <<_ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 $ac_includes_default
14806 #include <$ac_header>
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14817 grep -v '^ *+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } &&
14832 { ac_try='test -s conftest.$ac_objext'
14833 { (case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_try") 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14842 ac_header_compiler=yes
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14847 ac_header_compiler=no
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14852 echo "${ECHO_T}$ac_header_compiler" >&6; }
14854 # Is the header present?
14855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14857 cat >conftest.$ac_ext <<_ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14863 #include <$ac_header>
14865 if { (ac_try="$ac_cpp conftest.$ac_ext"
14866 case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14873 grep -v '^ *+' conftest.er1 >conftest.err
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } >/dev/null; then
14878 if test -s conftest.err; then
14879 ac_cpp_err=$ac_c_preproc_warn_flag
14880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14887 if test -z "$ac_cpp_err"; then
14888 ac_header_preproc=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_header_preproc=no
14896 rm -f conftest.err conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14898 echo "${ECHO_T}$ac_header_preproc" >&6; }
14900 # So? What about this header?
14901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14907 ac_header_preproc=yes
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14923 ## ------------------------------ ##
14924 ## Report this to bugs@yourdomain ##
14925 ## ------------------------------ ##
14927 ) | sed "s/^/$as_me: WARNING: /" >&2
14930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 eval "$as_ac_Header=\$ac_header_preproc"
14937 ac_res=`eval echo '${'$as_ac_Header'}'`
14938 { echo "$as_me:$LINENO: result: $ac_res" >&5
14939 echo "${ECHO_T}$ac_res" >&6; }
14942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14943 cat >>confdefs.h <<_ACEOF
14944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14955 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 ac_res=`eval echo '${'$as_ac_Header'}'`
14965 { echo "$as_me:$LINENO: result: $ac_res" >&5
14966 echo "${ECHO_T}$ac_res" >&6; }
14968 # Is the header compilable?
14969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14971 cat >conftest.$ac_ext <<_ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 $ac_includes_default
14978 #include <$ac_header>
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_compile") 2>conftest.er1
14989 grep -v '^ *+' conftest.er1 >conftest.err
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14995 { (case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_try") 2>&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; } &&
15004 { ac_try='test -s conftest.$ac_objext'
15005 { (case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_try") 2>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15014 ac_header_compiler=yes
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15019 ac_header_compiler=no
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15024 echo "${ECHO_T}$ac_header_compiler" >&6; }
15026 # Is the header present?
15027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15029 cat >conftest.$ac_ext <<_ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 #include <$ac_header>
15037 if { (ac_try="$ac_cpp conftest.$ac_ext"
15038 case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15045 grep -v '^ *+' conftest.er1 >conftest.err
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } >/dev/null; then
15050 if test -s conftest.err; then
15051 ac_cpp_err=$ac_c_preproc_warn_flag
15052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15059 if test -z "$ac_cpp_err"; then
15060 ac_header_preproc=yes
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15065 ac_header_preproc=no
15068 rm -f conftest.err conftest.$ac_ext
15069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15070 echo "${ECHO_T}$ac_header_preproc" >&6; }
15072 # So? What about this header?
15073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15079 ac_header_preproc=yes
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15095 ## ------------------------------ ##
15096 ## Report this to bugs@yourdomain ##
15097 ## ------------------------------ ##
15099 ) | sed "s/^/$as_me: WARNING: /" >&2
15102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 eval "$as_ac_Header=\$ac_header_preproc"
15109 ac_res=`eval echo '${'$as_ac_Header'}'`
15110 { echo "$as_me:$LINENO: result: $ac_res" >&5
15111 echo "${ECHO_T}$ac_res" >&6; }
15114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15115 cat >>confdefs.h <<_ACEOF
15116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15124 for ac_header in valgrind/valgrind.h
15126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15133 ac_res=`eval echo '${'$as_ac_Header'}'`
15134 { echo "$as_me:$LINENO: result: $ac_res" >&5
15135 echo "${ECHO_T}$ac_res" >&6; }
15137 # Is the header compilable?
15138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15140 cat >conftest.$ac_ext <<_ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15146 $ac_includes_default
15147 #include <$ac_header>
15149 rm -f conftest.$ac_objext
15150 if { (ac_try="$ac_compile"
15151 case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_compile") 2>conftest.er1
15158 grep -v '^ *+' conftest.er1 >conftest.err
15160 cat conftest.err >&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } &&
15163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15164 { (case "(($ac_try" in
15165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166 *) ac_try_echo=$ac_try;;
15168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169 (eval "$ac_try") 2>&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } &&
15173 { ac_try='test -s conftest.$ac_objext'
15174 { (case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15179 (eval "$ac_try") 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 ac_header_compiler=yes
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15188 ac_header_compiler=no
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15193 echo "${ECHO_T}$ac_header_compiler" >&6; }
15195 # Is the header present?
15196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15198 cat >conftest.$ac_ext <<_ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15204 #include <$ac_header>
15206 if { (ac_try="$ac_cpp conftest.$ac_ext"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15214 grep -v '^ *+' conftest.er1 >conftest.err
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } >/dev/null; then
15219 if test -s conftest.err; then
15220 ac_cpp_err=$ac_c_preproc_warn_flag
15221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15228 if test -z "$ac_cpp_err"; then
15229 ac_header_preproc=yes
15231 echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15234 ac_header_preproc=no
15237 rm -f conftest.err conftest.$ac_ext
15238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15239 echo "${ECHO_T}$ac_header_preproc" >&6; }
15241 # So? What about this header?
15242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15248 ac_header_preproc=yes
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15264 ## ------------------------------ ##
15265 ## Report this to bugs@yourdomain ##
15266 ## ------------------------------ ##
15268 ) | sed "s/^/$as_me: WARNING: /" >&2
15271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 eval "$as_ac_Header=\$ac_header_preproc"
15278 ac_res=`eval echo '${'$as_ac_Header'}'`
15279 { echo "$as_me:$LINENO: result: $ac_res" >&5
15280 echo "${ECHO_T}$ac_res" >&6; }
15283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15284 cat >>confdefs.h <<_ACEOF
15285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15293 for ac_header in fenv.h
15295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 ac_res=`eval echo '${'$as_ac_Header'}'`
15303 { echo "$as_me:$LINENO: result: $ac_res" >&5
15304 echo "${ECHO_T}$ac_res" >&6; }
15306 # Is the header compilable?
15307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15309 cat >conftest.$ac_ext <<_ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 $ac_includes_default
15316 #include <$ac_header>
15318 rm -f conftest.$ac_objext
15319 if { (ac_try="$ac_compile"
15320 case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_compile") 2>conftest.er1
15327 grep -v '^ *+' conftest.er1 >conftest.err
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15333 { (case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_try") 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_try") 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15352 ac_header_compiler=yes
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 ac_header_compiler=no
15360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15362 echo "${ECHO_T}$ac_header_compiler" >&6; }
15364 # Is the header present?
15365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15367 cat >conftest.$ac_ext <<_ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15373 #include <$ac_header>
15375 if { (ac_try="$ac_cpp conftest.$ac_ext"
15376 case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15383 grep -v '^ *+' conftest.er1 >conftest.err
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } >/dev/null; then
15388 if test -s conftest.err; then
15389 ac_cpp_err=$ac_c_preproc_warn_flag
15390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15397 if test -z "$ac_cpp_err"; then
15398 ac_header_preproc=yes
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_header_preproc=no
15406 rm -f conftest.err conftest.$ac_ext
15407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15408 echo "${ECHO_T}$ac_header_preproc" >&6; }
15410 # So? What about this header?
15411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15417 ac_header_preproc=yes
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15433 ## ------------------------------ ##
15434 ## Report this to bugs@yourdomain ##
15435 ## ------------------------------ ##
15437 ) | sed "s/^/$as_me: WARNING: /" >&2
15440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 eval "$as_ac_Header=\$ac_header_preproc"
15447 ac_res=`eval echo '${'$as_ac_Header'}'`
15448 { echo "$as_me:$LINENO: result: $ac_res" >&5
15449 echo "${ECHO_T}$ac_res" >&6; }
15452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15453 cat >>confdefs.h <<_ACEOF
15454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15461 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15463 for ac_header in pthread.h
15465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 ac_res=`eval echo '${'$as_ac_Header'}'`
15473 { echo "$as_me:$LINENO: result: $ac_res" >&5
15474 echo "${ECHO_T}$ac_res" >&6; }
15476 # Is the header compilable?
15477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15485 $ac_includes_default
15486 #include <$ac_header>
15488 rm -f conftest.$ac_objext
15489 if { (ac_try="$ac_compile"
15490 case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_compile") 2>conftest.er1
15497 grep -v '^ *+' conftest.er1 >conftest.err
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15503 { (case "(($ac_try" in
15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505 *) ac_try_echo=$ac_try;;
15507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508 (eval "$ac_try") 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; } &&
15512 { ac_try='test -s conftest.$ac_objext'
15513 { (case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_try") 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 ac_header_compiler=yes
15524 echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15527 ac_header_compiler=no
15530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15532 echo "${ECHO_T}$ac_header_compiler" >&6; }
15534 # Is the header present?
15535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15537 cat >conftest.$ac_ext <<_ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 #include <$ac_header>
15545 if { (ac_try="$ac_cpp conftest.$ac_ext"
15546 case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15553 grep -v '^ *+' conftest.er1 >conftest.err
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } >/dev/null; then
15558 if test -s conftest.err; then
15559 ac_cpp_err=$ac_c_preproc_warn_flag
15560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15567 if test -z "$ac_cpp_err"; then
15568 ac_header_preproc=yes
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_header_preproc=no
15576 rm -f conftest.err conftest.$ac_ext
15577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15578 echo "${ECHO_T}$ac_header_preproc" >&6; }
15580 # So? What about this header?
15581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15587 ac_header_preproc=yes
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15603 ## ------------------------------ ##
15604 ## Report this to bugs@yourdomain ##
15605 ## ------------------------------ ##
15607 ) | sed "s/^/$as_me: WARNING: /" >&2
15610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 eval "$as_ac_Header=\$ac_header_preproc"
15617 ac_res=`eval echo '${'$as_ac_Header'}'`
15618 { echo "$as_me:$LINENO: result: $ac_res" >&5
15619 echo "${ECHO_T}$ac_res" >&6; }
15622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15640 if test "$llvm_cv_enable_libffi" = "yes" ; then
15643 for ac_header in ffi.h ffi/ffi.h
15645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 ac_res=`eval echo '${'$as_ac_Header'}'`
15653 { echo "$as_me:$LINENO: result: $ac_res" >&5
15654 echo "${ECHO_T}$ac_res" >&6; }
15656 # Is the header compilable?
15657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15659 cat >conftest.$ac_ext <<_ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15665 $ac_includes_default
15666 #include <$ac_header>
15668 rm -f conftest.$ac_objext
15669 if { (ac_try="$ac_compile"
15670 case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_compile") 2>conftest.er1
15677 grep -v '^ *+' conftest.er1 >conftest.err
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15683 { (case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_try") 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_try") 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_header_compiler=yes
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 ac_header_compiler=no
15710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15712 echo "${ECHO_T}$ac_header_compiler" >&6; }
15714 # Is the header present?
15715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 #include <$ac_header>
15725 if { (ac_try="$ac_cpp conftest.$ac_ext"
15726 case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15733 grep -v '^ *+' conftest.er1 >conftest.err
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } >/dev/null; then
15738 if test -s conftest.err; then
15739 ac_cpp_err=$ac_c_preproc_warn_flag
15740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15747 if test -z "$ac_cpp_err"; then
15748 ac_header_preproc=yes
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_header_preproc=no
15756 rm -f conftest.err conftest.$ac_ext
15757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15758 echo "${ECHO_T}$ac_header_preproc" >&6; }
15760 # So? What about this header?
15761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15767 ac_header_preproc=yes
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15783 ## ------------------------------ ##
15784 ## Report this to bugs@yourdomain ##
15785 ## ------------------------------ ##
15787 ) | sed "s/^/$as_me: WARNING: /" >&2
15790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 eval "$as_ac_Header=\$ac_header_preproc"
15797 ac_res=`eval echo '${'$as_ac_Header'}'`
15798 { echo "$as_me:$LINENO: result: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15803 cat >>confdefs.h <<_ACEOF
15804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15814 for ac_header in CrashReporterClient.h
15816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 ac_res=`eval echo '${'$as_ac_Header'}'`
15824 { echo "$as_me:$LINENO: result: $ac_res" >&5
15825 echo "${ECHO_T}$ac_res" >&6; }
15827 # Is the header compilable?
15828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 $ac_includes_default
15837 #include <$ac_header>
15839 rm -f conftest.$ac_objext
15840 if { (ac_try="$ac_compile"
15841 case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_compile") 2>conftest.er1
15848 grep -v '^ *+' conftest.er1 >conftest.err
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15854 { (case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_try") 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_try") 2>&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 ac_header_compiler=yes
15875 echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15878 ac_header_compiler=no
15881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15883 echo "${ECHO_T}$ac_header_compiler" >&6; }
15885 # Is the header present?
15886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15888 cat >conftest.$ac_ext <<_ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h. */
15894 #include <$ac_header>
15896 if { (ac_try="$ac_cpp conftest.$ac_ext"
15897 case "(($ac_try" in
15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899 *) ac_try_echo=$ac_try;;
15901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15904 grep -v '^ *+' conftest.er1 >conftest.err
15906 cat conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } >/dev/null; then
15909 if test -s conftest.err; then
15910 ac_cpp_err=$ac_c_preproc_warn_flag
15911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15918 if test -z "$ac_cpp_err"; then
15919 ac_header_preproc=yes
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_header_preproc=no
15927 rm -f conftest.err conftest.$ac_ext
15928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15929 echo "${ECHO_T}$ac_header_preproc" >&6; }
15931 # So? What about this header?
15932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15938 ac_header_preproc=yes
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15954 ## ------------------------------ ##
15955 ## Report this to bugs@yourdomain ##
15956 ## ------------------------------ ##
15958 ) | sed "s/^/$as_me: WARNING: /" >&2
15961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 eval "$as_ac_Header=\$ac_header_preproc"
15968 ac_res=`eval echo '${'$as_ac_Header'}'`
15969 { echo "$as_me:$LINENO: result: $ac_res" >&5
15970 echo "${ECHO_T}$ac_res" >&6; }
15973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15974 cat >>confdefs.h <<_ACEOF
15975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15983 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15984 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15985 cat >conftest.$ac_ext <<_ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 extern const char *__crashreporter_info__;
15993 __crashreporter_info__ = "test";
15998 rm -f conftest.$ac_objext conftest$ac_exeext
15999 if { (ac_try="$ac_link"
16000 case "(($ac_try" in
16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_link") 2>conftest.er1
16007 grep -v '^ *+' conftest.er1 >conftest.err
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
16012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16013 { (case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_try") 2>&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; } &&
16022 { ac_try='test -s conftest$ac_exeext'
16023 { (case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_try") 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 { echo "$as_me:$LINENO: result: yes" >&5
16033 echo "${ECHO_T}yes" >&6; }
16035 cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_CRASHREPORTER_INFO 1
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 { echo "$as_me:$LINENO: result: no" >&5
16044 echo "${ECHO_T}no" >&6; }
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_CRASHREPORTER_INFO 0
16052 rm -f core conftest.err conftest.$ac_objext \
16053 conftest$ac_exeext conftest.$ac_ext
16058 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16059 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16060 if test "${ac_cv_huge_val_sanity+set}" = set; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16065 ac_cpp='$CXXCPP $CPPFLAGS'
16066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16070 ac_save_CXXFLAGS=$CXXFLAGS
16072 if test "$cross_compiling" = yes; then
16073 ac_cv_huge_val_sanity=yes
16075 cat >conftest.$ac_ext <<_ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16085 double x = HUGE_VAL; return x != x;
16090 rm -f conftest$ac_exeext
16091 if { (ac_try="$ac_link"
16092 case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_link") 2>&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 ac_cv_huge_val_sanity=yes
16112 echo "$as_me: program exited with status $ac_status" >&5
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 ( exit $ac_status )
16117 ac_cv_huge_val_sanity=no
16119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16123 CXXFLAGS=$ac_save_CXXFLAGS
16125 ac_cpp='$CPP $CPPFLAGS'
16126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16132 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16133 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16134 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16137 { echo "$as_me:$LINENO: checking for pid_t" >&5
16138 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16139 if test "${ac_cv_type_pid_t+set}" = set; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 cat >conftest.$ac_ext <<_ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 $ac_includes_default
16149 typedef pid_t ac__type_new_;
16153 if ((ac__type_new_ *) 0)
16155 if (sizeof (ac__type_new_))
16161 rm -f conftest.$ac_objext
16162 if { (ac_try="$ac_compile"
16163 case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_compile") 2>conftest.er1
16170 grep -v '^ *+' conftest.er1 >conftest.err
16172 cat conftest.err >&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
16175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16176 { (case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_try") 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try='test -s conftest.$ac_objext'
16186 { (case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_try") 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 ac_cv_type_pid_t=yes
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16200 ac_cv_type_pid_t=no
16203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16205 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16206 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16207 if test $ac_cv_type_pid_t = yes; then
16211 cat >>confdefs.h <<_ACEOF
16217 { echo "$as_me:$LINENO: checking for size_t" >&5
16218 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16219 if test "${ac_cv_type_size_t+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16222 cat >conftest.$ac_ext <<_ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h. */
16228 $ac_includes_default
16229 typedef size_t ac__type_new_;
16233 if ((ac__type_new_ *) 0)
16235 if (sizeof (ac__type_new_))
16241 rm -f conftest.$ac_objext
16242 if { (ac_try="$ac_compile"
16243 case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_compile") 2>conftest.er1
16250 grep -v '^ *+' conftest.er1 >conftest.err
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256 { (case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_try") 2>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; } &&
16265 { ac_try='test -s conftest.$ac_objext'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_cv_type_size_t=yes
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 ac_cv_type_size_t=no
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16286 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16287 if test $ac_cv_type_size_t = yes; then
16291 cat >>confdefs.h <<_ACEOF
16292 #define size_t unsigned int
16298 cat >>confdefs.h <<_ACEOF
16299 #define RETSIGTYPE void
16302 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16303 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16304 if test "${ac_cv_struct_tm+set}" = set; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16307 cat >conftest.$ac_ext <<_ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <sys/types.h>
16319 struct tm *tp; tp->tm_sec;
16324 rm -f conftest.$ac_objext
16325 if { (ac_try="$ac_compile"
16326 case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_compile") 2>conftest.er1
16333 grep -v '^ *+' conftest.er1 >conftest.err
16335 cat conftest.err >&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } &&
16338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16339 { (case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_try") 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; } &&
16348 { ac_try='test -s conftest.$ac_objext'
16349 { (case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_try") 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_cv_struct_tm=time.h
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ac_cv_struct_tm=sys/time.h
16366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16369 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16370 if test $ac_cv_struct_tm = sys/time.h; then
16372 cat >>confdefs.h <<\_ACEOF
16373 #define TM_IN_SYS_TIME 1
16378 { echo "$as_me:$LINENO: checking for int64_t" >&5
16379 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16380 if test "${ac_cv_type_int64_t+set}" = set; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 cat >conftest.$ac_ext <<_ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 $ac_includes_default
16390 typedef int64_t ac__type_new_;
16394 if ((ac__type_new_ *) 0)
16396 if (sizeof (ac__type_new_))
16402 rm -f conftest.$ac_objext
16403 if { (ac_try="$ac_compile"
16404 case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_compile") 2>conftest.er1
16411 grep -v '^ *+' conftest.er1 >conftest.err
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } &&
16416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16417 { (case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_try") 2>&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest.$ac_objext'
16427 { (case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_try") 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_type_int64_t=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_cv_type_int64_t=no
16444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16447 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16448 if test $ac_cv_type_int64_t = yes; then
16450 cat >>confdefs.h <<_ACEOF
16451 #define HAVE_INT64_T 1
16456 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16457 echo "$as_me: error: Type int64_t required but not found" >&2;}
16458 { (exit 1); exit 1; }; }
16461 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16462 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16463 if test "${ac_cv_type_uint64_t+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 cat >conftest.$ac_ext <<_ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472 $ac_includes_default
16473 typedef uint64_t ac__type_new_;
16477 if ((ac__type_new_ *) 0)
16479 if (sizeof (ac__type_new_))
16485 rm -f conftest.$ac_objext
16486 if { (ac_try="$ac_compile"
16487 case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_compile") 2>conftest.er1
16494 grep -v '^ *+' conftest.er1 >conftest.err
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16500 { (case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_try") 2>&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; } &&
16509 { ac_try='test -s conftest.$ac_objext'
16510 { (case "(($ac_try" in
16511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512 *) ac_try_echo=$ac_try;;
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515 (eval "$ac_try") 2>&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 ac_cv_type_uint64_t=yes
16521 echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16524 ac_cv_type_uint64_t=no
16527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16530 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16531 if test $ac_cv_type_uint64_t = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define HAVE_UINT64_T 1
16539 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16540 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16541 if test "${ac_cv_type_u_int64_t+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 cat >conftest.$ac_ext <<_ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h. */
16550 $ac_includes_default
16551 typedef u_int64_t ac__type_new_;
16555 if ((ac__type_new_ *) 0)
16557 if (sizeof (ac__type_new_))
16563 rm -f conftest.$ac_objext
16564 if { (ac_try="$ac_compile"
16565 case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compile") 2>conftest.er1
16572 grep -v '^ *+' conftest.er1 >conftest.err
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
16577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16578 { (case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_try") 2>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest.$ac_objext'
16588 { (case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_try") 2>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_cv_type_u_int64_t=yes
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 ac_cv_type_u_int64_t=no
16605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16607 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16608 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16609 if test $ac_cv_type_u_int64_t = yes; then
16611 cat >>confdefs.h <<_ACEOF
16612 #define HAVE_U_INT64_T 1
16617 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16618 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16619 { (exit 1); exit 1; }; }
16633 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 cat >conftest.$ac_ext <<_ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16649 #define $ac_func innocuous_$ac_func
16651 /* System header to define __stub macros and hopefully few prototypes,
16652 which can conflict with char $ac_func (); below.
16653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16654 <limits.h> exists even on freestanding compilers. */
16657 # include <limits.h>
16659 # include <assert.h>
16664 /* Override any GCC internal prototype to avoid an error.
16665 Use char because int might match the return type of a GCC
16666 builtin and then its argument prototype would still apply. */
16671 /* The GNU C library defines this for functions which it implements
16672 to always fail with ENOSYS. Some functions are actually named
16673 something starting with __ and the normal name is an alias. */
16674 #if defined __stub_$ac_func || defined __stub___$ac_func
16681 return $ac_func ();
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (ac_try="$ac_link"
16688 case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_link") 2>conftest.er1
16695 grep -v '^ *+' conftest.er1 >conftest.err
16697 cat conftest.err >&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } &&
16700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16701 { (case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_try") 2>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; } &&
16710 { ac_try='test -s conftest$ac_exeext'
16711 { (case "(($ac_try" in
16712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716 (eval "$ac_try") 2>&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 eval "$as_ac_var=yes"
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16725 eval "$as_ac_var=no"
16728 rm -f core conftest.err conftest.$ac_objext \
16729 conftest$ac_exeext conftest.$ac_ext
16731 ac_res=`eval echo '${'$as_ac_var'}'`
16732 { echo "$as_me:$LINENO: result: $ac_res" >&5
16733 echo "${ECHO_T}$ac_res" >&6; }
16734 if test `eval echo '${'$as_ac_var'}'` = yes; then
16735 cat >>confdefs.h <<_ACEOF
16736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16746 for ac_func in powf fmodf strtof round
16748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 cat >conftest.$ac_ext <<_ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16762 #define $ac_func innocuous_$ac_func
16764 /* System header to define __stub macros and hopefully few prototypes,
16765 which can conflict with char $ac_func (); below.
16766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16767 <limits.h> exists even on freestanding compilers. */
16770 # include <limits.h>
16772 # include <assert.h>
16777 /* Override any GCC internal prototype to avoid an error.
16778 Use char because int might match the return type of a GCC
16779 builtin and then its argument prototype would still apply. */
16784 /* The GNU C library defines this for functions which it implements
16785 to always fail with ENOSYS. Some functions are actually named
16786 something starting with __ and the normal name is an alias. */
16787 #if defined __stub_$ac_func || defined __stub___$ac_func
16794 return $ac_func ();
16799 rm -f conftest.$ac_objext conftest$ac_exeext
16800 if { (ac_try="$ac_link"
16801 case "(($ac_try" in
16802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806 (eval "$ac_link") 2>conftest.er1
16808 grep -v '^ *+' conftest.er1 >conftest.err
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16814 { (case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819 (eval "$ac_try") 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } &&
16823 { ac_try='test -s conftest$ac_exeext'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 eval "$as_ac_var=yes"
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16838 eval "$as_ac_var=no"
16841 rm -f core conftest.err conftest.$ac_objext \
16842 conftest$ac_exeext conftest.$ac_ext
16844 ac_res=`eval echo '${'$as_ac_var'}'`
16845 { echo "$as_me:$LINENO: result: $ac_res" >&5
16846 echo "${ECHO_T}$ac_res" >&6; }
16847 if test `eval echo '${'$as_ac_var'}'` = yes; then
16848 cat >>confdefs.h <<_ACEOF
16849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16860 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 cat >conftest.$ac_ext <<_ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h. */
16874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16876 #define $ac_func innocuous_$ac_func
16878 /* System header to define __stub macros and hopefully few prototypes,
16879 which can conflict with char $ac_func (); below.
16880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16881 <limits.h> exists even on freestanding compilers. */
16884 # include <limits.h>
16886 # include <assert.h>
16891 /* Override any GCC internal prototype to avoid an error.
16892 Use char because int might match the return type of a GCC
16893 builtin and then its argument prototype would still apply. */
16898 /* The GNU C library defines this for functions which it implements
16899 to always fail with ENOSYS. Some functions are actually named
16900 something starting with __ and the normal name is an alias. */
16901 #if defined __stub_$ac_func || defined __stub___$ac_func
16908 return $ac_func ();
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (ac_try="$ac_link"
16915 case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_link") 2>conftest.er1
16922 grep -v '^ *+' conftest.er1 >conftest.err
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16928 { (case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_try") 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest$ac_exeext'
16938 { (case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_try") 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 eval "$as_ac_var=yes"
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16952 eval "$as_ac_var=no"
16955 rm -f core conftest.err conftest.$ac_objext \
16956 conftest$ac_exeext conftest.$ac_ext
16958 ac_res=`eval echo '${'$as_ac_var'}'`
16959 { echo "$as_me:$LINENO: result: $ac_res" >&5
16960 echo "${ECHO_T}$ac_res" >&6; }
16961 if test `eval echo '${'$as_ac_var'}'` = yes; then
16962 cat >>confdefs.h <<_ACEOF
16963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16972 for ac_func in isatty mkdtemp mkstemp
16974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16980 cat >conftest.$ac_ext <<_ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16988 #define $ac_func innocuous_$ac_func
16990 /* System header to define __stub macros and hopefully few prototypes,
16991 which can conflict with char $ac_func (); below.
16992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16993 <limits.h> exists even on freestanding compilers. */
16996 # include <limits.h>
16998 # include <assert.h>
17003 /* Override any GCC internal prototype to avoid an error.
17004 Use char because int might match the return type of a GCC
17005 builtin and then its argument prototype would still apply. */
17010 /* The GNU C library defines this for functions which it implements
17011 to always fail with ENOSYS. Some functions are actually named
17012 something starting with __ and the normal name is an alias. */
17013 #if defined __stub_$ac_func || defined __stub___$ac_func
17020 return $ac_func ();
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (ac_try="$ac_link"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_link") 2>conftest.er1
17034 grep -v '^ *+' conftest.er1 >conftest.err
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 eval "$as_ac_var=yes"
17061 echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17064 eval "$as_ac_var=no"
17067 rm -f core conftest.err conftest.$ac_objext \
17068 conftest$ac_exeext conftest.$ac_ext
17070 ac_res=`eval echo '${'$as_ac_var'}'`
17071 { echo "$as_me:$LINENO: result: $ac_res" >&5
17072 echo "${ECHO_T}$ac_res" >&6; }
17073 if test `eval echo '${'$as_ac_var'}'` = yes; then
17074 cat >>confdefs.h <<_ACEOF
17075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17087 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 cat >conftest.$ac_ext <<_ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17103 #define $ac_func innocuous_$ac_func
17105 /* System header to define __stub macros and hopefully few prototypes,
17106 which can conflict with char $ac_func (); below.
17107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17108 <limits.h> exists even on freestanding compilers. */
17111 # include <limits.h>
17113 # include <assert.h>
17118 /* Override any GCC internal prototype to avoid an error.
17119 Use char because int might match the return type of a GCC
17120 builtin and then its argument prototype would still apply. */
17125 /* The GNU C library defines this for functions which it implements
17126 to always fail with ENOSYS. Some functions are actually named
17127 something starting with __ and the normal name is an alias. */
17128 #if defined __stub_$ac_func || defined __stub___$ac_func
17135 return $ac_func ();
17140 rm -f conftest.$ac_objext conftest$ac_exeext
17141 if { (ac_try="$ac_link"
17142 case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147 (eval "$ac_link") 2>conftest.er1
17149 grep -v '^ *+' conftest.er1 >conftest.err
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
17154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17155 { (case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_try") 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest$ac_exeext'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 eval "$as_ac_var=yes"
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 eval "$as_ac_var=no"
17182 rm -f core conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext conftest.$ac_ext
17185 ac_res=`eval echo '${'$as_ac_var'}'`
17186 { echo "$as_me:$LINENO: result: $ac_res" >&5
17187 echo "${ECHO_T}$ac_res" >&6; }
17188 if test `eval echo '${'$as_ac_var'}'` = yes; then
17189 cat >>confdefs.h <<_ACEOF
17190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17199 for ac_func in strerror strerror_r setenv
17201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17207 cat >conftest.$ac_ext <<_ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h. */
17213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17215 #define $ac_func innocuous_$ac_func
17217 /* System header to define __stub macros and hopefully few prototypes,
17218 which can conflict with char $ac_func (); below.
17219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17220 <limits.h> exists even on freestanding compilers. */
17223 # include <limits.h>
17225 # include <assert.h>
17230 /* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
17237 /* The GNU C library defines this for functions which it implements
17238 to always fail with ENOSYS. Some functions are actually named
17239 something starting with __ and the normal name is an alias. */
17240 #if defined __stub_$ac_func || defined __stub___$ac_func
17247 return $ac_func ();
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (ac_try="$ac_link"
17254 case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_link") 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17267 { (case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_try") 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; } &&
17276 { ac_try='test -s conftest$ac_exeext'
17277 { (case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_try") 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 eval "$as_ac_var=yes"
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 eval "$as_ac_var=no"
17294 rm -f core conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
17297 ac_res=`eval echo '${'$as_ac_var'}'`
17298 { echo "$as_me:$LINENO: result: $ac_res" >&5
17299 echo "${ECHO_T}$ac_res" >&6; }
17300 if test `eval echo '${'$as_ac_var'}'` = yes; then
17301 cat >>confdefs.h <<_ACEOF
17302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17312 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17320 cat >conftest.$ac_ext <<_ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17328 #define $ac_func innocuous_$ac_func
17330 /* System header to define __stub macros and hopefully few prototypes,
17331 which can conflict with char $ac_func (); below.
17332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17333 <limits.h> exists even on freestanding compilers. */
17336 # include <limits.h>
17338 # include <assert.h>
17343 /* Override any GCC internal prototype to avoid an error.
17344 Use char because int might match the return type of a GCC
17345 builtin and then its argument prototype would still apply. */
17350 /* The GNU C library defines this for functions which it implements
17351 to always fail with ENOSYS. Some functions are actually named
17352 something starting with __ and the normal name is an alias. */
17353 #if defined __stub_$ac_func || defined __stub___$ac_func
17360 return $ac_func ();
17365 rm -f conftest.$ac_objext conftest$ac_exeext
17366 if { (ac_try="$ac_link"
17367 case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_link") 2>conftest.er1
17374 grep -v '^ *+' conftest.er1 >conftest.err
17376 cat conftest.err >&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } &&
17379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17380 { (case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_try") 2>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 eval "$as_ac_var=yes"
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 eval "$as_ac_var=no"
17407 rm -f core conftest.err conftest.$ac_objext \
17408 conftest$ac_exeext conftest.$ac_ext
17410 ac_res=`eval echo '${'$as_ac_var'}'`
17411 { echo "$as_me:$LINENO: result: $ac_res" >&5
17412 echo "${ECHO_T}$ac_res" >&6; }
17413 if test `eval echo '${'$as_ac_var'}'` = yes; then
17414 cat >>confdefs.h <<_ACEOF
17415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17426 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17429 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17431 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17434 cat >conftest.$ac_ext <<_ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17442 #define $ac_func innocuous_$ac_func
17444 /* System header to define __stub macros and hopefully few prototypes,
17445 which can conflict with char $ac_func (); below.
17446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17447 <limits.h> exists even on freestanding compilers. */
17450 # include <limits.h>
17452 # include <assert.h>
17457 /* Override any GCC internal prototype to avoid an error.
17458 Use char because int might match the return type of a GCC
17459 builtin and then its argument prototype would still apply. */
17464 /* The GNU C library defines this for functions which it implements
17465 to always fail with ENOSYS. Some functions are actually named
17466 something starting with __ and the normal name is an alias. */
17467 #if defined __stub_$ac_func || defined __stub___$ac_func
17474 return $ac_func ();
17479 rm -f conftest.$ac_objext conftest$ac_exeext
17480 if { (ac_try="$ac_link"
17481 case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_link") 2>conftest.er1
17488 grep -v '^ *+' conftest.er1 >conftest.err
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
17493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17494 { (case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499 (eval "$ac_try") 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; } &&
17503 { ac_try='test -s conftest$ac_exeext'
17504 { (case "(($ac_try" in
17505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506 *) ac_try_echo=$ac_try;;
17508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509 (eval "$ac_try") 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 eval "$as_ac_var=yes"
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 eval "$as_ac_var=no"
17521 rm -f core conftest.err conftest.$ac_objext \
17522 conftest$ac_exeext conftest.$ac_ext
17524 ac_res=`eval echo '${'$as_ac_var'}'`
17525 { echo "$as_me:$LINENO: result: $ac_res" >&5
17526 echo "${ECHO_T}$ac_res" >&6; }
17527 if test `eval echo '${'$as_ac_var'}'` = yes; then
17528 cat >>confdefs.h <<_ACEOF
17529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17535 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17536 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17537 if test "${llvm_cv_c_printf_a+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 ac_cpp='$CPP $CPPFLAGS'
17542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17546 if test "$cross_compiling" = yes; then
17547 llvmac_cv_c_printf_a=no
17549 cat >conftest.$ac_ext <<_ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17558 #include <stdlib.h>
17564 volatile double A, B;
17568 sprintf(Buffer, "%a", A);
17572 if (A != 0x1.999999999999ap-4)
17579 rm -f conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17590 { (case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_try") 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 llvm_cv_c_printf_a=yes
17601 echo "$as_me: program exited with status $ac_status" >&5
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17605 ( exit $ac_status )
17606 llvmac_cv_c_printf_a=no
17608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17613 ac_cpp='$CPP $CPPFLAGS'
17614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17619 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17620 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17621 if test "$llvm_cv_c_printf_a" = "yes"; then
17623 cat >>confdefs.h <<\_ACEOF
17624 #define HAVE_PRINTF_A 1
17630 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17631 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17632 if test "${ac_cv_func_rand48+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 ac_cpp='$CXXCPP $CPPFLAGS'
17637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17641 cat >conftest.$ac_ext <<_ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647 #include <stdlib.h>
17651 srand48(0);lrand48();drand48();
17656 rm -f conftest.$ac_objext
17657 if { (ac_try="$ac_compile"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_compile") 2>conftest.er1
17665 grep -v '^ *+' conftest.er1 >conftest.err
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
17670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17671 { (case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_try") 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; } &&
17680 { ac_try='test -s conftest.$ac_objext'
17681 { (case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_try") 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_func_rand48=yes
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_func_rand48=no
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 ac_cpp='$CPP $CPPFLAGS'
17701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17706 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17707 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17709 if test "$ac_cv_func_rand48" = "yes" ; then
17711 cat >>confdefs.h <<\_ACEOF
17712 #define HAVE_RAND48 1
17718 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17719 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17720 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 cat >conftest.$ac_ext <<_ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 $ac_includes_default
17734 char *p = (char *) strerror_s;
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_compile") 2>conftest.er1
17751 grep -v '^ *+' conftest.er1 >conftest.err
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } &&
17756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17757 { (case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_try") 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
17767 { (case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_try") 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_have_decl_strerror_s=yes
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_cv_have_decl_strerror_s=no
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17786 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17787 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17788 if test $ac_cv_have_decl_strerror_s = yes; then
17790 cat >>confdefs.h <<_ACEOF
17791 #define HAVE_DECL_STRERROR_S 1
17796 cat >>confdefs.h <<_ACEOF
17797 #define HAVE_DECL_STRERROR_S 0
17805 if test "$llvm_cv_os_type" = "MingW" ; then
17806 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17807 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17808 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 ac_check_lib_save_LIBS=$LIBS
17813 cat >conftest.$ac_ext <<_ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17820 /* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (ac_try="$ac_link"
17837 case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_link") 2>conftest.er1
17844 grep -v '^ *+' conftest.er1 >conftest.err
17846 cat conftest.err >&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
17849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17850 { (case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_try") 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest$ac_exeext'
17860 { (case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_try") 2>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869 ac_cv_lib_gcc__alloca=yes
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 ac_cv_lib_gcc__alloca=no
17877 rm -f core conftest.err conftest.$ac_objext \
17878 conftest$ac_exeext conftest.$ac_ext
17879 LIBS=$ac_check_lib_save_LIBS
17881 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17882 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17883 if test $ac_cv_lib_gcc__alloca = yes; then
17885 cat >>confdefs.h <<\_ACEOF
17886 #define HAVE__ALLOCA 1
17891 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17892 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17893 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17894 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 ac_check_lib_save_LIBS=$LIBS
17898 cat >conftest.$ac_ext <<_ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17905 /* Override any GCC internal prototype to avoid an error.
17906 Use char because int might match the return type of a GCC
17907 builtin and then its argument prototype would still apply. */
17915 return __alloca ();
17920 rm -f conftest.$ac_objext conftest$ac_exeext
17921 if { (ac_try="$ac_link"
17922 case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_link") 2>conftest.er1
17929 grep -v '^ *+' conftest.er1 >conftest.err
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17935 { (case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_try") 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest$ac_exeext'
17945 { (case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_try") 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_cv_lib_gcc___alloca=yes
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_cv_lib_gcc___alloca=no
17962 rm -f core conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
17964 LIBS=$ac_check_lib_save_LIBS
17966 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17967 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17968 if test $ac_cv_lib_gcc___alloca = yes; then
17970 cat >>confdefs.h <<\_ACEOF
17971 #define HAVE___ALLOCA 1
17976 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17977 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17978 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17981 ac_check_lib_save_LIBS=$LIBS
17983 cat >conftest.$ac_ext <<_ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17990 /* Override any GCC internal prototype to avoid an error.
17991 Use char because int might match the return type of a GCC
17992 builtin and then its argument prototype would still apply. */
18000 return __chkstk ();
18005 rm -f conftest.$ac_objext conftest$ac_exeext
18006 if { (ac_try="$ac_link"
18007 case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_link") 2>conftest.er1
18014 grep -v '^ *+' conftest.er1 >conftest.err
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } &&
18019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18020 { (case "(($ac_try" in
18021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18022 *) ac_try_echo=$ac_try;;
18024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025 (eval "$ac_try") 2>&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; } &&
18029 { ac_try='test -s conftest$ac_exeext'
18030 { (case "(($ac_try" in
18031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18032 *) ac_try_echo=$ac_try;;
18034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18035 (eval "$ac_try") 2>&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 ac_cv_lib_gcc___chkstk=yes
18041 echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18044 ac_cv_lib_gcc___chkstk=no
18047 rm -f core conftest.err conftest.$ac_objext \
18048 conftest$ac_exeext conftest.$ac_ext
18049 LIBS=$ac_check_lib_save_LIBS
18051 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18052 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18053 if test $ac_cv_lib_gcc___chkstk = yes; then
18055 cat >>confdefs.h <<\_ACEOF
18056 #define HAVE___CHKSTK 1
18061 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18062 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18063 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
18066 ac_check_lib_save_LIBS=$LIBS
18068 cat >conftest.$ac_ext <<_ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18075 /* Override any GCC internal prototype to avoid an error.
18076 Use char because int might match the return type of a GCC
18077 builtin and then its argument prototype would still apply. */
18085 return ___chkstk ();
18090 rm -f conftest.$ac_objext conftest$ac_exeext
18091 if { (ac_try="$ac_link"
18092 case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_link") 2>conftest.er1
18099 grep -v '^ *+' conftest.er1 >conftest.err
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
18104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18105 { (case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_try") 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; } &&
18114 { ac_try='test -s conftest$ac_exeext'
18115 { (case "(($ac_try" in
18116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_try") 2>&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; }; then
18124 ac_cv_lib_gcc____chkstk=yes
18126 echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18129 ac_cv_lib_gcc____chkstk=no
18132 rm -f core conftest.err conftest.$ac_objext \
18133 conftest$ac_exeext conftest.$ac_ext
18134 LIBS=$ac_check_lib_save_LIBS
18136 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18137 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18138 if test $ac_cv_lib_gcc____chkstk = yes; then
18140 cat >>confdefs.h <<\_ACEOF
18141 #define HAVE____CHKSTK 1
18147 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18148 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18149 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 ac_check_lib_save_LIBS=$LIBS
18154 cat >conftest.$ac_ext <<_ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18161 /* Override any GCC internal prototype to avoid an error.
18162 Use char because int might match the return type of a GCC
18163 builtin and then its argument prototype would still apply. */
18171 return __ashldi3 ();
18176 rm -f conftest.$ac_objext conftest$ac_exeext
18177 if { (ac_try="$ac_link"
18178 case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_link") 2>conftest.er1
18185 grep -v '^ *+' conftest.er1 >conftest.err
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } &&
18190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18191 { (case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_try") 2>&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try='test -s conftest$ac_exeext'
18201 { (case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_try") 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_cv_lib_gcc___ashldi3=yes
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 ac_cv_lib_gcc___ashldi3=no
18218 rm -f core conftest.err conftest.$ac_objext \
18219 conftest$ac_exeext conftest.$ac_ext
18220 LIBS=$ac_check_lib_save_LIBS
18222 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18223 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18224 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18226 cat >>confdefs.h <<\_ACEOF
18227 #define HAVE___ASHLDI3 1
18232 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18233 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18234 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18237 ac_check_lib_save_LIBS=$LIBS
18239 cat >conftest.$ac_ext <<_ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18246 /* Override any GCC internal prototype to avoid an error.
18247 Use char because int might match the return type of a GCC
18248 builtin and then its argument prototype would still apply. */
18256 return __ashrdi3 ();
18261 rm -f conftest.$ac_objext conftest$ac_exeext
18262 if { (ac_try="$ac_link"
18263 case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_link") 2>conftest.er1
18270 grep -v '^ *+' conftest.er1 >conftest.err
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18276 { (case "(($ac_try" in
18277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_try") 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest$ac_exeext'
18286 { (case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_try") 2>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 ac_cv_lib_gcc___ashrdi3=yes
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18300 ac_cv_lib_gcc___ashrdi3=no
18303 rm -f core conftest.err conftest.$ac_objext \
18304 conftest$ac_exeext conftest.$ac_ext
18305 LIBS=$ac_check_lib_save_LIBS
18307 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18308 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18309 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18311 cat >>confdefs.h <<\_ACEOF
18312 #define HAVE___ASHRDI3 1
18317 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18318 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18319 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 ac_check_lib_save_LIBS=$LIBS
18324 cat >conftest.$ac_ext <<_ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18331 /* Override any GCC internal prototype to avoid an error.
18332 Use char because int might match the return type of a GCC
18333 builtin and then its argument prototype would still apply. */
18341 return __divdi3 ();
18346 rm -f conftest.$ac_objext conftest$ac_exeext
18347 if { (ac_try="$ac_link"
18348 case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_link") 2>conftest.er1
18355 grep -v '^ *+' conftest.er1 >conftest.err
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18361 { (case "(($ac_try" in
18362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363 *) ac_try_echo=$ac_try;;
18365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366 (eval "$ac_try") 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest$ac_exeext'
18371 { (case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376 (eval "$ac_try") 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 ac_cv_lib_gcc___divdi3=yes
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 ac_cv_lib_gcc___divdi3=no
18388 rm -f core conftest.err conftest.$ac_objext \
18389 conftest$ac_exeext conftest.$ac_ext
18390 LIBS=$ac_check_lib_save_LIBS
18392 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18393 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18394 if test $ac_cv_lib_gcc___divdi3 = yes; then
18396 cat >>confdefs.h <<\_ACEOF
18397 #define HAVE___DIVDI3 1
18402 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18403 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18404 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18407 ac_check_lib_save_LIBS=$LIBS
18409 cat >conftest.$ac_ext <<_ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18416 /* Override any GCC internal prototype to avoid an error.
18417 Use char because int might match the return type of a GCC
18418 builtin and then its argument prototype would still apply. */
18426 return __fixdfdi ();
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (ac_try="$ac_link"
18433 case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_link") 2>conftest.er1
18440 grep -v '^ *+' conftest.er1 >conftest.err
18442 cat conftest.err >&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } &&
18445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18446 { (case "(($ac_try" in
18447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448 *) ac_try_echo=$ac_try;;
18450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451 (eval "$ac_try") 2>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; } &&
18455 { ac_try='test -s conftest$ac_exeext'
18456 { (case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_try") 2>&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
18465 ac_cv_lib_gcc___fixdfdi=yes
18467 echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18470 ac_cv_lib_gcc___fixdfdi=no
18473 rm -f core conftest.err conftest.$ac_objext \
18474 conftest$ac_exeext conftest.$ac_ext
18475 LIBS=$ac_check_lib_save_LIBS
18477 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18478 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18479 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18481 cat >>confdefs.h <<\_ACEOF
18482 #define HAVE___FIXDFDI 1
18487 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18488 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18489 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18492 ac_check_lib_save_LIBS=$LIBS
18494 cat >conftest.$ac_ext <<_ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18501 /* Override any GCC internal prototype to avoid an error.
18502 Use char because int might match the return type of a GCC
18503 builtin and then its argument prototype would still apply. */
18511 return __fixsfdi ();
18516 rm -f conftest.$ac_objext conftest$ac_exeext
18517 if { (ac_try="$ac_link"
18518 case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_link") 2>conftest.er1
18525 grep -v '^ *+' conftest.er1 >conftest.err
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18531 { (case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_try") 2>&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; } &&
18540 { ac_try='test -s conftest$ac_exeext'
18541 { (case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546 (eval "$ac_try") 2>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
18550 ac_cv_lib_gcc___fixsfdi=yes
18552 echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18555 ac_cv_lib_gcc___fixsfdi=no
18558 rm -f core conftest.err conftest.$ac_objext \
18559 conftest$ac_exeext conftest.$ac_ext
18560 LIBS=$ac_check_lib_save_LIBS
18562 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18563 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18564 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18566 cat >>confdefs.h <<\_ACEOF
18567 #define HAVE___FIXSFDI 1
18572 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18573 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18574 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 ac_check_lib_save_LIBS=$LIBS
18579 cat >conftest.$ac_ext <<_ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18586 /* Override any GCC internal prototype to avoid an error.
18587 Use char because int might match the return type of a GCC
18588 builtin and then its argument prototype would still apply. */
18592 char __floatdidf ();
18596 return __floatdidf ();
18601 rm -f conftest.$ac_objext conftest$ac_exeext
18602 if { (ac_try="$ac_link"
18603 case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_link") 2>conftest.er1
18610 grep -v '^ *+' conftest.er1 >conftest.err
18612 cat conftest.err >&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } &&
18615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18616 { (case "(($ac_try" in
18617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618 *) ac_try_echo=$ac_try;;
18620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621 (eval "$ac_try") 2>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest$ac_exeext'
18626 { (case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_try") 2>&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_cv_lib_gcc___floatdidf=yes
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18640 ac_cv_lib_gcc___floatdidf=no
18643 rm -f core conftest.err conftest.$ac_objext \
18644 conftest$ac_exeext conftest.$ac_ext
18645 LIBS=$ac_check_lib_save_LIBS
18647 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18648 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18649 if test $ac_cv_lib_gcc___floatdidf = yes; then
18651 cat >>confdefs.h <<\_ACEOF
18652 #define HAVE___FLOATDIDF 1
18657 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18658 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18659 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 ac_check_lib_save_LIBS=$LIBS
18664 cat >conftest.$ac_ext <<_ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18671 /* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
18681 return __lshrdi3 ();
18686 rm -f conftest.$ac_objext conftest$ac_exeext
18687 if { (ac_try="$ac_link"
18688 case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_link") 2>conftest.er1
18695 grep -v '^ *+' conftest.er1 >conftest.err
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18701 { (case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_try") 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; } &&
18710 { ac_try='test -s conftest$ac_exeext'
18711 { (case "(($ac_try" in
18712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713 *) ac_try_echo=$ac_try;;
18715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716 (eval "$ac_try") 2>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; }; then
18720 ac_cv_lib_gcc___lshrdi3=yes
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18725 ac_cv_lib_gcc___lshrdi3=no
18728 rm -f core conftest.err conftest.$ac_objext \
18729 conftest$ac_exeext conftest.$ac_ext
18730 LIBS=$ac_check_lib_save_LIBS
18732 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18733 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18734 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18736 cat >>confdefs.h <<\_ACEOF
18737 #define HAVE___LSHRDI3 1
18742 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18743 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18744 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 ac_check_lib_save_LIBS=$LIBS
18749 cat >conftest.$ac_ext <<_ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18756 /* Override any GCC internal prototype to avoid an error.
18757 Use char because int might match the return type of a GCC
18758 builtin and then its argument prototype would still apply. */
18766 return __moddi3 ();
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18780 grep -v '^ *+' conftest.er1 >conftest.err
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest$ac_exeext'
18796 { (case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_try") 2>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18805 ac_cv_lib_gcc___moddi3=yes
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18810 ac_cv_lib_gcc___moddi3=no
18813 rm -f core conftest.err conftest.$ac_objext \
18814 conftest$ac_exeext conftest.$ac_ext
18815 LIBS=$ac_check_lib_save_LIBS
18817 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18818 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18819 if test $ac_cv_lib_gcc___moddi3 = yes; then
18821 cat >>confdefs.h <<\_ACEOF
18822 #define HAVE___MODDI3 1
18827 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18828 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18829 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 ac_check_lib_save_LIBS=$LIBS
18834 cat >conftest.$ac_ext <<_ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18841 /* Override any GCC internal prototype to avoid an error.
18842 Use char because int might match the return type of a GCC
18843 builtin and then its argument prototype would still apply. */
18851 return __udivdi3 ();
18856 rm -f conftest.$ac_objext conftest$ac_exeext
18857 if { (ac_try="$ac_link"
18858 case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863 (eval "$ac_link") 2>conftest.er1
18865 grep -v '^ *+' conftest.er1 >conftest.err
18867 cat conftest.err >&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } &&
18870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18871 { (case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_try") 2>&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; } &&
18880 { ac_try='test -s conftest$ac_exeext'
18881 { (case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_try") 2>&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; }; then
18890 ac_cv_lib_gcc___udivdi3=yes
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18895 ac_cv_lib_gcc___udivdi3=no
18898 rm -f core conftest.err conftest.$ac_objext \
18899 conftest$ac_exeext conftest.$ac_ext
18900 LIBS=$ac_check_lib_save_LIBS
18902 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18903 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18904 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18906 cat >>confdefs.h <<\_ACEOF
18907 #define HAVE___UDIVDI3 1
18912 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18913 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18914 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 ac_check_lib_save_LIBS=$LIBS
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18926 /* Override any GCC internal prototype to avoid an error.
18927 Use char because int might match the return type of a GCC
18928 builtin and then its argument prototype would still apply. */
18936 return __umoddi3 ();
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (ac_try="$ac_link"
18943 case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_link") 2>conftest.er1
18950 grep -v '^ *+' conftest.er1 >conftest.err
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18956 { (case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_try") 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try='test -s conftest$ac_exeext'
18966 { (case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_try") 2>&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 ac_cv_lib_gcc___umoddi3=yes
18977 echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18980 ac_cv_lib_gcc___umoddi3=no
18983 rm -f core conftest.err conftest.$ac_objext \
18984 conftest$ac_exeext conftest.$ac_ext
18985 LIBS=$ac_check_lib_save_LIBS
18987 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18988 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18989 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18991 cat >>confdefs.h <<\_ACEOF
18992 #define HAVE___UMODDI3 1
18998 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18999 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19000 if test "${ac_cv_lib_gcc___main+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 ac_check_lib_save_LIBS=$LIBS
19005 cat >conftest.$ac_ext <<_ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19012 /* Override any GCC internal prototype to avoid an error.
19013 Use char because int might match the return type of a GCC
19014 builtin and then its argument prototype would still apply. */
19027 rm -f conftest.$ac_objext conftest$ac_exeext
19028 if { (ac_try="$ac_link"
19029 case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_link") 2>conftest.er1
19036 grep -v '^ *+' conftest.er1 >conftest.err
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19042 { (case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_try") 2>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest$ac_exeext'
19052 { (case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_try") 2>&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
19061 ac_cv_lib_gcc___main=yes
19063 echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19066 ac_cv_lib_gcc___main=no
19069 rm -f core conftest.err conftest.$ac_objext \
19070 conftest$ac_exeext conftest.$ac_ext
19071 LIBS=$ac_check_lib_save_LIBS
19073 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19074 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19075 if test $ac_cv_lib_gcc___main = yes; then
19077 cat >>confdefs.h <<\_ACEOF
19078 #define HAVE___MAIN 1
19083 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19084 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19085 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19086 echo $ECHO_N "(cached) $ECHO_C" >&6
19088 ac_check_lib_save_LIBS=$LIBS
19090 cat >conftest.$ac_ext <<_ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19097 /* Override any GCC internal prototype to avoid an error.
19098 Use char because int might match the return type of a GCC
19099 builtin and then its argument prototype would still apply. */
19107 return __cmpdi2 ();
19112 rm -f conftest.$ac_objext conftest$ac_exeext
19113 if { (ac_try="$ac_link"
19114 case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_link") 2>conftest.er1
19121 grep -v '^ *+' conftest.er1 >conftest.err
19123 cat conftest.err >&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } &&
19126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19127 { (case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132 (eval "$ac_try") 2>&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; } &&
19136 { ac_try='test -s conftest$ac_exeext'
19137 { (case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142 (eval "$ac_try") 2>&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146 ac_cv_lib_gcc___cmpdi2=yes
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19151 ac_cv_lib_gcc___cmpdi2=no
19154 rm -f core conftest.err conftest.$ac_objext \
19155 conftest$ac_exeext conftest.$ac_ext
19156 LIBS=$ac_check_lib_save_LIBS
19158 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19159 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19160 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19162 cat >>confdefs.h <<\_ACEOF
19163 #define HAVE___CMPDI2 1
19170 if test "$llvm_cv_os_type" = "MingW" ; then
19171 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19172 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19173 cat >conftest.$ac_ext <<_ACEOF
19174 #include <windows.h>
19175 #include <imagehlp.h>
19176 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19177 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_compile") 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest.$ac_objext'
19204 { (case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_try") 2>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19214 { echo "$as_me:$LINENO: result: yes" >&5
19215 echo "${ECHO_T}yes" >&6; }
19216 llvm_cv_win32_elmcb_pcstr="PCSTR"
19219 echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19223 { echo "$as_me:$LINENO: result: no" >&5
19224 echo "${ECHO_T}no" >&6; }
19225 llvm_cv_win32_elmcb_pcstr="PSTR"
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 cat >>confdefs.h <<_ACEOF
19232 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19238 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19239 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19240 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 ac_cpp='$CXXCPP $CPPFLAGS'
19245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19249 cat >conftest.$ac_ext <<_ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19264 rm -f conftest.$ac_objext
19265 if { (ac_try="$ac_compile"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_compile") 2>conftest.er1
19273 grep -v '^ *+' conftest.er1 >conftest.err
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19279 { (case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest.$ac_objext'
19289 { (case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_try") 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_func_isnan_in_math_h=yes
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_cv_func_isnan_in_math_h=no
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308 ac_cpp='$CPP $CPPFLAGS'
19309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19314 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19315 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19318 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19320 cat >>confdefs.h <<\_ACEOF
19321 #define HAVE_ISNAN_IN_MATH_H 1
19326 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19327 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19328 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 ac_cpp='$CXXCPP $CPPFLAGS'
19333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19337 cat >conftest.$ac_ext <<_ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h. */
19352 rm -f conftest.$ac_objext
19353 if { (ac_try="$ac_compile"
19354 case "(($ac_try" in
19355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356 *) ac_try_echo=$ac_try;;
19358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359 (eval "$ac_compile") 2>conftest.er1
19361 grep -v '^ *+' conftest.er1 >conftest.err
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19367 { (case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_try") 2>&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; } &&
19376 { ac_try='test -s conftest.$ac_objext'
19377 { (case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_try") 2>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 ac_cv_func_isnan_in_cmath=yes
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ac_cv_func_isnan_in_cmath=no
19394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396 ac_cpp='$CPP $CPPFLAGS'
19397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19402 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19403 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19405 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19407 cat >>confdefs.h <<\_ACEOF
19408 #define HAVE_ISNAN_IN_CMATH 1
19413 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19414 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19415 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 ac_cpp='$CXXCPP $CPPFLAGS'
19420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19424 cat >conftest.$ac_ext <<_ACEOF
19427 cat confdefs.h >>conftest.$ac_ext
19428 cat >>conftest.$ac_ext <<_ACEOF
19429 /* end confdefs.h. */
19434 float f; std::isnan(f);
19439 rm -f conftest.$ac_objext
19440 if { (ac_try="$ac_compile"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_compile") 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19454 { (case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_try") 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest.$ac_objext'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; }; then
19473 ac_cv_func_std_isnan_in_cmath=yes
19475 echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19478 ac_cv_func_std_isnan_in_cmath=no
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19483 ac_cpp='$CPP $CPPFLAGS'
19484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19489 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19490 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19492 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE_STD_ISNAN_IN_CMATH 1
19501 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19502 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19503 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 ac_cpp='$CXXCPP $CPPFLAGS'
19508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19512 cat >conftest.$ac_ext <<_ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h. */
19527 rm -f conftest.$ac_objext
19528 if { (ac_try="$ac_compile"
19529 case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_compile") 2>conftest.er1
19536 grep -v '^ *+' conftest.er1 >conftest.err
19538 cat conftest.err >&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19542 { (case "(($ac_try" in
19543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_try") 2>&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; } &&
19551 { ac_try='test -s conftest.$ac_objext'
19552 { (case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_try") 2>&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 ac_cv_func_isinf_in_math_h=yes
19563 echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19566 ac_cv_func_isinf_in_math_h=no
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 ac_cpp='$CPP $CPPFLAGS'
19572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19577 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19578 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19580 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE_ISINF_IN_MATH_H 1
19588 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19589 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19590 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 ac_cpp='$CXXCPP $CPPFLAGS'
19595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19599 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19614 rm -f conftest.$ac_objext
19615 if { (ac_try="$ac_compile"
19616 case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_compile") 2>conftest.er1
19623 grep -v '^ *+' conftest.er1 >conftest.err
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19629 { (case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_try") 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 ac_cv_func_isinf_in_cmath=yes
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_cv_func_isinf_in_cmath=no
19656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658 ac_cpp='$CPP $CPPFLAGS'
19659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19665 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19667 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19669 cat >>confdefs.h <<\_ACEOF
19670 #define HAVE_ISINF_IN_CMATH 1
19675 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19676 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19677 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 ac_cpp='$CXXCPP $CPPFLAGS'
19682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19686 cat >conftest.$ac_ext <<_ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19696 float f; std::isinf(f)}
19701 rm -f conftest.$ac_objext
19702 if { (ac_try="$ac_compile"
19703 case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_compile") 2>conftest.er1
19710 grep -v '^ *+' conftest.er1 >conftest.err
19712 cat conftest.err >&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } &&
19715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19716 { (case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_try") 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest.$ac_objext'
19726 { (case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_try") 2>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_func_std_isinf_in_cmath=yes
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_cv_func_std_isinf_in_cmath=no
19743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745 ac_cpp='$CPP $CPPFLAGS'
19746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19752 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19754 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19756 cat >>confdefs.h <<\_ACEOF
19757 #define HAVE_STD_ISINF_IN_CMATH 1
19762 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19763 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19764 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 ac_cpp='$CXXCPP $CPPFLAGS'
19769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19779 #include <ieeefp.h>
19783 float f; finite(f);
19788 rm -f conftest.$ac_objext
19789 if { (ac_try="$ac_compile"
19790 case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795 (eval "$ac_compile") 2>conftest.er1
19797 grep -v '^ *+' conftest.er1 >conftest.err
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
19802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19803 { (case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_try") 2>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; } &&
19812 { ac_try='test -s conftest.$ac_objext'
19813 { (case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_try") 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
19822 ac_cv_func_finite_in_ieeefp_h=yes
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19827 ac_cv_func_finite_in_ieeefp_h=no
19830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19832 ac_cpp='$CPP $CPPFLAGS'
19833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19838 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19839 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19841 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19843 cat >>confdefs.h <<\_ACEOF
19844 #define HAVE_FINITE_IN_IEEEFP_H 1
19851 if test "$llvm_cv_platform_type" = "Unix" ; then
19854 for ac_header in stdlib.h unistd.h
19856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19863 ac_res=`eval echo '${'$as_ac_Header'}'`
19864 { echo "$as_me:$LINENO: result: $ac_res" >&5
19865 echo "${ECHO_T}$ac_res" >&6; }
19867 # Is the header compilable?
19868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19870 cat >conftest.$ac_ext <<_ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19876 $ac_includes_default
19877 #include <$ac_header>
19879 rm -f conftest.$ac_objext
19880 if { (ac_try="$ac_compile"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_compile") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } &&
19893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; } &&
19903 { ac_try='test -s conftest.$ac_objext'
19904 { (case "(($ac_try" in
19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909 (eval "$ac_try") 2>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; }; then
19913 ac_header_compiler=yes
19915 echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19918 ac_header_compiler=no
19921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19923 echo "${ECHO_T}$ac_header_compiler" >&6; }
19925 # Is the header present?
19926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19928 cat >conftest.$ac_ext <<_ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19934 #include <$ac_header>
19936 if { (ac_try="$ac_cpp conftest.$ac_ext"
19937 case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19944 grep -v '^ *+' conftest.er1 >conftest.err
19946 cat conftest.err >&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } >/dev/null; then
19949 if test -s conftest.err; then
19950 ac_cpp_err=$ac_c_preproc_warn_flag
19951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19958 if test -z "$ac_cpp_err"; then
19959 ac_header_preproc=yes
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19964 ac_header_preproc=no
19967 rm -f conftest.err conftest.$ac_ext
19968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19969 echo "${ECHO_T}$ac_header_preproc" >&6; }
19971 # So? What about this header?
19972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19978 ac_header_preproc=yes
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19994 ## ------------------------------ ##
19995 ## Report this to bugs@yourdomain ##
19996 ## ------------------------------ ##
19998 ) | sed "s/^/$as_me: WARNING: /" >&2
20001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 eval "$as_ac_Header=\$ac_header_preproc"
20008 ac_res=`eval echo '${'$as_ac_Header'}'`
20009 { echo "$as_me:$LINENO: result: $ac_res" >&5
20010 echo "${ECHO_T}$ac_res" >&6; }
20013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20014 cat >>confdefs.h <<_ACEOF
20015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20023 for ac_func in getpagesize
20025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20031 cat >conftest.$ac_ext <<_ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20039 #define $ac_func innocuous_$ac_func
20041 /* System header to define __stub macros and hopefully few prototypes,
20042 which can conflict with char $ac_func (); below.
20043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20044 <limits.h> exists even on freestanding compilers. */
20047 # include <limits.h>
20049 # include <assert.h>
20054 /* Override any GCC internal prototype to avoid an error.
20055 Use char because int might match the return type of a GCC
20056 builtin and then its argument prototype would still apply. */
20061 /* The GNU C library defines this for functions which it implements
20062 to always fail with ENOSYS. Some functions are actually named
20063 something starting with __ and the normal name is an alias. */
20064 #if defined __stub_$ac_func || defined __stub___$ac_func
20071 return $ac_func ();
20076 rm -f conftest.$ac_objext conftest$ac_exeext
20077 if { (ac_try="$ac_link"
20078 case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_link") 2>conftest.er1
20085 grep -v '^ *+' conftest.er1 >conftest.err
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
20090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20091 { (case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_try") 2>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; } &&
20100 { ac_try='test -s conftest$ac_exeext'
20101 { (case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_try") 2>&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; }; then
20110 eval "$as_ac_var=yes"
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20115 eval "$as_ac_var=no"
20118 rm -f core conftest.err conftest.$ac_objext \
20119 conftest$ac_exeext conftest.$ac_ext
20121 ac_res=`eval echo '${'$as_ac_var'}'`
20122 { echo "$as_me:$LINENO: result: $ac_res" >&5
20123 echo "${ECHO_T}$ac_res" >&6; }
20124 if test `eval echo '${'$as_ac_var'}'` = yes; then
20125 cat >>confdefs.h <<_ACEOF
20126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20132 { echo "$as_me:$LINENO: checking for working mmap" >&5
20133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 if test "$cross_compiling" = yes; then
20138 ac_cv_func_mmap_fixed_mapped=no
20140 cat >conftest.$ac_ext <<_ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146 $ac_includes_default
20147 /* malloc might have been renamed as rpl_malloc. */
20150 /* Thanks to Mike Haertel and Jim Avera for this test.
20151 Here is a matrix of mmap possibilities:
20152 mmap private not fixed
20153 mmap private fixed at somewhere currently unmapped
20154 mmap private fixed at somewhere already mapped
20155 mmap shared not fixed
20156 mmap shared fixed at somewhere currently unmapped
20157 mmap shared fixed at somewhere already mapped
20158 For private mappings, we should verify that changes cannot be read()
20159 back from the file, nor mmap's back from the file at a different
20160 address. (There have been systems where private was not correctly
20161 implemented like the infamous i386 svr4.0, and systems where the
20162 VM page cache was not coherent with the file system buffer cache
20163 like early versions of FreeBSD and possibly contemporary NetBSD.)
20164 For shared mappings, we should conversely verify that changes get
20165 propagated back to all the places they're supposed to be.
20167 Grep wants private fixed already mapped.
20168 The main things grep needs to know about mmap are:
20169 * does it exist and is it safe to write into the mmap'd area
20170 * how to use it (BSD variants) */
20173 #include <sys/mman.h>
20175 #if !STDC_HEADERS && !HAVE_STDLIB_H
20179 /* This mess was copied from the GNU getpagesize.h. */
20180 #if !HAVE_GETPAGESIZE
20181 /* Assume that all systems that can run configure have sys/param.h. */
20182 # if !HAVE_SYS_PARAM_H
20183 # define HAVE_SYS_PARAM_H 1
20186 # ifdef _SC_PAGESIZE
20187 # define getpagesize() sysconf(_SC_PAGESIZE)
20188 # else /* no _SC_PAGESIZE */
20189 # if HAVE_SYS_PARAM_H
20190 # include <sys/param.h>
20191 # ifdef EXEC_PAGESIZE
20192 # define getpagesize() EXEC_PAGESIZE
20193 # else /* no EXEC_PAGESIZE */
20195 # define getpagesize() NBPG * CLSIZE
20198 # endif /* no CLSIZE */
20199 # else /* no NBPG */
20201 # define getpagesize() NBPC
20202 # else /* no NBPC */
20204 # define getpagesize() PAGESIZE
20205 # endif /* PAGESIZE */
20206 # endif /* no NBPC */
20207 # endif /* no NBPG */
20208 # endif /* no EXEC_PAGESIZE */
20209 # else /* no HAVE_SYS_PARAM_H */
20210 # define getpagesize() 8192 /* punt totally */
20211 # endif /* no HAVE_SYS_PARAM_H */
20212 # endif /* no _SC_PAGESIZE */
20214 #endif /* no HAVE_GETPAGESIZE */
20219 char *data, *data2, *data3;
20223 pagesize = getpagesize ();
20225 /* First, make a file with some known garbage in it. */
20226 data = (char *) malloc (pagesize);
20229 for (i = 0; i < pagesize; ++i)
20230 *(data + i) = rand ();
20232 fd = creat ("conftest.mmap", 0600);
20235 if (write (fd, data, pagesize) != pagesize)
20239 /* Next, try to mmap the file at a fixed address which already has
20240 something else allocated at it. If we can, also make sure that
20241 we see the same garbage. */
20242 fd = open ("conftest.mmap", O_RDWR);
20245 data2 = (char *) malloc (2 * pagesize);
20248 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20249 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20250 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20252 for (i = 0; i < pagesize; ++i)
20253 if (*(data + i) != *(data2 + i))
20256 /* Finally, make sure that changes to the mapped area do not
20257 percolate back to the file as seen by read(). (This is a bug on
20258 some variants of i386 svr4.0.) */
20259 for (i = 0; i < pagesize; ++i)
20260 *(data2 + i) = *(data2 + i) + 1;
20261 data3 = (char *) malloc (pagesize);
20264 if (read (fd, data3, pagesize) != pagesize)
20266 for (i = 0; i < pagesize; ++i)
20267 if (*(data + i) != *(data3 + i))
20273 rm -f conftest$ac_exeext
20274 if { (ac_try="$ac_link"
20275 case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280 (eval "$ac_link") 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20284 { (case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_try") 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 ac_cv_func_mmap_fixed_mapped=yes
20295 echo "$as_me: program exited with status $ac_status" >&5
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 ( exit $ac_status )
20300 ac_cv_func_mmap_fixed_mapped=no
20302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20307 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20308 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20309 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20311 cat >>confdefs.h <<\_ACEOF
20312 #define HAVE_MMAP 1
20316 rm -f conftest.mmap
20318 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20319 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20320 if test "${ac_cv_func_mmap_file+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 ac_cpp='$CPP $CPPFLAGS'
20325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20329 if test "$cross_compiling" = yes; then
20330 ac_cv_func_mmap_file=no
20332 cat >conftest.$ac_ext <<_ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20340 #include <sys/types.h>
20341 #include <sys/mman.h>
20349 fd = creat ("foo",0777);
20350 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20352 return (fd != (int) MAP_FAILED);
20357 rm -f conftest$ac_exeext
20358 if { (ac_try="$ac_link"
20359 case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_link") 2>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20368 { (case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_try") 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 ac_cv_func_mmap_file=yes
20379 echo "$as_me: program exited with status $ac_status" >&5
20380 echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20383 ( exit $ac_status )
20384 ac_cv_func_mmap_file=no
20386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20391 ac_cpp='$CPP $CPPFLAGS'
20392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20398 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20399 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20400 if test "$ac_cv_func_mmap_file" = yes; then
20402 cat >>confdefs.h <<\_ACEOF
20403 #define HAVE_MMAP_FILE
20410 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20411 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20412 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20415 if test "$llvm_cv_os_type" = "Interix" ; then
20416 ac_cv_need_dev_zero_for_mmap=yes
20418 ac_cv_need_dev_zero_for_mmap=no
20422 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20423 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20424 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20426 cat >>confdefs.h <<\_ACEOF
20427 #define NEED_DEV_ZERO_FOR_MMAP 1
20432 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20434 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20435 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20437 if test "$ac_cv_func_mmap_file" = "no"
20439 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20440 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20444 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20445 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20447 ac_cpp='$CXXCPP $CPPFLAGS'
20448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20452 cat >conftest.$ac_ext <<_ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20459 volatile unsigned long val = 1;
20460 __sync_synchronize();
20461 __sync_val_compare_and_swap(&val, 1, 0);
20462 __sync_add_and_fetch(&val, 1);
20463 __sync_sub_and_fetch(&val, 1);
20468 rm -f conftest.$ac_objext conftest$ac_exeext
20469 if { (ac_try="$ac_link"
20470 case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_link") 2>conftest.er1
20477 grep -v '^ *+' conftest.er1 >conftest.err
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20483 { (case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_try") 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; } &&
20492 { ac_try='test -s conftest$ac_exeext'
20493 { (case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_try") 2>&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20503 ac_cpp='$CPP $CPPFLAGS'
20504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20508 { echo "$as_me:$LINENO: result: yes" >&5
20509 echo "${ECHO_T}yes" >&6; }
20511 cat >>confdefs.h <<\_ACEOF
20512 #define LLVM_HAS_ATOMICS 1
20516 echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20519 { echo "$as_me:$LINENO: result: no" >&5
20520 echo "${ECHO_T}no" >&6; }
20522 cat >>confdefs.h <<\_ACEOF
20523 #define LLVM_HAS_ATOMICS 0
20526 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20527 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20530 rm -f core conftest.err conftest.$ac_objext \
20531 conftest$ac_exeext conftest.$ac_ext
20534 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20535 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20536 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20537 if test "${llvm_cv_linux_mixed+set}" = set; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 ac_cpp='$CPP $CPPFLAGS'
20542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20546 cat >conftest.$ac_ext <<_ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20553 error: Not x86-64 even if uname says so!
20564 rm -f conftest.$ac_objext
20565 if { (ac_try="$ac_compile"
20566 case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_compile") 2>conftest.er1
20573 grep -v '^ *+' conftest.er1 >conftest.err
20575 cat conftest.err >&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } &&
20578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20579 { (case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_try") 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest.$ac_objext'
20589 { (case "(($ac_try" in
20590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591 *) ac_try_echo=$ac_try;;
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594 (eval "$ac_try") 2>&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
20598 llvm_cv_linux_mixed=no
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20603 llvm_cv_linux_mixed=yes
20606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20608 ac_cpp='$CPP $CPPFLAGS'
20609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20615 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20616 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20618 if test "$llvm_cv_linux_mixed" = "yes"; then
20619 llvm_cv_target_arch="x86"
20625 for ac_func in __dso_handle
20627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20631 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 cat >conftest.$ac_ext <<_ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20641 #define $ac_func innocuous_$ac_func
20643 /* System header to define __stub macros and hopefully few prototypes,
20644 which can conflict with char $ac_func (); below.
20645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20646 <limits.h> exists even on freestanding compilers. */
20649 # include <limits.h>
20651 # include <assert.h>
20656 /* Override any GCC internal prototype to avoid an error.
20657 Use char because int might match the return type of a GCC
20658 builtin and then its argument prototype would still apply. */
20663 /* The GNU C library defines this for functions which it implements
20664 to always fail with ENOSYS. Some functions are actually named
20665 something starting with __ and the normal name is an alias. */
20666 #if defined __stub_$ac_func || defined __stub___$ac_func
20673 return $ac_func ();
20678 rm -f conftest.$ac_objext conftest$ac_exeext
20679 if { (ac_try="$ac_link"
20680 case "(($ac_try" in
20681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682 *) ac_try_echo=$ac_try;;
20684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685 (eval "$ac_link") 2>conftest.er1
20687 grep -v '^ *+' conftest.er1 >conftest.err
20689 cat conftest.err >&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } &&
20692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20693 { (case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_try") 2>&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; } &&
20702 { ac_try='test -s conftest$ac_exeext'
20703 { (case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_try") 2>&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
20712 eval "$as_ac_var=yes"
20714 echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20717 eval "$as_ac_var=no"
20720 rm -f core conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20723 ac_res=`eval echo '${'$as_ac_var'}'`
20724 { echo "$as_me:$LINENO: result: $ac_res" >&5
20725 echo "${ECHO_T}$ac_res" >&6; }
20726 if test `eval echo '${'$as_ac_var'}'` = yes; then
20727 cat >>confdefs.h <<_ACEOF
20728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20735 SHLIBEXT=$libltdl_cv_shlibext
20738 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20741 # Translate the various configuration directories and other basic
20742 # information into substitutions that will end up in Makefile.config.in
20743 # that these configured values can be used by the makefiles
20744 if test "${prefix}" = "NONE" ; then
20745 prefix="/usr/local"
20747 eval LLVM_PREFIX="${prefix}";
20748 eval LLVM_BINDIR="${prefix}/bin";
20749 eval LLVM_LIBDIR="${prefix}/lib";
20750 eval LLVM_DATADIR="${prefix}/share/llvm";
20751 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20752 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20753 eval LLVM_INCLUDEDIR="${prefix}/include";
20754 eval LLVM_INFODIR="${prefix}/info";
20755 eval LLVM_MANDIR="${prefix}/man";
20756 LLVM_CONFIGTIME=`date`
20768 # Place the various directores into the config.h file as #defines so that we
20769 # can know about the installation paths within LLVM.
20771 cat >>confdefs.h <<_ACEOF
20772 #define LLVM_PREFIX "$LLVM_PREFIX"
20776 cat >>confdefs.h <<_ACEOF
20777 #define LLVM_BINDIR "$LLVM_BINDIR"
20781 cat >>confdefs.h <<_ACEOF
20782 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20786 cat >>confdefs.h <<_ACEOF
20787 #define LLVM_DATADIR "$LLVM_DATADIR"
20791 cat >>confdefs.h <<_ACEOF
20792 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20796 cat >>confdefs.h <<_ACEOF
20797 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20801 cat >>confdefs.h <<_ACEOF
20802 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20806 cat >>confdefs.h <<_ACEOF
20807 #define LLVM_INFODIR "$LLVM_INFODIR"
20811 cat >>confdefs.h <<_ACEOF
20812 #define LLVM_MANDIR "$LLVM_MANDIR"
20816 cat >>confdefs.h <<_ACEOF
20817 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20821 cat >>confdefs.h <<_ACEOF
20822 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20826 # Determine which bindings to build.
20827 if test "$BINDINGS_TO_BUILD" = auto ; then
20828 BINDINGS_TO_BUILD=""
20829 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20830 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20833 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20836 # This isn't really configurey, but it avoids having to repeat the list in
20841 # Do any work necessary to ensure that bindings have what they need.
20842 binding_prereqs_failed=0
20843 for a_binding in $BINDINGS_TO_BUILD ; do
20844 case "$a_binding" in
20846 if test "x$OCAMLC" = x ; then
20847 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20848 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20849 binding_prereqs_failed=1
20851 if test "x$OCAMLDEP" = x ; then
20852 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20853 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20854 binding_prereqs_failed=1
20856 if test "x$OCAMLOPT" = x ; then
20857 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20858 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20860 if test "x$with_ocaml_libdir" != xauto ; then
20861 OCAML_LIBDIR=$with_ocaml_libdir
20864 ocaml_stdlib="`"$OCAMLC" -where`"
20865 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20867 # ocaml stdlib is beneath our prefix; use stdlib
20868 OCAML_LIBDIR=$ocaml_stdlib
20871 # ocaml stdlib is outside our prefix; use libdir/ocaml
20872 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20879 if test "$binding_prereqs_failed" = 1 ; then
20880 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20881 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20882 { (exit 1); exit 1; }; }
20885 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20886 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20887 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 ac_cpp='$CXXCPP $CPPFLAGS'
20892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20896 oldcxxflags="$CXXFLAGS"
20897 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20913 rm -f conftest.$ac_objext
20914 if { (ac_try="$ac_compile"
20915 case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920 (eval "$ac_compile") 2>conftest.er1
20922 grep -v '^ *+' conftest.er1 >conftest.err
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
20927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20928 { (case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_try") 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest.$ac_objext'
20938 { (case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_try") 2>&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20947 llvm_cv_cxx_visibility_inlines_hidden=yes
20949 echo "$as_me: failed program was:" >&5
20950 sed 's/^/| /' conftest.$ac_ext >&5
20952 llvm_cv_cxx_visibility_inlines_hidden=no
20955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956 CXXFLAGS="$oldcxxflags"
20958 ac_cpp='$CPP $CPPFLAGS'
20959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20965 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20966 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20967 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20968 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20971 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20976 if test "$llvm_cv_link_use_r" = "yes" ; then
20983 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20984 RDYNAMIC="-Wl,-export-dynamic"
20992 ac_config_files="$ac_config_files Makefile.common"
20994 ac_config_files="$ac_config_files Makefile.llvm.config"
20997 ac_config_commands="$ac_config_commands Makefile"
21000 ac_config_commands="$ac_config_commands lib/Makefile"
21003 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21006 ac_config_commands="$ac_config_commands tools/Makefile"
21009 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21013 cat >confcache <<\_ACEOF
21014 # This file is a shell script that caches the results of configure
21015 # tests run on this system so they can be shared between configure
21016 # scripts and configure runs, see configure's option --config-cache.
21017 # It is not useful on other systems. If it contains results you don't
21018 # want to keep, you may remove or edit it.
21020 # config.status only pays attention to the cache file if you give it
21021 # the --recheck option to rerun configure.
21023 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21024 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21025 # following values.
21029 # The following way of writing the cache mishandles newlines in values,
21030 # but we know of no workaround that is simple, portable, and efficient.
21031 # So, we kill variables containing newlines.
21032 # Ultrix sh set writes to stderr and can't be redirected directly,
21033 # and sets the high bit in the cache file unless we assign to the vars.
21035 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21036 eval ac_val=\$$ac_var
21040 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21041 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21044 _ | IFS | as_nl) ;; #(
21045 *) $as_unset $ac_var ;;
21051 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21052 *${as_nl}ac_space=\ *)
21053 # `set' does not quote correctly, so add quotes (double-quote
21054 # substitution turns \\\\ into \\, and sed turns \\ into \).
21057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21060 # `set' quotes correctly as required by POSIX, so do not add quotes.
21061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21070 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21072 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21074 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21075 if test -w "$cache_file"; then
21076 test "x$cache_file" != "x/dev/null" &&
21077 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21078 echo "$as_me: updating cache $cache_file" >&6;}
21079 cat confcache >$cache_file
21081 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21082 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21087 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21088 # Let make expand exec_prefix.
21089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21091 # Transform confdefs.h into DEFS.
21092 # Protect against shell expansion while executing Makefile rules.
21093 # Protect against Makefile macro expansion.
21095 # If the first sed substitution is executed (which looks for macros that
21096 # take arguments), then branch to the quote section. Otherwise,
21097 # look for a macro that doesn't take arguments.
21101 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21103 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21107 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21120 DEFS=`sed -n "$ac_script" confdefs.h`
21125 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21126 # 1. Remove the extension, and $U if already installed.
21127 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21128 ac_i=`echo "$ac_i" | sed "$ac_script"`
21129 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21130 # will be set to the directory where LIBOBJS objects are built.
21131 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21132 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21134 LIBOBJS=$ac_libobjs
21136 LTLIBOBJS=$ac_ltlibobjs
21139 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21140 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21141 Usually this means the macro was only invoked conditionally." >&5
21142 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21143 Usually this means the macro was only invoked conditionally." >&2;}
21144 { (exit 1); exit 1; }; }
21146 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21147 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21148 Usually this means the macro was only invoked conditionally." >&5
21149 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21150 Usually this means the macro was only invoked conditionally." >&2;}
21151 { (exit 1); exit 1; }; }
21154 : ${CONFIG_STATUS=./config.status}
21155 ac_clean_files_save=$ac_clean_files
21156 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21157 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21158 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21159 cat >$CONFIG_STATUS <<_ACEOF
21161 # Generated by $as_me.
21162 # Run this file to recreate the current configuration.
21163 # Compiler output produced by configure, useful for debugging
21164 # configure, is in config.log if it exists.
21167 ac_cs_recheck=false
21169 SHELL=\${CONFIG_SHELL-$SHELL}
21172 cat >>$CONFIG_STATUS <<\_ACEOF
21173 ## --------------------- ##
21174 ## M4sh Initialization. ##
21175 ## --------------------- ##
21177 # Be Bourne compatible
21178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21181 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21182 # is contrary to our usage. Disable this feature.
21183 alias -g '${1+"$@"}'='"$@"'
21184 setopt NO_GLOB_SUBST
21186 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21188 BIN_SH=xpg4; export BIN_SH # for Tru64
21189 DUALCASE=1; export DUALCASE # for MKS sh
21193 # Avoid depending upon Character Ranges.
21194 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21195 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21196 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21197 as_cr_digits='0123456789'
21198 as_cr_alnum=$as_cr_Letters$as_cr_digits
21200 # The user is always right.
21201 if test "${PATH_SEPARATOR+set}" != set; then
21202 echo "#! /bin/sh" >conf$$.sh
21203 echo "exit 0" >>conf$$.sh
21205 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21213 # Support unset when possible.
21214 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21222 # We need space, tab and new line, in precisely that order. Quoting is
21223 # there to prevent editors from complaining about space-tab.
21224 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21225 # splitting by setting IFS to empty value.)
21230 # Find who we are. Look in the path if we contain no directory separator.
21232 *[\\/]* ) as_myself=$0 ;;
21233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21234 for as_dir in $PATH
21237 test -z "$as_dir" && as_dir=.
21238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21244 # We did not find ourselves, most probably we were run as `sh COMMAND'
21245 # in which case we are not to be found in the path.
21246 if test "x$as_myself" = x; then
21249 if test ! -f "$as_myself"; then
21250 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21251 { (exit 1); exit 1; }
21254 # Work around bugs in pre-3.0 UWIN ksh.
21255 for as_var in ENV MAIL MAILPATH
21256 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21264 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21265 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21266 LC_TELEPHONE LC_TIME
21268 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21269 eval $as_var=C; export $as_var
21271 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21275 # Required to use basename.
21276 if expr a : '\(a\)' >/dev/null 2>&1 &&
21277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21283 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21284 as_basename=basename
21290 # Name of the executable.
21291 as_me=`$as_basename -- "$0" ||
21292 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21293 X"$0" : 'X\(//\)$' \| \
21294 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21296 sed '/^.*\/\([^/][^/]*\)\/*$/{
21315 as_lineno_1=$LINENO
21316 as_lineno_2=$LINENO
21317 test "x$as_lineno_1" != "x$as_lineno_2" &&
21318 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21320 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21321 # uniformly replaced by the line number. The first 'sed' inserts a
21322 # line-number line after each line using $LINENO; the second 'sed'
21323 # does the real work. The second script uses 'N' to pair each
21324 # line-number line with the line containing $LINENO, and appends
21325 # trailing '-' during substitution so that $LINENO is not a special
21326 # case at line end.
21327 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21328 # scripts with optimization help from Paolo Bonzini. Blame Lee
21329 # E. McMahon (1931-1989) for sed's syntax. :-)
21341 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21344 ' >$as_me.lineno &&
21345 chmod +x "$as_me.lineno" ||
21346 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21347 { (exit 1); exit 1; }; }
21349 # Don't try to exec as it changes $[0], causing all sort of problems
21350 # (the dirname of $[0] is not the place where we might find the
21351 # original and so on. Autoconf is especially sensitive to this).
21352 . "./$as_me.lineno"
21353 # Exit status is that of the last command.
21358 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21364 ECHO_C= ECHO_N= ECHO_T=
21365 case `echo -n x` in
21367 case `echo 'x\c'` in
21368 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21375 if expr a : '\(a\)' >/dev/null 2>&1 &&
21376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21382 rm -f conf$$ conf$$.exe conf$$.file
21383 if test -d conf$$.dir; then
21384 rm -f conf$$.dir/conf$$.file
21390 if ln -s conf$$.file conf$$ 2>/dev/null; then
21392 # ... but there are two gotchas:
21393 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21394 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21395 # In both cases, we have to default to `cp -p'.
21396 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21398 elif ln conf$$.file conf$$ 2>/dev/null; then
21403 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21404 rmdir conf$$.dir 2>/dev/null
21406 if mkdir -p . 2>/dev/null; then
21409 test -d ./-p && rmdir ./-p
21413 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21414 # systems may use methods other than mode bits to determine executability.
21415 cat >conf$$.file <<_ASEOF
21419 chmod +x conf$$.file
21420 if test -x conf$$.file >/dev/null 2>&1; then
21421 as_executable_p="test -x"
21427 # Sed expression to map a string onto a valid CPP name.
21428 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21430 # Sed expression to map a string onto a valid variable name.
21431 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21436 # Save the log message, to keep $[0] and so on meaningful, and to
21437 # report actual input values of CONFIG_FILES etc. instead of their
21438 # values after options handling.
21440 This file was extended by [SAMPLE] $as_me [x.xx], which was
21441 generated by GNU Autoconf 2.60. Invocation command line was
21443 CONFIG_FILES = $CONFIG_FILES
21444 CONFIG_HEADERS = $CONFIG_HEADERS
21445 CONFIG_LINKS = $CONFIG_LINKS
21446 CONFIG_COMMANDS = $CONFIG_COMMANDS
21449 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21454 cat >>$CONFIG_STATUS <<_ACEOF
21455 # Files that config.status was made for.
21456 config_files="$ac_config_files"
21457 config_commands="$ac_config_commands"
21461 cat >>$CONFIG_STATUS <<\_ACEOF
21463 \`$as_me' instantiates files from templates according to the
21464 current configuration.
21466 Usage: $0 [OPTIONS] [FILE]...
21468 -h, --help print this help, then exit
21469 -V, --version print version number, then exit
21470 -q, --quiet do not print progress messages
21471 -d, --debug don't remove temporary files
21472 --recheck update $as_me by reconfiguring in the same conditions
21473 --file=FILE[:TEMPLATE]
21474 instantiate the configuration file FILE
21476 Configuration files:
21479 Configuration commands:
21482 Report bugs to <bug-autoconf@gnu.org>."
21485 cat >>$CONFIG_STATUS <<_ACEOF
21487 [SAMPLE] config.status [x.xx]
21488 configured by $0, generated by GNU Autoconf 2.60,
21489 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21491 Copyright (C) 2006 Free Software Foundation, Inc.
21492 This config.status script is free software; the Free Software Foundation
21493 gives unlimited permission to copy, distribute and modify it."
21500 cat >>$CONFIG_STATUS <<\_ACEOF
21501 # If no file are specified by the user, then we need to provide default
21502 # value. By we need to know if files were specified by the user.
21508 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21509 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21520 # Handling of the options.
21521 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21523 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21524 echo "$ac_cs_version"; exit ;;
21525 --debug | --debu | --deb | --de | --d | -d )
21527 --file | --fil | --fi | --f )
21529 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21530 ac_need_defaults=false;;
21531 --he | --h | --help | --hel | -h )
21532 echo "$ac_cs_usage"; exit ;;
21533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21534 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21537 # This is an error.
21538 -*) { echo "$as_me: error: unrecognized option: $1
21539 Try \`$0 --help' for more information." >&2
21540 { (exit 1); exit 1; }; } ;;
21542 *) ac_config_targets="$ac_config_targets $1"
21543 ac_need_defaults=false ;;
21549 ac_configure_extra_args=
21551 if $ac_cs_silent; then
21553 ac_configure_extra_args="$ac_configure_extra_args --silent"
21557 cat >>$CONFIG_STATUS <<_ACEOF
21558 if \$ac_cs_recheck; then
21559 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21560 CONFIG_SHELL=$SHELL
21561 export CONFIG_SHELL
21562 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21566 cat >>$CONFIG_STATUS <<\_ACEOF
21570 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21571 ## Running $as_me. ##
21577 cat >>$CONFIG_STATUS <<_ACEOF
21581 llvm_src="${LLVM_SRC}"
21585 cat >>$CONFIG_STATUS <<\_ACEOF
21587 # Handling of arguments.
21588 for ac_config_target in $ac_config_targets
21590 case $ac_config_target in
21591 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21592 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21593 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21594 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21595 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21596 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21597 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21598 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21600 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21601 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21602 { (exit 1); exit 1; }; };;
21607 # If the user did not use the arguments to specify the items to instantiate,
21608 # then the envvar interface is used. Set only those that are not.
21609 # We use the long form for the default assignment because of an extremely
21610 # bizarre bug on SunOS 4.1.3.
21611 if $ac_need_defaults; then
21612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21613 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21616 # Have a temporary directory for convenience. Make it in the build tree
21617 # simply because there is no reason against having it here, and in addition,
21618 # creating and moving files from /tmp can sometimes cause problems.
21619 # Hook for its removal unless debugging.
21620 # Note that there is a small window in which the directory will not be cleaned:
21621 # after its creation but before its name has been assigned to `$tmp'.
21625 trap 'exit_status=$?
21626 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21628 trap '{ (exit 1); exit 1; }' 1 2 13 15
21630 # Create a (secure) tmp directory for tmp files.
21633 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21634 test -n "$tmp" && test -d "$tmp"
21637 tmp=./conf$$-$RANDOM
21638 (umask 077 && mkdir "$tmp")
21641 echo "$me: cannot create a temporary directory in ." >&2
21642 { (exit 1); exit 1; }
21646 # Set up the sed scripts for CONFIG_FILES section.
21649 # No need to generate the scripts if there are no CONFIG_FILES.
21650 # This happens for instance when ./config.status config.h
21651 if test -n "$CONFIG_FILES"; then
21658 for ac_last_try in false false false false false :; do
21659 cat >conf$$subs.sed <<_ACEOF
21660 SHELL!$SHELL$ac_delim
21661 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21662 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21663 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21664 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21665 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21666 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21667 exec_prefix!$exec_prefix$ac_delim
21668 prefix!$prefix$ac_delim
21669 program_transform_name!$program_transform_name$ac_delim
21670 bindir!$bindir$ac_delim
21671 sbindir!$sbindir$ac_delim
21672 libexecdir!$libexecdir$ac_delim
21673 datarootdir!$datarootdir$ac_delim
21674 datadir!$datadir$ac_delim
21675 sysconfdir!$sysconfdir$ac_delim
21676 sharedstatedir!$sharedstatedir$ac_delim
21677 localstatedir!$localstatedir$ac_delim
21678 includedir!$includedir$ac_delim
21679 oldincludedir!$oldincludedir$ac_delim
21680 docdir!$docdir$ac_delim
21681 infodir!$infodir$ac_delim
21682 htmldir!$htmldir$ac_delim
21683 dvidir!$dvidir$ac_delim
21684 pdfdir!$pdfdir$ac_delim
21685 psdir!$psdir$ac_delim
21686 libdir!$libdir$ac_delim
21687 localedir!$localedir$ac_delim
21688 mandir!$mandir$ac_delim
21689 DEFS!$DEFS$ac_delim
21690 ECHO_C!$ECHO_C$ac_delim
21691 ECHO_N!$ECHO_N$ac_delim
21692 ECHO_T!$ECHO_T$ac_delim
21693 LIBS!$LIBS$ac_delim
21694 build_alias!$build_alias$ac_delim
21695 host_alias!$host_alias$ac_delim
21696 target_alias!$target_alias$ac_delim
21697 LLVM_SRC!$LLVM_SRC$ac_delim
21698 LLVM_OBJ!$LLVM_OBJ$ac_delim
21699 LLVM_VERSION!$LLVM_VERSION$ac_delim
21701 CFLAGS!$CFLAGS$ac_delim
21702 LDFLAGS!$LDFLAGS$ac_delim
21703 CPPFLAGS!$CPPFLAGS$ac_delim
21704 ac_ct_CC!$ac_ct_CC$ac_delim
21705 EXEEXT!$EXEEXT$ac_delim
21706 OBJEXT!$OBJEXT$ac_delim
21708 CXXFLAGS!$CXXFLAGS$ac_delim
21709 ac_ct_CXX!$ac_ct_CXX$ac_delim
21711 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21712 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21713 subdirs!$subdirs$ac_delim
21714 build!$build$ac_delim
21715 build_cpu!$build_cpu$ac_delim
21716 build_vendor!$build_vendor$ac_delim
21717 build_os!$build_os$ac_delim
21718 host!$host$ac_delim
21719 host_cpu!$host_cpu$ac_delim
21720 host_vendor!$host_vendor$ac_delim
21721 host_os!$host_os$ac_delim
21722 target!$target$ac_delim
21723 target_cpu!$target_cpu$ac_delim
21724 target_vendor!$target_vendor$ac_delim
21725 target_os!$target_os$ac_delim
21727 HOST_OS!$HOST_OS$ac_delim
21728 TARGET_OS!$TARGET_OS$ac_delim
21729 LINKALL!$LINKALL$ac_delim
21730 NOLINKALL!$NOLINKALL$ac_delim
21731 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21732 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21733 ARCH!$ARCH$ac_delim
21734 ENDIAN!$ENDIAN$ac_delim
21735 GREP!$GREP$ac_delim
21736 EGREP!$EGREP$ac_delim
21737 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21738 BUILD_CC!$BUILD_CC$ac_delim
21739 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21740 BUILD_CXX!$BUILD_CXX$ac_delim
21741 CVSBUILD!$CVSBUILD$ac_delim
21742 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21743 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21744 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21745 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21746 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21747 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21748 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21750 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21751 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21752 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21753 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21754 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21755 ENABLE_PIC!$ENABLE_PIC$ac_delim
21756 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21759 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21761 elif $ac_last_try; then
21762 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21763 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21764 { (exit 1); exit 1; }; }
21766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21770 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21771 if test -n "$ac_eof"; then
21772 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21773 ac_eof=`expr $ac_eof + 1`
21776 cat >>$CONFIG_STATUS <<_ACEOF
21777 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21781 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21782 s/^/s,@/; s/!/@,|#_!!_#|/
21785 s/'"$ac_delim"'$/,g/; t
21787 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21788 ' >>$CONFIG_STATUS <conf$$subs.sed
21789 rm -f conf$$subs.sed
21790 cat >>$CONFIG_STATUS <<_ACEOF
21796 for ac_last_try in false false false false false :; do
21797 cat >conf$$subs.sed <<_ACEOF
21798 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21799 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21800 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21801 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21802 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21803 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21804 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21805 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21806 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21807 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21808 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21809 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21811 ifGNUmake!$ifGNUmake$ac_delim
21812 LN_S!$LN_S$ac_delim
21815 DATE!$DATE$ac_delim
21816 FIND!$FIND$ac_delim
21817 MKDIR!$MKDIR$ac_delim
21819 RANLIB!$RANLIB$ac_delim
21824 BINPWD!$BINPWD$ac_delim
21825 GRAPHVIZ!$GRAPHVIZ$ac_delim
21828 NEATO!$NEATO$ac_delim
21829 TWOPI!$TWOPI$ac_delim
21830 CIRCO!$CIRCO$ac_delim
21832 DOTTY!$DOTTY$ac_delim
21833 XDOT_PY!$XDOT_PY$ac_delim
21834 PERL!$PERL$ac_delim
21835 HAVE_PERL!$HAVE_PERL$ac_delim
21836 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21837 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21838 INSTALL_DATA!$INSTALL_DATA$ac_delim
21839 BZIP2!$BZIP2$ac_delim
21841 DOXYGEN!$DOXYGEN$ac_delim
21842 GROFF!$GROFF$ac_delim
21843 GZIPBIN!$GZIPBIN$ac_delim
21844 POD2HTML!$POD2HTML$ac_delim
21845 POD2MAN!$POD2MAN$ac_delim
21846 PDFROFF!$PDFROFF$ac_delim
21847 RUNTEST!$RUNTEST$ac_delim
21848 TCLSH!$TCLSH$ac_delim
21850 OCAMLC!$OCAMLC$ac_delim
21851 OCAMLOPT!$OCAMLOPT$ac_delim
21852 OCAMLDEP!$OCAMLDEP$ac_delim
21853 OCAMLDOC!$OCAMLDOC$ac_delim
21855 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21856 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21857 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21858 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21859 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21860 LIBADD_DL!$LIBADD_DL$ac_delim
21861 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21862 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21863 USE_UDIS86!$USE_UDIS86$ac_delim
21864 USE_OPROFILE!$USE_OPROFILE$ac_delim
21865 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21866 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21867 MMAP_FILE!$MMAP_FILE$ac_delim
21868 SHLIBEXT!$SHLIBEXT$ac_delim
21869 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21870 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21871 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21872 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21873 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21874 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21875 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21876 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21877 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21878 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21879 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21880 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21881 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21882 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21883 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21884 RPATH!$RPATH$ac_delim
21885 RDYNAMIC!$RDYNAMIC$ac_delim
21886 LIBOBJS!$LIBOBJS$ac_delim
21887 LTLIBOBJS!$LTLIBOBJS$ac_delim
21890 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21892 elif $ac_last_try; then
21893 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21894 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21895 { (exit 1); exit 1; }; }
21897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21901 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21902 if test -n "$ac_eof"; then
21903 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21904 ac_eof=`expr $ac_eof + 1`
21907 cat >>$CONFIG_STATUS <<_ACEOF
21908 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21912 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21913 s/^/s,@/; s/!/@,|#_!!_#|/
21916 s/'"$ac_delim"'$/,g/; t
21918 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21919 ' >>$CONFIG_STATUS <conf$$subs.sed
21920 rm -f conf$$subs.sed
21921 cat >>$CONFIG_STATUS <<_ACEOF
21928 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21929 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21930 # trailing colons and then remove the whole line if VPATH becomes empty
21931 # (actually we leave an empty line to preserve line numbers).
21932 if test "x$srcdir" = x.; then
21933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21934 s/:*\$(srcdir):*/:/
21935 s/:*\${srcdir}:*/:/
21937 s/^\([^=]*=[ ]*\):*/\1/
21943 cat >>$CONFIG_STATUS <<\_ACEOF
21944 fi # test -n "$CONFIG_FILES"
21947 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21950 :[FHLC]) ac_mode=$ac_tag; continue;;
21952 case $ac_mode$ac_tag in
21954 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21955 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21956 { (exit 1); exit 1; }; };;
21957 :[FH]-) ac_tag=-:-;;
21958 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21975 -) ac_f="$tmp/stdin";;
21976 *) # Look for the file first in the build tree, then in the source tree
21977 # (if the path is not absolute). The absolute path cannot be DOS-style,
21978 # because $ac_f cannot contain `:'.
21982 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21984 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21985 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21986 { (exit 1); exit 1; }; };;
21988 ac_file_inputs="$ac_file_inputs $ac_f"
21991 # Let's still pretend it is `configure' which instantiates (i.e., don't
21992 # use $as_me), people would be surprised to read:
21993 # /* config.h. Generated by config.status. */
21994 configure_input="Generated from "`IFS=:
21995 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21996 if test x"$ac_file" != x-; then
21997 configure_input="$ac_file. $configure_input"
21998 { echo "$as_me:$LINENO: creating $ac_file" >&5
21999 echo "$as_me: creating $ac_file" >&6;}
22003 *:-:* | *:-) cat >"$tmp/stdin";;
22008 ac_dir=`$as_dirname -- "$ac_file" ||
22009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22010 X"$ac_file" : 'X\(//\)[^/]' \| \
22011 X"$ac_file" : 'X\(//\)$' \| \
22012 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22018 /^X\(\/\/\)[^/].*/{
22033 -*) as_dir=./$as_dir;;
22035 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22039 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22040 *) as_qdir=$as_dir;;
22042 as_dirs="'$as_qdir' $as_dirs"
22043 as_dir=`$as_dirname -- "$as_dir" ||
22044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22045 X"$as_dir" : 'X\(//\)[^/]' \| \
22046 X"$as_dir" : 'X\(//\)$' \| \
22047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22053 /^X\(\/\/\)[^/].*/{
22066 test -d "$as_dir" && break
22068 test -z "$as_dirs" || eval "mkdir $as_dirs"
22069 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22070 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22071 { (exit 1); exit 1; }; }; }
22075 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22078 # A ".." for each directory in $ac_dir_suffix.
22079 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22080 case $ac_top_builddir_sub in
22081 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22082 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22085 ac_abs_top_builddir=$ac_pwd
22086 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22087 # for backward compatibility:
22088 ac_top_builddir=$ac_top_build_prefix
22091 .) # We are building in place.
22093 ac_top_srcdir=$ac_top_builddir_sub
22094 ac_abs_top_srcdir=$ac_pwd ;;
22095 [\\/]* | ?:[\\/]* ) # Absolute name.
22096 ac_srcdir=$srcdir$ac_dir_suffix;
22097 ac_top_srcdir=$srcdir
22098 ac_abs_top_srcdir=$srcdir ;;
22099 *) # Relative name.
22100 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22101 ac_top_srcdir=$ac_top_build_prefix$srcdir
22102 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22104 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22115 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22119 cat >>$CONFIG_STATUS <<\_ACEOF
22120 # If the template does not know about datarootdir, expand it.
22121 # FIXME: This hack should be removed a few years after 2.60.
22122 ac_datarootdir_hack=; ac_datarootdir_seen=
22124 case `sed -n '/datarootdir/ {
22133 ' $ac_file_inputs` in
22134 *datarootdir*) ac_datarootdir_seen=yes;;
22135 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22136 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22137 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22139 cat >>$CONFIG_STATUS <<_ACEOF
22140 ac_datarootdir_hack='
22141 s&@datadir@&$datadir&g
22142 s&@docdir@&$docdir&g
22143 s&@infodir@&$infodir&g
22144 s&@localedir@&$localedir&g
22145 s&@mandir@&$mandir&g
22146 s&\\\${datarootdir}&$datarootdir&g' ;;
22150 # Neutralize VPATH when `$srcdir' = `.'.
22151 # Shell code in configure.ac might set extrasub.
22152 # FIXME: do we really want to maintain this feature?
22153 cat >>$CONFIG_STATUS <<_ACEOF
22157 cat >>$CONFIG_STATUS <<\_ACEOF
22159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22160 s&@configure_input@&$configure_input&;t t
22161 s&@top_builddir@&$ac_top_builddir_sub&;t t
22162 s&@srcdir@&$ac_srcdir&;t t
22163 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22164 s&@top_srcdir@&$ac_top_srcdir&;t t
22165 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22166 s&@builddir@&$ac_builddir&;t t
22167 s&@abs_builddir@&$ac_abs_builddir&;t t
22168 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22169 s&@INSTALL@&$ac_INSTALL&;t t
22170 $ac_datarootdir_hack
22171 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22173 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22174 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22175 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22176 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22177 which seems to be undefined. Please make sure it is defined." >&5
22178 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22179 which seems to be undefined. Please make sure it is defined." >&2;}
22183 -) cat "$tmp/out"; rm -f "$tmp/out";;
22184 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22189 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22190 echo "$as_me: executing $ac_file commands" >&6;}
22195 case $ac_file$ac_mode in
22196 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22197 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22198 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22199 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22200 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22201 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22202 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22203 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22204 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22205 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22211 { (exit 0); exit 0; }
22213 chmod +x $CONFIG_STATUS
22214 ac_clean_files=$ac_clean_files_save
22217 # configure is writing to config.log, and then calls config.status.
22218 # config.status does its own redirection, appending to config.log.
22219 # Unfortunately, on DOS this fails, as config.log is still kept open
22220 # by configure, so config.status won't be able to write to it; its
22221 # output is simply discarded. So we exec the FD to /dev/null,
22222 # effectively closing config.log, so it can be properly (re)opened and
22223 # appended to by config.status. When coming back to configure, we
22224 # need to make the FD available again.
22225 if test "$no_create" != yes; then
22227 ac_config_status_args=
22228 test "$silent" = yes &&
22229 ac_config_status_args="$ac_config_status_args --quiet"
22231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22234 # would make configure fail if this is the last instruction.
22235 $ac_cs_success || { (exit 1); exit 1; }
22239 # CONFIG_SUBDIRS section.
22241 if test "$no_recursion" != yes; then
22243 # Remove --cache-file and --srcdir arguments so they do not pile up.
22244 ac_sub_configure_args=
22246 eval "set x $ac_configure_args"
22250 if test -n "$ac_prev"; then
22255 -cache-file | --cache-file | --cache-fil | --cache-fi \
22256 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22257 ac_prev=cache_file ;;
22258 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22259 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22262 --config-cache | -C)
22264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22274 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22276 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22280 # Always prepend --prefix to ensure using the same prefix
22281 # in subdir configurations.
22282 ac_arg="--prefix=$prefix"
22284 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22286 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22289 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22291 # Do not complain, so a configure script can configure whichever
22292 # parts of a large source tree are present.
22293 test -d "$srcdir/$ac_dir" || continue
22295 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22296 echo "$as_me:$LINENO: $ac_msg" >&5
22300 -*) as_dir=./$as_dir;;
22302 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22306 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22307 *) as_qdir=$as_dir;;
22309 as_dirs="'$as_qdir' $as_dirs"
22310 as_dir=`$as_dirname -- "$as_dir" ||
22311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22312 X"$as_dir" : 'X\(//\)[^/]' \| \
22313 X"$as_dir" : 'X\(//\)$' \| \
22314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22320 /^X\(\/\/\)[^/].*/{
22333 test -d "$as_dir" && break
22335 test -z "$as_dirs" || eval "mkdir $as_dirs"
22336 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22337 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22338 { (exit 1); exit 1; }; }; }
22342 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22344 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22345 # A ".." for each directory in $ac_dir_suffix.
22346 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22347 case $ac_top_builddir_sub in
22348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22352 ac_abs_top_builddir=$ac_pwd
22353 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22354 # for backward compatibility:
22355 ac_top_builddir=$ac_top_build_prefix
22358 .) # We are building in place.
22360 ac_top_srcdir=$ac_top_builddir_sub
22361 ac_abs_top_srcdir=$ac_pwd ;;
22362 [\\/]* | ?:[\\/]* ) # Absolute name.
22363 ac_srcdir=$srcdir$ac_dir_suffix;
22364 ac_top_srcdir=$srcdir
22365 ac_abs_top_srcdir=$srcdir ;;
22366 *) # Relative name.
22367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22368 ac_top_srcdir=$ac_top_build_prefix$srcdir
22369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22371 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22376 # Check for guested configure; otherwise get Cygnus style configure.
22377 if test -f "$ac_srcdir/configure.gnu"; then
22378 ac_sub_configure=$ac_srcdir/configure.gnu
22379 elif test -f "$ac_srcdir/configure"; then
22380 ac_sub_configure=$ac_srcdir/configure
22381 elif test -f "$ac_srcdir/configure.in"; then
22382 # This should be Cygnus configure.
22383 ac_sub_configure=$ac_aux_dir/configure
22385 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22386 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22390 # The recursion is here.
22391 if test -n "$ac_sub_configure"; then
22392 # Make the cache file name correct relative to the subdirectory.
22393 case $cache_file in
22394 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22395 *) # Relative name.
22396 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22399 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22400 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22401 # The eval makes quoting arguments work.
22402 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22403 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22404 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22405 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22406 { (exit 1); exit 1; }; }