2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
5 # Report bugs to <bugs@yourdomain>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
691 ENABLE_EXPENSIVE_CHECKS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
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-libcpp Use libc++ if available (default is NO)
1379 --enable-cxx11 Use c++11 if available (default is NO)
1380 --enable-optimized Compile with optimizations enabled (default is NO)
1381 --enable-profiling Compile with profiling enabled (default is NO)
1382 --enable-assertions Compile with assertion checks enabled (default is
1384 --enable-werror Compile with -Werror enabled (default is NO)
1385 --enable-expensive-checks
1386 Compile with expensive debug checks enabled (default
1388 --enable-debug-runtime Build runtime libs with debug symbols (default is
1390 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1391 optimization is on and YES if it's off)
1392 --enable-jit Enable Just In Time Compiling (default is YES)
1393 --enable-docs Build documents (default is YES)
1394 --enable-doxygen Build doxygen documentation (default is NO)
1395 --enable-threads Use threads if available (default is YES)
1396 --enable-pthreads Use pthreads if available (default is YES)
1397 --enable-pic Build LLVM with Position Independent Code (default
1399 --enable-shared Build a shared library and link tools against it
1401 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1402 Win32 DLL (default is YES)
1403 --enable-timestamps Enable embedding timestamp information in build
1405 --enable-targets Build specific host targets: all or
1406 target1,target2,... Valid targets are: host, x86,
1407 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1408 xcore, msp430, nvptx, systemz, r600, and cpp
1410 --enable-bindings Build specific language bindings:
1411 all,auto,none,{binding-name} (default=auto)
1412 --enable-libffi Check for the presence of libffi (default is NO)
1413 --enable-ltdl-install install libltdl
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-llvmsrc Location of LLVM Source Code
1419 --with-llvmobj Location of LLVM Object Code
1420 --with-optimize-option Select the compiler options to use for optimized
1422 --with-extra-options Specify additional options to compile LLVM with
1423 --with-extra-ld-options Specify additional options to link LLVM with
1424 --with-ocaml-libdir Specify install location for ocaml bindings (default
1426 --with-clang-resource-dir
1427 Relative directory from the Clang binary for
1429 --with-c-include-dirs Colon separated list of directories clang will
1431 --with-gcc-toolchain Directory where gcc is installed.
1432 --with-binutils-include Specify path to binutils/include/ containing
1433 plugin-api.h file for gold plugin.
1434 --with-bug-report-url Specify the URL where bug reports should be
1435 submitted (default=http://llvm.org/bugs/)
1436 --with-tclinclude directory where tcl headers are
1437 --with-udis86=<path> Use udis86 external x86 disassembler library
1438 --with-oprofile=<prefix>
1439 Tell OProfile >= 0.9.4 how to symbolize JIT output
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 Report bugs to <bugs@yourdomain>.
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" || continue
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1483 .) # We are building in place.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1516 [SAMPLE] configure [x.xx]
1517 generated by GNU Autoconf 2.60
1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1526 cat >config.log <<_ACEOF
1527 This file contains any messages produced by compilers while
1528 running configure, to aid debugging if configure makes a mistake.
1530 It was created by [SAMPLE] $as_me [x.xx], which was
1531 generated by GNU Autoconf 2.60. Invocation command line was
1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1552 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1553 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1555 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1556 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1557 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1558 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 test -z "$as_dir" && as_dir=.
1567 echo "PATH: $as_dir"
1583 # Keep a trace of the command line.
1584 # Strip out --no-create and --no-recursion so they do not pile up.
1585 # Strip out --silent because we don't want to record it for future runs.
1586 # Also quote any args containing shell meta-characters.
1587 # Make two passes to allow for proper duplicate-argument suppression.
1591 ac_must_keep_next=false
1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599 | -silent | --silent | --silen | --sile | --sil)
1602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608 if test $ac_must_keep_next = true; then
1609 ac_must_keep_next=false # Got value, back to normal.
1612 *=* | --config-cache | -C | -disable-* | --disable-* \
1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615 | -with-* | --with-* | -without-* | --without-* | --x)
1616 case "$ac_configure_args0 " in
1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1620 -* ) ac_must_keep_next=true ;;
1623 ac_configure_args="$ac_configure_args '$ac_arg'"
1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1631 # When interrupted or exit'd, cleanup temporary files, and complete
1632 # config.log. We remove comments because anyway the quotes in there
1633 # would cause problems or look ugly.
1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636 trap 'exit_status=$?
1637 # Save into config.log some information that might help in debugging.
1642 ## ---------------- ##
1643 ## Cache variables. ##
1644 ## ---------------- ##
1647 # The following way of writing the cache mishandles newlines in values,
1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650 eval ac_val=\$$ac_var
1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1658 _ | IFS | as_nl) ;; #(
1659 *) $as_unset $ac_var ;;
1664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665 *${as_nl}ac_space=\ *)
1667 "s/'\''/'\''\\\\'\'''\''/g;
1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1679 ## ----------------- ##
1680 ## Output variables. ##
1681 ## ----------------- ##
1684 for ac_var in $ac_subst_vars
1686 eval ac_val=\$$ac_var
1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1690 echo "$ac_var='\''$ac_val'\''"
1694 if test -n "$ac_subst_files"; then
1696 ## ------------------- ##
1697 ## File substitutions. ##
1698 ## ------------------- ##
1701 for ac_var in $ac_subst_files
1703 eval ac_val=\$$ac_var
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 echo "$ac_var='\''$ac_val'\''"
1712 if test -s confdefs.h; then
1722 test "$ac_signal" != 0 &&
1723 echo "$as_me: caught signal $ac_signal"
1724 echo "$as_me: exit $exit_status"
1726 rm -f core *.core core.conftest.* &&
1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1730 for ac_signal in 1 2 13 15; do
1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1736 rm -f -r conftest* confdefs.h
1738 # Predefined preprocessor variables.
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_NAME "$PACKAGE_NAME"
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_STRING "$PACKAGE_STRING"
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1765 # Let the site file select an alternate cache file if it wants to.
1766 # Prefer explicitly selected file to automatically selected ones.
1767 if test -n "$CONFIG_SITE"; then
1768 set x "$CONFIG_SITE"
1769 elif test "x$prefix" != xNONE; then
1770 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1772 set x "$ac_default_prefix/share/config.site" \
1773 "$ac_default_prefix/etc/config.site"
1778 if test -r "$ac_site_file"; then
1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780 echo "$as_me: loading site script $ac_site_file" >&6;}
1781 sed 's/^/| /' "$ac_site_file" >&5
1786 if test -r "$cache_file"; then
1787 # Some versions of bash will fail to source /dev/null (special
1788 # files actually), so we avoid doing that.
1789 if test -f "$cache_file"; then
1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791 echo "$as_me: loading cache $cache_file" >&6;}
1793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794 *) . "./$cache_file";;
1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799 echo "$as_me: creating cache $cache_file" >&6;}
1803 # Check that the precious variables saved in the cache have kept the same
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
1809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
1811 case $ac_old_set,$ac_new_set in
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
1823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1826 echo "$as_me: former value: $ac_old_val" >&2;}
1827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1828 echo "$as_me: current value: $ac_new_val" >&2;}
1829 ac_cache_corrupted=:
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 *) ac_arg=$ac_var=$ac_new_val ;;
1838 case " $ac_configure_args " in
1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1844 if $ac_cache_corrupted; then
1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849 { (exit 1); exit 1; }; }
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884 LLVM_SRC_ROOT="../.."
1885 LLVM_OBJ_ROOT="../.."
1887 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1888 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1891 # Check whether --with-llvmsrc was given.
1892 if test "${with_llvmsrc+set}" = set; then
1893 withval=$with_llvmsrc; llvm_src="$withval"
1895 llvm_src="$LLVM_ABS_SRC_ROOT"
1901 # Check whether --with-llvmobj was given.
1902 if test "${with_llvmobj+set}" = set; then
1903 withval=$with_llvmobj; llvm_obj="$withval"
1905 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1910 ac_config_commands="$ac_config_commands setup"
1914 { echo "$as_me:$LINENO: checking llvm-config" >&5
1915 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1916 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1917 if ! test -f "$llvm_config_path" ; then
1918 llvm_config_path="no"
1920 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1921 echo "${ECHO_T}$llvm_config_path" >&6; }
1923 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1924 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1925 if test "$llvm_config_path" != no ; then
1926 llvm_package_version=`$llvm_config_path --version`
1928 llvm_package_version="unknown";
1930 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1931 echo "${ECHO_T}$llvm_package_version" >&6; }
1932 LLVM_VERSION=$llvm_package_version
1938 for ac_dir in autoconf "$srcdir"/autoconf; do
1939 if test -f "$ac_dir/install-sh"; then
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1943 elif test -f "$ac_dir/install.sh"; then
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1947 elif test -f "$ac_dir/shtool"; then
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976 for ac_prog in clang llvm-gcc gcc
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2015 test -n "$CC" && break
2018 if test -z "$CC"; then
2020 for ac_prog in clang llvm-gcc gcc
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2054 { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2059 test -n "$ac_ct_CC" && break
2062 if test "x$ac_ct_CC" = x; then
2065 case $cross_compiling:$ac_tool_warned in
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet. If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: 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." >&2;}
2073 ac_tool_warned=yes ;;
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler --version >&5") 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -v >&5") 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -V >&5") 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort. b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions. Remove them first so a
2151 # subsequent execution test works.
2153 for ac_file in $ac_files
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 if { (ac_try="$ac_link_default"
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_link_default") 2>&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2177 for ac_file in $ac_files
2179 test -f "$ac_file" || continue
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2184 # We found the default executable, but exeext='' is most
2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # We set ac_cv_exeext here because the later test for it is not
2193 # safe: cross compilers may not add the suffix if given an `-o'
2194 # argument, so we may need to know it at that point already.
2195 # Even if this section looks crufty: it has the advantage of
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2219 # Check that the compiler produces executables we can run. If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 if test "$cross_compiling" = maybe; then
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run. If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_link") 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 cat >conftest.$ac_ext <<_ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compile") 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.$ac_ext <<_ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2391 grep -v '^ *+' conftest.er1 >conftest.err
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 ac_save_c_werror_flag=$ac_c_werror_flag
2439 ac_c_werror_flag=yes
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2466 grep -v '^ *+' conftest.er1 >conftest.err
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2521 grep -v '^ *+' conftest.er1 >conftest.err
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2551 ac_c_werror_flag=$ac_save_c_werror_flag
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2577 grep -v '^ *+' conftest.er1 >conftest.err
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2630 if test "$GCC" = yes; then
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 ac_cv_prog_cc_c89=no
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2667 s = g (p, va_arg (v,int));
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2673 function prototypes and stuff, but not '\xHH' hex character constants.
2674 These don't provoke an error unfortunately, instead are silently treated
2675 as 'x'. The following induces an error, until -std is added to get
2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2677 array size at least. It's necessary to write '\x00'==0 to get something
2678 that's true only with -std. */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682 inside strings and character constants. */
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_c89=$ac_arg
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2746 rm -f core conftest.err conftest.$ac_objext
2747 test "x$ac_cv_prog_cc_c89" != "xno" && break
2749 rm -f conftest.$ac_ext
2754 case "x$ac_cv_prog_cc_c89" in
2756 { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2759 { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2762 CC="$CC $ac_cv_prog_cc_c89"
2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780 if test -n "$CCC"; then
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in clang++ llvm-g++ g++
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 if test -n "$CXX"; then
2794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 if test -n "$CXX"; then
2815 { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2818 { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2823 test -n "$CXX" && break
2826 if test -z "$CXX"; then
2828 for ac_prog in clang++ llvm-g++ g++
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 if test -n "$ac_ct_CXX"; then
2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CXX="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2862 { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2867 test -n "$ac_ct_CXX" && break
2870 if test "x$ac_ct_CXX" = x; then
2873 case $cross_compiling:$ac_tool_warned in
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet. If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: 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." >&2;}
2881 ac_tool_warned=yes ;;
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cxx_g=yes
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_cv_prog_cxx_g=yes
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186 CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188 if test "$GXX" = yes; then
3194 if test "$GXX" = yes; then
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3217 if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268 if test -z "$ac_cpp_err"; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 # Broken: fails on valid input.
3278 rm -f conftest.err conftest.$ac_ext
3280 # OK, works on sane cases. Now check whether nonexistent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <ac_nonexistent.h>
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312 if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Passes both tests.
3324 rm -f conftest.err conftest.$ac_ext
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3344 for ac_c_preproc_warn_flag in '' yes
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3359 # include <limits.h>
3361 # include <assert.h>
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 if test -z "$ac_cpp_err"; then
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 # Broken: fails on valid input.
3397 rm -f conftest.err conftest.$ac_ext
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <ac_nonexistent.h>
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 # Check whether --enable-polly was given.
3468 if test "${enable_polly+set}" = set; then
3469 enableval=$enable_polly;
3474 case "$enableval" in
3479 default) ENABLE_POLLY=1
3481 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3482 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3483 { (exit 1); exit 1; }; } ;;
3487 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3490 subdirs="$subdirs tools/polly"
3495 # Make sure we can run config.sub.
3496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3497 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3498 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3499 { (exit 1); exit 1; }; }
3501 { echo "$as_me:$LINENO: checking build system type" >&5
3502 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3503 if test "${ac_cv_build+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 ac_build_alias=$build_alias
3507 test "x$ac_build_alias" = x &&
3508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3509 test "x$ac_build_alias" = x &&
3510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3512 { (exit 1); exit 1; }; }
3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3515 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3516 { (exit 1); exit 1; }; }
3519 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3520 echo "${ECHO_T}$ac_cv_build" >&6; }
3521 case $ac_cv_build in
3523 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3524 echo "$as_me: error: invalid value of canonical build" >&2;}
3525 { (exit 1); exit 1; }; };;
3528 ac_save_IFS=$IFS; IFS='-'
3534 # Remember, the first character of IFS is used to create $*,
3535 # except with old shells:
3538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3541 { echo "$as_me:$LINENO: checking host system type" >&5
3542 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3543 if test "${ac_cv_host+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test "x$host_alias" = x; then
3547 ac_cv_host=$ac_cv_build
3549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3550 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3552 { (exit 1); exit 1; }; }
3556 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3557 echo "${ECHO_T}$ac_cv_host" >&6; }
3560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3561 echo "$as_me: error: invalid value of canonical host" >&2;}
3562 { (exit 1); exit 1; }; };;
3565 ac_save_IFS=$IFS; IFS='-'
3571 # Remember, the first character of IFS is used to create $*,
3572 # except with old shells:
3575 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3578 { echo "$as_me:$LINENO: checking target system type" >&5
3579 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3580 if test "${ac_cv_target+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test "x$target_alias" = x; then
3584 ac_cv_target=$ac_cv_host
3586 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3593 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3594 echo "${ECHO_T}$ac_cv_target" >&6; }
3595 case $ac_cv_target in
3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3598 echo "$as_me: error: invalid value of canonical target" >&2;}
3599 { (exit 1); exit 1; }; };;
3601 target=$ac_cv_target
3602 ac_save_IFS=$IFS; IFS='-'
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3612 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3615 # The aliases save the names the user supplied, while $host etc.
3616 # will get canonicalized.
3617 test -n "$target_alias" &&
3618 test "$program_prefix$program_suffix$program_transform_name" = \
3620 program_prefix=${target_alias}-
3622 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3623 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3624 if test "${llvm_cv_os_type+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 llvm_cv_link_all_option="-Wl,--whole-archive"
3630 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3631 llvm_cv_os_type="AIX"
3632 llvm_cv_platform_type="Unix" ;;
3634 llvm_cv_link_all_option="-Wl,--whole-archive"
3635 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636 llvm_cv_os_type="IRIX"
3637 llvm_cv_platform_type="Unix" ;;
3639 llvm_cv_link_all_option="-Wl,--whole-archive"
3640 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641 llvm_cv_os_type="Cygwin"
3642 llvm_cv_platform_type="Unix" ;;
3644 llvm_cv_link_all_option="-Wl,-all_load"
3645 llvm_cv_no_link_all_option="-Wl,-noall_load"
3646 llvm_cv_os_type="Darwin"
3647 llvm_cv_platform_type="Unix" ;;
3649 llvm_cv_link_all_option="-Wl,-all_load"
3650 llvm_cv_no_link_all_option="-Wl,-noall_load"
3651 llvm_cv_os_type="Minix"
3652 llvm_cv_platform_type="Unix" ;;
3653 *-*-freebsd* | *-*-kfreebsd-gnu)
3654 llvm_cv_link_all_option="-Wl,--whole-archive"
3655 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3656 llvm_cv_os_type="FreeBSD"
3657 llvm_cv_platform_type="Unix" ;;
3659 llvm_cv_link_all_option="-Wl,--whole-archive"
3660 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661 llvm_cv_os_type="OpenBSD"
3662 llvm_cv_platform_type="Unix" ;;
3664 llvm_cv_link_all_option="-Wl,--whole-archive"
3665 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666 llvm_cv_os_type="NetBSD"
3667 llvm_cv_platform_type="Unix" ;;
3669 llvm_cv_link_all_option="-Wl,--whole-archive"
3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671 llvm_cv_os_type="DragonFly"
3672 llvm_cv_platform_type="Unix" ;;
3674 llvm_cv_link_all_option="-Wl,--whole-archive"
3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676 llvm_cv_os_type="HP-UX"
3677 llvm_cv_platform_type="Unix" ;;
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="Interix"
3682 llvm_cv_platform_type="Unix" ;;
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="Linux"
3687 llvm_cv_platform_type="Unix" ;;
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="GNU"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,-z,allextract"
3695 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3696 llvm_cv_os_type="SunOS"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,-z,allextract"
3700 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3701 llvm_cv_os_type="AuroraUX"
3702 llvm_cv_platform_type="Unix" ;;
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="Win32"
3707 llvm_cv_platform_type="Win32" ;;
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="MingW"
3712 llvm_cv_platform_type="Win32" ;;
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="Haiku"
3717 llvm_cv_platform_type="Unix" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="Freestanding"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="Freestanding"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option=""
3730 llvm_cv_no_link_all_option=""
3731 llvm_cv_os_type="Unknown"
3732 llvm_cv_platform_type="Unknown" ;;
3735 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3736 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3738 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3739 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3740 if test "${llvm_cv_target_os_type+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 llvm_cv_target_os_type="AIX" ;;
3747 llvm_cv_target_os_type="IRIX" ;;
3749 llvm_cv_target_os_type="Cygwin" ;;
3751 llvm_cv_target_os_type="Darwin" ;;
3753 llvm_cv_target_os_type="Minix" ;;
3754 *-*-freebsd* | *-*-kfreebsd-gnu)
3755 llvm_cv_target_os_type="FreeBSD" ;;
3757 llvm_cv_target_os_type="OpenBSD" ;;
3759 llvm_cv_target_os_type="NetBSD" ;;
3761 llvm_cv_target_os_type="DragonFly" ;;
3763 llvm_cv_target_os_type="HP-UX" ;;
3765 llvm_cv_target_os_type="Interix" ;;
3767 llvm_cv_target_os_type="Linux" ;;
3769 llvm_cv_target_os_type="GNU" ;;
3771 llvm_cv_target_os_type="SunOS" ;;
3773 llvm_cv_target_os_type="AuroraUX" ;;
3775 llvm_cv_target_os_type="Win32" ;;
3777 llvm_cv_target_os_type="MingW" ;;
3779 llvm_cv_target_os_type="Haiku" ;;
3781 llvm_cv_target_os_type="RTEMS" ;;
3783 llvm_cv_target_os_type="NativeClient" ;;
3785 llvm_cv_target_os_type="Freestanding" ;;
3787 llvm_cv_target_os_type="Unknown" ;;
3790 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3791 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3793 if test "$llvm_cv_os_type" = "Unknown" ; then
3794 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3795 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3796 { (exit 1); exit 1; }; }
3801 HOST_OS=$llvm_cv_os_type
3803 TARGET_OS=$llvm_cv_target_os_type
3806 LINKALL=$llvm_cv_link_all_option
3808 NOLINKALL=$llvm_cv_no_link_all_option
3811 case $llvm_cv_platform_type in
3814 cat >>confdefs.h <<\_ACEOF
3815 #define LLVM_ON_UNIX 1
3825 cat >>confdefs.h <<\_ACEOF
3826 #define LLVM_ON_WIN32 1
3836 { echo "$as_me:$LINENO: checking target architecture" >&5
3837 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3838 if test "${llvm_cv_target_arch+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 i?86-*) llvm_cv_target_arch="x86" ;;
3843 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3844 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3845 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3846 arm*-*) llvm_cv_target_arch="ARM" ;;
3847 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
3848 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3849 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3850 xcore-*) llvm_cv_target_arch="XCore" ;;
3851 msp430-*) llvm_cv_target_arch="MSP430" ;;
3852 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3853 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3854 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3855 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3856 *) llvm_cv_target_arch="Unknown" ;;
3859 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3860 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3862 if test "$llvm_cv_target_arch" = "Unknown" ; then
3863 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3864 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3867 # Determine the LLVM native architecture for the target
3868 case "$llvm_cv_target_arch" in
3869 x86) LLVM_NATIVE_ARCH="X86" ;;
3870 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3871 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3874 ARCH=$llvm_cv_target_arch
3879 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3880 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3881 if test "${ac_cv_path_GREP+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 # Extract the first word of "grep ggrep" to use in msg output
3885 if test -z "$GREP"; then
3886 set dummy grep ggrep; ac_prog_name=$2
3887 if test "${ac_cv_path_GREP+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in grep ggrep; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3901 # Check for GNU ac_path_GREP and select it if it is found.
3902 # Check for GNU $ac_path_GREP
3903 case `"$ac_path_GREP" --version 2>&1` in
3905 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3908 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 echo 'GREP' >> "conftest.nl"
3915 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 ac_count=`expr $ac_count + 1`
3918 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_GREP="$ac_path_GREP"
3921 ac_path_GREP_max=$ac_count
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3930 $ac_path_GREP_found && break 3
3940 GREP="$ac_cv_path_GREP"
3941 if test -z "$GREP"; then
3942 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3943 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3944 { (exit 1); exit 1; }; }
3948 ac_cv_path_GREP=$GREP
3953 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3954 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3955 GREP="$ac_cv_path_GREP"
3958 { echo "$as_me:$LINENO: checking for egrep" >&5
3959 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_EGREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3964 then ac_cv_path_EGREP="$GREP -E"
3966 # Extract the first word of "egrep" to use in msg output
3967 if test -z "$EGREP"; then
3968 set dummy egrep; ac_prog_name=$2
3969 if test "${ac_cv_path_EGREP+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_path_EGREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978 test -z "$as_dir" && as_dir=.
3979 for ac_prog in egrep; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3982 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3983 # Check for GNU ac_path_EGREP and select it if it is found.
3984 # Check for GNU $ac_path_EGREP
3985 case `"$ac_path_EGREP" --version 2>&1` in
3987 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3990 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 echo 'EGREP' >> "conftest.nl"
3997 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999 ac_count=`expr $ac_count + 1`
4000 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_EGREP="$ac_path_EGREP"
4003 ac_path_EGREP_max=$ac_count
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 $ac_path_EGREP_found && break 3
4022 EGREP="$ac_cv_path_EGREP"
4023 if test -z "$EGREP"; then
4024 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026 { (exit 1); exit 1; }; }
4030 ac_cv_path_EGREP=$EGREP
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4038 EGREP="$ac_cv_path_EGREP"
4041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4043 if test "${ac_cv_header_stdc+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4065 rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_compile") 2>conftest.er1
4074 grep -v '^ *+' conftest.er1 >conftest.err
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080 { (case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_try") 2>&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095 (eval "$ac_try") 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 ac_cv_header_stdc=yes
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 ac_cv_header_stdc=no
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 if test $ac_cv_header_stdc = yes; then
4110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121 $EGREP "memchr" >/dev/null 2>&1; then
4124 ac_cv_header_stdc=no
4130 if test $ac_cv_header_stdc = yes; then
4131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142 $EGREP "free" >/dev/null 2>&1; then
4145 ac_cv_header_stdc=no
4151 if test $ac_cv_header_stdc = yes; then
4152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4153 if test "$cross_compiling" = yes; then
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4164 #if ((' ' & 0x0FF) == 0x020)
4165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4168 # define ISLOWER(c) \
4169 (('a' <= (c) && (c) <= 'i') \
4170 || ('j' <= (c) && (c) <= 'r') \
4171 || ('s' <= (c) && (c) <= 'z'))
4172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4180 for (i = 0; i < 256; i++)
4181 if (XOR (islower (i), ISLOWER (i))
4182 || toupper (i) != TOUPPER (i))
4187 rm -f conftest$ac_exeext
4188 if { (ac_try="$ac_link"
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_link") 2>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4198 { (case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_try") 2>&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; }; then
4209 echo "$as_me: program exited with status $ac_status" >&5
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4214 ac_cv_header_stdc=no
4216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4222 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4223 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4224 if test $ac_cv_header_stdc = yes; then
4226 cat >>confdefs.h <<\_ACEOF
4227 #define STDC_HEADERS 1
4232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4243 inttypes.h stdint.h unistd.h
4245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 $ac_includes_default
4259 #include <$ac_header>
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_compile") 2>conftest.er1
4270 grep -v '^ *+' conftest.er1 >conftest.err
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; } &&
4285 { ac_try='test -s conftest.$ac_objext'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 eval "$as_ac_Header=yes"
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 eval "$as_ac_Header=no"
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_res=`eval echo '${'$as_ac_Header'}'`
4306 { echo "$as_me:$LINENO: result: $ac_res" >&5
4307 echo "${ECHO_T}$ac_res" >&6; }
4308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4309 cat >>confdefs.h <<_ACEOF
4310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4319 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4320 if test "${ac_cv_c_bigendian+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 # See if sys/param.h defines the BYTE_ORDER macro.
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <sys/types.h>
4331 #include <sys/param.h>
4336 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 # It does; now see whether it defined to BIG_ENDIAN or not.
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 #include <sys/types.h>
4386 #include <sys/param.h>
4391 #if BYTE_ORDER != BIG_ENDIAN
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_compile") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4414 { (case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_try") 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_try") 2>&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_c_bigendian=yes
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_cv_c_bigendian=no
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 # It does not; compile a test program.
4447 if test "$cross_compiling" = yes; then
4448 # try to guess the endianness by grepping values into an object file
4449 ac_cv_c_bigendian=unknown
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4457 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4458 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4459 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4460 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4461 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4465 _ascii (); _ebcdic ();
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_compile") 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4485 { (case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_try") 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest.$ac_objext'
4495 { (case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_try") 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4505 ac_cv_c_bigendian=yes
4507 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4508 if test "$ac_cv_c_bigendian" = unknown; then
4509 ac_cv_c_bigendian=no
4511 # finding both strings is unlikely to happen, but who knows?
4512 ac_cv_c_bigendian=unknown
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4535 /* Are we little or big endian? From Harbison&Steele. */
4539 char c[sizeof (long int)];
4542 return u.c[sizeof (long int) - 1] == 1;
4548 rm -f conftest$ac_exeext
4549 if { (ac_try="$ac_link"
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555 (eval "$ac_link") 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4559 { (case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_try") 2>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 ac_cv_c_bigendian=no
4570 echo "$as_me: program exited with status $ac_status" >&5
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4575 ac_cv_c_bigendian=yes
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4586 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4587 case $ac_cv_c_bigendian in
4595 { { echo "$as_me:$LINENO: error: unknown endianness
4596 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4597 echo "$as_me: error: unknown endianness
4598 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4599 { (exit 1); exit 1; }; } ;;
4603 if test "$cross_compiling" = yes; then
4604 LLVM_CROSS_COMPILING=1
4607 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4608 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4609 if test "${ac_cv_build_exeext+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4613 ac_cv_build_exeext=.exe
4615 ac_build_prefix=${build_alias}-
4617 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4618 set dummy ${ac_build_prefix}gcc; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 if test -n "$BUILD_CC"; then
4625 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 BUILD_CC=$ac_cv_prog_BUILD_CC
4645 if test -n "$BUILD_CC"; then
4646 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4647 echo "${ECHO_T}$BUILD_CC" >&6; }
4649 { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4654 if test -z "$BUILD_CC"; then
4655 # Extract the first word of "gcc", so it can be a program name with args.
4656 set dummy gcc; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 if test -n "$BUILD_CC"; then
4663 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_BUILD_CC="gcc"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 BUILD_CC=$ac_cv_prog_BUILD_CC
4683 if test -n "$BUILD_CC"; then
4684 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4685 echo "${ECHO_T}$BUILD_CC" >&6; }
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4692 if test -z "$BUILD_CC"; then
4693 # Extract the first word of "cc", so it can be a program name with args.
4694 set dummy cc; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 if test -n "$BUILD_CC"; then
4701 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4712 ac_prog_rejected=yes
4715 ac_cv_prog_BUILD_CC="cc"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 if test $ac_prog_rejected = yes; then
4724 # We found a bogon in the path, so make sure we never use it.
4725 set dummy $ac_cv_prog_BUILD_CC
4727 if test $# != 0; then
4728 # We chose a different compiler from the bogus one.
4729 # However, it has the same basename, so the bogon will be chosen
4730 # first if we set BUILD_CC to just the basename; use the full file name.
4732 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4737 BUILD_CC=$ac_cv_prog_BUILD_CC
4738 if test -n "$BUILD_CC"; then
4739 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4740 echo "${ECHO_T}$BUILD_CC" >&6; }
4742 { echo "$as_me:$LINENO: result: no" >&5
4743 echo "${ECHO_T}no" >&6; }
4749 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4750 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4751 { (exit 1); exit 1; }; }
4752 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4754 echo 'int main () { return 0; }' > conftest.$ac_ext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4757 (eval $ac_build_link) 2>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; then
4761 for file in conftest.*; do
4763 *.c | *.o | *.obj | *.dSYM) ;;
4764 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4768 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4769 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4770 { (exit 1); exit 1; }; }
4773 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4778 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4779 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4780 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4781 ac_build_exeext=$BUILD_EXEEXT
4783 ac_build_prefix=${build_alias}-
4784 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4785 set dummy ${ac_build_prefix}g++; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 if test -n "$BUILD_CXX"; then
4792 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4812 if test -n "$BUILD_CXX"; then
4813 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4814 echo "${ECHO_T}$BUILD_CXX" >&6; }
4816 { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4821 if test -z "$BUILD_CXX"; then
4822 # Extract the first word of "g++", so it can be a program name with args.
4823 set dummy g++; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 if test -n "$BUILD_CXX"; then
4830 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_BUILD_CXX="g++"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4850 if test -n "$BUILD_CXX"; then
4851 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4852 echo "${ECHO_T}$BUILD_CXX" >&6; }
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4859 if test -z "$BUILD_CXX"; then
4860 # Extract the first word of "c++", so it can be a program name with args.
4861 set dummy c++; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 if test -n "$BUILD_CXX"; then
4868 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4879 ac_prog_rejected=yes
4882 ac_cv_prog_BUILD_CXX="c++"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 if test $ac_prog_rejected = yes; then
4891 # We found a bogon in the path, so make sure we never use it.
4892 set dummy $ac_cv_prog_BUILD_CXX
4894 if test $# != 0; then
4895 # We chose a different compiler from the bogus one.
4896 # However, it has the same basename, so the bogon will be chosen
4897 # first if we set BUILD_CXX to just the basename; use the full file name.
4899 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4904 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4905 if test -n "$BUILD_CXX"; then
4906 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4907 echo "${ECHO_T}$BUILD_CXX" >&6; }
4909 { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4917 LLVM_CROSS_COMPILING=0
4921 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4932 # Check whether --enable-libcpp was given.
4933 if test "${enable_libcpp+set}" = set; then
4934 enableval=$enable_libcpp;
4939 case "$enableval" in
4940 yes) ENABLE_LIBCPP=1
4944 default) ENABLE_LIBCPP=0
4946 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4947 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4948 { (exit 1); exit 1; }; } ;;
4951 # Check whether --enable-cxx11 was given.
4952 if test "${enable_cxx11+set}" = set; then
4953 enableval=$enable_cxx11;
4958 case "$enableval" in
4963 default) ENABLE_CXX11=0
4965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972 enableval=$enable_optimized;
4977 if test ${enableval} = "no" ; then
4981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987 enableval=$enable_profiling;
4992 if test ${enableval} = "no" ; then
4996 ENABLE_PROFILING=ENABLE_PROFILING=1
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002 enableval=$enable_assertions;
5007 if test ${enableval} = "yes" ; then
5011 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5015 # Check whether --enable-werror was given.
5016 if test "${enable_werror+set}" = set; then
5017 enableval=$enable_werror;
5022 case "$enableval" in
5023 yes) ENABLE_WERROR=1
5027 default) ENABLE_WERROR=0
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5034 # Check whether --enable-expensive-checks was given.
5035 if test "${enable_expensive_checks+set}" = set; then
5036 enableval=$enable_expensive_checks;
5041 if test ${enableval} = "yes" ; then
5042 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5044 EXPENSIVE_CHECKS=yes
5047 ENABLE_EXPENSIVE_CHECKS=
5053 # Check whether --enable-debug-runtime was given.
5054 if test "${enable_debug_runtime+set}" = set; then
5055 enableval=$enable_debug_runtime;
5060 if test ${enableval} = "no" ; then
5064 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5068 # Check whether --enable-debug-symbols was given.
5069 if test "${enable_debug_symbols+set}" = set; then
5070 enableval=$enable_debug_symbols;
5075 if test ${enableval} = "no" ; then
5079 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085 enableval=$enable_jit;
5090 if test ${enableval} = "no"
5095 case "$llvm_cv_target_arch" in
5096 x86) TARGET_HAS_JIT=1
5098 Sparc) TARGET_HAS_JIT=0
5100 PowerPC) TARGET_HAS_JIT=1
5102 x86_64) TARGET_HAS_JIT=1
5104 ARM) TARGET_HAS_JIT=1
5106 AArch64) TARGET_HAS_JIT=0
5108 Mips) TARGET_HAS_JIT=1
5110 XCore) TARGET_HAS_JIT=0
5112 MSP430) TARGET_HAS_JIT=0
5114 Hexagon) TARGET_HAS_JIT=0
5116 MBlaze) TARGET_HAS_JIT=0
5118 NVPTX) TARGET_HAS_JIT=0
5120 SystemZ) TARGET_HAS_JIT=1
5127 # Check whether --enable-docs was given.
5128 if test "${enable_docs+set}" = set; then
5129 enableval=$enable_docs;
5134 case "$enableval" in
5139 default) ENABLE_DOCS=1
5141 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5146 # Check whether --enable-doxygen was given.
5147 if test "${enable_doxygen+set}" = set; then
5148 enableval=$enable_doxygen;
5153 case "$enableval" in
5154 yes) ENABLE_DOXYGEN=1
5156 no) ENABLE_DOXYGEN=0
5158 default) ENABLE_DOXYGEN=0
5160 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162 { (exit 1); exit 1; }; } ;;
5165 # Check whether --enable-threads was given.
5166 if test "${enable_threads+set}" = set; then
5167 enableval=$enable_threads;
5172 case "$enableval" in
5173 yes) ENABLE_THREADS=1
5175 no) ENABLE_THREADS=0
5177 default) ENABLE_THREADS=1
5179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181 { (exit 1); exit 1; }; } ;;
5184 cat >>confdefs.h <<_ACEOF
5185 #define ENABLE_THREADS $ENABLE_THREADS
5189 # Check whether --enable-pthreads was given.
5190 if test "${enable_pthreads+set}" = set; then
5191 enableval=$enable_pthreads;
5196 case "$enableval" in
5197 yes) ENABLE_PTHREADS=1
5199 no) ENABLE_PTHREADS=0
5201 default) ENABLE_PTHREADS=1
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5208 # Check whether --enable-pic was given.
5209 if test "${enable_pic+set}" = set; then
5210 enableval=$enable_pic;
5215 case "$enableval" in
5220 default) ENABLE_PIC=1
5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5227 cat >>confdefs.h <<_ACEOF
5228 #define ENABLE_PIC $ENABLE_PIC
5232 # Check whether --enable-shared was given.
5233 if test "${enable_shared+set}" = set; then
5234 enableval=$enable_shared;
5239 case "$enableval" in
5240 yes) ENABLE_SHARED=1
5244 default) ENABLE_SHARED=0
5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
5251 # Check whether --enable-embed-stdcxx was given.
5252 if test "${enable_embed_stdcxx+set}" = set; then
5253 enableval=$enable_embed_stdcxx;
5258 case "$enableval" in
5259 yes) ENABLE_EMBED_STDCXX=1
5261 no) ENABLE_EMBED_STDCXX=0
5263 default) ENABLE_EMBED_STDCXX=1
5265 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5267 { (exit 1); exit 1; }; } ;;
5270 # Check whether --enable-timestamps was given.
5271 if test "${enable_timestamps+set}" = set; then
5272 enableval=$enable_timestamps;
5277 case "$enableval" in
5278 yes) ENABLE_TIMESTAMPS=1
5280 no) ENABLE_TIMESTAMPS=0
5282 default) ENABLE_TIMESTAMPS=1
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5289 cat >>confdefs.h <<_ACEOF
5290 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5295 # Check whether --enable-targets was given.
5296 if test "${enable_targets+set}" = set; then
5297 enableval=$enable_targets;
5302 if test "$enableval" = host-only ; then
5305 case "$enableval" in
5306 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5307 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5309 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5312 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5313 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5314 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5315 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5317 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5318 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5319 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5320 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5321 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5322 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5323 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5324 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5325 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5326 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5327 host) case "$llvm_cv_target_arch" in
5328 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5331 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5332 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5333 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5334 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5336 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5337 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5338 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5339 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5340 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5341 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5342 echo "$as_me: error: Can not set target to build" >&2;}
5343 { (exit 1); exit 1; }; } ;;
5345 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5346 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5347 { (exit 1); exit 1; }; } ;;
5352 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5355 # Determine whether we are building LLVM support for the native architecture.
5356 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5357 for a_target in $TARGETS_TO_BUILD; do
5358 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5360 cat >>confdefs.h <<_ACEOF
5361 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5364 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5365 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5366 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5367 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5368 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5369 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5371 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5372 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5394 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5396 cat >>confdefs.h <<_ACEOF
5397 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5401 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5411 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5412 # target feature def files.
5413 LLVM_ENUM_TARGETS=""
5414 LLVM_ENUM_ASM_PRINTERS=""
5415 LLVM_ENUM_ASM_PARSERS=""
5416 LLVM_ENUM_DISASSEMBLERS=""
5417 for target_to_build in $TARGETS_TO_BUILD; do
5418 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5419 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5420 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5422 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5423 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5425 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5426 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5435 # Check whether --with-optimize-option was given.
5436 if test "${with_optimize_option+set}" = set; then
5437 withval=$with_optimize_option;
5442 { echo "$as_me:$LINENO: checking optimization flags" >&5
5443 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5446 case "$llvm_cv_os_type" in
5447 FreeBSD) optimize_option=-O2 ;;
5448 MingW) optimize_option=-O2 ;;
5449 *) optimize_option=-O3 ;;
5451 *) optimize_option="$withval" ;;
5453 OPTIMIZE_OPTION=$optimize_option
5455 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5456 echo "${ECHO_T}$optimize_option" >&6; }
5459 # Check whether --with-extra-options was given.
5460 if test "${with_extra_options+set}" = set; then
5461 withval=$with_extra_options;
5467 default) EXTRA_OPTIONS= ;;
5468 *) EXTRA_OPTIONS=$withval ;;
5470 EXTRA_OPTIONS=$EXTRA_OPTIONS
5474 # Check whether --with-extra-ld-options was given.
5475 if test "${with_extra_ld_options+set}" = set; then
5476 withval=$with_extra_ld_options;
5482 default) EXTRA_LD_OPTIONS= ;;
5483 *) EXTRA_LD_OPTIONS=$withval ;;
5485 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5488 # Check whether --enable-bindings was given.
5489 if test "${enable_bindings+set}" = set; then
5490 enableval=$enable_bindings;
5495 BINDINGS_TO_BUILD=""
5496 case "$enableval" in
5497 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5498 all ) BINDINGS_TO_BUILD="ocaml" ;;
5499 none | no) BINDINGS_TO_BUILD="" ;;
5500 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5501 case "$a_binding" in
5502 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5503 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5504 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5505 { (exit 1); exit 1; }; } ;;
5512 # Check whether --with-ocaml-libdir was given.
5513 if test "${with_ocaml_libdir+set}" = set; then
5514 withval=$with_ocaml_libdir;
5520 auto) with_ocaml_libdir="$withval" ;;
5521 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5522 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5523 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5524 { (exit 1); exit 1; }; } ;;
5528 # Check whether --with-clang-resource-dir was given.
5529 if test "${with_clang_resource_dir+set}" = set; then
5530 withval=$with_clang_resource_dir;
5536 cat >>confdefs.h <<_ACEOF
5537 #define CLANG_RESOURCE_DIR "$withval"
5542 # Check whether --with-c-include-dirs was given.
5543 if test "${with_c_include_dirs+set}" = set; then
5544 withval=$with_c_include_dirs;
5550 cat >>confdefs.h <<_ACEOF
5551 #define C_INCLUDE_DIRS "$withval"
5555 # Clang normally uses the system c++ headers and libraries. With this option,
5556 # clang will use the ones provided by a gcc installation instead. This option should
5557 # be passed the same value that was used with --prefix when configuring gcc.
5559 # Check whether --with-gcc-toolchain was given.
5560 if test "${with_gcc_toolchain+set}" = set; then
5561 withval=$with_gcc_toolchain;
5567 cat >>confdefs.h <<_ACEOF
5568 #define GCC_INSTALL_PREFIX "$withval"
5573 # Check whether --with-binutils-include was given.
5574 if test "${with_binutils_include+set}" = set; then
5575 withval=$with_binutils_include;
5581 default) WITH_BINUTILS_INCDIR=default ;;
5582 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5583 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5584 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5585 { (exit 1); exit 1; }; } ;;
5587 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5588 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5590 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5591 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5592 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5593 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5594 { (exit 1); exit 1; }; };
5599 # Check whether --with-bug-report-url was given.
5600 if test "${with_bug_report_url+set}" = set; then
5601 withval=$with_bug_report_url;
5603 withval="http://llvm.org/bugs/"
5607 cat >>confdefs.h <<_ACEOF
5608 #define BUG_REPORT_URL "$withval"
5612 # Check whether --enable-libffi was given.
5613 if test "${enable_libffi+set}" = set; then
5614 enableval=$enable_libffi; case "$enableval" in
5615 yes) llvm_cv_enable_libffi="yes" ;;
5616 no) llvm_cv_enable_libffi="no" ;;
5617 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5618 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5619 { (exit 1); exit 1; }; } ;;
5622 llvm_cv_enable_libffi=no
5627 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5628 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5629 if test "${lt_cv_path_NM+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 if test -n "$NM"; then
5633 # Let the user override the test.
5636 lt_nm_to_check="${ac_tool_prefix}nm"
5637 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5638 lt_nm_to_check="$lt_nm_to_check nm"
5640 for lt_tmp_nm in $lt_nm_to_check; do
5641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5642 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5644 test -z "$ac_dir" && ac_dir=.
5645 tmp_nm="$ac_dir/$lt_tmp_nm"
5646 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5647 # Check to see if the nm accepts a BSD-compat flag.
5648 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5649 # nm: unknown option "B" ignored
5650 # Tru64's nm complains that /dev/null is an invalid object file
5651 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5652 */dev/null* | *'Invalid file or object type'*)
5653 lt_cv_path_NM="$tmp_nm -B"
5657 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5659 lt_cv_path_NM="$tmp_nm -p"
5663 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5664 continue # so that we can try to find one that supports BSD flags
5673 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5676 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5677 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5682 { echo "$as_me:$LINENO: checking for GNU make" >&5
5683 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5684 if test "${llvm_cv_gnu_make_command+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 llvm_cv_gnu_make_command=''
5688 for a in "$MAKE" make gmake gnumake ; do
5689 if test -z "$a" ; then continue ; fi ;
5690 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5692 llvm_cv_gnu_make_command=$a ;
5697 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5698 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5699 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5703 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5704 echo "${ECHO_T}\"Not found\"" >&6; };
5708 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5709 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5711 if test "$LN_S" = "ln -s"; then
5712 { echo "$as_me:$LINENO: result: yes" >&5
5713 echo "${ECHO_T}yes" >&6; }
5715 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5716 echo "${ECHO_T}no, using $LN_S" >&6; }
5719 # Extract the first word of "cmp", so it can be a program name with args.
5720 set dummy cmp; ac_word=$2
5721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5723 if test "${ac_cv_path_CMP+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5738 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5751 if test -n "$CMP"; then
5752 { echo "$as_me:$LINENO: result: $CMP" >&5
5753 echo "${ECHO_T}$CMP" >&6; }
5755 { echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6; }
5760 # Extract the first word of "cp", so it can be a program name with args.
5761 set dummy cp; ac_word=$2
5762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5764 if test "${ac_cv_path_CP+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5779 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5792 if test -n "$CP"; then
5793 { echo "$as_me:$LINENO: result: $CP" >&5
5794 echo "${ECHO_T}$CP" >&6; }
5796 { echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6; }
5801 # Extract the first word of "date", so it can be a program name with args.
5802 set dummy date; ac_word=$2
5803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805 if test "${ac_cv_path_DATE+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5832 DATE=$ac_cv_path_DATE
5833 if test -n "$DATE"; then
5834 { echo "$as_me:$LINENO: result: $DATE" >&5
5835 echo "${ECHO_T}$DATE" >&6; }
5837 { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5842 # Extract the first word of "find", so it can be a program name with args.
5843 set dummy find; ac_word=$2
5844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5846 if test "${ac_cv_path_FIND+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5873 FIND=$ac_cv_path_FIND
5874 if test -n "$FIND"; then
5875 { echo "$as_me:$LINENO: result: $FIND" >&5
5876 echo "${ECHO_T}$FIND" >&6; }
5878 { echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6; }
5883 # Extract the first word of "grep", so it can be a program name with args.
5884 set dummy grep; ac_word=$2
5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887 if test "${ac_cv_path_GREP+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5914 GREP=$ac_cv_path_GREP
5915 if test -n "$GREP"; then
5916 { echo "$as_me:$LINENO: result: $GREP" >&5
5917 echo "${ECHO_T}$GREP" >&6; }
5919 { echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6; }
5924 # Extract the first word of "mkdir", so it can be a program name with args.
5925 set dummy mkdir; ac_word=$2
5926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928 if test "${ac_cv_path_MKDIR+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5955 MKDIR=$ac_cv_path_MKDIR
5956 if test -n "$MKDIR"; then
5957 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5958 echo "${ECHO_T}$MKDIR" >&6; }
5960 { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5965 # Extract the first word of "mv", so it can be a program name with args.
5966 set dummy mv; ac_word=$2
5967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5969 if test "${ac_cv_path_MV+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5997 if test -n "$MV"; then
5998 { echo "$as_me:$LINENO: result: $MV" >&5
5999 echo "${ECHO_T}$MV" >&6; }
6001 { echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6; }
6006 if test -n "$ac_tool_prefix"; then
6007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_prog_RANLIB+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 if test -n "$RANLIB"; then
6015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 RANLIB=$ac_cv_prog_RANLIB
6035 if test -n "$RANLIB"; then
6036 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6037 echo "${ECHO_T}$RANLIB" >&6; }
6039 { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6045 if test -z "$ac_cv_prog_RANLIB"; then
6046 ac_ct_RANLIB=$RANLIB
6047 # Extract the first word of "ranlib", so it can be a program name with args.
6048 set dummy ranlib; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 if test -n "$ac_ct_RANLIB"; then
6055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_prog_ac_ct_RANLIB="ranlib"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6075 if test -n "$ac_ct_RANLIB"; then
6076 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6077 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6079 { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6083 if test "x$ac_ct_RANLIB" = x; then
6086 case $cross_compiling:$ac_tool_warned in
6088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6089 whose name does not start with the host triplet. If you think this
6090 configuration is useful to you, please write to autoconf@gnu.org." >&5
6091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6092 whose name does not start with the host triplet. If you think this
6093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6094 ac_tool_warned=yes ;;
6096 RANLIB=$ac_ct_RANLIB
6099 RANLIB="$ac_cv_prog_RANLIB"
6102 if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}ar; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_AR+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 if test -n "$AR"; then
6111 ac_cv_prog_AR="$AR" # Let the user override the test.
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_prog_AR="${ac_tool_prefix}ar"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 if test -n "$AR"; then
6132 { echo "$as_me:$LINENO: result: $AR" >&5
6133 echo "${ECHO_T}$AR" >&6; }
6135 { echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6; }
6141 if test -z "$ac_cv_prog_AR"; then
6143 # Extract the first word of "ar", so it can be a program name with args.
6144 set dummy ar; ac_word=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 if test -n "$ac_ct_AR"; then
6151 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_ac_ct_AR="ar"
6161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6171 if test -n "$ac_ct_AR"; then
6172 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6173 echo "${ECHO_T}$ac_ct_AR" >&6; }
6175 { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6179 if test "x$ac_ct_AR" = x; then
6182 case $cross_compiling:$ac_tool_warned in
6184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6185 whose name does not start with the host triplet. If you think this
6186 configuration is useful to you, please write to autoconf@gnu.org." >&5
6187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6188 whose name does not start with the host triplet. If you think this
6189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6190 ac_tool_warned=yes ;;
6198 # Extract the first word of "rm", so it can be a program name with args.
6199 set dummy rm; ac_word=$2
6200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6202 if test "${ac_cv_path_RM+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6230 if test -n "$RM"; then
6231 { echo "$as_me:$LINENO: result: $RM" >&5
6232 echo "${ECHO_T}$RM" >&6; }
6234 { echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6; }
6239 # Extract the first word of "sed", so it can be a program name with args.
6240 set dummy sed; ac_word=$2
6241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6243 if test "${ac_cv_path_SED+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6271 if test -n "$SED"; then
6272 { echo "$as_me:$LINENO: result: $SED" >&5
6273 echo "${ECHO_T}$SED" >&6; }
6275 { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6280 # Extract the first word of "tar", so it can be a program name with args.
6281 set dummy tar; ac_word=$2
6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284 if test "${ac_cv_path_TAR+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6312 if test -n "$TAR"; then
6313 { echo "$as_me:$LINENO: result: $TAR" >&5
6314 echo "${ECHO_T}$TAR" >&6; }
6316 { echo "$as_me:$LINENO: result: no" >&5
6317 echo "${ECHO_T}no" >&6; }
6321 # Extract the first word of "pwd", so it can be a program name with args.
6322 set dummy pwd; ac_word=$2
6323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325 if test "${ac_cv_path_BINPWD+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6352 BINPWD=$ac_cv_path_BINPWD
6353 if test -n "$BINPWD"; then
6354 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6355 echo "${ECHO_T}$BINPWD" >&6; }
6357 { echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6; }
6363 # Extract the first word of "Graphviz", so it can be a program name with args.
6364 set dummy Graphviz; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6394 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6395 if test -n "$GRAPHVIZ"; then
6396 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6397 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6399 { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6404 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6406 cat >>confdefs.h <<\_ACEOF
6407 #define HAVE_GRAPHVIZ 1
6410 if test "$llvm_cv_os_type" = "MingW" ; then
6411 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6414 cat >>confdefs.h <<_ACEOF
6415 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6419 # Extract the first word of "dot", so it can be a program name with args.
6420 set dummy dot; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_path_DOT+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6451 if test -n "$DOT"; then
6452 { echo "$as_me:$LINENO: result: $DOT" >&5
6453 echo "${ECHO_T}$DOT" >&6; }
6455 { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6460 if test "$DOT" != "echo dot" ; then
6462 cat >>confdefs.h <<\_ACEOF
6466 if test "$llvm_cv_os_type" = "MingW" ; then
6467 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6470 cat >>confdefs.h <<_ACEOF
6471 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6475 # Extract the first word of "fdp", so it can be a program name with args.
6476 set dummy fdp; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_path_FDP+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6507 if test -n "$FDP"; then
6508 { echo "$as_me:$LINENO: result: $FDP" >&5
6509 echo "${ECHO_T}$FDP" >&6; }
6511 { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6516 if test "$FDP" != "echo fdp" ; then
6518 cat >>confdefs.h <<\_ACEOF
6522 if test "$llvm_cv_os_type" = "MingW" ; then
6523 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6526 cat >>confdefs.h <<_ACEOF
6527 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6531 # Extract the first word of "neato", so it can be a program name with args.
6532 set dummy neato; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_path_NEATO+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6562 NEATO=$ac_cv_path_NEATO
6563 if test -n "$NEATO"; then
6564 { echo "$as_me:$LINENO: result: $NEATO" >&5
6565 echo "${ECHO_T}$NEATO" >&6; }
6567 { echo "$as_me:$LINENO: result: no" >&5
6568 echo "${ECHO_T}no" >&6; }
6572 if test "$NEATO" != "echo neato" ; then
6574 cat >>confdefs.h <<\_ACEOF
6575 #define HAVE_NEATO 1
6578 if test "$llvm_cv_os_type" = "MingW" ; then
6579 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6582 cat >>confdefs.h <<_ACEOF
6583 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6587 # Extract the first word of "twopi", so it can be a program name with args.
6588 set dummy twopi; ac_word=$2
6589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591 if test "${ac_cv_path_TWOPI+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6618 TWOPI=$ac_cv_path_TWOPI
6619 if test -n "$TWOPI"; then
6620 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6621 echo "${ECHO_T}$TWOPI" >&6; }
6623 { echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6; }
6628 if test "$TWOPI" != "echo twopi" ; then
6630 cat >>confdefs.h <<\_ACEOF
6631 #define HAVE_TWOPI 1
6634 if test "$llvm_cv_os_type" = "MingW" ; then
6635 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6638 cat >>confdefs.h <<_ACEOF
6639 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6643 # Extract the first word of "circo", so it can be a program name with args.
6644 set dummy circo; ac_word=$2
6645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6647 if test "${ac_cv_path_CIRCO+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6662 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6674 CIRCO=$ac_cv_path_CIRCO
6675 if test -n "$CIRCO"; then
6676 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6677 echo "${ECHO_T}$CIRCO" >&6; }
6679 { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6684 if test "$CIRCO" != "echo circo" ; then
6686 cat >>confdefs.h <<\_ACEOF
6687 #define HAVE_CIRCO 1
6690 if test "$llvm_cv_os_type" = "MingW" ; then
6691 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6694 cat >>confdefs.h <<_ACEOF
6695 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6699 for ac_prog in gv gsview32
6701 # Extract the first word of "$ac_prog", so it can be a program name with args.
6702 set dummy $ac_prog; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_GV+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 if test -n "$GV"; then
6733 { echo "$as_me:$LINENO: result: $GV" >&5
6734 echo "${ECHO_T}$GV" >&6; }
6736 { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6741 test -n "$GV" && break
6743 test -n "$GV" || GV="echo gv"
6745 if test "$GV" != "echo gv" ; then
6747 cat >>confdefs.h <<\_ACEOF
6751 if test "$llvm_cv_os_type" = "MingW" ; then
6752 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6755 cat >>confdefs.h <<_ACEOF
6756 #define LLVM_PATH_GV "$GV${EXEEXT}"
6760 # Extract the first word of "dotty", so it can be a program name with args.
6761 set dummy dotty; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_DOTTY+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6791 DOTTY=$ac_cv_path_DOTTY
6792 if test -n "$DOTTY"; then
6793 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6794 echo "${ECHO_T}$DOTTY" >&6; }
6796 { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6801 if test "$DOTTY" != "echo dotty" ; then
6803 cat >>confdefs.h <<\_ACEOF
6804 #define HAVE_DOTTY 1
6807 if test "$llvm_cv_os_type" = "MingW" ; then
6808 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6811 cat >>confdefs.h <<_ACEOF
6812 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6816 # Extract the first word of "xdot.py", so it can be a program name with args.
6817 set dummy xdot.py; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6847 XDOT_PY=$ac_cv_path_XDOT_PY
6848 if test -n "$XDOT_PY"; then
6849 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6850 echo "${ECHO_T}$XDOT_PY" >&6; }
6852 { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6857 if test "$XDOT_PY" != "echo xdot.py" ; then
6859 cat >>confdefs.h <<\_ACEOF
6860 #define HAVE_XDOT_PY 1
6863 if test "$llvm_cv_os_type" = "MingW" ; then
6864 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6867 cat >>confdefs.h <<_ACEOF
6868 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6873 # Find a good install program. We prefer a C program (faster),
6874 # so one script is as good as another. But avoid the broken or
6875 # incompatible versions:
6876 # SysV /etc/install, /usr/sbin/install
6877 # SunOS /usr/etc/install
6878 # IRIX /sbin/install
6880 # AmigaOS /C/install, which installs bootblocks on floppy discs
6881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6884 # OS/2's system install, which has a completely different semantic
6885 # ./install, which can be erroneously created by make from ./install.sh.
6886 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6887 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6888 if test -z "$INSTALL"; then
6889 if test "${ac_cv_path_install+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir=.
6897 # Account for people who put trailing slashes in PATH elements.
6899 ./ | .// | /cC/* | \
6900 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6901 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6904 # OSF1 and SCO ODT 3.0 have their own names for install.
6905 # Don't use installbsd from OSF since it installs stuff as root
6907 for ac_prog in ginstall scoinst install; do
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6910 if test $ac_prog = install &&
6911 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6912 # AIX install. It has an incompatible calling convention.
6914 elif test $ac_prog = install &&
6915 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6916 # program-specific install script used by HP pwplus--don't use.
6919 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6932 if test "${ac_cv_path_install+set}" = set; then
6933 INSTALL=$ac_cv_path_install
6935 # As a last resort, use the slow shell script. Don't cache a
6936 # value for INSTALL within a source directory, because that will
6937 # break other packages using the cache if that directory is
6938 # removed, or if the value is a relative name.
6939 INSTALL=$ac_install_sh
6942 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6943 echo "${ECHO_T}$INSTALL" >&6; }
6945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6946 # It thinks the first close brace ends the variable substitution.
6947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6954 [\\/$]* | ?:[\\/]* ) ;;
6955 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6958 # Extract the first word of "bzip2", so it can be a program name with args.
6959 set dummy bzip2; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_path_BZIP2+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 BZIP2=$ac_cv_path_BZIP2
6989 if test -n "$BZIP2"; then
6990 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6991 echo "${ECHO_T}$BZIP2" >&6; }
6993 { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6998 # Extract the first word of "cat", so it can be a program name with args.
6999 set dummy cat; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_CAT+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 if test -n "$CAT"; then
7030 { echo "$as_me:$LINENO: result: $CAT" >&5
7031 echo "${ECHO_T}$CAT" >&6; }
7033 { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7038 # Extract the first word of "doxygen", so it can be a program name with args.
7039 set dummy doxygen; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 DOXYGEN=$ac_cv_path_DOXYGEN
7069 if test -n "$DOXYGEN"; then
7070 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7071 echo "${ECHO_T}$DOXYGEN" >&6; }
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7078 # Extract the first word of "groff", so it can be a program name with args.
7079 set dummy groff; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_GROFF+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 GROFF=$ac_cv_path_GROFF
7109 if test -n "$GROFF"; then
7110 { echo "$as_me:$LINENO: result: $GROFF" >&5
7111 echo "${ECHO_T}$GROFF" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7118 # Extract the first word of "gzip", so it can be a program name with args.
7119 set dummy gzip; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 GZIPBIN=$ac_cv_path_GZIPBIN
7149 if test -n "$GZIPBIN"; then
7150 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7151 echo "${ECHO_T}$GZIPBIN" >&6; }
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7158 # Extract the first word of "pod2html", so it can be a program name with args.
7159 set dummy pod2html; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_POD2HTML+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 POD2HTML=$ac_cv_path_POD2HTML
7189 if test -n "$POD2HTML"; then
7190 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7191 echo "${ECHO_T}$POD2HTML" >&6; }
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7198 # Extract the first word of "pod2man", so it can be a program name with args.
7199 set dummy pod2man; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_POD2MAN+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 POD2MAN=$ac_cv_path_POD2MAN
7229 if test -n "$POD2MAN"; then
7230 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7231 echo "${ECHO_T}$POD2MAN" >&6; }
7233 { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7238 # Extract the first word of "pdfroff", so it can be a program name with args.
7239 set dummy pdfroff; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_PDFROFF+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 PDFROFF=$ac_cv_path_PDFROFF
7269 if test -n "$PDFROFF"; then
7270 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7271 echo "${ECHO_T}$PDFROFF" >&6; }
7273 { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7278 # Extract the first word of "runtest", so it can be a program name with args.
7279 set dummy runtest; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_RUNTEST+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 RUNTEST=$ac_cv_path_RUNTEST
7309 if test -n "$RUNTEST"; then
7310 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7311 echo "${ECHO_T}$RUNTEST" >&6; }
7313 { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7320 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7321 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7323 # Check whether --with-tclinclude was given.
7324 if test "${with_tclinclude+set}" = set; then
7325 withval=$with_tclinclude; with_tclinclude=${withval}
7330 if test "${ac_cv_path_tclsh+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 if test x"${with_tclinclude}" != x ; then
7335 if test -f ${with_tclinclude}/tclsh ; then
7336 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7337 elif test -f ${with_tclinclude}/src/tclsh ; then
7338 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7340 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7341 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7342 { (exit 1); exit 1; }; }
7348 if test x"${ac_cv_path_tclsh}" = x ; then
7349 { echo "$as_me:$LINENO: result: none" >&5
7350 echo "${ECHO_T}none" >&6; }
7351 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
7353 # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy $ac_prog; ac_word=$2
7355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357 if test "${ac_cv_path_TCLSH+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 TCLSH=$ac_cv_path_TCLSH
7384 if test -n "$TCLSH"; then
7385 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7386 echo "${ECHO_T}$TCLSH" >&6; }
7388 { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7393 test -n "$TCLSH" && break
7396 if test x"${TCLSH}" = x ; then
7397 ac_cv_path_tclsh='';
7399 ac_cv_path_tclsh="${TCLSH}";
7402 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7403 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7404 TCLSH="${ac_cv_path_tclsh}"
7408 # Extract the first word of "zip", so it can be a program name with args.
7409 set dummy zip; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_path_ZIP+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 if test -n "$ZIP"; then
7440 { echo "$as_me:$LINENO: result: $ZIP" >&5
7441 echo "${ECHO_T}$ZIP" >&6; }
7443 { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7448 for ac_prog in ocamlc
7450 # Extract the first word of "$ac_prog", so it can be a program name with args.
7451 set dummy $ac_prog; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_OCAMLC+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 OCAMLC=$ac_cv_path_OCAMLC
7481 if test -n "$OCAMLC"; then
7482 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7483 echo "${ECHO_T}$OCAMLC" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7490 test -n "$OCAMLC" && break
7493 for ac_prog in ocamlopt
7495 # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 OCAMLOPT=$ac_cv_path_OCAMLOPT
7526 if test -n "$OCAMLOPT"; then
7527 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7528 echo "${ECHO_T}$OCAMLOPT" >&6; }
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7535 test -n "$OCAMLOPT" && break
7538 for ac_prog in ocamldep
7540 # Extract the first word of "$ac_prog", so it can be a program name with args.
7541 set dummy $ac_prog; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 OCAMLDEP=$ac_cv_path_OCAMLDEP
7571 if test -n "$OCAMLDEP"; then
7572 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7573 echo "${ECHO_T}$OCAMLDEP" >&6; }
7575 { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7580 test -n "$OCAMLDEP" && break
7583 for ac_prog in ocamldoc
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 OCAMLDOC=$ac_cv_path_OCAMLDOC
7616 if test -n "$OCAMLDOC"; then
7617 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7618 echo "${ECHO_T}$OCAMLDOC" >&6; }
7620 { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7625 test -n "$OCAMLDOC" && break
7628 for ac_prog in gas as
7630 # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_GAS+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 if test -n "$GAS"; then
7662 { echo "$as_me:$LINENO: result: $GAS" >&5
7663 echo "${ECHO_T}$GAS" >&6; }
7665 { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7670 test -n "$GAS" && break
7674 { echo "$as_me:$LINENO: checking for linker version" >&5
7675 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7676 if test "${llvm_cv_link_version+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 version_string="$(ld -v 2>&1 | head -1)"
7683 if (echo "$version_string" | grep -q "ld64"); then
7684 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7686 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7690 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7691 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7693 cat >>confdefs.h <<_ACEOF
7694 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7699 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7700 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7701 if test "${llvm_cv_link_use_r+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711 CFLAGS="$CFLAGS -Wl,-R."
7712 cat >conftest.$ac_ext <<_ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (ac_try="$ac_link"
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_link") 2>conftest.er1
7736 grep -v '^ *+' conftest.er1 >conftest.err
7738 cat conftest.err >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } &&
7741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7742 { (case "(($ac_try" in
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747 (eval "$ac_try") 2>&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try='test -s conftest$ac_exeext'
7752 { (case "(($ac_try" in
7753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757 (eval "$ac_try") 2>&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 llvm_cv_link_use_r=yes
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 llvm_cv_link_use_r=no
7769 rm -f core conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext conftest.$ac_ext
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7781 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7782 if test "$llvm_cv_link_use_r" = yes ; then
7784 cat >>confdefs.h <<\_ACEOF
7785 #define HAVE_LINK_R 1
7791 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7792 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7793 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 ac_cpp='$CPP $CPPFLAGS'
7798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7803 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7819 rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (ac_try="$ac_link"
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_link") 2>conftest.er1
7828 grep -v '^ *+' conftest.er1 >conftest.err
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7834 { (case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_try") 2>&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest$ac_exeext'
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 llvm_cv_link_use_export_dynamic=yes
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7858 llvm_cv_link_use_export_dynamic=no
7861 rm -f core conftest.err conftest.$ac_objext \
7862 conftest$ac_exeext conftest.$ac_ext
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7872 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7873 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7874 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7876 cat >>confdefs.h <<\_ACEOF
7877 #define HAVE_LINK_EXPORT_DYNAMIC 1
7883 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7884 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7885 if test "${llvm_cv_link_use_version_script+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896 # The following code is from the autoconf manual,
7897 # "11.13: Limitations of Usual Tools".
7898 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7899 # Use mktemp if possible; otherwise fall back on mkdir,
7900 # with $RANDOM to make collisions less likely.
7904 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7906 test -n "$tmp" && test -d "$tmp"
7908 tmp=$TMPDIR/foo$$-$RANDOM
7909 (umask 077 && mkdir "$tmp")
7912 echo "{" > "$tmp/export.map"
7913 echo " global: main;" >> "$tmp/export.map"
7914 echo " local: *;" >> "$tmp/export.map"
7915 echo "};" >> "$tmp/export.map"
7917 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_link") 2>conftest.er1
7942 grep -v '^ *+' conftest.er1 >conftest.err
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7948 { (case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_try") 2>&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; } &&
7957 { ac_try='test -s conftest$ac_exeext'
7958 { (case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963 (eval "$ac_try") 2>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 llvm_cv_link_use_version_script=yes
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 llvm_cv_link_use_version_script=no
7975 rm -f core conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 rm "$tmp/export.map"
7981 ac_cpp='$CPP $CPPFLAGS'
7982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7988 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7989 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7990 if test "$llvm_cv_link_use_version_script" = yes ; then
7991 HAVE_LINK_VERSION_SCRIPT=1
7998 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7999 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8000 if test "${ac_cv_c_const+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 cat >conftest.$ac_ext <<_ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8013 /* FIXME: Include the comments suggested by Paul. */
8015 /* Ultrix mips cc rejects this. */
8016 typedef int charset[2];
8018 /* SunOS 4.1.1 cc rejects this. */
8019 char const *const *ccp;
8021 /* NEC SVR4.0.2 mips cc rejects this. */
8022 struct point {int x, y;};
8023 static struct point const zero = {0,0};
8024 /* AIX XL C 1.02.0.0 rejects this.
8025 It does not let you subtract one const X* pointer from another in
8026 an arm of an if-expression whose if-part is not a constant
8028 const char *g = "string";
8029 ccp = &g + (g ? g-g : 0);
8030 /* HPUX 7.0 cc rejects these. */
8033 ccp = (char const *const *) p;
8034 { /* SCO 3.2v4 cc rejects this. */
8036 char const *s = 0 ? (char *) 0 : (char const *) 0;
8041 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8043 const int *foo = &x[0];
8046 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8047 typedef const int *iptr;
8051 { /* AIX XL C 1.02.0.0 rejects this saying
8052 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8053 struct s { int j; const int *ap[3]; };
8054 struct s *b; b->j = 5;
8056 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8060 return !x[0] && !zero.x;
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_compile") 2>conftest.er1
8076 grep -v '^ *+' conftest.er1 >conftest.err
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8082 { (case "(($ac_try" in
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_try") 2>&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try='test -s conftest.$ac_objext'
8092 { (case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_try") 2>&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8112 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8113 if test $ac_cv_c_const = no; then
8115 cat >>confdefs.h <<\_ACEOF
8127 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8128 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8129 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8130 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 #include <sys/types.h>
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_compile") 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8167 { (case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_try") 2>&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest.$ac_objext'
8177 { (case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_try") 2>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 eval "$as_ac_Header=yes"
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8191 eval "$as_ac_Header=no"
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 ac_res=`eval echo '${'$as_ac_Header'}'`
8197 { echo "$as_me:$LINENO: result: $ac_res" >&5
8198 echo "${ECHO_T}$ac_res" >&6; }
8199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8200 cat >>confdefs.h <<_ACEOF
8201 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8204 ac_header_dirent=$ac_hdr; break
8208 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8209 if test $ac_header_dirent = dirent.h; then
8210 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8211 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8212 if test "${ac_cv_search_opendir+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 ac_func_search_save_LIBS=$LIBS
8216 cat >conftest.$ac_ext <<_ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8223 /* Override any GCC internal prototype to avoid an error.
8224 Use char because int might match the return type of a GCC
8225 builtin and then its argument prototype would still apply. */
8238 for ac_lib in '' dir; do
8239 if test -z "$ac_lib"; then
8240 ac_res="none required"
8243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_link") 2>conftest.er1
8254 grep -v '^ *+' conftest.er1 >conftest.err
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8260 { (case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_try") 2>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest$ac_exeext'
8270 { (case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_try") 2>&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 ac_cv_search_opendir=$ac_res
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8287 rm -f core conftest.err conftest.$ac_objext \
8289 if test "${ac_cv_search_opendir+set}" = set; then
8293 if test "${ac_cv_search_opendir+set}" = set; then
8296 ac_cv_search_opendir=no
8299 LIBS=$ac_func_search_save_LIBS
8301 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8302 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8303 ac_res=$ac_cv_search_opendir
8304 if test "$ac_res" != no; then
8305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8310 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8311 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8312 if test "${ac_cv_search_opendir+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 ac_func_search_save_LIBS=$LIBS
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8323 /* Override any GCC internal prototype to avoid an error.
8324 Use char because int might match the return type of a GCC
8325 builtin and then its argument prototype would still apply. */
8338 for ac_lib in '' x; do
8339 if test -z "$ac_lib"; then
8340 ac_res="none required"
8343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8345 rm -f conftest.$ac_objext conftest$ac_exeext
8346 if { (ac_try="$ac_link"
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_link") 2>conftest.er1
8354 grep -v '^ *+' conftest.er1 >conftest.err
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8360 { (case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_try") 2>&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; } &&
8369 { ac_try='test -s conftest$ac_exeext'
8370 { (case "(($ac_try" in
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_try") 2>&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; }; then
8379 ac_cv_search_opendir=$ac_res
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8387 rm -f core conftest.err conftest.$ac_objext \
8389 if test "${ac_cv_search_opendir+set}" = set; then
8393 if test "${ac_cv_search_opendir+set}" = set; then
8396 ac_cv_search_opendir=no
8399 LIBS=$ac_func_search_save_LIBS
8401 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8402 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8403 ac_res=$ac_cv_search_opendir
8404 if test "$ac_res" != no; then
8405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8412 for ac_header in dlfcn.h
8414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 ac_res=`eval echo '${'$as_ac_Header'}'`
8422 { echo "$as_me:$LINENO: result: $ac_res" >&5
8423 echo "${ECHO_T}$ac_res" >&6; }
8425 # Is the header compilable?
8426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 $ac_includes_default
8435 #include <$ac_header>
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_compile") 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_try") 2>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_try") 2>&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 ac_header_compiler=yes
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8476 ac_header_compiler=no
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8481 echo "${ECHO_T}$ac_header_compiler" >&6; }
8483 # Is the header present?
8484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8486 cat >conftest.$ac_ext <<_ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 #include <$ac_header>
8494 if { (ac_try="$ac_cpp conftest.$ac_ext"
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } >/dev/null; then
8507 if test -s conftest.err; then
8508 ac_cpp_err=$ac_c_preproc_warn_flag
8509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8516 if test -z "$ac_cpp_err"; then
8517 ac_header_preproc=yes
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8522 ac_header_preproc=no
8525 rm -f conftest.err conftest.$ac_ext
8526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8527 echo "${ECHO_T}$ac_header_preproc" >&6; }
8529 # So? What about this header?
8530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8536 ac_header_preproc=yes
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8552 ## ------------------------------ ##
8553 ## Report this to bugs@yourdomain ##
8554 ## ------------------------------ ##
8556 ) | sed "s/^/$as_me: WARNING: /" >&2
8559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 eval "$as_ac_Header=\$ac_header_preproc"
8566 ac_res=`eval echo '${'$as_ac_Header'}'`
8567 { echo "$as_me:$LINENO: result: $ac_res" >&5
8568 echo "${ECHO_T}$ac_res" >&6; }
8571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8572 cat >>confdefs.h <<_ACEOF
8573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8580 # Check whether --enable-ltdl-install was given.
8581 if test "${enable_ltdl_install+set}" = set; then
8582 enableval=$enable_ltdl_install;
8588 if test x"${enable_ltdl_install-no}" != xno; then
8590 INSTALL_LTDL_FALSE='#'
8592 INSTALL_LTDL_TRUE='#'
8598 if test x"${enable_ltdl_convenience-no}" != xno; then
8599 CONVENIENCE_LTDL_TRUE=
8600 CONVENIENCE_LTDL_FALSE='#'
8602 CONVENIENCE_LTDL_TRUE='#'
8603 CONVENIENCE_LTDL_FALSE=
8607 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8608 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8610 libname_spec='lib$name'
8618 shlibpath_overrides_runpath=unknown
8620 dynamic_linker="$host_os ld.so"
8621 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8622 if test "$GCC" = yes; then
8623 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8624 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8625 # if the path contains ";" then we assume it to be the separator
8626 # otherwise default to the standard path separator (i.e. ":") - it is
8627 # assumed that no part of a normal pathname contains ";" but that should
8628 # okay in the real world where ";" in dirpaths is itself problematic.
8629 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8636 need_lib_prefix=unknown
8637 hardcode_into_libs=no
8639 # when you set need_version to no, make sure it does not cause -set_version
8640 # flags to be left without arguments
8641 need_version=unknown
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8647 shlibpath_var=LIBPATH
8649 # AIX 3 has no versioning support, so we append a major version to the name.
8650 soname_spec='${libname}${release}${shared_ext}$major'
8657 hardcode_into_libs=yes
8658 if test "$host_cpu" = ia64; then
8659 # AIX 5 supports IA64
8660 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8661 shlibpath_var=LD_LIBRARY_PATH
8663 # With GCC up to 2.95.x, collect2 would create an import file
8664 # for dependence libraries. The import file would start with
8665 # the line `#! .'. This would cause the generated library to
8666 # depend on `.', always an invalid library. This was fixed in
8667 # development snapshots of GCC prior to 3.0.
8669 aix4 | aix4.[01] | aix4.[01].*)
8670 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8672 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8679 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8680 # soname into executable. Probably we can add versioning support to
8681 # collect2, so additional links can be useful in future.
8682 if test "$aix_use_runtimelinking" = yes; then
8683 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8684 # instead of lib<name>.a to let people know that these are not
8685 # typical AIX shared libraries.
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8688 # We preserve .a as extension for shared libraries through AIX4.2
8689 # and later when we are not doing run time linking.
8690 library_names_spec='${libname}${release}.a $libname.a'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8693 shlibpath_var=LIBPATH
8698 library_names_spec='$libname.ixlibrary $libname.a'
8699 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8700 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'
8704 library_names_spec='${libname}${shared_ext}'
8705 dynamic_linker="$host_os ld.so"
8706 shlibpath_var=LIBRARY_PATH
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8715 shlibpath_var=LD_LIBRARY_PATH
8716 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8717 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8718 # the default ld.so.conf also contains /usr/contrib/lib and
8719 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8720 # libtool to hard-code these into programs
8723 cygwin* | mingw* | pw32*)
8724 version_type=windows
8729 case $GCC,$host_os in
8730 yes,cygwin* | yes,mingw* | yes,pw32*)
8731 library_names_spec='$libname.dll.a'
8732 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8733 postinstall_cmds='base_file=`basename \${file}`~
8734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8735 dldir=$destdir/`dirname \$dlpath`~
8736 test -d \$dldir || mkdir -p \$dldir~
8737 $install_prog $dir/$dlname \$dldir/$dlname~
8738 chmod a+x \$dldir/$dlname'
8739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8740 dlpath=$dir/\$dldll~
8742 shlibpath_overrides_runpath=yes
8746 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8747 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8748 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8751 # MinGW DLLs use traditional 'lib' prefix
8752 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8753 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8754 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8755 # It is most probably a Windows format PATH printed by
8756 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8757 # path with ; separators, and with drive letters. We can handle the
8758 # drive letters (cygwin fileutils understands them), so leave them,
8759 # especially as we might pass files found there to a mingw objdump,
8760 # which wouldn't understand a cygwinified path. Ahh.
8761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8767 # pw32 DLLs use 'pw' prefix rather than 'lib'
8768 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8774 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8777 dynamic_linker='Win32 ld.exe'
8778 # FIXME: first we should search . and the directory the executable is in
8782 darwin* | rhapsody*)
8783 dynamic_linker="$host_os dyld"
8787 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8788 soname_spec='${libname}${release}${major}$shared_ext'
8789 shlibpath_overrides_runpath=yes
8790 shlibpath_var=DYLD_LIBRARY_PATH
8791 shrext_cmds='.dylib'
8792 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8793 if test "$GCC" = yes; then
8794 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"`
8796 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8798 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8806 soname_spec='${libname}${release}${shared_ext}$major'
8807 shlibpath_var=LD_LIBRARY_PATH
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 shlibpath_var=LD_LIBRARY_PATH
8821 shlibpath_overrides_runpath=no
8822 hardcode_into_libs=yes
8823 dynamic_linker='GNU ld.so'
8826 freebsd* | dragonfly*)
8827 # DragonFly does not have aout. When/if they implement a new
8828 # versioning mechanism, adjust this.
8829 if test -x /usr/bin/objformat; then
8830 objformat=`/usr/bin/objformat`
8833 freebsd[123].*) objformat=aout ;;
8837 version_type=freebsd-$objformat
8838 case $version_type in
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8849 shlibpath_var=LD_LIBRARY_PATH
8852 shlibpath_overrides_runpath=yes
8854 freebsd3.[01]* | freebsdelf3.[01]*)
8855 shlibpath_overrides_runpath=yes
8856 hardcode_into_libs=yes
8858 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8859 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8860 shlibpath_overrides_runpath=no
8861 hardcode_into_libs=yes
8863 freebsd*) # from 4.6 on
8864 shlibpath_overrides_runpath=yes
8865 hardcode_into_libs=yes
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 shlibpath_var=LD_LIBRARY_PATH
8877 hardcode_into_libs=yes
8880 hpux9* | hpux10* | hpux11*)
8881 # Give a soname corresponding to the major version so that dld.sl refuses to
8882 # link against other versions.
8889 hardcode_into_libs=yes
8890 dynamic_linker="$host_os dld.so"
8891 shlibpath_var=LD_LIBRARY_PATH
8892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 if test "X$HPUX_IA64_MODE" = X32; then
8896 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8904 hardcode_into_libs=yes
8905 dynamic_linker="$host_os dld.sl"
8906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8915 dynamic_linker="$host_os dld.sl"
8916 shlibpath_var=SHLIB_PATH
8917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919 soname_spec='${libname}${release}${shared_ext}$major'
8922 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8923 postinstall_cmds='chmod 555 $lib'
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=no
8935 hardcode_into_libs=yes
8938 irix5* | irix6* | nonstopux*)
8940 nonstopux*) version_type=nonstopux ;;
8942 if test "$lt_cv_prog_gnu_ld" = yes; then
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8953 irix5* | nonstopux*)
8957 case $LD in # libtool.m4 will add one of these switches to LD
8958 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8959 libsuff= shlibsuff= libmagic=32-bit;;
8960 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8961 libsuff=32 shlibsuff=N32 libmagic=N32;;
8962 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8963 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8964 *) libsuff= shlibsuff= libmagic=never-match;;
8968 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8969 shlibpath_overrides_runpath=no
8970 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8971 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8972 hardcode_into_libs=yes
8975 # No shared lib support for Linux oldld, aout, or coff.
8976 linux*oldld* | linux*aout* | linux*coff*)
8980 # This must be Linux ELF.
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=no
8990 # This implies no fast_install, which is unacceptable.
8991 # Some rework will be needed to allow for fast_install
8992 # before this can be enabled.
8993 hardcode_into_libs=yes
8995 # Append ld.so.conf contents to the search path
8996 if test -f /etc/ld.so.conf; then
8997 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' ' '`
8998 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9001 # We used to test for /lib/ld.so.1 and disable shared libraries on
9002 # powerpc, because MkLinux only supported shared libraries with the
9003 # GNU dynamic linker. Since this was broken with cross compilers,
9004 # most powerpc-linux boxes support dynamic linking these days and
9005 # people can always --disable-shared, the test was removed, and we
9006 # assume the GNU/Linux dynamic linker is in use.
9007 dynamic_linker='GNU/Linux ld.so'
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=no
9018 hardcode_into_libs=yes
9019 dynamic_linker='GNU ld.so'
9026 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9029 dynamic_linker='NetBSD (a.out) ld.so'
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 dynamic_linker='NetBSD ld.elf_so'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=yes
9037 hardcode_into_libs=yes
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 shlibpath_overrides_runpath=yes
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 shlibpath_var=LD_LIBRARY_PATH
9054 shlibpath_overrides_runpath=yes
9059 sys_lib_dlsearch_path_spec="/usr/lib"
9061 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9063 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9064 *) need_version=no ;;
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9071 openbsd2.[89] | openbsd2.[89].*)
9072 shlibpath_overrides_runpath=no
9075 shlibpath_overrides_runpath=yes
9079 shlibpath_overrides_runpath=yes
9084 libname_spec='$name'
9087 library_names_spec='$libname${shared_ext} $libname.a'
9088 dynamic_linker='OS/2 ld.exe'
9089 shlibpath_var=LIBPATH
9092 osf3* | osf4* | osf5*)
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9100 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 shlibpath_overrides_runpath=yes
9111 hardcode_into_libs=yes
9112 # ldd complains unless libraries are executable
9113 postinstall_cmds='chmod +x $lib'
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=yes
9122 if test "$with_gnu_ld" = yes; then
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 case $host_vendor in
9135 shlibpath_overrides_runpath=no
9137 export_dynamic_flag_spec='${wl}-Blargedynsym'
9138 runpath_var=LD_RUN_PATH
9146 shlibpath_overrides_runpath=no
9147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9153 if test -d /usr/nec ;then
9155 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9156 soname_spec='$libname${shared_ext}.$major'
9157 shlibpath_var=LD_LIBRARY_PATH
9161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9162 version_type=freebsd-elf
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 hardcode_into_libs=yes
9169 if test "$with_gnu_ld" = yes; then
9170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9171 shlibpath_overrides_runpath=no
9173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9174 shlibpath_overrides_runpath=yes
9177 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9181 sys_lib_dlsearch_path_spec='/usr/lib'
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 shlibpath_var=LD_LIBRARY_PATH
9195 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9196 echo "${ECHO_T}$dynamic_linker" >&6; }
9197 test "$dynamic_linker" = no && can_build_shared=no
9199 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9200 if test "$GCC" = yes; then
9201 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9205 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9206 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9207 if test "${libltdl_cv_shlibext+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 eval libltdl_cv_shlibext=$shrext_cmds
9215 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9216 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9217 if test -n "$libltdl_cv_shlibext"; then
9219 cat >>confdefs.h <<_ACEOF
9220 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9226 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9227 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9228 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 libltdl_cv_shlibpath_var="$shlibpath_var"
9233 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9234 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9235 if test -n "$libltdl_cv_shlibpath_var"; then
9237 cat >>confdefs.h <<_ACEOF
9238 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9244 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9245 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9246 if test "${libltdl_cv_sys_search_path+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9251 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9252 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9253 if test -n "$libltdl_cv_sys_search_path"; then
9255 for dir in $libltdl_cv_sys_search_path; do
9256 if test -z "$sys_search_path"; then
9257 sys_search_path="$dir"
9259 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9263 cat >>confdefs.h <<_ACEOF
9264 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9269 { echo "$as_me:$LINENO: checking for objdir" >&5
9270 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9271 if test "${libltdl_cv_objdir+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 libltdl_cv_objdir="$objdir"
9275 if test -n "$objdir"; then
9278 rm -f .libs 2>/dev/null
9279 mkdir .libs 2>/dev/null
9280 if test -d .libs; then
9281 libltdl_cv_objdir=.libs
9283 # MS-DOS does not allow filenames that begin with a dot.
9284 libltdl_cv_objdir=_libs
9286 rmdir .libs 2>/dev/null
9290 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9291 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9293 cat >>confdefs.h <<_ACEOF
9294 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9302 # Check for command to grab the raw symbol name followed by C symbol from nm.
9303 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9304 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9305 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 # These are sane defaults that work on at least a few old systems.
9310 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9312 # Character class describing NM global symbol codes.
9313 symcode='[BCDEGRST]'
9315 # Regexp to match symbols that can be accessed directly from C.
9316 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9318 # Transform an extracted symbol line into a proper C declaration
9319 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9321 # Transform an extracted symbol line into symbol name and symbol address
9322 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'"
9324 # Define system-specific variables.
9329 cygwin* | mingw* | pw32*)
9330 symcode='[ABCDGISTW]'
9332 hpux*) # Its linker distinguishes data from code symbols
9333 if test "$host_cpu" = ia64; then
9334 symcode='[ABCDEGRST]'
9336 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9337 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'"
9340 if test "$host_cpu" = ia64; then
9341 symcode='[ABCDGIRSTW]'
9342 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9343 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9347 symcode='[BCDEGRST]'
9350 symcode='[BCDEGQRST]'
9361 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9369 # Handle CRLF in mingw tool chain
9373 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9377 # If we're using GNU nm, then use its standard symbol codes.
9378 case `$NM -V 2>&1` in
9379 *GNU* | *'with BFD'*)
9380 symcode='[ABCDGIRSTW]' ;;
9383 # Try without a prefix undercore, then with it.
9384 for ac_symprfx in "" "_"; do
9386 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9387 symxfrm="\\1 $ac_symprfx\\2 \\2"
9389 # Write the raw and C identifiers.
9390 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9392 # Check to see that the pipe works correctly.
9396 cat > conftest.$ac_ext <<EOF
9401 void nm_test_func(){}
9405 int main(){nm_test_var='a';nm_test_func();return(0);}
9408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409 (eval $ac_compile) 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; then
9413 # Now try to grab the symbols.
9415 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9416 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && test -s "$nlist"; then
9420 # Try sorting and uniquifying the output.
9421 if sort "$nlist" | uniq > "$nlist"T; then
9422 mv -f "$nlist"T "$nlist"
9427 # Make sure that we snagged all the symbols we need.
9428 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9429 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9430 cat <<EOF > conftest.$ac_ext
9436 # Now generate the symbol file.
9437 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9439 cat <<EOF >> conftest.$ac_ext
9440 #if defined (__STDC__) && __STDC__
9441 # define lt_ptr_t void *
9443 # define lt_ptr_t char *
9447 /* The mapping between symbol names and symbols. */
9452 lt_preloaded_symbols[] =
9455 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9456 cat <<\EOF >> conftest.$ac_ext
9464 # Now try linking the two files.
9465 mv conftest.$ac_objext conftstm.$ac_objext
9466 lt_save_LIBS="$LIBS"
9467 lt_save_CFLAGS="$CFLAGS"
9468 LIBS="conftstm.$ac_objext"
9469 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471 (eval $ac_link) 2>&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9477 LIBS="$lt_save_LIBS"
9478 CFLAGS="$lt_save_CFLAGS"
9480 echo "cannot find nm_test_func in $nlist" >&5
9483 echo "cannot find nm_test_var in $nlist" >&5
9486 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9489 echo "$progname: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9492 rm -f conftest* conftst*
9494 # Do not use the global_symbol_pipe unless it works.
9495 if test "$pipe_works" = yes; then
9498 lt_cv_sys_global_symbol_pipe=
9504 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9505 lt_cv_sys_global_symbol_to_cdecl=
9507 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9508 { echo "$as_me:$LINENO: result: failed" >&5
9509 echo "${ECHO_T}failed" >&6; }
9511 { echo "$as_me:$LINENO: result: ok" >&5
9512 echo "${ECHO_T}ok" >&6; }
9516 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9517 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9518 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9522 libltdl_cv_preloaded_symbols=yes
9524 libltdl_cv_preloaded_symbols=no
9528 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9529 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9530 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9532 cat >>confdefs.h <<\_ACEOF
9533 #define HAVE_PRELOADED_SYMBOLS 1
9541 ac_cpp='$CPP $CPPFLAGS'
9542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9547 { echo "$as_me:$LINENO: checking for shl_load" >&5
9548 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9549 if test "${ac_cv_func_shl_load+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 cat >conftest.$ac_ext <<_ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9558 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9560 #define shl_load innocuous_shl_load
9562 /* System header to define __stub macros and hopefully few prototypes,
9563 which can conflict with char shl_load (); below.
9564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9565 <limits.h> exists even on freestanding compilers. */
9568 # include <limits.h>
9570 # include <assert.h>
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9582 /* The GNU C library defines this for functions which it implements
9583 to always fail with ENOSYS. Some functions are actually named
9584 something starting with __ and the normal name is an alias. */
9585 #if defined __stub_shl_load || defined __stub___shl_load
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (ac_try="$ac_link"
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_link") 2>conftest.er1
9606 grep -v '^ *+' conftest.er1 >conftest.err
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } &&
9611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9612 { (case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_try") 2>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; } &&
9621 { ac_try='test -s conftest$ac_exeext'
9622 { (case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_try") 2>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_cv_func_shl_load=yes
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_cv_func_shl_load=no
9639 rm -f core conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9642 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9643 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9644 if test $ac_cv_func_shl_load = yes; then
9646 cat >>confdefs.h <<\_ACEOF
9647 #define HAVE_SHL_LOAD 1
9651 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9652 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9653 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 ac_check_lib_save_LIBS=$LIBS
9658 cat >conftest.$ac_ext <<_ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9665 /* Override any GCC internal prototype to avoid an error.
9666 Use char because int might match the return type of a GCC
9667 builtin and then its argument prototype would still apply. */
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (ac_try="$ac_link"
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_link") 2>conftest.er1
9689 grep -v '^ *+' conftest.er1 >conftest.err
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } &&
9694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9695 { (case "(($ac_try" in
9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697 *) ac_try_echo=$ac_try;;
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700 (eval "$ac_try") 2>&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; } &&
9704 { ac_try='test -s conftest$ac_exeext'
9705 { (case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_try") 2>&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_lib_dld_shl_load=yes
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 ac_cv_lib_dld_shl_load=no
9722 rm -f core conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9724 LIBS=$ac_check_lib_save_LIBS
9726 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9727 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9728 if test $ac_cv_lib_dld_shl_load = yes; then
9730 cat >>confdefs.h <<\_ACEOF
9731 #define HAVE_SHL_LOAD 1
9734 LIBADD_DL="$LIBADD_DL -ldld"
9736 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9737 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9738 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 ac_check_lib_save_LIBS=$LIBS
9743 cat >conftest.$ac_ext <<_ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9750 /* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_link") 2>conftest.er1
9774 grep -v '^ *+' conftest.er1 >conftest.err
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9780 { (case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_try") 2>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_try") 2>&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_cv_lib_dl_dlopen=yes
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 ac_cv_lib_dl_dlopen=no
9807 rm -f core conftest.err conftest.$ac_objext \
9808 conftest$ac_exeext conftest.$ac_ext
9809 LIBS=$ac_check_lib_save_LIBS
9811 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9812 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9813 if test $ac_cv_lib_dl_dlopen = yes; then
9815 cat >>confdefs.h <<\_ACEOF
9816 #define HAVE_LIBDL 1
9819 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (ac_try="$ac_link"
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_link") 2>conftest.er1
9848 grep -v '^ *+' conftest.er1 >conftest.err
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9854 { (case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_try") 2>&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_try") 2>&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9874 cat >>confdefs.h <<\_ACEOF
9875 #define HAVE_LIBDL 1
9877 libltdl_cv_func_dlopen="yes"
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9883 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9884 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 ac_check_lib_save_LIBS=$LIBS
9889 cat >conftest.$ac_ext <<_ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9896 /* Override any GCC internal prototype to avoid an error.
9897 Use char because int might match the return type of a GCC
9898 builtin and then its argument prototype would still apply. */
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (ac_try="$ac_link"
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_link") 2>conftest.er1
9920 grep -v '^ *+' conftest.er1 >conftest.err
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9926 { (case "(($ac_try" in
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_try") 2>&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
9935 { ac_try='test -s conftest$ac_exeext'
9936 { (case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_try") 2>&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_lib_svld_dlopen=yes
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_cv_lib_svld_dlopen=no
9953 rm -f core conftest.err conftest.$ac_objext \
9954 conftest$ac_exeext conftest.$ac_ext
9955 LIBS=$ac_check_lib_save_LIBS
9957 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9958 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9959 if test $ac_cv_lib_svld_dlopen = yes; then
9961 cat >>confdefs.h <<\_ACEOF
9962 #define HAVE_LIBDL 1
9965 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9967 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9968 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9969 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 ac_check_lib_save_LIBS=$LIBS
9974 cat >conftest.$ac_ext <<_ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9981 /* Override any GCC internal prototype to avoid an error.
9982 Use char because int might match the return type of a GCC
9983 builtin and then its argument prototype would still apply. */
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (ac_try="$ac_link"
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_link") 2>conftest.er1
10005 grep -v '^ *+' conftest.er1 >conftest.err
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10011 { (case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_try") 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; } &&
10020 { ac_try='test -s conftest$ac_exeext'
10021 { (case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_try") 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10030 ac_cv_lib_dld_dld_link=yes
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 ac_cv_lib_dld_dld_link=no
10038 rm -f core conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10040 LIBS=$ac_check_lib_save_LIBS
10042 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10043 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10044 if test $ac_cv_lib_dld_dld_link = yes; then
10046 cat >>confdefs.h <<\_ACEOF
10050 LIBADD_DL="$LIBADD_DL -ldld"
10052 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10053 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10054 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 cat >conftest.$ac_ext <<_ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10065 #define _dyld_func_lookup innocuous__dyld_func_lookup
10067 /* System header to define __stub macros and hopefully few prototypes,
10068 which can conflict with char _dyld_func_lookup (); below.
10069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10070 <limits.h> exists even on freestanding compilers. */
10073 # include <limits.h>
10075 # include <assert.h>
10078 #undef _dyld_func_lookup
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10086 char _dyld_func_lookup ();
10087 /* The GNU C library defines this for functions which it implements
10088 to always fail with ENOSYS. Some functions are actually named
10089 something starting with __ and the normal name is an alias. */
10090 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10097 return _dyld_func_lookup ();
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (ac_try="$ac_link"
10104 case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_link") 2>conftest.er1
10111 grep -v '^ *+' conftest.er1 >conftest.err
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10117 { (case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; } &&
10126 { ac_try='test -s conftest$ac_exeext'
10127 { (case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_try") 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_func__dyld_func_lookup=yes
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_cv_func__dyld_func_lookup=no
10144 rm -f core conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
10147 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10148 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10149 if test $ac_cv_func__dyld_func_lookup = yes; then
10151 cat >>confdefs.h <<\_ACEOF
10152 #define HAVE_DYLD 1
10166 rm -f core conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10178 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10180 lt_save_LIBS="$LIBS"
10181 LIBS="$LIBS $LIBADD_DL"
10183 for ac_func in dlerror
10185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 cat >conftest.$ac_ext <<_ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10199 #define $ac_func innocuous_$ac_func
10201 /* System header to define __stub macros and hopefully few prototypes,
10202 which can conflict with char $ac_func (); below.
10203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204 <limits.h> exists even on freestanding compilers. */
10207 # include <limits.h>
10209 # include <assert.h>
10214 /* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
10221 /* The GNU C library defines this for functions which it implements
10222 to always fail with ENOSYS. Some functions are actually named
10223 something starting with __ and the normal name is an alias. */
10224 #if defined __stub_$ac_func || defined __stub___$ac_func
10231 return $ac_func ();
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10251 { (case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_try") 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest$ac_exeext'
10261 { (case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_try") 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 eval "$as_ac_var=yes"
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 eval "$as_ac_var=no"
10278 rm -f core conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10281 ac_res=`eval echo '${'$as_ac_var'}'`
10282 { echo "$as_me:$LINENO: result: $ac_res" >&5
10283 echo "${ECHO_T}$ac_res" >&6; }
10284 if test `eval echo '${'$as_ac_var'}'` = yes; then
10285 cat >>confdefs.h <<_ACEOF
10286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10292 LIBS="$lt_save_LIBS"
10295 ac_cpp='$CPP $CPPFLAGS'
10296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10302 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10303 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10304 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 ac_cv_sys_symbol_underscore=no
10308 cat > conftest.$ac_ext <<EOF
10309 void nm_test_func(){}
10310 int main(){nm_test_func;return 0;}
10312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313 (eval $ac_compile) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; then
10317 # Now try to grab the symbols.
10318 ac_nlist=conftest.nm
10319 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10320 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && test -s "$ac_nlist"; then
10324 # See whether the symbols have a leading underscore.
10325 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10326 ac_cv_sys_symbol_underscore=yes
10328 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10331 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10335 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10338 echo "configure: failed program was:" >&5
10344 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10345 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10348 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10349 if test x"$libltdl_cv_func_dlopen" = xyes ||
10350 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10351 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10352 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10353 if test "${libltdl_cv_need_uscore+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 libltdl_cv_need_uscore=unknown
10358 LIBS="$LIBS $LIBADD_DL"
10359 if test "$cross_compiling" = yes; then :
10360 libltdl_cv_need_uscore=cross
10362 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10363 lt_status=$lt_dlunknown
10364 cat > conftest.$ac_ext <<EOF
10365 #line 10365 "configure"
10366 #include "confdefs.h"
10375 # define LT_DLGLOBAL RTLD_GLOBAL
10378 # define LT_DLGLOBAL DL_GLOBAL
10380 # define LT_DLGLOBAL 0
10384 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10385 find out it does not work in some platform. */
10386 #ifndef LT_DLLAZY_OR_NOW
10388 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10391 # define LT_DLLAZY_OR_NOW DL_LAZY
10394 # define LT_DLLAZY_OR_NOW RTLD_NOW
10397 # define LT_DLLAZY_OR_NOW DL_NOW
10399 # define LT_DLLAZY_OR_NOW 0
10407 extern "C" void exit (int);
10410 void fnord() { int i=42;}
10413 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10414 int status = $lt_dlunknown;
10418 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10419 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10420 /* dlclose (self); */
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429 (eval $ac_link) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10433 (./conftest; exit; ) >&5 2>/dev/null
10435 case x$lt_status in
10436 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10437 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10438 x$lt_dlunknown|x*) ;;
10441 # compilation failed
10450 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10451 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10455 if test x"$libltdl_cv_need_uscore" = xyes; then
10457 cat >>confdefs.h <<\_ACEOF
10458 #define NEED_USCORE 1
10464 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10465 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10466 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 # PORTME does your system automatically load deplibs for dlopen?
10470 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10471 # For now, we just catch OSes we know something about -- in the
10472 # future, we'll try test this programmatically.
10473 libltdl_cv_sys_dlopen_deplibs=unknown
10475 aix3*|aix4.1.*|aix4.2.*)
10476 # Unknown whether this is true for these versions of AIX, but
10477 # we want this `case' here to explicitly catch those versions.
10478 libltdl_cv_sys_dlopen_deplibs=unknown
10481 libltdl_cv_sys_dlopen_deplibs=yes
10484 # Assuming the user has installed a libdl from somewhere, this is true
10485 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10486 libltdl_cv_sys_dlopen_deplibs=yes
10488 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10489 # GNU and its variants, using gnu ld.so (Glibc)
10490 libltdl_cv_sys_dlopen_deplibs=yes
10493 libltdl_cv_sys_dlopen_deplibs=yes
10496 libltdl_cv_sys_dlopen_deplibs=yes
10498 irix[12345]*|irix6.[01]*)
10499 # Catch all versions of IRIX before 6.2, and indicate that we don't
10500 # know how it worked for any of those versions.
10501 libltdl_cv_sys_dlopen_deplibs=unknown
10504 # The case above catches anything before 6.2, and it's known that
10505 # at 6.2 and later dlopen does load deplibs.
10506 libltdl_cv_sys_dlopen_deplibs=yes
10509 libltdl_cv_sys_dlopen_deplibs=yes
10512 libltdl_cv_sys_dlopen_deplibs=yes
10515 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10516 # it did *not* use an RPATH in a shared library to find objects the
10517 # library depends on, so we explicitly say `no'.
10518 libltdl_cv_sys_dlopen_deplibs=no
10520 osf5.0|osf5.0a|osf5.1)
10521 # dlopen *does* load deplibs and with the right loader patch applied
10522 # it even uses RPATH in a shared library to search for shared objects
10523 # that the library depends on, but there's no easy way to know if that
10524 # patch is installed. Since this is the case, all we can really
10525 # say is unknown -- it depends on the patch being installed. If
10526 # it is, this changes to `yes'. Without it, it would be `no'.
10527 libltdl_cv_sys_dlopen_deplibs=unknown
10530 # the two cases above should catch all versions of osf <= 5.1. Read
10531 # the comments above for what we know about them.
10532 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10533 # is used to find them so we can finally say `yes'.
10534 libltdl_cv_sys_dlopen_deplibs=yes
10537 libltdl_cv_sys_dlopen_deplibs=yes
10539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10540 libltdl_cv_sys_dlopen_deplibs=yes
10545 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10546 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10547 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10549 cat >>confdefs.h <<\_ACEOF
10550 #define LTDL_DLOPEN_DEPLIBS 1
10556 for ac_header in argz.h
10558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 ac_res=`eval echo '${'$as_ac_Header'}'`
10566 { echo "$as_me:$LINENO: result: $ac_res" >&5
10567 echo "${ECHO_T}$ac_res" >&6; }
10569 # Is the header compilable?
10570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 $ac_includes_default
10579 #include <$ac_header>
10581 rm -f conftest.$ac_objext
10582 if { (ac_try="$ac_compile"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_compile") 2>conftest.er1
10590 grep -v '^ *+' conftest.er1 >conftest.err
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10596 { (case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601 (eval "$ac_try") 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_try") 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 ac_header_compiler=yes
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 ac_header_compiler=no
10623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10625 echo "${ECHO_T}$ac_header_compiler" >&6; }
10627 # Is the header present?
10628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 #include <$ac_header>
10638 if { (ac_try="$ac_cpp conftest.$ac_ext"
10639 case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10646 grep -v '^ *+' conftest.er1 >conftest.err
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } >/dev/null; then
10651 if test -s conftest.err; then
10652 ac_cpp_err=$ac_c_preproc_warn_flag
10653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10660 if test -z "$ac_cpp_err"; then
10661 ac_header_preproc=yes
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 ac_header_preproc=no
10669 rm -f conftest.err conftest.$ac_ext
10670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10671 echo "${ECHO_T}$ac_header_preproc" >&6; }
10673 # So? What about this header?
10674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10680 ac_header_preproc=yes
10683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10696 ## ------------------------------ ##
10697 ## Report this to bugs@yourdomain ##
10698 ## ------------------------------ ##
10700 ) | sed "s/^/$as_me: WARNING: /" >&2
10703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 eval "$as_ac_Header=\$ac_header_preproc"
10710 ac_res=`eval echo '${'$as_ac_Header'}'`
10711 { echo "$as_me:$LINENO: result: $ac_res" >&5
10712 echo "${ECHO_T}$ac_res" >&6; }
10715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10716 cat >>confdefs.h <<_ACEOF
10717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10725 { echo "$as_me:$LINENO: checking for error_t" >&5
10726 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10727 if test "${ac_cv_type_error_t+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 cat >conftest.$ac_ext <<_ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10740 typedef error_t ac__type_new_;
10744 if ((ac__type_new_ *) 0)
10746 if (sizeof (ac__type_new_))
10752 rm -f conftest.$ac_objext
10753 if { (ac_try="$ac_compile"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_compile") 2>conftest.er1
10761 grep -v '^ *+' conftest.er1 >conftest.err
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10767 { (case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_try") 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; } &&
10776 { ac_try='test -s conftest.$ac_objext'
10777 { (case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_try") 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 ac_cv_type_error_t=yes
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 ac_cv_type_error_t=no
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10796 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10797 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10798 if test $ac_cv_type_error_t = yes; then
10800 cat >>confdefs.h <<_ACEOF
10801 #define HAVE_ERROR_T 1
10807 cat >>confdefs.h <<\_ACEOF
10808 #define error_t int
10819 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10827 cat >conftest.$ac_ext <<_ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10835 #define $ac_func innocuous_$ac_func
10837 /* System header to define __stub macros and hopefully few prototypes,
10838 which can conflict with char $ac_func (); below.
10839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10840 <limits.h> exists even on freestanding compilers. */
10843 # include <limits.h>
10845 # include <assert.h>
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10857 /* The GNU C library defines this for functions which it implements
10858 to always fail with ENOSYS. Some functions are actually named
10859 something starting with __ and the normal name is an alias. */
10860 #if defined __stub_$ac_func || defined __stub___$ac_func
10867 return $ac_func ();
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10881 grep -v '^ *+' conftest.er1 >conftest.err
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest$ac_exeext'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 eval "$as_ac_var=yes"
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 eval "$as_ac_var=no"
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10917 ac_res=`eval echo '${'$as_ac_var'}'`
10918 { echo "$as_me:$LINENO: result: $ac_res" >&5
10919 echo "${ECHO_T}$ac_res" >&6; }
10920 if test `eval echo '${'$as_ac_var'}'` = yes; then
10921 cat >>confdefs.h <<_ACEOF
10922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10955 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 ac_res=`eval echo '${'$as_ac_Header'}'`
10966 { echo "$as_me:$LINENO: result: $ac_res" >&5
10967 echo "${ECHO_T}$ac_res" >&6; }
10969 # Is the header compilable?
10970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10972 cat >conftest.$ac_ext <<_ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10978 $ac_includes_default
10979 #include <$ac_header>
10981 rm -f conftest.$ac_objext
10982 if { (ac_try="$ac_compile"
10983 case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_compile") 2>conftest.er1
10990 grep -v '^ *+' conftest.er1 >conftest.err
10992 cat conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10996 { (case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_try") 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest.$ac_objext'
11006 { (case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_try") 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; }; then
11015 ac_header_compiler=yes
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 ac_header_compiler=no
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11025 echo "${ECHO_T}$ac_header_compiler" >&6; }
11027 # Is the header present?
11028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 #include <$ac_header>
11038 if { (ac_try="$ac_cpp conftest.$ac_ext"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } >/dev/null; then
11051 if test -s conftest.err; then
11052 ac_cpp_err=$ac_c_preproc_warn_flag
11053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11060 if test -z "$ac_cpp_err"; then
11061 ac_header_preproc=yes
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11066 ac_header_preproc=no
11069 rm -f conftest.err conftest.$ac_ext
11070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11071 echo "${ECHO_T}$ac_header_preproc" >&6; }
11073 # So? What about this header?
11074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11080 ac_header_preproc=yes
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11096 ## ------------------------------ ##
11097 ## Report this to bugs@yourdomain ##
11098 ## ------------------------------ ##
11100 ) | sed "s/^/$as_me: WARNING: /" >&2
11103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 eval "$as_ac_Header=\$ac_header_preproc"
11110 ac_res=`eval echo '${'$as_ac_Header'}'`
11111 { echo "$as_me:$LINENO: result: $ac_res" >&5
11112 echo "${ECHO_T}$ac_res" >&6; }
11115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11116 cat >>confdefs.h <<_ACEOF
11117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11128 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 ac_res=`eval echo '${'$as_ac_Header'}'`
11138 { echo "$as_me:$LINENO: result: $ac_res" >&5
11139 echo "${ECHO_T}$ac_res" >&6; }
11141 # Is the header compilable?
11142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11144 cat >conftest.$ac_ext <<_ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h. */
11150 $ac_includes_default
11151 #include <$ac_header>
11153 rm -f conftest.$ac_objext
11154 if { (ac_try="$ac_compile"
11155 case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 (eval "$ac_compile") 2>conftest.er1
11162 grep -v '^ *+' conftest.er1 >conftest.err
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11168 { (case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_try") 2>&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; } &&
11177 { ac_try='test -s conftest.$ac_objext'
11178 { (case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_try") 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
11187 ac_header_compiler=yes
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11192 ac_header_compiler=no
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11197 echo "${ECHO_T}$ac_header_compiler" >&6; }
11199 # Is the header present?
11200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11202 cat >conftest.$ac_ext <<_ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 #include <$ac_header>
11210 if { (ac_try="$ac_cpp conftest.$ac_ext"
11211 case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11218 grep -v '^ *+' conftest.er1 >conftest.err
11220 cat conftest.err >&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } >/dev/null; then
11223 if test -s conftest.err; then
11224 ac_cpp_err=$ac_c_preproc_warn_flag
11225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11232 if test -z "$ac_cpp_err"; then
11233 ac_header_preproc=yes
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11238 ac_header_preproc=no
11241 rm -f conftest.err conftest.$ac_ext
11242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243 echo "${ECHO_T}$ac_header_preproc" >&6; }
11245 # So? What about this header?
11246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11252 ac_header_preproc=yes
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11268 ## ------------------------------ ##
11269 ## Report this to bugs@yourdomain ##
11270 ## ------------------------------ ##
11272 ) | sed "s/^/$as_me: WARNING: /" >&2
11275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 eval "$as_ac_Header=\$ac_header_preproc"
11282 ac_res=`eval echo '${'$as_ac_Header'}'`
11283 { echo "$as_me:$LINENO: result: $ac_res" >&5
11284 echo "${ECHO_T}$ac_res" >&6; }
11287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11288 cat >>confdefs.h <<_ACEOF
11289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11298 for ac_header in string.h strings.h
11300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 ac_res=`eval echo '${'$as_ac_Header'}'`
11308 { echo "$as_me:$LINENO: result: $ac_res" >&5
11309 echo "${ECHO_T}$ac_res" >&6; }
11311 # Is the header compilable?
11312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11314 cat >conftest.$ac_ext <<_ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 $ac_includes_default
11321 #include <$ac_header>
11323 rm -f conftest.$ac_objext
11324 if { (ac_try="$ac_compile"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_compile") 2>conftest.er1
11332 grep -v '^ *+' conftest.er1 >conftest.err
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11338 { (case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_try") 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; } &&
11347 { ac_try='test -s conftest.$ac_objext'
11348 { (case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_try") 2>&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
11357 ac_header_compiler=yes
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 ac_header_compiler=no
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11367 echo "${ECHO_T}$ac_header_compiler" >&6; }
11369 # Is the header present?
11370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11372 cat >conftest.$ac_ext <<_ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 #include <$ac_header>
11380 if { (ac_try="$ac_cpp conftest.$ac_ext"
11381 case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11388 grep -v '^ *+' conftest.er1 >conftest.err
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev/null; then
11393 if test -s conftest.err; then
11394 ac_cpp_err=$ac_c_preproc_warn_flag
11395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11402 if test -z "$ac_cpp_err"; then
11403 ac_header_preproc=yes
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11408 ac_header_preproc=no
11411 rm -f conftest.err conftest.$ac_ext
11412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11413 echo "${ECHO_T}$ac_header_preproc" >&6; }
11415 # So? What about this header?
11416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11422 ac_header_preproc=yes
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11438 ## ------------------------------ ##
11439 ## Report this to bugs@yourdomain ##
11440 ## ------------------------------ ##
11442 ) | sed "s/^/$as_me: WARNING: /" >&2
11445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 eval "$as_ac_Header=\$ac_header_preproc"
11452 ac_res=`eval echo '${'$as_ac_Header'}'`
11453 { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458 cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11469 for ac_func in strchr index
11471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 cat >conftest.$ac_ext <<_ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11485 #define $ac_func innocuous_$ac_func
11487 /* System header to define __stub macros and hopefully few prototypes,
11488 which can conflict with char $ac_func (); below.
11489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11490 <limits.h> exists even on freestanding compilers. */
11493 # include <limits.h>
11495 # include <assert.h>
11500 /* Override any GCC internal prototype to avoid an error.
11501 Use char because int might match the return type of a GCC
11502 builtin and then its argument prototype would still apply. */
11507 /* The GNU C library defines this for functions which it implements
11508 to always fail with ENOSYS. Some functions are actually named
11509 something starting with __ and the normal name is an alias. */
11510 #if defined __stub_$ac_func || defined __stub___$ac_func
11517 return $ac_func ();
11522 rm -f conftest.$ac_objext conftest$ac_exeext
11523 if { (ac_try="$ac_link"
11524 case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_link") 2>conftest.er1
11531 grep -v '^ *+' conftest.er1 >conftest.err
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11537 { (case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542 (eval "$ac_try") 2>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; } &&
11546 { ac_try='test -s conftest$ac_exeext'
11547 { (case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_try") 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 eval "$as_ac_var=yes"
11558 echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11561 eval "$as_ac_var=no"
11564 rm -f core conftest.err conftest.$ac_objext \
11565 conftest$ac_exeext conftest.$ac_ext
11567 ac_res=`eval echo '${'$as_ac_var'}'`
11568 { echo "$as_me:$LINENO: result: $ac_res" >&5
11569 echo "${ECHO_T}$ac_res" >&6; }
11570 if test `eval echo '${'$as_ac_var'}'` = yes; then
11571 cat >>confdefs.h <<_ACEOF
11572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11580 for ac_func in strrchr rindex
11582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 cat >conftest.$ac_ext <<_ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11596 #define $ac_func innocuous_$ac_func
11598 /* System header to define __stub macros and hopefully few prototypes,
11599 which can conflict with char $ac_func (); below.
11600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11601 <limits.h> exists even on freestanding compilers. */
11604 # include <limits.h>
11606 # include <assert.h>
11611 /* Override any GCC internal prototype to avoid an error.
11612 Use char because int might match the return type of a GCC
11613 builtin and then its argument prototype would still apply. */
11618 /* The GNU C library defines this for functions which it implements
11619 to always fail with ENOSYS. Some functions are actually named
11620 something starting with __ and the normal name is an alias. */
11621 #if defined __stub_$ac_func || defined __stub___$ac_func
11628 return $ac_func ();
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (ac_try="$ac_link"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_link") 2>conftest.er1
11642 grep -v '^ *+' conftest.er1 >conftest.err
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
11647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11648 { (case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_try") 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest$ac_exeext'
11658 { (case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_try") 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 eval "$as_ac_var=yes"
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11672 eval "$as_ac_var=no"
11675 rm -f core conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11678 ac_res=`eval echo '${'$as_ac_var'}'`
11679 { echo "$as_me:$LINENO: result: $ac_res" >&5
11680 echo "${ECHO_T}$ac_res" >&6; }
11681 if test `eval echo '${'$as_ac_var'}'` = yes; then
11682 cat >>confdefs.h <<_ACEOF
11683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11691 for ac_func in memcpy bcopy
11693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 cat >conftest.$ac_ext <<_ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11707 #define $ac_func innocuous_$ac_func
11709 /* System header to define __stub macros and hopefully few prototypes,
11710 which can conflict with char $ac_func (); below.
11711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712 <limits.h> exists even on freestanding compilers. */
11715 # include <limits.h>
11717 # include <assert.h>
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11729 /* The GNU C library defines this for functions which it implements
11730 to always fail with ENOSYS. Some functions are actually named
11731 something starting with __ and the normal name is an alias. */
11732 #if defined __stub_$ac_func || defined __stub___$ac_func
11739 return $ac_func ();
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (ac_try="$ac_link"
11746 case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_link") 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11759 { (case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_try") 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest$ac_exeext'
11769 { (case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_try") 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 eval "$as_ac_var=yes"
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 eval "$as_ac_var=no"
11786 rm -f core conftest.err conftest.$ac_objext \
11787 conftest$ac_exeext conftest.$ac_ext
11789 ac_res=`eval echo '${'$as_ac_var'}'`
11790 { echo "$as_me:$LINENO: result: $ac_res" >&5
11791 echo "${ECHO_T}$ac_res" >&6; }
11792 if test `eval echo '${'$as_ac_var'}'` = yes; then
11793 cat >>confdefs.h <<_ACEOF
11794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11802 for ac_func in memmove strcmp
11804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11818 #define $ac_func innocuous_$ac_func
11820 /* System header to define __stub macros and hopefully few prototypes,
11821 which can conflict with char $ac_func (); below.
11822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823 <limits.h> exists even on freestanding compilers. */
11826 # include <limits.h>
11828 # include <assert.h>
11833 /* Override any GCC internal prototype to avoid an error.
11834 Use char because int might match the return type of a GCC
11835 builtin and then its argument prototype would still apply. */
11840 /* The GNU C library defines this for functions which it implements
11841 to always fail with ENOSYS. Some functions are actually named
11842 something starting with __ and the normal name is an alias. */
11843 #if defined __stub_$ac_func || defined __stub___$ac_func
11850 return $ac_func ();
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (ac_try="$ac_link"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_link") 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11870 { (case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_try") 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; } &&
11879 { ac_try='test -s conftest$ac_exeext'
11880 { (case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885 (eval "$ac_try") 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 eval "$as_ac_var=yes"
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 eval "$as_ac_var=no"
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11900 ac_res=`eval echo '${'$as_ac_var'}'`
11901 { echo "$as_me:$LINENO: result: $ac_res" >&5
11902 echo "${ECHO_T}$ac_res" >&6; }
11903 if test `eval echo '${'$as_ac_var'}'` = yes; then
11904 cat >>confdefs.h <<_ACEOF
11905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11914 for ac_func in closedir opendir readdir
11916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 cat >conftest.$ac_ext <<_ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11930 #define $ac_func innocuous_$ac_func
11932 /* System header to define __stub macros and hopefully few prototypes,
11933 which can conflict with char $ac_func (); below.
11934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11935 <limits.h> exists even on freestanding compilers. */
11938 # include <limits.h>
11940 # include <assert.h>
11945 /* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
11952 /* The GNU C library defines this for functions which it implements
11953 to always fail with ENOSYS. Some functions are actually named
11954 something starting with __ and the normal name is an alias. */
11955 #if defined __stub_$ac_func || defined __stub___$ac_func
11962 return $ac_func ();
11967 rm -f conftest.$ac_objext conftest$ac_exeext
11968 if { (ac_try="$ac_link"
11969 case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_link") 2>conftest.er1
11976 grep -v '^ *+' conftest.er1 >conftest.err
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11982 { (case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_try") 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; } &&
11991 { ac_try='test -s conftest$ac_exeext'
11992 { (case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_try") 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 eval "$as_ac_var=yes"
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 eval "$as_ac_var=no"
12009 rm -f core conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12012 ac_res=`eval echo '${'$as_ac_var'}'`
12013 { echo "$as_me:$LINENO: result: $ac_res" >&5
12014 echo "${ECHO_T}$ac_res" >&6; }
12015 if test `eval echo '${'$as_ac_var'}'` = yes; then
12016 cat >>confdefs.h <<_ACEOF
12017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12025 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12026 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12039 if test "$GCC" != "yes" && test "$ICC" != "yes"
12041 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12042 echo "$as_me: error: gcc|icc required but not found" >&2;}
12043 { (exit 1); exit 1; }; }
12046 if test "$GXX" != "yes" && test "$IXX" != "yes"
12048 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12049 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12050 { (exit 1); exit 1; }; }
12053 if test "$GCC" = "yes"
12055 cat >conftest.$ac_ext <<_ACEOF
12056 #if !defined(__GNUC__) || __GNUC__ < 3
12057 #error Unsupported GCC version
12061 rm -f conftest.$ac_objext
12062 if { (ac_try="$ac_compile"
12063 case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_compile") 2>conftest.er1
12070 grep -v '^ *+' conftest.er1 >conftest.err
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12076 { (case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_try") 2>&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); }; } &&
12085 { ac_try='test -s conftest.$ac_objext'
12086 { (case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_try") 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12101 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12102 { (exit 1); exit 1; }; }
12105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 if test -z "$llvm_cv_gnu_make_command"
12110 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12111 echo "$as_me: error: GNU Make required but not found" >&2;}
12112 { (exit 1); exit 1; }; }
12115 { echo "$as_me:$LINENO: result: ok" >&5
12116 echo "${ECHO_T}ok" >&6; }
12118 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12119 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12120 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12122 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12124 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12126 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12127 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12131 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12132 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12133 if test "${ac_cv_lib_m_sin+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 ac_check_lib_save_LIBS=$LIBS
12138 cat >conftest.$ac_ext <<_ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12160 rm -f conftest.$ac_objext conftest$ac_exeext
12161 if { (ac_try="$ac_link"
12162 case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167 (eval "$ac_link") 2>conftest.er1
12169 grep -v '^ *+' conftest.er1 >conftest.err
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } &&
12174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12175 { (case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_try") 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; } &&
12184 { ac_try='test -s conftest$ac_exeext'
12185 { (case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_try") 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_cv_lib_m_sin=yes
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12202 rm -f core conftest.err conftest.$ac_objext \
12203 conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12206 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12207 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12208 if test $ac_cv_lib_m_sin = yes; then
12209 cat >>confdefs.h <<_ACEOF
12210 #define HAVE_LIBM 1
12217 if test "$llvm_cv_os_type" = "MingW" ; then
12219 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12220 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12221 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 ac_check_lib_save_LIBS=$LIBS
12225 LIBS="-limagehlp $LIBS"
12226 cat >conftest.$ac_ext <<_ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12242 rm -f conftest.$ac_objext conftest$ac_exeext
12243 if { (ac_try="$ac_link"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_link") 2>conftest.er1
12251 grep -v '^ *+' conftest.er1 >conftest.err
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12257 { (case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_try") 2>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; } &&
12266 { ac_try='test -s conftest$ac_exeext'
12267 { (case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_try") 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12276 ac_cv_lib_imagehlp_main=yes
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12281 ac_cv_lib_imagehlp_main=no
12284 rm -f core conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12288 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12289 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12290 if test $ac_cv_lib_imagehlp_main = yes; then
12291 cat >>confdefs.h <<_ACEOF
12292 #define HAVE_LIBIMAGEHLP 1
12295 LIBS="-limagehlp $LIBS"
12300 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12301 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12302 if test "${ac_cv_lib_psapi_main+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-lpsapi $LIBS"
12307 cat >conftest.$ac_ext <<_ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (ac_try="$ac_link"
12325 case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_link") 2>conftest.er1
12332 grep -v '^ *+' conftest.er1 >conftest.err
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest$ac_exeext'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_cv_lib_psapi_main=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_cv_lib_psapi_main=no
12365 rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367 LIBS=$ac_check_lib_save_LIBS
12369 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12370 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12371 if test $ac_cv_lib_psapi_main = yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define HAVE_LIBPSAPI 1
12376 LIBS="-lpsapi $LIBS"
12382 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12383 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12384 if test "${ac_cv_search_dlopen+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 ac_func_search_save_LIBS=$LIBS
12388 cat >conftest.$ac_ext <<_ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12395 /* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12410 for ac_lib in '' dl; do
12411 if test -z "$ac_lib"; then
12412 ac_res="none required"
12415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (ac_try="$ac_link"
12419 case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_link") 2>conftest.er1
12426 grep -v '^ *+' conftest.er1 >conftest.err
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12432 { (case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_try") 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest$ac_exeext'
12442 { (case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_try") 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 ac_cv_search_dlopen=$ac_res
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12459 rm -f core conftest.err conftest.$ac_objext \
12461 if test "${ac_cv_search_dlopen+set}" = set; then
12465 if test "${ac_cv_search_dlopen+set}" = set; then
12468 ac_cv_search_dlopen=no
12470 rm conftest.$ac_ext
12471 LIBS=$ac_func_search_save_LIBS
12473 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12474 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12475 ac_res=$ac_cv_search_dlopen
12476 if test "$ac_res" != no; then
12477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12479 cat >>confdefs.h <<\_ACEOF
12480 #define HAVE_DLOPEN 1
12484 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12485 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12489 if test "$llvm_cv_enable_libffi" = "yes" ; then
12490 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12491 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12492 if test "${ac_cv_search_ffi_call+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 ac_func_search_save_LIBS=$LIBS
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12503 /* Override any GCC internal prototype to avoid an error.
12504 Use char because int might match the return type of a GCC
12505 builtin and then its argument prototype would still apply. */
12513 return ffi_call ();
12518 for ac_lib in '' ffi; do
12519 if test -z "$ac_lib"; then
12520 ac_res="none required"
12523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (ac_try="$ac_link"
12527 case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_link") 2>conftest.er1
12534 grep -v '^ *+' conftest.er1 >conftest.err
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12540 { (case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_try") 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest$ac_exeext'
12550 { (case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_try") 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_search_ffi_call=$ac_res
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12567 rm -f core conftest.err conftest.$ac_objext \
12569 if test "${ac_cv_search_ffi_call+set}" = set; then
12573 if test "${ac_cv_search_ffi_call+set}" = set; then
12576 ac_cv_search_ffi_call=no
12578 rm conftest.$ac_ext
12579 LIBS=$ac_func_search_save_LIBS
12581 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12582 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12583 ac_res=$ac_cv_search_ffi_call
12584 if test "$ac_res" != no; then
12585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12587 cat >>confdefs.h <<\_ACEOF
12588 #define HAVE_FFI_CALL 1
12592 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12593 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12594 { (exit 1); exit 1; }; }
12599 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12600 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12601 if test "${ac_cv_search_mallinfo+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 ac_func_search_save_LIBS=$LIBS
12605 cat >conftest.$ac_ext <<_ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12612 /* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
12622 return mallinfo ();
12627 for ac_lib in '' malloc; do
12628 if test -z "$ac_lib"; then
12629 ac_res="none required"
12632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12634 rm -f conftest.$ac_objext conftest$ac_exeext
12635 if { (ac_try="$ac_link"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_link") 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12649 { (case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_try") 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; } &&
12658 { ac_try='test -s conftest$ac_exeext'
12659 { (case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_try") 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 ac_cv_search_mallinfo=$ac_res
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12676 rm -f core conftest.err conftest.$ac_objext \
12678 if test "${ac_cv_search_mallinfo+set}" = set; then
12682 if test "${ac_cv_search_mallinfo+set}" = set; then
12685 ac_cv_search_mallinfo=no
12687 rm conftest.$ac_ext
12688 LIBS=$ac_func_search_save_LIBS
12690 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12691 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12692 ac_res=$ac_cv_search_mallinfo
12693 if test "$ac_res" != no; then
12694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12696 cat >>confdefs.h <<\_ACEOF
12697 #define HAVE_MALLINFO 1
12703 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12705 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12706 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12707 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 ac_check_lib_save_LIBS=$LIBS
12711 LIBS="-lpthread $LIBS"
12712 cat >conftest.$ac_ext <<_ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12719 /* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
12725 char pthread_mutex_init ();
12729 return pthread_mutex_init ();
12734 rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (ac_try="$ac_link"
12736 case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_link") 2>conftest.er1
12743 grep -v '^ *+' conftest.er1 >conftest.err
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
12748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12749 { (case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754 (eval "$ac_try") 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest$ac_exeext'
12759 { (case "(($ac_try" in
12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764 (eval "$ac_try") 2>&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12768 ac_cv_lib_pthread_pthread_mutex_init=yes
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12773 ac_cv_lib_pthread_pthread_mutex_init=no
12776 rm -f core conftest.err conftest.$ac_objext \
12777 conftest$ac_exeext conftest.$ac_ext
12778 LIBS=$ac_check_lib_save_LIBS
12780 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12781 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12782 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12783 cat >>confdefs.h <<_ACEOF
12784 #define HAVE_LIBPTHREAD 1
12787 LIBS="-lpthread $LIBS"
12791 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12792 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12793 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 ac_func_search_save_LIBS=$LIBS
12797 cat >conftest.$ac_ext <<_ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12804 /* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12810 char pthread_mutex_lock ();
12814 return pthread_mutex_lock ();
12819 for ac_lib in '' pthread; do
12820 if test -z "$ac_lib"; then
12821 ac_res="none required"
12824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12826 rm -f conftest.$ac_objext conftest$ac_exeext
12827 if { (ac_try="$ac_link"
12828 case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_link") 2>conftest.er1
12835 grep -v '^ *+' conftest.er1 >conftest.err
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12841 { (case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_try") 2>&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; } &&
12850 { ac_try='test -s conftest$ac_exeext'
12851 { (case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_try") 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_cv_search_pthread_mutex_lock=$ac_res
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12868 rm -f core conftest.err conftest.$ac_objext \
12870 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12874 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12877 ac_cv_search_pthread_mutex_lock=no
12879 rm conftest.$ac_ext
12880 LIBS=$ac_func_search_save_LIBS
12882 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12883 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12884 ac_res=$ac_cv_search_pthread_mutex_lock
12885 if test "$ac_res" != no; then
12886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12888 cat >>confdefs.h <<\_ACEOF
12889 #define HAVE_PTHREAD_MUTEX_LOCK 1
12894 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12895 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12896 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 ac_func_search_save_LIBS=$LIBS
12900 cat >conftest.$ac_ext <<_ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12913 char pthread_rwlock_init ();
12917 return pthread_rwlock_init ();
12922 for ac_lib in '' pthread; do
12923 if test -z "$ac_lib"; then
12924 ac_res="none required"
12927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12929 rm -f conftest.$ac_objext conftest$ac_exeext
12930 if { (ac_try="$ac_link"
12931 case "(($ac_try" in
12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936 (eval "$ac_link") 2>conftest.er1
12938 grep -v '^ *+' conftest.er1 >conftest.err
12940 cat conftest.err >&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944 { (case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_try") 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; } &&
12953 { ac_try='test -s conftest$ac_exeext'
12954 { (case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_try") 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_cv_search_pthread_rwlock_init=$ac_res
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12971 rm -f core conftest.err conftest.$ac_objext \
12973 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12977 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12980 ac_cv_search_pthread_rwlock_init=no
12982 rm conftest.$ac_ext
12983 LIBS=$ac_func_search_save_LIBS
12985 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12986 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12987 ac_res=$ac_cv_search_pthread_rwlock_init
12988 if test "$ac_res" != no; then
12989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12991 cat >>confdefs.h <<\_ACEOF
12992 #define HAVE_PTHREAD_RWLOCK_INIT 1
12997 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12998 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12999 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 ac_func_search_save_LIBS=$LIBS
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13010 /* Override any GCC internal prototype to avoid an error.
13011 Use char because int might match the return type of a GCC
13012 builtin and then its argument prototype would still apply. */
13016 char pthread_getspecific ();
13020 return pthread_getspecific ();
13025 for ac_lib in '' pthread; do
13026 if test -z "$ac_lib"; then
13027 ac_res="none required"
13030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (ac_try="$ac_link"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_link") 2>conftest.er1
13041 grep -v '^ *+' conftest.er1 >conftest.err
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13047 { (case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_try") 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try='test -s conftest$ac_exeext'
13057 { (case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_try") 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 ac_cv_search_pthread_getspecific=$ac_res
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13074 rm -f core conftest.err conftest.$ac_objext \
13076 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13080 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13083 ac_cv_search_pthread_getspecific=no
13085 rm conftest.$ac_ext
13086 LIBS=$ac_func_search_save_LIBS
13088 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13089 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13090 ac_res=$ac_cv_search_pthread_getspecific
13091 if test "$ac_res" != no; then
13092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13094 cat >>confdefs.h <<\_ACEOF
13095 #define HAVE_PTHREAD_GETSPECIFIC 1
13103 # Check whether --with-udis86 was given.
13104 if test "${with_udis86+set}" = set; then
13105 withval=$with_udis86;
13110 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13113 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13114 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13115 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 ac_check_lib_save_LIBS=$LIBS
13119 LIBS="-ludis86 $LIBS"
13120 cat >conftest.$ac_ext <<_ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h. */
13127 /* Override any GCC internal prototype to avoid an error.
13128 Use char because int might match the return type of a GCC
13129 builtin and then its argument prototype would still apply. */
13142 rm -f conftest.$ac_objext conftest$ac_exeext
13143 if { (ac_try="$ac_link"
13144 case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_link") 2>conftest.er1
13151 grep -v '^ *+' conftest.er1 >conftest.err
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13157 { (case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_try") 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; } &&
13166 { ac_try='test -s conftest$ac_exeext'
13167 { (case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_try") 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13176 ac_cv_lib_udis86_ud_init=yes
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13181 ac_cv_lib_udis86_ud_init=no
13184 rm -f core conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS
13188 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13189 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13190 if test $ac_cv_lib_udis86_ud_init = yes; then
13191 cat >>confdefs.h <<_ACEOF
13192 #define HAVE_LIBUDIS86 1
13195 LIBS="-ludis86 $LIBS"
13199 echo "Error! You need to have libudis86 around."
13211 cat >>confdefs.h <<_ACEOF
13212 #define USE_UDIS86 $USE_UDIS86
13217 # Check whether --with-oprofile was given.
13218 if test "${with_oprofile+set}" = set; then
13219 withval=$with_oprofile;
13223 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13224 no) llvm_cv_oppath=
13227 *) llvm_cv_oppath="${withval}/lib/oprofile"
13228 CPPFLAGS="-I${withval}/include";;
13230 if test -n "$llvm_cv_oppath" ; then
13231 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13232 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13233 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13234 if test "${ac_cv_search_bfd_init+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 ac_func_search_save_LIBS=$LIBS
13238 cat >conftest.$ac_ext <<_ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13245 /* Override any GCC internal prototype to avoid an error.
13246 Use char because int might match the return type of a GCC
13247 builtin and then its argument prototype would still apply. */
13255 return bfd_init ();
13260 for ac_lib in '' bfd; do
13261 if test -z "$ac_lib"; then
13262 ac_res="none required"
13265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (ac_try="$ac_link"
13269 case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_link") 2>conftest.er1
13276 grep -v '^ *+' conftest.er1 >conftest.err
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13282 { (case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_try") 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; } &&
13291 { ac_try='test -s conftest$ac_exeext'
13292 { (case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_try") 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 ac_cv_search_bfd_init=$ac_res
13303 echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13309 rm -f core conftest.err conftest.$ac_objext \
13311 if test "${ac_cv_search_bfd_init+set}" = set; then
13315 if test "${ac_cv_search_bfd_init+set}" = set; then
13318 ac_cv_search_bfd_init=no
13320 rm conftest.$ac_ext
13321 LIBS=$ac_func_search_save_LIBS
13323 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13324 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13325 ac_res=$ac_cv_search_bfd_init
13326 if test "$ac_res" != no; then
13327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13331 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13332 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13333 if test "${ac_cv_search_op_open_agent+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 ac_func_search_save_LIBS=$LIBS
13337 cat >conftest.$ac_ext <<_ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13350 char op_open_agent ();
13354 return op_open_agent ();
13359 for ac_lib in '' opagent; do
13360 if test -z "$ac_lib"; then
13361 ac_res="none required"
13364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>conftest.er1
13375 grep -v '^ *+' conftest.er1 >conftest.err
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest$ac_exeext'
13391 { (case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_try") 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 ac_cv_search_op_open_agent=$ac_res
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13408 rm -f core conftest.err conftest.$ac_objext \
13410 if test "${ac_cv_search_op_open_agent+set}" = set; then
13414 if test "${ac_cv_search_op_open_agent+set}" = set; then
13417 ac_cv_search_op_open_agent=no
13419 rm conftest.$ac_ext
13420 LIBS=$ac_func_search_save_LIBS
13422 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13423 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13424 ac_res=$ac_cv_search_op_open_agent
13425 if test "$ac_res" != no; then
13426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13430 echo "Error! You need to have libopagent around."
13435 if test "${ac_cv_header_opagent_h+set}" = set; then
13436 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13437 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13438 if test "${ac_cv_header_opagent_h+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13442 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13444 # Is the header compilable?
13445 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13446 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13447 cat >conftest.$ac_ext <<_ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13453 $ac_includes_default
13454 #include <opagent.h>
13456 rm -f conftest.$ac_objext
13457 if { (ac_try="$ac_compile"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_compile") 2>conftest.er1
13465 grep -v '^ *+' conftest.er1 >conftest.err
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13471 { (case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_try") 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; } &&
13480 { ac_try='test -s conftest.$ac_objext'
13481 { (case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_try") 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 ac_header_compiler=yes
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13495 ac_header_compiler=no
13498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13500 echo "${ECHO_T}$ac_header_compiler" >&6; }
13502 # Is the header present?
13503 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13504 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13505 cat >conftest.$ac_ext <<_ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 #include <opagent.h>
13513 if { (ac_try="$ac_cpp conftest.$ac_ext"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13521 grep -v '^ *+' conftest.er1 >conftest.err
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } >/dev/null; then
13526 if test -s conftest.err; then
13527 ac_cpp_err=$ac_c_preproc_warn_flag
13528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13535 if test -z "$ac_cpp_err"; then
13536 ac_header_preproc=yes
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 ac_header_preproc=no
13544 rm -f conftest.err conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13546 echo "${ECHO_T}$ac_header_preproc" >&6; }
13548 # So? What about this header?
13549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13551 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13552 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13554 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13555 ac_header_preproc=yes
13558 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13559 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13560 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13561 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13563 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13565 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13567 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13569 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13571 ## ------------------------------ ##
13572 ## Report this to bugs@yourdomain ##
13573 ## ------------------------------ ##
13575 ) | sed "s/^/$as_me: WARNING: /" >&2
13578 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13579 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13580 if test "${ac_cv_header_opagent_h+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 ac_cv_header_opagent_h=$ac_header_preproc
13585 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13586 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13589 if test $ac_cv_header_opagent_h = yes; then
13593 echo "Error! You need to have opagent.h around."
13609 cat >>confdefs.h <<_ACEOF
13610 #define USE_OPROFILE $USE_OPROFILE
13620 ac_header_dirent=no
13621 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13622 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13623 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13624 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 cat >conftest.$ac_ext <<_ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h. */
13634 #include <sys/types.h>
13646 rm -f conftest.$ac_objext
13647 if { (ac_try="$ac_compile"
13648 case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_compile") 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661 { (case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_try") 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest.$ac_objext'
13671 { (case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676 (eval "$ac_try") 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 eval "$as_ac_Header=yes"
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13685 eval "$as_ac_Header=no"
13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 ac_res=`eval echo '${'$as_ac_Header'}'`
13691 { echo "$as_me:$LINENO: result: $ac_res" >&5
13692 echo "${ECHO_T}$ac_res" >&6; }
13693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13694 cat >>confdefs.h <<_ACEOF
13695 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13698 ac_header_dirent=$ac_hdr; break
13702 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13703 if test $ac_header_dirent = dirent.h; then
13704 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13705 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13706 if test "${ac_cv_search_opendir+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 ac_func_search_save_LIBS=$LIBS
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13717 /* Override any GCC internal prototype to avoid an error.
13718 Use char because int might match the return type of a GCC
13719 builtin and then its argument prototype would still apply. */
13732 for ac_lib in '' dir; do
13733 if test -z "$ac_lib"; then
13734 ac_res="none required"
13737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13739 rm -f conftest.$ac_objext conftest$ac_exeext
13740 if { (ac_try="$ac_link"
13741 case "(($ac_try" in
13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743 *) ac_try_echo=$ac_try;;
13745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746 (eval "$ac_link") 2>conftest.er1
13748 grep -v '^ *+' conftest.er1 >conftest.err
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13754 { (case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_try") 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try='test -s conftest$ac_exeext'
13764 { (case "(($ac_try" in
13765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766 *) ac_try_echo=$ac_try;;
13768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769 (eval "$ac_try") 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 ac_cv_search_opendir=$ac_res
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13781 rm -f core conftest.err conftest.$ac_objext \
13783 if test "${ac_cv_search_opendir+set}" = set; then
13787 if test "${ac_cv_search_opendir+set}" = set; then
13790 ac_cv_search_opendir=no
13792 rm conftest.$ac_ext
13793 LIBS=$ac_func_search_save_LIBS
13795 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13796 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13797 ac_res=$ac_cv_search_opendir
13798 if test "$ac_res" != no; then
13799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13804 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13805 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13806 if test "${ac_cv_search_opendir+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 ac_func_search_save_LIBS=$LIBS
13810 cat >conftest.$ac_ext <<_ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13817 /* Override any GCC internal prototype to avoid an error.
13818 Use char because int might match the return type of a GCC
13819 builtin and then its argument prototype would still apply. */
13832 for ac_lib in '' x; do
13833 if test -z "$ac_lib"; then
13834 ac_res="none required"
13837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (ac_try="$ac_link"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_link") 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854 { (case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_try") 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; } &&
13863 { ac_try='test -s conftest$ac_exeext'
13864 { (case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_try") 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13873 ac_cv_search_opendir=$ac_res
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13881 rm -f core conftest.err conftest.$ac_objext \
13883 if test "${ac_cv_search_opendir+set}" = set; then
13887 if test "${ac_cv_search_opendir+set}" = set; then
13890 ac_cv_search_opendir=no
13892 rm conftest.$ac_ext
13893 LIBS=$ac_func_search_save_LIBS
13895 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13896 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13897 ac_res=$ac_cv_search_opendir
13898 if test "$ac_res" != no; then
13899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13905 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13906 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13907 if test "${ac_cv_header_mmap_anon+set}" = set; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 ac_cpp='$CPP $CPPFLAGS'
13912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13916 cat >conftest.$ac_ext <<_ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922 #include <sys/mman.h>
13923 #include <unistd.h>
13928 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13933 rm -f conftest.$ac_objext
13934 if { (ac_try="$ac_compile"
13935 case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_compile") 2>conftest.er1
13942 grep -v '^ *+' conftest.er1 >conftest.err
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13948 { (case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_try") 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; } &&
13957 { ac_try='test -s conftest.$ac_objext'
13958 { (case "(($ac_try" in
13959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963 (eval "$ac_try") 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967 ac_cv_header_mmap_anon=yes
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13972 ac_cv_header_mmap_anon=no
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977 ac_cpp='$CPP $CPPFLAGS'
13978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13984 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13985 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13986 if test "$ac_cv_header_mmap_anon" = yes; then
13988 cat >>confdefs.h <<\_ACEOF
13989 #define HAVE_MMAP_ANONYMOUS 1
13994 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13995 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13996 if test "${ac_cv_header_stat_broken+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13999 cat >conftest.$ac_ext <<_ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 #include <sys/types.h>
14006 #include <sys/stat.h>
14008 #if defined S_ISBLK && defined S_IFDIR
14009 # if S_ISBLK (S_IFDIR)
14014 #if defined S_ISBLK && defined S_IFCHR
14015 # if S_ISBLK (S_IFCHR)
14020 #if defined S_ISLNK && defined S_IFREG
14021 # if S_ISLNK (S_IFREG)
14026 #if defined S_ISSOCK && defined S_IFREG
14027 # if S_ISSOCK (S_IFREG)
14033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14034 $EGREP "You lose" >/dev/null 2>&1; then
14035 ac_cv_header_stat_broken=yes
14037 ac_cv_header_stat_broken=no
14042 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14043 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14044 if test $ac_cv_header_stat_broken = yes; then
14046 cat >>confdefs.h <<\_ACEOF
14047 #define STAT_MACROS_BROKEN 1
14052 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14053 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14054 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #include <sys/types.h>
14064 #include <sys/wait.h>
14065 #ifndef WEXITSTATUS
14066 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14069 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14077 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14082 rm -f conftest.$ac_objext
14083 if { (ac_try="$ac_compile"
14084 case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_compile") 2>conftest.er1
14091 grep -v '^ *+' conftest.er1 >conftest.err
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14097 { (case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_try") 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest.$ac_objext'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_cv_header_sys_wait_h=yes
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14121 ac_cv_header_sys_wait_h=no
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14127 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14128 if test $ac_cv_header_sys_wait_h = yes; then
14130 cat >>confdefs.h <<\_ACEOF
14131 #define HAVE_SYS_WAIT_H 1
14136 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14137 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14138 if test "${ac_cv_header_time+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 cat >conftest.$ac_ext <<_ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 #include <sys/types.h>
14148 #include <sys/time.h>
14154 if ((struct tm *) 0)
14160 rm -f conftest.$ac_objext
14161 if { (ac_try="$ac_compile"
14162 case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_compile") 2>conftest.er1
14169 grep -v '^ *+' conftest.er1 >conftest.err
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14175 { (case "(($ac_try" in
14176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177 *) ac_try_echo=$ac_try;;
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_try") 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest.$ac_objext'
14185 { (case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_try") 2>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }; then
14194 ac_cv_header_time=yes
14196 echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14199 ac_cv_header_time=no
14202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14204 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14205 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14206 if test $ac_cv_header_time = yes; then
14208 cat >>confdefs.h <<\_ACEOF
14209 #define TIME_WITH_SYS_TIME 1
14221 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 ac_res=`eval echo '${'$as_ac_Header'}'`
14231 { echo "$as_me:$LINENO: result: $ac_res" >&5
14232 echo "${ECHO_T}$ac_res" >&6; }
14234 # Is the header compilable?
14235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14237 cat >conftest.$ac_ext <<_ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 $ac_includes_default
14244 #include <$ac_header>
14246 rm -f conftest.$ac_objext
14247 if { (ac_try="$ac_compile"
14248 case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253 (eval "$ac_compile") 2>conftest.er1
14255 grep -v '^ *+' conftest.er1 >conftest.err
14257 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
14260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14261 { (case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_try") 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; } &&
14270 { ac_try='test -s conftest.$ac_objext'
14271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_try") 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_header_compiler=yes
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_header_compiler=no
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14290 echo "${ECHO_T}$ac_header_compiler" >&6; }
14292 # Is the header present?
14293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301 #include <$ac_header>
14303 if { (ac_try="$ac_cpp conftest.$ac_ext"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14311 grep -v '^ *+' conftest.er1 >conftest.err
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } >/dev/null; then
14316 if test -s conftest.err; then
14317 ac_cpp_err=$ac_c_preproc_warn_flag
14318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14325 if test -z "$ac_cpp_err"; then
14326 ac_header_preproc=yes
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 ac_header_preproc=no
14334 rm -f conftest.err conftest.$ac_ext
14335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14336 echo "${ECHO_T}$ac_header_preproc" >&6; }
14338 # So? What about this header?
14339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14345 ac_header_preproc=yes
14348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14355 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14361 ## ------------------------------ ##
14362 ## Report this to bugs@yourdomain ##
14363 ## ------------------------------ ##
14365 ) | sed "s/^/$as_me: WARNING: /" >&2
14368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 eval "$as_ac_Header=\$ac_header_preproc"
14375 ac_res=`eval echo '${'$as_ac_Header'}'`
14376 { echo "$as_me:$LINENO: result: $ac_res" >&5
14377 echo "${ECHO_T}$ac_res" >&6; }
14380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14381 cat >>confdefs.h <<_ACEOF
14382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14395 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14404 ac_res=`eval echo '${'$as_ac_Header'}'`
14405 { echo "$as_me:$LINENO: result: $ac_res" >&5
14406 echo "${ECHO_T}$ac_res" >&6; }
14408 # Is the header compilable?
14409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14411 cat >conftest.$ac_ext <<_ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h. */
14417 $ac_includes_default
14418 #include <$ac_header>
14420 rm -f conftest.$ac_objext
14421 if { (ac_try="$ac_compile"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_compile") 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest.$ac_objext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_header_compiler=yes
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_header_compiler=no
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14464 echo "${ECHO_T}$ac_header_compiler" >&6; }
14466 # Is the header present?
14467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14469 cat >conftest.$ac_ext <<_ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 #include <$ac_header>
14477 if { (ac_try="$ac_cpp conftest.$ac_ext"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14485 grep -v '^ *+' conftest.er1 >conftest.err
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } >/dev/null; then
14490 if test -s conftest.err; then
14491 ac_cpp_err=$ac_c_preproc_warn_flag
14492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14499 if test -z "$ac_cpp_err"; then
14500 ac_header_preproc=yes
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_header_preproc=no
14508 rm -f conftest.err conftest.$ac_ext
14509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14510 echo "${ECHO_T}$ac_header_preproc" >&6; }
14512 # So? What about this header?
14513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14519 ac_header_preproc=yes
14522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14535 ## ------------------------------ ##
14536 ## Report this to bugs@yourdomain ##
14537 ## ------------------------------ ##
14539 ) | sed "s/^/$as_me: WARNING: /" >&2
14542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 eval "$as_ac_Header=\$ac_header_preproc"
14549 ac_res=`eval echo '${'$as_ac_Header'}'`
14550 { echo "$as_me:$LINENO: result: $ac_res" >&5
14551 echo "${ECHO_T}$ac_res" >&6; }
14554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14565 for ac_header in utime.h windows.h
14567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 ac_res=`eval echo '${'$as_ac_Header'}'`
14575 { echo "$as_me:$LINENO: result: $ac_res" >&5
14576 echo "${ECHO_T}$ac_res" >&6; }
14578 # Is the header compilable?
14579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14588 #include <$ac_header>
14590 rm -f conftest.$ac_objext
14591 if { (ac_try="$ac_compile"
14592 case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_compile") 2>conftest.er1
14599 grep -v '^ *+' conftest.er1 >conftest.err
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14605 { (case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_try") 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; } &&
14614 { ac_try='test -s conftest.$ac_objext'
14615 { (case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_try") 2>&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }; then
14624 ac_header_compiler=yes
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14629 ac_header_compiler=no
14632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14634 echo "${ECHO_T}$ac_header_compiler" >&6; }
14636 # Is the header present?
14637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14639 cat >conftest.$ac_ext <<_ACEOF
14642 cat confdefs.h >>conftest.$ac_ext
14643 cat >>conftest.$ac_ext <<_ACEOF
14644 /* end confdefs.h. */
14645 #include <$ac_header>
14647 if { (ac_try="$ac_cpp conftest.$ac_ext"
14648 case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14655 grep -v '^ *+' conftest.er1 >conftest.err
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } >/dev/null; then
14660 if test -s conftest.err; then
14661 ac_cpp_err=$ac_c_preproc_warn_flag
14662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14669 if test -z "$ac_cpp_err"; then
14670 ac_header_preproc=yes
14672 echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14675 ac_header_preproc=no
14678 rm -f conftest.err conftest.$ac_ext
14679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14680 echo "${ECHO_T}$ac_header_preproc" >&6; }
14682 # So? What about this header?
14683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14689 ac_header_preproc=yes
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14705 ## ------------------------------ ##
14706 ## Report this to bugs@yourdomain ##
14707 ## ------------------------------ ##
14709 ) | sed "s/^/$as_me: WARNING: /" >&2
14712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 eval "$as_ac_Header=\$ac_header_preproc"
14719 ac_res=`eval echo '${'$as_ac_Header'}'`
14720 { echo "$as_me:$LINENO: result: $ac_res" >&5
14721 echo "${ECHO_T}$ac_res" >&6; }
14724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14725 cat >>confdefs.h <<_ACEOF
14726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14738 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 ac_res=`eval echo '${'$as_ac_Header'}'`
14748 { echo "$as_me:$LINENO: result: $ac_res" >&5
14749 echo "${ECHO_T}$ac_res" >&6; }
14751 # Is the header compilable?
14752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14754 cat >conftest.$ac_ext <<_ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14760 $ac_includes_default
14761 #include <$ac_header>
14763 rm -f conftest.$ac_objext
14764 if { (ac_try="$ac_compile"
14765 case "(($ac_try" in
14766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770 (eval "$ac_compile") 2>conftest.er1
14772 grep -v '^ *+' conftest.er1 >conftest.err
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14778 { (case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783 (eval "$ac_try") 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; } &&
14787 { ac_try='test -s conftest.$ac_objext'
14788 { (case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793 (eval "$ac_try") 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_header_compiler=yes
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14802 ac_header_compiler=no
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14807 echo "${ECHO_T}$ac_header_compiler" >&6; }
14809 # Is the header present?
14810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14812 cat >conftest.$ac_ext <<_ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14818 #include <$ac_header>
14820 if { (ac_try="$ac_cpp conftest.$ac_ext"
14821 case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14828 grep -v '^ *+' conftest.er1 >conftest.err
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } >/dev/null; then
14833 if test -s conftest.err; then
14834 ac_cpp_err=$ac_c_preproc_warn_flag
14835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14842 if test -z "$ac_cpp_err"; then
14843 ac_header_preproc=yes
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_header_preproc=no
14851 rm -f conftest.err conftest.$ac_ext
14852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14853 echo "${ECHO_T}$ac_header_preproc" >&6; }
14855 # So? What about this header?
14856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14862 ac_header_preproc=yes
14865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14878 ## ------------------------------ ##
14879 ## Report this to bugs@yourdomain ##
14880 ## ------------------------------ ##
14882 ) | sed "s/^/$as_me: WARNING: /" >&2
14885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 eval "$as_ac_Header=\$ac_header_preproc"
14892 ac_res=`eval echo '${'$as_ac_Header'}'`
14893 { echo "$as_me:$LINENO: result: $ac_res" >&5
14894 echo "${ECHO_T}$ac_res" >&6; }
14897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14898 cat >>confdefs.h <<_ACEOF
14899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14910 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 ac_res=`eval echo '${'$as_ac_Header'}'`
14920 { echo "$as_me:$LINENO: result: $ac_res" >&5
14921 echo "${ECHO_T}$ac_res" >&6; }
14923 # Is the header compilable?
14924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14926 cat >conftest.$ac_ext <<_ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 $ac_includes_default
14933 #include <$ac_header>
14935 rm -f conftest.$ac_objext
14936 if { (ac_try="$ac_compile"
14937 case "(($ac_try" in
14938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14939 *) ac_try_echo=$ac_try;;
14941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14942 (eval "$ac_compile") 2>conftest.er1
14944 grep -v '^ *+' conftest.er1 >conftest.err
14946 cat conftest.err >&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } &&
14949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14950 { (case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_try") 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; } &&
14959 { ac_try='test -s conftest.$ac_objext'
14960 { (case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_try") 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14969 ac_header_compiler=yes
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14974 ac_header_compiler=no
14977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14979 echo "${ECHO_T}$ac_header_compiler" >&6; }
14981 # Is the header present?
14982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14984 cat >conftest.$ac_ext <<_ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14990 #include <$ac_header>
14992 if { (ac_try="$ac_cpp conftest.$ac_ext"
14993 case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15000 grep -v '^ *+' conftest.er1 >conftest.err
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } >/dev/null; then
15005 if test -s conftest.err; then
15006 ac_cpp_err=$ac_c_preproc_warn_flag
15007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15014 if test -z "$ac_cpp_err"; then
15015 ac_header_preproc=yes
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15020 ac_header_preproc=no
15023 rm -f conftest.err conftest.$ac_ext
15024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15025 echo "${ECHO_T}$ac_header_preproc" >&6; }
15027 # So? What about this header?
15028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15034 ac_header_preproc=yes
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15050 ## ------------------------------ ##
15051 ## Report this to bugs@yourdomain ##
15052 ## ------------------------------ ##
15054 ) | sed "s/^/$as_me: WARNING: /" >&2
15057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15060 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 eval "$as_ac_Header=\$ac_header_preproc"
15064 ac_res=`eval echo '${'$as_ac_Header'}'`
15065 { echo "$as_me:$LINENO: result: $ac_res" >&5
15066 echo "${ECHO_T}$ac_res" >&6; }
15069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15070 cat >>confdefs.h <<_ACEOF
15071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15079 for ac_header in valgrind/valgrind.h
15081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 ac_res=`eval echo '${'$as_ac_Header'}'`
15089 { echo "$as_me:$LINENO: result: $ac_res" >&5
15090 echo "${ECHO_T}$ac_res" >&6; }
15092 # Is the header compilable?
15093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15095 cat >conftest.$ac_ext <<_ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101 $ac_includes_default
15102 #include <$ac_header>
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_compile") 2>conftest.er1
15113 grep -v '^ *+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
15118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15119 { (case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_try") 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; } &&
15128 { ac_try='test -s conftest.$ac_objext'
15129 { (case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_try") 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_header_compiler=yes
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15143 ac_header_compiler=no
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15148 echo "${ECHO_T}$ac_header_compiler" >&6; }
15150 # Is the header present?
15151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15153 cat >conftest.$ac_ext <<_ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 #include <$ac_header>
15161 if { (ac_try="$ac_cpp conftest.$ac_ext"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } >/dev/null; then
15174 if test -s conftest.err; then
15175 ac_cpp_err=$ac_c_preproc_warn_flag
15176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15183 if test -z "$ac_cpp_err"; then
15184 ac_header_preproc=yes
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 ac_header_preproc=no
15192 rm -f conftest.err conftest.$ac_ext
15193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15194 echo "${ECHO_T}$ac_header_preproc" >&6; }
15196 # So? What about this header?
15197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15203 ac_header_preproc=yes
15206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15219 ## ------------------------------ ##
15220 ## Report this to bugs@yourdomain ##
15221 ## ------------------------------ ##
15223 ) | sed "s/^/$as_me: WARNING: /" >&2
15226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15229 echo $ECHO_N "(cached) $ECHO_C" >&6
15231 eval "$as_ac_Header=\$ac_header_preproc"
15233 ac_res=`eval echo '${'$as_ac_Header'}'`
15234 { echo "$as_me:$LINENO: result: $ac_res" >&5
15235 echo "${ECHO_T}$ac_res" >&6; }
15238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15239 cat >>confdefs.h <<_ACEOF
15240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15248 for ac_header in fenv.h
15250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 ac_res=`eval echo '${'$as_ac_Header'}'`
15258 { echo "$as_me:$LINENO: result: $ac_res" >&5
15259 echo "${ECHO_T}$ac_res" >&6; }
15261 # Is the header compilable?
15262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15264 cat >conftest.$ac_ext <<_ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15270 $ac_includes_default
15271 #include <$ac_header>
15273 rm -f conftest.$ac_objext
15274 if { (ac_try="$ac_compile"
15275 case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_compile") 2>conftest.er1
15282 grep -v '^ *+' conftest.er1 >conftest.err
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15288 { (case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_try") 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; } &&
15297 { ac_try='test -s conftest.$ac_objext'
15298 { (case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_try") 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_header_compiler=yes
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 ac_header_compiler=no
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15317 echo "${ECHO_T}$ac_header_compiler" >&6; }
15319 # Is the header present?
15320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15322 cat >conftest.$ac_ext <<_ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 #include <$ac_header>
15330 if { (ac_try="$ac_cpp conftest.$ac_ext"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15338 grep -v '^ *+' conftest.er1 >conftest.err
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } >/dev/null; then
15343 if test -s conftest.err; then
15344 ac_cpp_err=$ac_c_preproc_warn_flag
15345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15352 if test -z "$ac_cpp_err"; then
15353 ac_header_preproc=yes
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15358 ac_header_preproc=no
15361 rm -f conftest.err conftest.$ac_ext
15362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15363 echo "${ECHO_T}$ac_header_preproc" >&6; }
15365 # So? What about this header?
15366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15372 ac_header_preproc=yes
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15388 ## ------------------------------ ##
15389 ## Report this to bugs@yourdomain ##
15390 ## ------------------------------ ##
15392 ) | sed "s/^/$as_me: WARNING: /" >&2
15395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15400 eval "$as_ac_Header=\$ac_header_preproc"
15402 ac_res=`eval echo '${'$as_ac_Header'}'`
15403 { echo "$as_me:$LINENO: result: $ac_res" >&5
15404 echo "${ECHO_T}$ac_res" >&6; }
15407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15408 cat >>confdefs.h <<_ACEOF
15409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15416 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15418 for ac_header in pthread.h
15420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 ac_res=`eval echo '${'$as_ac_Header'}'`
15428 { echo "$as_me:$LINENO: result: $ac_res" >&5
15429 echo "${ECHO_T}$ac_res" >&6; }
15431 # Is the header compilable?
15432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15434 cat >conftest.$ac_ext <<_ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440 $ac_includes_default
15441 #include <$ac_header>
15443 rm -f conftest.$ac_objext
15444 if { (ac_try="$ac_compile"
15445 case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_compile") 2>conftest.er1
15452 grep -v '^ *+' conftest.er1 >conftest.err
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15458 { (case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_try") 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest.$ac_objext'
15468 { (case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_try") 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_header_compiler=yes
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_header_compiler=no
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15487 echo "${ECHO_T}$ac_header_compiler" >&6; }
15489 # Is the header present?
15490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15492 cat >conftest.$ac_ext <<_ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 #include <$ac_header>
15500 if { (ac_try="$ac_cpp conftest.$ac_ext"
15501 case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15508 grep -v '^ *+' conftest.er1 >conftest.err
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } >/dev/null; then
15513 if test -s conftest.err; then
15514 ac_cpp_err=$ac_c_preproc_warn_flag
15515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15522 if test -z "$ac_cpp_err"; then
15523 ac_header_preproc=yes
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 ac_header_preproc=no
15531 rm -f conftest.err conftest.$ac_ext
15532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15533 echo "${ECHO_T}$ac_header_preproc" >&6; }
15535 # So? What about this header?
15536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15542 ac_header_preproc=yes
15545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15558 ## ------------------------------ ##
15559 ## Report this to bugs@yourdomain ##
15560 ## ------------------------------ ##
15562 ) | sed "s/^/$as_me: WARNING: /" >&2
15565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 eval "$as_ac_Header=\$ac_header_preproc"
15572 ac_res=`eval echo '${'$as_ac_Header'}'`
15573 { echo "$as_me:$LINENO: result: $ac_res" >&5
15574 echo "${ECHO_T}$ac_res" >&6; }
15577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15578 cat >>confdefs.h <<_ACEOF
15579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15595 if test "$llvm_cv_enable_libffi" = "yes" ; then
15598 for ac_header in ffi.h ffi/ffi.h
15600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 ac_res=`eval echo '${'$as_ac_Header'}'`
15608 { echo "$as_me:$LINENO: result: $ac_res" >&5
15609 echo "${ECHO_T}$ac_res" >&6; }
15611 # Is the header compilable?
15612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15614 cat >conftest.$ac_ext <<_ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15620 $ac_includes_default
15621 #include <$ac_header>
15623 rm -f conftest.$ac_objext
15624 if { (ac_try="$ac_compile"
15625 case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_compile") 2>conftest.er1
15632 grep -v '^ *+' conftest.er1 >conftest.err
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638 { (case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_try") 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest.$ac_objext'
15648 { (case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_try") 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_header_compiler=yes
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ac_header_compiler=no
15665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15667 echo "${ECHO_T}$ac_header_compiler" >&6; }
15669 # Is the header present?
15670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15672 cat >conftest.$ac_ext <<_ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 #include <$ac_header>
15680 if { (ac_try="$ac_cpp conftest.$ac_ext"
15681 case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15688 grep -v '^ *+' conftest.er1 >conftest.err
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } >/dev/null; then
15693 if test -s conftest.err; then
15694 ac_cpp_err=$ac_c_preproc_warn_flag
15695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15702 if test -z "$ac_cpp_err"; then
15703 ac_header_preproc=yes
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_header_preproc=no
15711 rm -f conftest.err conftest.$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15713 echo "${ECHO_T}$ac_header_preproc" >&6; }
15715 # So? What about this header?
15716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15722 ac_header_preproc=yes
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15738 ## ------------------------------ ##
15739 ## Report this to bugs@yourdomain ##
15740 ## ------------------------------ ##
15742 ) | sed "s/^/$as_me: WARNING: /" >&2
15745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 eval "$as_ac_Header=\$ac_header_preproc"
15752 ac_res=`eval echo '${'$as_ac_Header'}'`
15753 { echo "$as_me:$LINENO: result: $ac_res" >&5
15754 echo "${ECHO_T}$ac_res" >&6; }
15757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15758 cat >>confdefs.h <<_ACEOF
15759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15769 for ac_header in CrashReporterClient.h
15771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 ac_res=`eval echo '${'$as_ac_Header'}'`
15779 { echo "$as_me:$LINENO: result: $ac_res" >&5
15780 echo "${ECHO_T}$ac_res" >&6; }
15782 # Is the header compilable?
15783 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15785 cat >conftest.$ac_ext <<_ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 $ac_includes_default
15792 #include <$ac_header>
15794 rm -f conftest.$ac_objext
15795 if { (ac_try="$ac_compile"
15796 case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_compile") 2>conftest.er1
15803 grep -v '^ *+' conftest.er1 >conftest.err
15805 cat conftest.err >&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
15808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15809 { (case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_try") 2>&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; } &&
15818 { ac_try='test -s conftest.$ac_objext'
15819 { (case "(($ac_try" in
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 (eval "$ac_try") 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; }; then
15828 ac_header_compiler=yes
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ac_header_compiler=no
15836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15838 echo "${ECHO_T}$ac_header_compiler" >&6; }
15840 # Is the header present?
15841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15843 cat >conftest.$ac_ext <<_ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 #include <$ac_header>
15851 if { (ac_try="$ac_cpp conftest.$ac_ext"
15852 case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15859 grep -v '^ *+' conftest.er1 >conftest.err
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } >/dev/null; then
15864 if test -s conftest.err; then
15865 ac_cpp_err=$ac_c_preproc_warn_flag
15866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15873 if test -z "$ac_cpp_err"; then
15874 ac_header_preproc=yes
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_header_preproc=no
15882 rm -f conftest.err conftest.$ac_ext
15883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15884 echo "${ECHO_T}$ac_header_preproc" >&6; }
15886 # So? What about this header?
15887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15893 ac_header_preproc=yes
15896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15909 ## ------------------------------ ##
15910 ## Report this to bugs@yourdomain ##
15911 ## ------------------------------ ##
15913 ) | sed "s/^/$as_me: WARNING: /" >&2
15916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 eval "$as_ac_Header=\$ac_header_preproc"
15923 ac_res=`eval echo '${'$as_ac_Header'}'`
15924 { echo "$as_me:$LINENO: result: $ac_res" >&5
15925 echo "${ECHO_T}$ac_res" >&6; }
15928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15929 cat >>confdefs.h <<_ACEOF
15930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15938 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15939 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15940 cat >conftest.$ac_ext <<_ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15946 extern const char *__crashreporter_info__;
15948 __crashreporter_info__ = "test";
15953 rm -f conftest.$ac_objext conftest$ac_exeext
15954 if { (ac_try="$ac_link"
15955 case "(($ac_try" in
15956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957 *) ac_try_echo=$ac_try;;
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960 (eval "$ac_link") 2>conftest.er1
15962 grep -v '^ *+' conftest.er1 >conftest.err
15964 cat conftest.err >&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } &&
15967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15968 { (case "(($ac_try" in
15969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_try") 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; } &&
15977 { ac_try='test -s conftest$ac_exeext'
15978 { (case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983 (eval "$ac_try") 2>&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; }; then
15987 { echo "$as_me:$LINENO: result: yes" >&5
15988 echo "${ECHO_T}yes" >&6; }
15990 cat >>confdefs.h <<\_ACEOF
15991 #define HAVE_CRASHREPORTER_INFO 1
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 { echo "$as_me:$LINENO: result: no" >&5
15999 echo "${ECHO_T}no" >&6; }
16001 cat >>confdefs.h <<\_ACEOF
16002 #define HAVE_CRASHREPORTER_INFO 0
16007 rm -f core conftest.err conftest.$ac_objext \
16008 conftest$ac_exeext conftest.$ac_ext
16013 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16014 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16015 if test "${ac_cv_huge_val_sanity+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 ac_cpp='$CXXCPP $CPPFLAGS'
16021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16025 ac_save_CXXFLAGS=$CXXFLAGS
16026 CXXFLAGS="$CXXFLAGS -pedantic"
16027 if test "$cross_compiling" = yes; then
16028 ac_cv_huge_val_sanity=yes
16030 cat >conftest.$ac_ext <<_ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16040 double x = HUGE_VAL; return x != x;
16045 rm -f conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_link") 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16056 { (case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_try") 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_cv_huge_val_sanity=yes
16067 echo "$as_me: program exited with status $ac_status" >&5
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16071 ( exit $ac_status )
16072 ac_cv_huge_val_sanity=no
16074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16078 CXXFLAGS=$ac_save_CXXFLAGS
16080 ac_cpp='$CPP $CPPFLAGS'
16081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16087 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16088 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16089 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16092 { echo "$as_me:$LINENO: checking for pid_t" >&5
16093 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16094 if test "${ac_cv_type_pid_t+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16097 cat >conftest.$ac_ext <<_ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16104 typedef pid_t ac__type_new_;
16108 if ((ac__type_new_ *) 0)
16110 if (sizeof (ac__type_new_))
16116 rm -f conftest.$ac_objext
16117 if { (ac_try="$ac_compile"
16118 case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_compile") 2>conftest.er1
16125 grep -v '^ *+' conftest.er1 >conftest.err
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
16130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16131 { (case "(($ac_try" in
16132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133 *) ac_try_echo=$ac_try;;
16135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136 (eval "$ac_try") 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; } &&
16140 { ac_try='test -s conftest.$ac_objext'
16141 { (case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16146 (eval "$ac_try") 2>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16150 ac_cv_type_pid_t=yes
16152 echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 ac_cv_type_pid_t=no
16158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16161 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16162 if test $ac_cv_type_pid_t = yes; then
16166 cat >>confdefs.h <<_ACEOF
16172 { echo "$as_me:$LINENO: checking for size_t" >&5
16173 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16174 if test "${ac_cv_type_size_t+set}" = set; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 cat >conftest.$ac_ext <<_ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h. */
16183 $ac_includes_default
16184 typedef size_t ac__type_new_;
16188 if ((ac__type_new_ *) 0)
16190 if (sizeof (ac__type_new_))
16196 rm -f conftest.$ac_objext
16197 if { (ac_try="$ac_compile"
16198 case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_compile") 2>conftest.er1
16205 grep -v '^ *+' conftest.er1 >conftest.err
16207 cat conftest.err >&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
16210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16211 { (case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_try") 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } &&
16220 { ac_try='test -s conftest.$ac_objext'
16221 { (case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_try") 2>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 ac_cv_type_size_t=yes
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 ac_cv_type_size_t=no
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16241 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16242 if test $ac_cv_type_size_t = yes; then
16246 cat >>confdefs.h <<_ACEOF
16247 #define size_t unsigned int
16253 cat >>confdefs.h <<_ACEOF
16254 #define RETSIGTYPE void
16257 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16258 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16259 if test "${ac_cv_struct_tm+set}" = set; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16262 cat >conftest.$ac_ext <<_ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16268 #include <sys/types.h>
16274 struct tm *tp; tp->tm_sec;
16279 rm -f conftest.$ac_objext
16280 if { (ac_try="$ac_compile"
16281 case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_compile") 2>conftest.er1
16288 grep -v '^ *+' conftest.er1 >conftest.err
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16294 { (case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_try") 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try='test -s conftest.$ac_objext'
16304 { (case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_try") 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_cv_struct_tm=time.h
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ac_cv_struct_tm=sys/time.h
16321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16324 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16325 if test $ac_cv_struct_tm = sys/time.h; then
16327 cat >>confdefs.h <<\_ACEOF
16328 #define TM_IN_SYS_TIME 1
16333 { echo "$as_me:$LINENO: checking for int64_t" >&5
16334 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16335 if test "${ac_cv_type_int64_t+set}" = set; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16338 cat >conftest.$ac_ext <<_ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 $ac_includes_default
16345 typedef int64_t ac__type_new_;
16349 if ((ac__type_new_ *) 0)
16351 if (sizeof (ac__type_new_))
16357 rm -f conftest.$ac_objext
16358 if { (ac_try="$ac_compile"
16359 case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_compile") 2>conftest.er1
16366 grep -v '^ *+' conftest.er1 >conftest.err
16368 cat conftest.err >&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } &&
16371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16372 { (case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_try") 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_try") 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_cv_type_int64_t=yes
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 ac_cv_type_int64_t=no
16399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16402 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16403 if test $ac_cv_type_int64_t = yes; then
16405 cat >>confdefs.h <<_ACEOF
16406 #define HAVE_INT64_T 1
16411 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16412 echo "$as_me: error: Type int64_t required but not found" >&2;}
16413 { (exit 1); exit 1; }; }
16416 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16417 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16418 if test "${ac_cv_type_uint64_t+set}" = set; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 cat >conftest.$ac_ext <<_ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16427 $ac_includes_default
16428 typedef uint64_t ac__type_new_;
16432 if ((ac__type_new_ *) 0)
16434 if (sizeof (ac__type_new_))
16440 rm -f conftest.$ac_objext
16441 if { (ac_try="$ac_compile"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_compile") 2>conftest.er1
16449 grep -v '^ *+' conftest.er1 >conftest.err
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
16454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455 { (case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_try") 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest.$ac_objext'
16465 { (case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_try") 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_cv_type_uint64_t=yes
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_cv_type_uint64_t=no
16482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16484 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16485 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16486 if test $ac_cv_type_uint64_t = yes; then
16488 cat >>confdefs.h <<_ACEOF
16489 #define HAVE_UINT64_T 1
16494 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16495 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16496 if test "${ac_cv_type_u_int64_t+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 cat >conftest.$ac_ext <<_ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h. */
16505 $ac_includes_default
16506 typedef u_int64_t ac__type_new_;
16510 if ((ac__type_new_ *) 0)
16512 if (sizeof (ac__type_new_))
16518 rm -f conftest.$ac_objext
16519 if { (ac_try="$ac_compile"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_compile") 2>conftest.er1
16527 grep -v '^ *+' conftest.er1 >conftest.err
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } &&
16532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16533 { (case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_try") 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest.$ac_objext'
16543 { (case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548 (eval "$ac_try") 2>&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; }; then
16552 ac_cv_type_u_int64_t=yes
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 ac_cv_type_u_int64_t=no
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16562 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16563 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16564 if test $ac_cv_type_u_int64_t = yes; then
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_U_INT64_T 1
16572 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16573 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16574 { (exit 1); exit 1; }; }
16588 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16596 cat >conftest.$ac_ext <<_ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16604 #define $ac_func innocuous_$ac_func
16606 /* System header to define __stub macros and hopefully few prototypes,
16607 which can conflict with char $ac_func (); below.
16608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16609 <limits.h> exists even on freestanding compilers. */
16612 # include <limits.h>
16614 # include <assert.h>
16619 /* Override any GCC internal prototype to avoid an error.
16620 Use char because int might match the return type of a GCC
16621 builtin and then its argument prototype would still apply. */
16626 /* The GNU C library defines this for functions which it implements
16627 to always fail with ENOSYS. Some functions are actually named
16628 something starting with __ and the normal name is an alias. */
16629 #if defined __stub_$ac_func || defined __stub___$ac_func
16636 return $ac_func ();
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (ac_try="$ac_link"
16643 case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_link") 2>conftest.er1
16650 grep -v '^ *+' conftest.er1 >conftest.err
16652 cat conftest.err >&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; } &&
16665 { ac_try='test -s conftest$ac_exeext'
16666 { (case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_try") 2>&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16675 eval "$as_ac_var=yes"
16677 echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.$ac_ext >&5
16680 eval "$as_ac_var=no"
16683 rm -f core conftest.err conftest.$ac_objext \
16684 conftest$ac_exeext conftest.$ac_ext
16686 ac_res=`eval echo '${'$as_ac_var'}'`
16687 { echo "$as_me:$LINENO: result: $ac_res" >&5
16688 echo "${ECHO_T}$ac_res" >&6; }
16689 if test `eval echo '${'$as_ac_var'}'` = yes; then
16690 cat >>confdefs.h <<_ACEOF
16691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16701 for ac_func in powf fmodf strtof round
16703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 cat >conftest.$ac_ext <<_ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16717 #define $ac_func innocuous_$ac_func
16719 /* System header to define __stub macros and hopefully few prototypes,
16720 which can conflict with char $ac_func (); below.
16721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16722 <limits.h> exists even on freestanding compilers. */
16725 # include <limits.h>
16727 # include <assert.h>
16732 /* Override any GCC internal prototype to avoid an error.
16733 Use char because int might match the return type of a GCC
16734 builtin and then its argument prototype would still apply. */
16739 /* The GNU C library defines this for functions which it implements
16740 to always fail with ENOSYS. Some functions are actually named
16741 something starting with __ and the normal name is an alias. */
16742 #if defined __stub_$ac_func || defined __stub___$ac_func
16749 return $ac_func ();
16754 rm -f conftest.$ac_objext conftest$ac_exeext
16755 if { (ac_try="$ac_link"
16756 case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761 (eval "$ac_link") 2>conftest.er1
16763 grep -v '^ *+' conftest.er1 >conftest.err
16765 cat conftest.err >&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } &&
16768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16769 { (case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_try") 2>&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; } &&
16778 { ac_try='test -s conftest$ac_exeext'
16779 { (case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_try") 2>&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16788 eval "$as_ac_var=yes"
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16793 eval "$as_ac_var=no"
16796 rm -f core conftest.err conftest.$ac_objext \
16797 conftest$ac_exeext conftest.$ac_ext
16799 ac_res=`eval echo '${'$as_ac_var'}'`
16800 { echo "$as_me:$LINENO: result: $ac_res" >&5
16801 echo "${ECHO_T}$ac_res" >&6; }
16802 if test `eval echo '${'$as_ac_var'}'` = yes; then
16803 cat >>confdefs.h <<_ACEOF
16804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16815 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16823 cat >conftest.$ac_ext <<_ACEOF
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h. */
16829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16831 #define $ac_func innocuous_$ac_func
16833 /* System header to define __stub macros and hopefully few prototypes,
16834 which can conflict with char $ac_func (); below.
16835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16836 <limits.h> exists even on freestanding compilers. */
16839 # include <limits.h>
16841 # include <assert.h>
16846 /* Override any GCC internal prototype to avoid an error.
16847 Use char because int might match the return type of a GCC
16848 builtin and then its argument prototype would still apply. */
16853 /* The GNU C library defines this for functions which it implements
16854 to always fail with ENOSYS. Some functions are actually named
16855 something starting with __ and the normal name is an alias. */
16856 #if defined __stub_$ac_func || defined __stub___$ac_func
16863 return $ac_func ();
16868 rm -f conftest.$ac_objext conftest$ac_exeext
16869 if { (ac_try="$ac_link"
16870 case "(($ac_try" in
16871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872 *) ac_try_echo=$ac_try;;
16874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875 (eval "$ac_link") 2>conftest.er1
16877 grep -v '^ *+' conftest.er1 >conftest.err
16879 cat conftest.err >&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16883 { (case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_try") 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; } &&
16892 { ac_try='test -s conftest$ac_exeext'
16893 { (case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_try") 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; }; then
16902 eval "$as_ac_var=yes"
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16907 eval "$as_ac_var=no"
16910 rm -f core conftest.err conftest.$ac_objext \
16911 conftest$ac_exeext conftest.$ac_ext
16913 ac_res=`eval echo '${'$as_ac_var'}'`
16914 { echo "$as_me:$LINENO: result: $ac_res" >&5
16915 echo "${ECHO_T}$ac_res" >&6; }
16916 if test `eval echo '${'$as_ac_var'}'` = yes; then
16917 cat >>confdefs.h <<_ACEOF
16918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16927 for ac_func in isatty mkdtemp mkstemp
16929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 cat >conftest.$ac_ext <<_ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16943 #define $ac_func innocuous_$ac_func
16945 /* System header to define __stub macros and hopefully few prototypes,
16946 which can conflict with char $ac_func (); below.
16947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16948 <limits.h> exists even on freestanding compilers. */
16951 # include <limits.h>
16953 # include <assert.h>
16958 /* Override any GCC internal prototype to avoid an error.
16959 Use char because int might match the return type of a GCC
16960 builtin and then its argument prototype would still apply. */
16965 /* The GNU C library defines this for functions which it implements
16966 to always fail with ENOSYS. Some functions are actually named
16967 something starting with __ and the normal name is an alias. */
16968 #if defined __stub_$ac_func || defined __stub___$ac_func
16975 return $ac_func ();
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (ac_try="$ac_link"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_link") 2>conftest.er1
16989 grep -v '^ *+' conftest.er1 >conftest.err
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest$ac_exeext'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 eval "$as_ac_var=yes"
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 eval "$as_ac_var=no"
17022 rm -f core conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext conftest.$ac_ext
17025 ac_res=`eval echo '${'$as_ac_var'}'`
17026 { echo "$as_me:$LINENO: result: $ac_res" >&5
17027 echo "${ECHO_T}$ac_res" >&6; }
17028 if test `eval echo '${'$as_ac_var'}'` = yes; then
17029 cat >>confdefs.h <<_ACEOF
17030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17042 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17050 cat >conftest.$ac_ext <<_ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17058 #define $ac_func innocuous_$ac_func
17060 /* System header to define __stub macros and hopefully few prototypes,
17061 which can conflict with char $ac_func (); below.
17062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17063 <limits.h> exists even on freestanding compilers. */
17066 # include <limits.h>
17068 # include <assert.h>
17073 /* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17080 /* The GNU C library defines this for functions which it implements
17081 to always fail with ENOSYS. Some functions are actually named
17082 something starting with __ and the normal name is an alias. */
17083 #if defined __stub_$ac_func || defined __stub___$ac_func
17090 return $ac_func ();
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (ac_try="$ac_link"
17097 case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_link") 2>conftest.er1
17104 grep -v '^ *+' conftest.er1 >conftest.err
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } &&
17109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17110 { (case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_try") 2>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; } &&
17119 { ac_try='test -s conftest$ac_exeext'
17120 { (case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_try") 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 eval "$as_ac_var=yes"
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 eval "$as_ac_var=no"
17137 rm -f core conftest.err conftest.$ac_objext \
17138 conftest$ac_exeext conftest.$ac_ext
17140 ac_res=`eval echo '${'$as_ac_var'}'`
17141 { echo "$as_me:$LINENO: result: $ac_res" >&5
17142 echo "${ECHO_T}$ac_res" >&6; }
17143 if test `eval echo '${'$as_ac_var'}'` = yes; then
17144 cat >>confdefs.h <<_ACEOF
17145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17154 for ac_func in strerror strerror_r setenv
17156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 cat >conftest.$ac_ext <<_ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17170 #define $ac_func innocuous_$ac_func
17172 /* System header to define __stub macros and hopefully few prototypes,
17173 which can conflict with char $ac_func (); below.
17174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17175 <limits.h> exists even on freestanding compilers. */
17178 # include <limits.h>
17180 # include <assert.h>
17185 /* Override any GCC internal prototype to avoid an error.
17186 Use char because int might match the return type of a GCC
17187 builtin and then its argument prototype would still apply. */
17192 /* The GNU C library defines this for functions which it implements
17193 to always fail with ENOSYS. Some functions are actually named
17194 something starting with __ and the normal name is an alias. */
17195 #if defined __stub_$ac_func || defined __stub___$ac_func
17202 return $ac_func ();
17207 rm -f conftest.$ac_objext conftest$ac_exeext
17208 if { (ac_try="$ac_link"
17209 case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_link") 2>conftest.er1
17216 grep -v '^ *+' conftest.er1 >conftest.err
17218 cat conftest.err >&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } &&
17221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17222 { (case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_try") 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; } &&
17231 { ac_try='test -s conftest$ac_exeext'
17232 { (case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_try") 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 eval "$as_ac_var=yes"
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 eval "$as_ac_var=no"
17249 rm -f core conftest.err conftest.$ac_objext \
17250 conftest$ac_exeext conftest.$ac_ext
17252 ac_res=`eval echo '${'$as_ac_var'}'`
17253 { echo "$as_me:$LINENO: result: $ac_res" >&5
17254 echo "${ECHO_T}$ac_res" >&6; }
17255 if test `eval echo '${'$as_ac_var'}'` = yes; then
17256 cat >>confdefs.h <<_ACEOF
17257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17267 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283 #define $ac_func innocuous_$ac_func
17285 /* System header to define __stub macros and hopefully few prototypes,
17286 which can conflict with char $ac_func (); below.
17287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288 <limits.h> exists even on freestanding compilers. */
17291 # include <limits.h>
17293 # include <assert.h>
17298 /* Override any GCC internal prototype to avoid an error.
17299 Use char because int might match the return type of a GCC
17300 builtin and then its argument prototype would still apply. */
17305 /* The GNU C library defines this for functions which it implements
17306 to always fail with ENOSYS. Some functions are actually named
17307 something starting with __ and the normal name is an alias. */
17308 #if defined __stub_$ac_func || defined __stub___$ac_func
17315 return $ac_func ();
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17329 grep -v '^ *+' conftest.er1 >conftest.err
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
17334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17335 { (case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_try") 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest$ac_exeext'
17345 { (case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_try") 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 eval "$as_ac_var=yes"
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 eval "$as_ac_var=no"
17362 rm -f core conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17365 ac_res=`eval echo '${'$as_ac_var'}'`
17366 { echo "$as_me:$LINENO: result: $ac_res" >&5
17367 echo "${ECHO_T}$ac_res" >&6; }
17368 if test `eval echo '${'$as_ac_var'}'` = yes; then
17369 cat >>confdefs.h <<_ACEOF
17370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17381 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 cat >conftest.$ac_ext <<_ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17397 #define $ac_func innocuous_$ac_func
17399 /* System header to define __stub macros and hopefully few prototypes,
17400 which can conflict with char $ac_func (); below.
17401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17402 <limits.h> exists even on freestanding compilers. */
17405 # include <limits.h>
17407 # include <assert.h>
17412 /* Override any GCC internal prototype to avoid an error.
17413 Use char because int might match the return type of a GCC
17414 builtin and then its argument prototype would still apply. */
17419 /* The GNU C library defines this for functions which it implements
17420 to always fail with ENOSYS. Some functions are actually named
17421 something starting with __ and the normal name is an alias. */
17422 #if defined __stub_$ac_func || defined __stub___$ac_func
17429 return $ac_func ();
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_link") 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
17448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17449 { (case "(($ac_try" in
17450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451 *) ac_try_echo=$ac_try;;
17453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454 (eval "$ac_try") 2>&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest$ac_exeext'
17459 { (case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_try") 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 eval "$as_ac_var=yes"
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 eval "$as_ac_var=no"
17476 rm -f core conftest.err conftest.$ac_objext \
17477 conftest$ac_exeext conftest.$ac_ext
17479 ac_res=`eval echo '${'$as_ac_var'}'`
17480 { echo "$as_me:$LINENO: result: $ac_res" >&5
17481 echo "${ECHO_T}$ac_res" >&6; }
17482 if test `eval echo '${'$as_ac_var'}'` = yes; then
17483 cat >>confdefs.h <<_ACEOF
17484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17490 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17491 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17492 if test "${llvm_cv_c_printf_a+set}" = set; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 ac_cpp='$CPP $CPPFLAGS'
17497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17501 if test "$cross_compiling" = yes; then
17502 llvmac_cv_c_printf_a=no
17504 cat >conftest.$ac_ext <<_ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17513 #include <stdlib.h>
17519 volatile double A, B;
17523 sprintf(Buffer, "%a", A);
17527 if (A != 0x1.999999999999ap-4)
17534 rm -f conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_link") 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17545 { (case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_try") 2>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; }; then
17554 llvm_cv_c_printf_a=yes
17556 echo "$as_me: program exited with status $ac_status" >&5
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ( exit $ac_status )
17561 llvmac_cv_c_printf_a=no
17563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17568 ac_cpp='$CPP $CPPFLAGS'
17569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17574 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17575 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17576 if test "$llvm_cv_c_printf_a" = "yes"; then
17578 cat >>confdefs.h <<\_ACEOF
17579 #define HAVE_PRINTF_A 1
17585 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17586 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17587 if test "${ac_cv_func_rand48+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 ac_cpp='$CXXCPP $CPPFLAGS'
17592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17596 cat >conftest.$ac_ext <<_ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 #include <stdlib.h>
17606 srand48(0);lrand48();drand48();
17611 rm -f conftest.$ac_objext
17612 if { (ac_try="$ac_compile"
17613 case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_compile") 2>conftest.er1
17620 grep -v '^ *+' conftest.er1 >conftest.err
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17626 { (case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_try") 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; } &&
17635 { ac_try='test -s conftest.$ac_objext'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 ac_cv_func_rand48=yes
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17650 ac_cv_func_rand48=no
17653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655 ac_cpp='$CPP $CPPFLAGS'
17656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17661 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17662 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17664 if test "$ac_cv_func_rand48" = "yes" ; then
17666 cat >>confdefs.h <<\_ACEOF
17667 #define HAVE_RAND48 1
17673 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17674 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17675 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 cat >conftest.$ac_ext <<_ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 $ac_includes_default
17689 char *p = (char *) strerror_s;
17697 rm -f conftest.$ac_objext
17698 if { (ac_try="$ac_compile"
17699 case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_compile") 2>conftest.er1
17706 grep -v '^ *+' conftest.er1 >conftest.err
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_try") 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest.$ac_objext'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 ac_cv_have_decl_strerror_s=yes
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 ac_cv_have_decl_strerror_s=no
17739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17742 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17743 if test $ac_cv_have_decl_strerror_s = yes; then
17745 cat >>confdefs.h <<_ACEOF
17746 #define HAVE_DECL_STRERROR_S 1
17751 cat >>confdefs.h <<_ACEOF
17752 #define HAVE_DECL_STRERROR_S 0
17760 if test "$llvm_cv_os_type" = "MingW" ; then
17761 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17762 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17763 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 ac_check_lib_save_LIBS=$LIBS
17768 cat >conftest.$ac_ext <<_ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17775 /* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17790 rm -f conftest.$ac_objext conftest$ac_exeext
17791 if { (ac_try="$ac_link"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_link") 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest$ac_exeext'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_cv_lib_gcc__alloca=yes
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17829 ac_cv_lib_gcc__alloca=no
17832 rm -f core conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
17834 LIBS=$ac_check_lib_save_LIBS
17836 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17837 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17838 if test $ac_cv_lib_gcc__alloca = yes; then
17840 cat >>confdefs.h <<\_ACEOF
17841 #define HAVE__ALLOCA 1
17846 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17847 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17848 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 ac_check_lib_save_LIBS=$LIBS
17853 cat >conftest.$ac_ext <<_ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17860 /* Override any GCC internal prototype to avoid an error.
17861 Use char because int might match the return type of a GCC
17862 builtin and then its argument prototype would still apply. */
17870 return __alloca ();
17875 rm -f conftest.$ac_objext conftest$ac_exeext
17876 if { (ac_try="$ac_link"
17877 case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_link") 2>conftest.er1
17884 grep -v '^ *+' conftest.er1 >conftest.err
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
17889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17890 { (case "(($ac_try" in
17891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892 *) ac_try_echo=$ac_try;;
17894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17895 (eval "$ac_try") 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; } &&
17899 { ac_try='test -s conftest$ac_exeext'
17900 { (case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_try") 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 ac_cv_lib_gcc___alloca=yes
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17914 ac_cv_lib_gcc___alloca=no
17917 rm -f core conftest.err conftest.$ac_objext \
17918 conftest$ac_exeext conftest.$ac_ext
17919 LIBS=$ac_check_lib_save_LIBS
17921 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17922 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17923 if test $ac_cv_lib_gcc___alloca = yes; then
17925 cat >>confdefs.h <<\_ACEOF
17926 #define HAVE___ALLOCA 1
17931 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17932 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17933 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 ac_check_lib_save_LIBS=$LIBS
17938 cat >conftest.$ac_ext <<_ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17945 /* Override any GCC internal prototype to avoid an error.
17946 Use char because int might match the return type of a GCC
17947 builtin and then its argument prototype would still apply. */
17955 return __chkstk ();
17960 rm -f conftest.$ac_objext conftest$ac_exeext
17961 if { (ac_try="$ac_link"
17962 case "(($ac_try" in
17963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964 *) ac_try_echo=$ac_try;;
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967 (eval "$ac_link") 2>conftest.er1
17969 grep -v '^ *+' conftest.er1 >conftest.err
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } &&
17974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17975 { (case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980 (eval "$ac_try") 2>&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; } &&
17984 { ac_try='test -s conftest$ac_exeext'
17985 { (case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_try") 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; }; then
17994 ac_cv_lib_gcc___chkstk=yes
17996 echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 ac_cv_lib_gcc___chkstk=no
18002 rm -f core conftest.err conftest.$ac_objext \
18003 conftest$ac_exeext conftest.$ac_ext
18004 LIBS=$ac_check_lib_save_LIBS
18006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18007 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18008 if test $ac_cv_lib_gcc___chkstk = yes; then
18010 cat >>confdefs.h <<\_ACEOF
18011 #define HAVE___CHKSTK 1
18016 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18017 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18018 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18019 echo $ECHO_N "(cached) $ECHO_C" >&6
18021 ac_check_lib_save_LIBS=$LIBS
18023 cat >conftest.$ac_ext <<_ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18030 /* Override any GCC internal prototype to avoid an error.
18031 Use char because int might match the return type of a GCC
18032 builtin and then its argument prototype would still apply. */
18040 return ___chkstk ();
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (ac_try="$ac_link"
18047 case "(($ac_try" in
18048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_link") 2>conftest.er1
18054 grep -v '^ *+' conftest.er1 >conftest.err
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18060 { (case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_try") 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try='test -s conftest$ac_exeext'
18070 { (case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_try") 2>&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_cv_lib_gcc____chkstk=yes
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 ac_cv_lib_gcc____chkstk=no
18087 rm -f core conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18089 LIBS=$ac_check_lib_save_LIBS
18091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18092 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18093 if test $ac_cv_lib_gcc____chkstk = yes; then
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE____CHKSTK 1
18102 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18103 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18104 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 ac_check_lib_save_LIBS=$LIBS
18109 cat >conftest.$ac_ext <<_ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18116 /* Override any GCC internal prototype to avoid an error.
18117 Use char because int might match the return type of a GCC
18118 builtin and then its argument prototype would still apply. */
18126 return __ashldi3 ();
18131 rm -f conftest.$ac_objext conftest$ac_exeext
18132 if { (ac_try="$ac_link"
18133 case "(($ac_try" in
18134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18135 *) ac_try_echo=$ac_try;;
18137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18138 (eval "$ac_link") 2>conftest.er1
18140 grep -v '^ *+' conftest.er1 >conftest.err
18142 cat conftest.err >&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } &&
18145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18146 { (case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_try") 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try='test -s conftest$ac_exeext'
18156 { (case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_try") 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 ac_cv_lib_gcc___ashldi3=yes
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 ac_cv_lib_gcc___ashldi3=no
18173 rm -f core conftest.err conftest.$ac_objext \
18174 conftest$ac_exeext conftest.$ac_ext
18175 LIBS=$ac_check_lib_save_LIBS
18177 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18178 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18179 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18181 cat >>confdefs.h <<\_ACEOF
18182 #define HAVE___ASHLDI3 1
18187 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18188 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18189 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 ac_check_lib_save_LIBS=$LIBS
18194 cat >conftest.$ac_ext <<_ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18201 /* Override any GCC internal prototype to avoid an error.
18202 Use char because int might match the return type of a GCC
18203 builtin and then its argument prototype would still apply. */
18211 return __ashrdi3 ();
18216 rm -f conftest.$ac_objext conftest$ac_exeext
18217 if { (ac_try="$ac_link"
18218 case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_link") 2>conftest.er1
18225 grep -v '^ *+' conftest.er1 >conftest.err
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18231 { (case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_try") 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try='test -s conftest$ac_exeext'
18241 { (case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_try") 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18250 ac_cv_lib_gcc___ashrdi3=yes
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18255 ac_cv_lib_gcc___ashrdi3=no
18258 rm -f core conftest.err conftest.$ac_objext \
18259 conftest$ac_exeext conftest.$ac_ext
18260 LIBS=$ac_check_lib_save_LIBS
18262 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18263 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18264 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18266 cat >>confdefs.h <<\_ACEOF
18267 #define HAVE___ASHRDI3 1
18272 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18273 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18274 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 ac_check_lib_save_LIBS=$LIBS
18279 cat >conftest.$ac_ext <<_ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18286 /* Override any GCC internal prototype to avoid an error.
18287 Use char because int might match the return type of a GCC
18288 builtin and then its argument prototype would still apply. */
18296 return __divdi3 ();
18301 rm -f conftest.$ac_objext conftest$ac_exeext
18302 if { (ac_try="$ac_link"
18303 case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_link") 2>conftest.er1
18310 grep -v '^ *+' conftest.er1 >conftest.err
18312 cat conftest.err >&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } &&
18315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18316 { (case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_try") 2>&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; } &&
18325 { ac_try='test -s conftest$ac_exeext'
18326 { (case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_try") 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 ac_cv_lib_gcc___divdi3=yes
18337 echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18340 ac_cv_lib_gcc___divdi3=no
18343 rm -f core conftest.err conftest.$ac_objext \
18344 conftest$ac_exeext conftest.$ac_ext
18345 LIBS=$ac_check_lib_save_LIBS
18347 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18348 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18349 if test $ac_cv_lib_gcc___divdi3 = yes; then
18351 cat >>confdefs.h <<\_ACEOF
18352 #define HAVE___DIVDI3 1
18357 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18358 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18359 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 ac_check_lib_save_LIBS=$LIBS
18364 cat >conftest.$ac_ext <<_ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18371 /* Override any GCC internal prototype to avoid an error.
18372 Use char because int might match the return type of a GCC
18373 builtin and then its argument prototype would still apply. */
18381 return __fixdfdi ();
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (ac_try="$ac_link"
18388 case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_link") 2>conftest.er1
18395 grep -v '^ *+' conftest.er1 >conftest.err
18397 cat conftest.err >&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
18400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18401 { (case "(($ac_try" in
18402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403 *) ac_try_echo=$ac_try;;
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406 (eval "$ac_try") 2>&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; } &&
18410 { ac_try='test -s conftest$ac_exeext'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; }; then
18420 ac_cv_lib_gcc___fixdfdi=yes
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18425 ac_cv_lib_gcc___fixdfdi=no
18428 rm -f core conftest.err conftest.$ac_objext \
18429 conftest$ac_exeext conftest.$ac_ext
18430 LIBS=$ac_check_lib_save_LIBS
18432 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18433 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18434 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18436 cat >>confdefs.h <<\_ACEOF
18437 #define HAVE___FIXDFDI 1
18442 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18443 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18444 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18445 echo $ECHO_N "(cached) $ECHO_C" >&6
18447 ac_check_lib_save_LIBS=$LIBS
18449 cat >conftest.$ac_ext <<_ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18456 /* Override any GCC internal prototype to avoid an error.
18457 Use char because int might match the return type of a GCC
18458 builtin and then its argument prototype would still apply. */
18466 return __fixsfdi ();
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (ac_try="$ac_link"
18473 case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478 (eval "$ac_link") 2>conftest.er1
18480 grep -v '^ *+' conftest.er1 >conftest.err
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } &&
18485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18486 { (case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_try") 2>&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest$ac_exeext'
18496 { (case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_try") 2>&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 ac_cv_lib_gcc___fixsfdi=yes
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18510 ac_cv_lib_gcc___fixsfdi=no
18513 rm -f core conftest.err conftest.$ac_objext \
18514 conftest$ac_exeext conftest.$ac_ext
18515 LIBS=$ac_check_lib_save_LIBS
18517 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18518 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18519 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18521 cat >>confdefs.h <<\_ACEOF
18522 #define HAVE___FIXSFDI 1
18527 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18528 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18529 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18532 ac_check_lib_save_LIBS=$LIBS
18534 cat >conftest.$ac_ext <<_ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h. */
18541 /* Override any GCC internal prototype to avoid an error.
18542 Use char because int might match the return type of a GCC
18543 builtin and then its argument prototype would still apply. */
18547 char __floatdidf ();
18551 return __floatdidf ();
18556 rm -f conftest.$ac_objext conftest$ac_exeext
18557 if { (ac_try="$ac_link"
18558 case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_link") 2>conftest.er1
18565 grep -v '^ *+' conftest.er1 >conftest.err
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } &&
18570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18571 { (case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_try") 2>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; } &&
18580 { ac_try='test -s conftest$ac_exeext'
18581 { (case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_try") 2>&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; }; then
18590 ac_cv_lib_gcc___floatdidf=yes
18592 echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18595 ac_cv_lib_gcc___floatdidf=no
18598 rm -f core conftest.err conftest.$ac_objext \
18599 conftest$ac_exeext conftest.$ac_ext
18600 LIBS=$ac_check_lib_save_LIBS
18602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18603 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18604 if test $ac_cv_lib_gcc___floatdidf = yes; then
18606 cat >>confdefs.h <<\_ACEOF
18607 #define HAVE___FLOATDIDF 1
18612 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18613 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18614 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 ac_check_lib_save_LIBS=$LIBS
18619 cat >conftest.$ac_ext <<_ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18626 /* Override any GCC internal prototype to avoid an error.
18627 Use char because int might match the return type of a GCC
18628 builtin and then its argument prototype would still apply. */
18636 return __lshrdi3 ();
18641 rm -f conftest.$ac_objext conftest$ac_exeext
18642 if { (ac_try="$ac_link"
18643 case "(($ac_try" in
18644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645 *) ac_try_echo=$ac_try;;
18647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648 (eval "$ac_link") 2>conftest.er1
18650 grep -v '^ *+' conftest.er1 >conftest.err
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18656 { (case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_try") 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; } &&
18665 { ac_try='test -s conftest$ac_exeext'
18666 { (case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_try") 2>&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; }; then
18675 ac_cv_lib_gcc___lshrdi3=yes
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 ac_cv_lib_gcc___lshrdi3=no
18683 rm -f core conftest.err conftest.$ac_objext \
18684 conftest$ac_exeext conftest.$ac_ext
18685 LIBS=$ac_check_lib_save_LIBS
18687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18688 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18689 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE___LSHRDI3 1
18697 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18698 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18699 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 ac_check_lib_save_LIBS=$LIBS
18704 cat >conftest.$ac_ext <<_ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h. */
18711 /* Override any GCC internal prototype to avoid an error.
18712 Use char because int might match the return type of a GCC
18713 builtin and then its argument prototype would still apply. */
18721 return __moddi3 ();
18726 rm -f conftest.$ac_objext conftest$ac_exeext
18727 if { (ac_try="$ac_link"
18728 case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_link") 2>conftest.er1
18735 grep -v '^ *+' conftest.er1 >conftest.err
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
18740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18741 { (case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_try") 2>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; } &&
18750 { ac_try='test -s conftest$ac_exeext'
18751 { (case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_try") 2>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; }; then
18760 ac_cv_lib_gcc___moddi3=yes
18762 echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18765 ac_cv_lib_gcc___moddi3=no
18768 rm -f core conftest.err conftest.$ac_objext \
18769 conftest$ac_exeext conftest.$ac_ext
18770 LIBS=$ac_check_lib_save_LIBS
18772 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18773 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18774 if test $ac_cv_lib_gcc___moddi3 = yes; then
18776 cat >>confdefs.h <<\_ACEOF
18777 #define HAVE___MODDI3 1
18782 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18783 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18784 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 ac_check_lib_save_LIBS=$LIBS
18789 cat >conftest.$ac_ext <<_ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18796 /* Override any GCC internal prototype to avoid an error.
18797 Use char because int might match the return type of a GCC
18798 builtin and then its argument prototype would still apply. */
18806 return __udivdi3 ();
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (ac_try="$ac_link"
18813 case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818 (eval "$ac_link") 2>conftest.er1
18820 grep -v '^ *+' conftest.er1 >conftest.err
18822 cat conftest.err >&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18826 { (case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_try") 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest$ac_exeext'
18836 { (case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_try") 2>&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; }; then
18845 ac_cv_lib_gcc___udivdi3=yes
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18850 ac_cv_lib_gcc___udivdi3=no
18853 rm -f core conftest.err conftest.$ac_objext \
18854 conftest$ac_exeext conftest.$ac_ext
18855 LIBS=$ac_check_lib_save_LIBS
18857 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18858 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18859 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18861 cat >>confdefs.h <<\_ACEOF
18862 #define HAVE___UDIVDI3 1
18867 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18868 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18869 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 ac_check_lib_save_LIBS=$LIBS
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18881 /* Override any GCC internal prototype to avoid an error.
18882 Use char because int might match the return type of a GCC
18883 builtin and then its argument prototype would still apply. */
18891 return __umoddi3 ();
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_link") 2>conftest.er1
18905 grep -v '^ *+' conftest.er1 >conftest.err
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } &&
18910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18911 { (case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_try") 2>&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest$ac_exeext'
18921 { (case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_try") 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 ac_cv_lib_gcc___umoddi3=yes
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 ac_cv_lib_gcc___umoddi3=no
18938 rm -f core conftest.err conftest.$ac_objext \
18939 conftest$ac_exeext conftest.$ac_ext
18940 LIBS=$ac_check_lib_save_LIBS
18942 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18943 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18944 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18946 cat >>confdefs.h <<\_ACEOF
18947 #define HAVE___UMODDI3 1
18953 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18954 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18955 if test "${ac_cv_lib_gcc___main+set}" = set; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 ac_check_lib_save_LIBS=$LIBS
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18967 /* Override any GCC internal prototype to avoid an error.
18968 Use char because int might match the return type of a GCC
18969 builtin and then its argument prototype would still apply. */
18982 rm -f conftest.$ac_objext conftest$ac_exeext
18983 if { (ac_try="$ac_link"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_link") 2>conftest.er1
18991 grep -v '^ *+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18997 { (case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_try") 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; } &&
19006 { ac_try='test -s conftest$ac_exeext'
19007 { (case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_try") 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19016 ac_cv_lib_gcc___main=yes
19018 echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19021 ac_cv_lib_gcc___main=no
19024 rm -f core conftest.err conftest.$ac_objext \
19025 conftest$ac_exeext conftest.$ac_ext
19026 LIBS=$ac_check_lib_save_LIBS
19028 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19029 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19030 if test $ac_cv_lib_gcc___main = yes; then
19032 cat >>confdefs.h <<\_ACEOF
19033 #define HAVE___MAIN 1
19038 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19039 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19040 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19043 ac_check_lib_save_LIBS=$LIBS
19045 cat >conftest.$ac_ext <<_ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19052 /* Override any GCC internal prototype to avoid an error.
19053 Use char because int might match the return type of a GCC
19054 builtin and then its argument prototype would still apply. */
19062 return __cmpdi2 ();
19067 rm -f conftest.$ac_objext conftest$ac_exeext
19068 if { (ac_try="$ac_link"
19069 case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_link") 2>conftest.er1
19076 grep -v '^ *+' conftest.er1 >conftest.err
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
19081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19082 { (case "(($ac_try" in
19083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084 *) ac_try_echo=$ac_try;;
19086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19087 (eval "$ac_try") 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest$ac_exeext'
19092 { (case "(($ac_try" in
19093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097 (eval "$ac_try") 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_cv_lib_gcc___cmpdi2=yes
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106 ac_cv_lib_gcc___cmpdi2=no
19109 rm -f core conftest.err conftest.$ac_objext \
19110 conftest$ac_exeext conftest.$ac_ext
19111 LIBS=$ac_check_lib_save_LIBS
19113 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19114 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19115 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE___CMPDI2 1
19125 if test "$llvm_cv_os_type" = "MingW" ; then
19126 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19127 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19128 cat >conftest.$ac_ext <<_ACEOF
19129 #include <windows.h>
19130 #include <imagehlp.h>
19131 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19132 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19134 rm -f conftest.$ac_objext
19135 if { (ac_try="$ac_compile"
19136 case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_compile") 2>conftest.er1
19143 grep -v '^ *+' conftest.er1 >conftest.err
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19149 { (case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154 (eval "$ac_try") 2>&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; } &&
19158 { ac_try='test -s conftest.$ac_objext'
19159 { (case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164 (eval "$ac_try") 2>&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; }; then
19169 { echo "$as_me:$LINENO: result: yes" >&5
19170 echo "${ECHO_T}yes" >&6; }
19171 llvm_cv_win32_elmcb_pcstr="PCSTR"
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19178 { echo "$as_me:$LINENO: result: no" >&5
19179 echo "${ECHO_T}no" >&6; }
19180 llvm_cv_win32_elmcb_pcstr="PSTR"
19184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19186 cat >>confdefs.h <<_ACEOF
19187 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19193 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19194 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19195 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19199 ac_cpp='$CXXCPP $CPPFLAGS'
19200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19204 cat >conftest.$ac_ext <<_ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19219 rm -f conftest.$ac_objext
19220 if { (ac_try="$ac_compile"
19221 case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_compile") 2>conftest.er1
19228 grep -v '^ *+' conftest.er1 >conftest.err
19230 cat conftest.err >&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19234 { (case "(($ac_try" in
19235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236 *) ac_try_echo=$ac_try;;
19238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239 (eval "$ac_try") 2>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest.$ac_objext'
19244 { (case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_try") 2>&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19253 ac_cv_func_isnan_in_math_h=yes
19255 echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19258 ac_cv_func_isnan_in_math_h=no
19261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263 ac_cpp='$CPP $CPPFLAGS'
19264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19269 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19270 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19273 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE_ISNAN_IN_MATH_H 1
19281 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19282 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19283 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 ac_cpp='$CXXCPP $CPPFLAGS'
19288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19292 cat >conftest.$ac_ext <<_ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19307 rm -f conftest.$ac_objext
19308 if { (ac_try="$ac_compile"
19309 case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_compile") 2>conftest.er1
19316 grep -v '^ *+' conftest.er1 >conftest.err
19318 cat conftest.err >&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } &&
19321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19322 { (case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_try") 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; } &&
19331 { ac_try='test -s conftest.$ac_objext'
19332 { (case "(($ac_try" in
19333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334 *) ac_try_echo=$ac_try;;
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337 (eval "$ac_try") 2>&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; }; then
19341 ac_cv_func_isnan_in_cmath=yes
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19346 ac_cv_func_isnan_in_cmath=no
19349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19351 ac_cpp='$CPP $CPPFLAGS'
19352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19357 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19358 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19360 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19362 cat >>confdefs.h <<\_ACEOF
19363 #define HAVE_ISNAN_IN_CMATH 1
19368 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19369 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19370 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 ac_cpp='$CXXCPP $CPPFLAGS'
19375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19379 cat >conftest.$ac_ext <<_ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19389 float f; std::isnan(f);
19394 rm -f conftest.$ac_objext
19395 if { (ac_try="$ac_compile"
19396 case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_compile") 2>conftest.er1
19403 grep -v '^ *+' conftest.er1 >conftest.err
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
19408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19409 { (case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_try") 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; } &&
19418 { ac_try='test -s conftest.$ac_objext'
19419 { (case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_try") 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19428 ac_cv_func_std_isnan_in_cmath=yes
19430 echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19433 ac_cv_func_std_isnan_in_cmath=no
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438 ac_cpp='$CPP $CPPFLAGS'
19439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19444 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19445 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19447 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19449 cat >>confdefs.h <<\_ACEOF
19450 #define HAVE_STD_ISNAN_IN_CMATH 1
19456 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19457 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19458 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 ac_cpp='$CXXCPP $CPPFLAGS'
19463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19467 cat >conftest.$ac_ext <<_ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19482 rm -f conftest.$ac_objext
19483 if { (ac_try="$ac_compile"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_compile") 2>conftest.er1
19491 grep -v '^ *+' conftest.er1 >conftest.err
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19497 { (case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_try") 2>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest.$ac_objext'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 ac_cv_func_isinf_in_math_h=yes
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19521 ac_cv_func_isinf_in_math_h=no
19524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526 ac_cpp='$CPP $CPPFLAGS'
19527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19532 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19533 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19535 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE_ISINF_IN_MATH_H 1
19543 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19544 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19545 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 ac_cpp='$CXXCPP $CPPFLAGS'
19550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19569 rm -f conftest.$ac_objext
19570 if { (ac_try="$ac_compile"
19571 case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_compile") 2>conftest.er1
19578 grep -v '^ *+' conftest.er1 >conftest.err
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19584 { (case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_try") 2>&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; } &&
19593 { ac_try='test -s conftest.$ac_objext'
19594 { (case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_try") 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; }; then
19603 ac_cv_func_isinf_in_cmath=yes
19605 echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 ac_cv_func_isinf_in_cmath=no
19611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613 ac_cpp='$CPP $CPPFLAGS'
19614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19619 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19620 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19622 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19624 cat >>confdefs.h <<\_ACEOF
19625 #define HAVE_ISINF_IN_CMATH 1
19630 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19631 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19632 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19633 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 ac_cpp='$CXXCPP $CPPFLAGS'
19637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19641 cat >conftest.$ac_ext <<_ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19651 float f; std::isinf(f);
19656 rm -f conftest.$ac_objext
19657 if { (ac_try="$ac_compile"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_compile") 2>conftest.er1
19665 grep -v '^ *+' conftest.er1 >conftest.err
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19671 { (case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_try") 2>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; } &&
19680 { ac_try='test -s conftest.$ac_objext'
19681 { (case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_try") 2>&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 ac_cv_func_std_isinf_in_cmath=yes
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 ac_cv_func_std_isinf_in_cmath=no
19698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19700 ac_cpp='$CPP $CPPFLAGS'
19701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19706 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19707 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19709 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19711 cat >>confdefs.h <<\_ACEOF
19712 #define HAVE_STD_ISINF_IN_CMATH 1
19717 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19718 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19719 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 ac_cpp='$CXXCPP $CPPFLAGS'
19724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19728 cat >conftest.$ac_ext <<_ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19734 #include <ieeefp.h>
19738 float f; finite(f);
19743 rm -f conftest.$ac_objext
19744 if { (ac_try="$ac_compile"
19745 case "(($ac_try" in
19746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747 *) ac_try_echo=$ac_try;;
19749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19750 (eval "$ac_compile") 2>conftest.er1
19752 grep -v '^ *+' conftest.er1 >conftest.err
19754 cat conftest.err >&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } &&
19757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19758 { (case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_try") 2>&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; } &&
19767 { ac_try='test -s conftest.$ac_objext'
19768 { (case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_try") 2>&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; }; then
19777 ac_cv_func_finite_in_ieeefp_h=yes
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19782 ac_cv_func_finite_in_ieeefp_h=no
19785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787 ac_cpp='$CPP $CPPFLAGS'
19788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19793 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19794 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19796 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE_FINITE_IN_IEEEFP_H 1
19806 if test "$llvm_cv_platform_type" = "Unix" ; then
19809 for ac_header in stdlib.h unistd.h
19811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19818 ac_res=`eval echo '${'$as_ac_Header'}'`
19819 { echo "$as_me:$LINENO: result: $ac_res" >&5
19820 echo "${ECHO_T}$ac_res" >&6; }
19822 # Is the header compilable?
19823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19825 cat >conftest.$ac_ext <<_ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 $ac_includes_default
19832 #include <$ac_header>
19834 rm -f conftest.$ac_objext
19835 if { (ac_try="$ac_compile"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_compile") 2>conftest.er1
19843 grep -v '^ *+' conftest.er1 >conftest.err
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
19848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19849 { (case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_try") 2>&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; } &&
19858 { ac_try='test -s conftest.$ac_objext'
19859 { (case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_try") 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19868 ac_header_compiler=yes
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19873 ac_header_compiler=no
19876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19878 echo "${ECHO_T}$ac_header_compiler" >&6; }
19880 # Is the header present?
19881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19883 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 #include <$ac_header>
19891 if { (ac_try="$ac_cpp conftest.$ac_ext"
19892 case "(($ac_try" in
19893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894 *) ac_try_echo=$ac_try;;
19896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19899 grep -v '^ *+' conftest.er1 >conftest.err
19901 cat conftest.err >&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } >/dev/null; then
19904 if test -s conftest.err; then
19905 ac_cpp_err=$ac_c_preproc_warn_flag
19906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19913 if test -z "$ac_cpp_err"; then
19914 ac_header_preproc=yes
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_header_preproc=no
19922 rm -f conftest.err conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19924 echo "${ECHO_T}$ac_header_preproc" >&6; }
19926 # So? What about this header?
19927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19933 ac_header_preproc=yes
19936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19949 ## ------------------------------ ##
19950 ## Report this to bugs@yourdomain ##
19951 ## ------------------------------ ##
19953 ) | sed "s/^/$as_me: WARNING: /" >&2
19956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19959 echo $ECHO_N "(cached) $ECHO_C" >&6
19961 eval "$as_ac_Header=\$ac_header_preproc"
19963 ac_res=`eval echo '${'$as_ac_Header'}'`
19964 { echo "$as_me:$LINENO: result: $ac_res" >&5
19965 echo "${ECHO_T}$ac_res" >&6; }
19968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19969 cat >>confdefs.h <<_ACEOF
19970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19978 for ac_func in getpagesize
19980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19994 #define $ac_func innocuous_$ac_func
19996 /* System header to define __stub macros and hopefully few prototypes,
19997 which can conflict with char $ac_func (); below.
19998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19999 <limits.h> exists even on freestanding compilers. */
20002 # include <limits.h>
20004 # include <assert.h>
20009 /* Override any GCC internal prototype to avoid an error.
20010 Use char because int might match the return type of a GCC
20011 builtin and then its argument prototype would still apply. */
20016 /* The GNU C library defines this for functions which it implements
20017 to always fail with ENOSYS. Some functions are actually named
20018 something starting with __ and the normal name is an alias. */
20019 #if defined __stub_$ac_func || defined __stub___$ac_func
20026 return $ac_func ();
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (ac_try="$ac_link"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_link") 2>conftest.er1
20040 grep -v '^ *+' conftest.er1 >conftest.err
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20046 { (case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_try") 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest$ac_exeext'
20056 { (case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_try") 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 eval "$as_ac_var=yes"
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20070 eval "$as_ac_var=no"
20073 rm -f core conftest.err conftest.$ac_objext \
20074 conftest$ac_exeext conftest.$ac_ext
20076 ac_res=`eval echo '${'$as_ac_var'}'`
20077 { echo "$as_me:$LINENO: result: $ac_res" >&5
20078 echo "${ECHO_T}$ac_res" >&6; }
20079 if test `eval echo '${'$as_ac_var'}'` = yes; then
20080 cat >>confdefs.h <<_ACEOF
20081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20087 { echo "$as_me:$LINENO: checking for working mmap" >&5
20088 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20089 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 if test "$cross_compiling" = yes; then
20093 ac_cv_func_mmap_fixed_mapped=no
20095 cat >conftest.$ac_ext <<_ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 $ac_includes_default
20102 /* malloc might have been renamed as rpl_malloc. */
20105 /* Thanks to Mike Haertel and Jim Avera for this test.
20106 Here is a matrix of mmap possibilities:
20107 mmap private not fixed
20108 mmap private fixed at somewhere currently unmapped
20109 mmap private fixed at somewhere already mapped
20110 mmap shared not fixed
20111 mmap shared fixed at somewhere currently unmapped
20112 mmap shared fixed at somewhere already mapped
20113 For private mappings, we should verify that changes cannot be read()
20114 back from the file, nor mmap's back from the file at a different
20115 address. (There have been systems where private was not correctly
20116 implemented like the infamous i386 svr4.0, and systems where the
20117 VM page cache was not coherent with the file system buffer cache
20118 like early versions of FreeBSD and possibly contemporary NetBSD.)
20119 For shared mappings, we should conversely verify that changes get
20120 propagated back to all the places they're supposed to be.
20122 Grep wants private fixed already mapped.
20123 The main things grep needs to know about mmap are:
20124 * does it exist and is it safe to write into the mmap'd area
20125 * how to use it (BSD variants) */
20128 #include <sys/mman.h>
20130 #if !STDC_HEADERS && !HAVE_STDLIB_H
20134 /* This mess was copied from the GNU getpagesize.h. */
20135 #if !HAVE_GETPAGESIZE
20136 /* Assume that all systems that can run configure have sys/param.h. */
20137 # if !HAVE_SYS_PARAM_H
20138 # define HAVE_SYS_PARAM_H 1
20141 # ifdef _SC_PAGESIZE
20142 # define getpagesize() sysconf(_SC_PAGESIZE)
20143 # else /* no _SC_PAGESIZE */
20144 # if HAVE_SYS_PARAM_H
20145 # include <sys/param.h>
20146 # ifdef EXEC_PAGESIZE
20147 # define getpagesize() EXEC_PAGESIZE
20148 # else /* no EXEC_PAGESIZE */
20150 # define getpagesize() NBPG * CLSIZE
20153 # endif /* no CLSIZE */
20154 # else /* no NBPG */
20156 # define getpagesize() NBPC
20157 # else /* no NBPC */
20159 # define getpagesize() PAGESIZE
20160 # endif /* PAGESIZE */
20161 # endif /* no NBPC */
20162 # endif /* no NBPG */
20163 # endif /* no EXEC_PAGESIZE */
20164 # else /* no HAVE_SYS_PARAM_H */
20165 # define getpagesize() 8192 /* punt totally */
20166 # endif /* no HAVE_SYS_PARAM_H */
20167 # endif /* no _SC_PAGESIZE */
20169 #endif /* no HAVE_GETPAGESIZE */
20174 char *data, *data2, *data3;
20178 pagesize = getpagesize ();
20180 /* First, make a file with some known garbage in it. */
20181 data = (char *) malloc (pagesize);
20184 for (i = 0; i < pagesize; ++i)
20185 *(data + i) = rand ();
20187 fd = creat ("conftest.mmap", 0600);
20190 if (write (fd, data, pagesize) != pagesize)
20194 /* Next, try to mmap the file at a fixed address which already has
20195 something else allocated at it. If we can, also make sure that
20196 we see the same garbage. */
20197 fd = open ("conftest.mmap", O_RDWR);
20200 data2 = (char *) malloc (2 * pagesize);
20203 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20204 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20205 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20207 for (i = 0; i < pagesize; ++i)
20208 if (*(data + i) != *(data2 + i))
20211 /* Finally, make sure that changes to the mapped area do not
20212 percolate back to the file as seen by read(). (This is a bug on
20213 some variants of i386 svr4.0.) */
20214 for (i = 0; i < pagesize; ++i)
20215 *(data2 + i) = *(data2 + i) + 1;
20216 data3 = (char *) malloc (pagesize);
20219 if (read (fd, data3, pagesize) != pagesize)
20221 for (i = 0; i < pagesize; ++i)
20222 if (*(data + i) != *(data3 + i))
20228 rm -f conftest$ac_exeext
20229 if { (ac_try="$ac_link"
20230 case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_link") 2>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20239 { (case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_try") 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 ac_cv_func_mmap_fixed_mapped=yes
20250 echo "$as_me: program exited with status $ac_status" >&5
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20254 ( exit $ac_status )
20255 ac_cv_func_mmap_fixed_mapped=no
20257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20262 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20263 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20264 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20266 cat >>confdefs.h <<\_ACEOF
20267 #define HAVE_MMAP 1
20271 rm -f conftest.mmap
20273 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20274 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20275 if test "${ac_cv_func_mmap_file+set}" = set; then
20276 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 ac_cpp='$CPP $CPPFLAGS'
20280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20284 if test "$cross_compiling" = yes; then
20285 ac_cv_func_mmap_file=no
20287 cat >conftest.$ac_ext <<_ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20295 #include <sys/types.h>
20296 #include <sys/mman.h>
20304 fd = creat ("foo",0777);
20305 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20307 return (fd != (int) MAP_FAILED);
20312 rm -f conftest$ac_exeext
20313 if { (ac_try="$ac_link"
20314 case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_link") 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20323 { (case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328 (eval "$ac_try") 2>&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; }; then
20332 ac_cv_func_mmap_file=yes
20334 echo "$as_me: program exited with status $ac_status" >&5
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20338 ( exit $ac_status )
20339 ac_cv_func_mmap_file=no
20341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20346 ac_cpp='$CPP $CPPFLAGS'
20347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20353 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20354 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20355 if test "$ac_cv_func_mmap_file" = yes; then
20357 cat >>confdefs.h <<\_ACEOF
20358 #define HAVE_MMAP_FILE
20365 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20366 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20367 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 if test "$llvm_cv_os_type" = "Interix" ; then
20371 ac_cv_need_dev_zero_for_mmap=yes
20373 ac_cv_need_dev_zero_for_mmap=no
20377 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20378 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20379 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20381 cat >>confdefs.h <<\_ACEOF
20382 #define NEED_DEV_ZERO_FOR_MMAP 1
20387 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20389 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20390 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20392 if test "$ac_cv_func_mmap_file" = "no"
20394 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20395 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20399 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20400 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20402 ac_cpp='$CXXCPP $CPPFLAGS'
20403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20414 volatile unsigned long val = 1;
20415 __sync_synchronize();
20416 __sync_val_compare_and_swap(&val, 1, 0);
20417 __sync_add_and_fetch(&val, 1);
20418 __sync_sub_and_fetch(&val, 1);
20423 rm -f conftest.$ac_objext conftest$ac_exeext
20424 if { (ac_try="$ac_link"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_link") 2>conftest.er1
20432 grep -v '^ *+' conftest.er1 >conftest.err
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } &&
20437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20438 { (case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_try") 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest$ac_exeext'
20448 { (case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453 (eval "$ac_try") 2>&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20458 ac_cpp='$CPP $CPPFLAGS'
20459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20463 { echo "$as_me:$LINENO: result: yes" >&5
20464 echo "${ECHO_T}yes" >&6; }
20466 cat >>confdefs.h <<\_ACEOF
20467 #define LLVM_HAS_ATOMICS 1
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20474 { echo "$as_me:$LINENO: result: no" >&5
20475 echo "${ECHO_T}no" >&6; }
20477 cat >>confdefs.h <<\_ACEOF
20478 #define LLVM_HAS_ATOMICS 0
20481 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20482 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20485 rm -f core conftest.err conftest.$ac_objext \
20486 conftest$ac_exeext conftest.$ac_ext
20489 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20490 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20491 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20492 if test "${llvm_cv_linux_mixed+set}" = set; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 ac_cpp='$CPP $CPPFLAGS'
20497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20501 cat >conftest.$ac_ext <<_ACEOF
20504 cat confdefs.h >>conftest.$ac_ext
20505 cat >>conftest.$ac_ext <<_ACEOF
20506 /* end confdefs.h. */
20508 error: Not x86-64 even if uname says so!
20519 rm -f conftest.$ac_objext
20520 if { (ac_try="$ac_compile"
20521 case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_compile") 2>conftest.er1
20528 grep -v '^ *+' conftest.er1 >conftest.err
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
20533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20534 { (case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_try") 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } &&
20543 { ac_try='test -s conftest.$ac_objext'
20544 { (case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_try") 2>&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; }; then
20553 llvm_cv_linux_mixed=no
20555 echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20558 llvm_cv_linux_mixed=yes
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563 ac_cpp='$CPP $CPPFLAGS'
20564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20570 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20571 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20573 if test "$llvm_cv_linux_mixed" = "yes"; then
20574 llvm_cv_target_arch="x86"
20580 for ac_func in __dso_handle
20582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20588 cat >conftest.$ac_ext <<_ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20596 #define $ac_func innocuous_$ac_func
20598 /* System header to define __stub macros and hopefully few prototypes,
20599 which can conflict with char $ac_func (); below.
20600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20601 <limits.h> exists even on freestanding compilers. */
20604 # include <limits.h>
20606 # include <assert.h>
20611 /* Override any GCC internal prototype to avoid an error.
20612 Use char because int might match the return type of a GCC
20613 builtin and then its argument prototype would still apply. */
20618 /* The GNU C library defines this for functions which it implements
20619 to always fail with ENOSYS. Some functions are actually named
20620 something starting with __ and the normal name is an alias. */
20621 #if defined __stub_$ac_func || defined __stub___$ac_func
20628 return $ac_func ();
20633 rm -f conftest.$ac_objext conftest$ac_exeext
20634 if { (ac_try="$ac_link"
20635 case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_link") 2>conftest.er1
20642 grep -v '^ *+' conftest.er1 >conftest.err
20644 cat conftest.err >&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } &&
20647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20648 { (case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_try") 2>&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; } &&
20657 { ac_try='test -s conftest$ac_exeext'
20658 { (case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_try") 2>&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; }; then
20667 eval "$as_ac_var=yes"
20669 echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20672 eval "$as_ac_var=no"
20675 rm -f core conftest.err conftest.$ac_objext \
20676 conftest$ac_exeext conftest.$ac_ext
20678 ac_res=`eval echo '${'$as_ac_var'}'`
20679 { echo "$as_me:$LINENO: result: $ac_res" >&5
20680 echo "${ECHO_T}$ac_res" >&6; }
20681 if test `eval echo '${'$as_ac_var'}'` = yes; then
20682 cat >>confdefs.h <<_ACEOF
20683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20690 SHLIBEXT=$libltdl_cv_shlibext
20693 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20696 # Translate the various configuration directories and other basic
20697 # information into substitutions that will end up in Makefile.config.in
20698 # that these configured values can be used by the makefiles
20699 if test "${prefix}" = "NONE" ; then
20700 prefix="/usr/local"
20702 eval LLVM_PREFIX="${prefix}";
20703 eval LLVM_BINDIR="${prefix}/bin";
20704 eval LLVM_DATADIR="${prefix}/share/llvm";
20705 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20706 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20707 eval LLVM_INCLUDEDIR="${prefix}/include";
20708 eval LLVM_INFODIR="${prefix}/info";
20709 eval LLVM_MANDIR="${prefix}/man";
20710 LLVM_CONFIGTIME=`date`
20721 # Place the various directores into the config.h file as #defines so that we
20722 # can know about the installation paths within LLVM.
20724 cat >>confdefs.h <<_ACEOF
20725 #define LLVM_PREFIX "$LLVM_PREFIX"
20729 cat >>confdefs.h <<_ACEOF
20730 #define LLVM_BINDIR "$LLVM_BINDIR"
20734 cat >>confdefs.h <<_ACEOF
20735 #define LLVM_DATADIR "$LLVM_DATADIR"
20739 cat >>confdefs.h <<_ACEOF
20740 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20744 cat >>confdefs.h <<_ACEOF
20745 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20749 cat >>confdefs.h <<_ACEOF
20750 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20754 cat >>confdefs.h <<_ACEOF
20755 #define LLVM_INFODIR "$LLVM_INFODIR"
20759 cat >>confdefs.h <<_ACEOF
20760 #define LLVM_MANDIR "$LLVM_MANDIR"
20764 cat >>confdefs.h <<_ACEOF
20765 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20769 cat >>confdefs.h <<_ACEOF
20770 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20774 # Determine which bindings to build.
20775 if test "$BINDINGS_TO_BUILD" = auto ; then
20776 BINDINGS_TO_BUILD=""
20777 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20778 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20781 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20784 # This isn't really configurey, but it avoids having to repeat the list in
20789 # Do any work necessary to ensure that bindings have what they need.
20790 binding_prereqs_failed=0
20791 for a_binding in $BINDINGS_TO_BUILD ; do
20792 case "$a_binding" in
20794 if test "x$OCAMLC" = x ; then
20795 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20796 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20797 binding_prereqs_failed=1
20799 if test "x$OCAMLDEP" = x ; then
20800 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20801 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20802 binding_prereqs_failed=1
20804 if test "x$OCAMLOPT" = x ; then
20805 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20806 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20808 if test "x$with_ocaml_libdir" != xauto ; then
20809 OCAML_LIBDIR=$with_ocaml_libdir
20812 ocaml_stdlib="`"$OCAMLC" -where`"
20813 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20815 # ocaml stdlib is beneath our prefix; use stdlib
20816 OCAML_LIBDIR=$ocaml_stdlib
20819 # ocaml stdlib is outside our prefix; use libdir/ocaml
20820 OCAML_LIBDIR=${prefix}/lib/ocaml
20827 if test "$binding_prereqs_failed" = 1 ; then
20828 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20829 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20830 { (exit 1); exit 1; }; }
20833 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20834 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20835 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 ac_cpp='$CXXCPP $CPPFLAGS'
20840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20844 oldcxxflags="$CXXFLAGS"
20845 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20846 cat >conftest.$ac_ext <<_ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20852 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20861 rm -f conftest.$ac_objext
20862 if { (ac_try="$ac_compile"
20863 case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_compile") 2>conftest.er1
20870 grep -v '^ *+' conftest.er1 >conftest.err
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } &&
20875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20876 { (case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_try") 2>&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try='test -s conftest.$ac_objext'
20886 { (case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_try") 2>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 llvm_cv_cxx_visibility_inlines_hidden=yes
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 llvm_cv_cxx_visibility_inlines_hidden=no
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904 CXXFLAGS="$oldcxxflags"
20906 ac_cpp='$CPP $CPPFLAGS'
20907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20913 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20914 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20915 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20916 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20919 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20924 if test "$llvm_cv_link_use_r" = "yes" ; then
20931 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20932 RDYNAMIC="-Wl,-export-dynamic"
20940 ac_config_files="$ac_config_files Makefile.common"
20942 ac_config_files="$ac_config_files Makefile.llvm.config"
20945 ac_config_commands="$ac_config_commands Makefile"
20948 ac_config_commands="$ac_config_commands lib/Makefile"
20951 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20954 ac_config_commands="$ac_config_commands tools/Makefile"
20957 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20961 cat >confcache <<\_ACEOF
20962 # This file is a shell script that caches the results of configure
20963 # tests run on this system so they can be shared between configure
20964 # scripts and configure runs, see configure's option --config-cache.
20965 # It is not useful on other systems. If it contains results you don't
20966 # want to keep, you may remove or edit it.
20968 # config.status only pays attention to the cache file if you give it
20969 # the --recheck option to rerun configure.
20971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20973 # following values.
20977 # The following way of writing the cache mishandles newlines in values,
20978 # but we know of no workaround that is simple, portable, and efficient.
20979 # So, we kill variables containing newlines.
20980 # Ultrix sh set writes to stderr and can't be redirected directly,
20981 # and sets the high bit in the cache file unless we assign to the vars.
20983 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20984 eval ac_val=\$$ac_var
20988 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20989 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20992 _ | IFS | as_nl) ;; #(
20993 *) $as_unset $ac_var ;;
20999 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21000 *${as_nl}ac_space=\ *)
21001 # `set' does not quote correctly, so add quotes (double-quote
21002 # substitution turns \\\\ into \\, and sed turns \\ into \).
21005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21008 # `set' quotes correctly as required by POSIX, so do not add quotes.
21009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21018 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21020 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21022 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21023 if test -w "$cache_file"; then
21024 test "x$cache_file" != "x/dev/null" &&
21025 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21026 echo "$as_me: updating cache $cache_file" >&6;}
21027 cat confcache >$cache_file
21029 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21030 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21036 # Let make expand exec_prefix.
21037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21039 # Transform confdefs.h into DEFS.
21040 # Protect against shell expansion while executing Makefile rules.
21041 # Protect against Makefile macro expansion.
21043 # If the first sed substitution is executed (which looks for macros that
21044 # take arguments), then branch to the quote section. Otherwise,
21045 # look for a macro that doesn't take arguments.
21049 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21051 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21055 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21068 DEFS=`sed -n "$ac_script" confdefs.h`
21073 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21074 # 1. Remove the extension, and $U if already installed.
21075 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21076 ac_i=`echo "$ac_i" | sed "$ac_script"`
21077 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21078 # will be set to the directory where LIBOBJS objects are built.
21079 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21080 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21082 LIBOBJS=$ac_libobjs
21084 LTLIBOBJS=$ac_ltlibobjs
21087 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21088 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21089 Usually this means the macro was only invoked conditionally." >&5
21090 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21091 Usually this means the macro was only invoked conditionally." >&2;}
21092 { (exit 1); exit 1; }; }
21094 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21095 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21096 Usually this means the macro was only invoked conditionally." >&5
21097 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21098 Usually this means the macro was only invoked conditionally." >&2;}
21099 { (exit 1); exit 1; }; }
21102 : ${CONFIG_STATUS=./config.status}
21103 ac_clean_files_save=$ac_clean_files
21104 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21105 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21106 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21107 cat >$CONFIG_STATUS <<_ACEOF
21109 # Generated by $as_me.
21110 # Run this file to recreate the current configuration.
21111 # Compiler output produced by configure, useful for debugging
21112 # configure, is in config.log if it exists.
21115 ac_cs_recheck=false
21117 SHELL=\${CONFIG_SHELL-$SHELL}
21120 cat >>$CONFIG_STATUS <<\_ACEOF
21121 ## --------------------- ##
21122 ## M4sh Initialization. ##
21123 ## --------------------- ##
21125 # Be Bourne compatible
21126 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21129 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21130 # is contrary to our usage. Disable this feature.
21131 alias -g '${1+"$@"}'='"$@"'
21132 setopt NO_GLOB_SUBST
21134 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21136 BIN_SH=xpg4; export BIN_SH # for Tru64
21137 DUALCASE=1; export DUALCASE # for MKS sh
21141 # Avoid depending upon Character Ranges.
21142 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21143 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21144 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21145 as_cr_digits='0123456789'
21146 as_cr_alnum=$as_cr_Letters$as_cr_digits
21148 # The user is always right.
21149 if test "${PATH_SEPARATOR+set}" != set; then
21150 echo "#! /bin/sh" >conf$$.sh
21151 echo "exit 0" >>conf$$.sh
21153 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21161 # Support unset when possible.
21162 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21170 # We need space, tab and new line, in precisely that order. Quoting is
21171 # there to prevent editors from complaining about space-tab.
21172 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21173 # splitting by setting IFS to empty value.)
21178 # Find who we are. Look in the path if we contain no directory separator.
21180 *[\\/]* ) as_myself=$0 ;;
21181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21182 for as_dir in $PATH
21185 test -z "$as_dir" && as_dir=.
21186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21192 # We did not find ourselves, most probably we were run as `sh COMMAND'
21193 # in which case we are not to be found in the path.
21194 if test "x$as_myself" = x; then
21197 if test ! -f "$as_myself"; then
21198 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21199 { (exit 1); exit 1; }
21202 # Work around bugs in pre-3.0 UWIN ksh.
21203 for as_var in ENV MAIL MAILPATH
21204 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21212 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21213 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21214 LC_TELEPHONE LC_TIME
21216 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21217 eval $as_var=C; export $as_var
21219 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21223 # Required to use basename.
21224 if expr a : '\(a\)' >/dev/null 2>&1 &&
21225 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21231 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21232 as_basename=basename
21238 # Name of the executable.
21239 as_me=`$as_basename -- "$0" ||
21240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21241 X"$0" : 'X\(//\)$' \| \
21242 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21244 sed '/^.*\/\([^/][^/]*\)\/*$/{
21263 as_lineno_1=$LINENO
21264 as_lineno_2=$LINENO
21265 test "x$as_lineno_1" != "x$as_lineno_2" &&
21266 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21268 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21269 # uniformly replaced by the line number. The first 'sed' inserts a
21270 # line-number line after each line using $LINENO; the second 'sed'
21271 # does the real work. The second script uses 'N' to pair each
21272 # line-number line with the line containing $LINENO, and appends
21273 # trailing '-' during substitution so that $LINENO is not a special
21274 # case at line end.
21275 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21276 # scripts with optimization help from Paolo Bonzini. Blame Lee
21277 # E. McMahon (1931-1989) for sed's syntax. :-)
21289 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21292 ' >$as_me.lineno &&
21293 chmod +x "$as_me.lineno" ||
21294 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21295 { (exit 1); exit 1; }; }
21297 # Don't try to exec as it changes $[0], causing all sort of problems
21298 # (the dirname of $[0] is not the place where we might find the
21299 # original and so on. Autoconf is especially sensitive to this).
21300 . "./$as_me.lineno"
21301 # Exit status is that of the last command.
21306 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21312 ECHO_C= ECHO_N= ECHO_T=
21313 case `echo -n x` in
21315 case `echo 'x\c'` in
21316 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21323 if expr a : '\(a\)' >/dev/null 2>&1 &&
21324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21330 rm -f conf$$ conf$$.exe conf$$.file
21331 if test -d conf$$.dir; then
21332 rm -f conf$$.dir/conf$$.file
21338 if ln -s conf$$.file conf$$ 2>/dev/null; then
21340 # ... but there are two gotchas:
21341 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21342 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21343 # In both cases, we have to default to `cp -p'.
21344 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21346 elif ln conf$$.file conf$$ 2>/dev/null; then
21351 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21352 rmdir conf$$.dir 2>/dev/null
21354 if mkdir -p . 2>/dev/null; then
21357 test -d ./-p && rmdir ./-p
21361 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21362 # systems may use methods other than mode bits to determine executability.
21363 cat >conf$$.file <<_ASEOF
21367 chmod +x conf$$.file
21368 if test -x conf$$.file >/dev/null 2>&1; then
21369 as_executable_p="test -x"
21375 # Sed expression to map a string onto a valid CPP name.
21376 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21378 # Sed expression to map a string onto a valid variable name.
21379 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21384 # Save the log message, to keep $[0] and so on meaningful, and to
21385 # report actual input values of CONFIG_FILES etc. instead of their
21386 # values after options handling.
21388 This file was extended by [SAMPLE] $as_me [x.xx], which was
21389 generated by GNU Autoconf 2.60. Invocation command line was
21391 CONFIG_FILES = $CONFIG_FILES
21392 CONFIG_HEADERS = $CONFIG_HEADERS
21393 CONFIG_LINKS = $CONFIG_LINKS
21394 CONFIG_COMMANDS = $CONFIG_COMMANDS
21397 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21402 cat >>$CONFIG_STATUS <<_ACEOF
21403 # Files that config.status was made for.
21404 config_files="$ac_config_files"
21405 config_commands="$ac_config_commands"
21409 cat >>$CONFIG_STATUS <<\_ACEOF
21411 \`$as_me' instantiates files from templates according to the
21412 current configuration.
21414 Usage: $0 [OPTIONS] [FILE]...
21416 -h, --help print this help, then exit
21417 -V, --version print version number, then exit
21418 -q, --quiet do not print progress messages
21419 -d, --debug don't remove temporary files
21420 --recheck update $as_me by reconfiguring in the same conditions
21421 --file=FILE[:TEMPLATE]
21422 instantiate the configuration file FILE
21424 Configuration files:
21427 Configuration commands:
21430 Report bugs to <bug-autoconf@gnu.org>."
21433 cat >>$CONFIG_STATUS <<_ACEOF
21435 [SAMPLE] config.status [x.xx]
21436 configured by $0, generated by GNU Autoconf 2.60,
21437 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21439 Copyright (C) 2006 Free Software Foundation, Inc.
21440 This config.status script is free software; the Free Software Foundation
21441 gives unlimited permission to copy, distribute and modify it."
21448 cat >>$CONFIG_STATUS <<\_ACEOF
21449 # If no file are specified by the user, then we need to provide default
21450 # value. By we need to know if files were specified by the user.
21456 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21457 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21468 # Handling of the options.
21469 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21471 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21472 echo "$ac_cs_version"; exit ;;
21473 --debug | --debu | --deb | --de | --d | -d )
21475 --file | --fil | --fi | --f )
21477 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21478 ac_need_defaults=false;;
21479 --he | --h | --help | --hel | -h )
21480 echo "$ac_cs_usage"; exit ;;
21481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21482 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21485 # This is an error.
21486 -*) { echo "$as_me: error: unrecognized option: $1
21487 Try \`$0 --help' for more information." >&2
21488 { (exit 1); exit 1; }; } ;;
21490 *) ac_config_targets="$ac_config_targets $1"
21491 ac_need_defaults=false ;;
21497 ac_configure_extra_args=
21499 if $ac_cs_silent; then
21501 ac_configure_extra_args="$ac_configure_extra_args --silent"
21505 cat >>$CONFIG_STATUS <<_ACEOF
21506 if \$ac_cs_recheck; then
21507 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21508 CONFIG_SHELL=$SHELL
21509 export CONFIG_SHELL
21510 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21518 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21519 ## Running $as_me. ##
21525 cat >>$CONFIG_STATUS <<_ACEOF
21529 llvm_src="${LLVM_SRC}"
21533 cat >>$CONFIG_STATUS <<\_ACEOF
21535 # Handling of arguments.
21536 for ac_config_target in $ac_config_targets
21538 case $ac_config_target in
21539 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21540 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21541 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21542 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21543 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21544 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21545 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21546 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21548 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21549 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21550 { (exit 1); exit 1; }; };;
21555 # If the user did not use the arguments to specify the items to instantiate,
21556 # then the envvar interface is used. Set only those that are not.
21557 # We use the long form for the default assignment because of an extremely
21558 # bizarre bug on SunOS 4.1.3.
21559 if $ac_need_defaults; then
21560 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21561 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21564 # Have a temporary directory for convenience. Make it in the build tree
21565 # simply because there is no reason against having it here, and in addition,
21566 # creating and moving files from /tmp can sometimes cause problems.
21567 # Hook for its removal unless debugging.
21568 # Note that there is a small window in which the directory will not be cleaned:
21569 # after its creation but before its name has been assigned to `$tmp'.
21573 trap 'exit_status=$?
21574 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21576 trap '{ (exit 1); exit 1; }' 1 2 13 15
21578 # Create a (secure) tmp directory for tmp files.
21581 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21582 test -n "$tmp" && test -d "$tmp"
21585 tmp=./conf$$-$RANDOM
21586 (umask 077 && mkdir "$tmp")
21589 echo "$me: cannot create a temporary directory in ." >&2
21590 { (exit 1); exit 1; }
21594 # Set up the sed scripts for CONFIG_FILES section.
21597 # No need to generate the scripts if there are no CONFIG_FILES.
21598 # This happens for instance when ./config.status config.h
21599 if test -n "$CONFIG_FILES"; then
21606 for ac_last_try in false false false false false :; do
21607 cat >conf$$subs.sed <<_ACEOF
21608 SHELL!$SHELL$ac_delim
21609 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21610 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21611 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21612 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21613 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21614 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21615 exec_prefix!$exec_prefix$ac_delim
21616 prefix!$prefix$ac_delim
21617 program_transform_name!$program_transform_name$ac_delim
21618 bindir!$bindir$ac_delim
21619 sbindir!$sbindir$ac_delim
21620 libexecdir!$libexecdir$ac_delim
21621 datarootdir!$datarootdir$ac_delim
21622 datadir!$datadir$ac_delim
21623 sysconfdir!$sysconfdir$ac_delim
21624 sharedstatedir!$sharedstatedir$ac_delim
21625 localstatedir!$localstatedir$ac_delim
21626 includedir!$includedir$ac_delim
21627 oldincludedir!$oldincludedir$ac_delim
21628 docdir!$docdir$ac_delim
21629 infodir!$infodir$ac_delim
21630 htmldir!$htmldir$ac_delim
21631 dvidir!$dvidir$ac_delim
21632 pdfdir!$pdfdir$ac_delim
21633 psdir!$psdir$ac_delim
21634 libdir!$libdir$ac_delim
21635 localedir!$localedir$ac_delim
21636 mandir!$mandir$ac_delim
21637 DEFS!$DEFS$ac_delim
21638 ECHO_C!$ECHO_C$ac_delim
21639 ECHO_N!$ECHO_N$ac_delim
21640 ECHO_T!$ECHO_T$ac_delim
21641 LIBS!$LIBS$ac_delim
21642 build_alias!$build_alias$ac_delim
21643 host_alias!$host_alias$ac_delim
21644 target_alias!$target_alias$ac_delim
21645 LLVM_SRC!$LLVM_SRC$ac_delim
21646 LLVM_OBJ!$LLVM_OBJ$ac_delim
21647 LLVM_VERSION!$LLVM_VERSION$ac_delim
21649 CFLAGS!$CFLAGS$ac_delim
21650 LDFLAGS!$LDFLAGS$ac_delim
21651 CPPFLAGS!$CPPFLAGS$ac_delim
21652 ac_ct_CC!$ac_ct_CC$ac_delim
21653 EXEEXT!$EXEEXT$ac_delim
21654 OBJEXT!$OBJEXT$ac_delim
21656 CXXFLAGS!$CXXFLAGS$ac_delim
21657 ac_ct_CXX!$ac_ct_CXX$ac_delim
21659 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21660 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21661 subdirs!$subdirs$ac_delim
21662 build!$build$ac_delim
21663 build_cpu!$build_cpu$ac_delim
21664 build_vendor!$build_vendor$ac_delim
21665 build_os!$build_os$ac_delim
21666 host!$host$ac_delim
21667 host_cpu!$host_cpu$ac_delim
21668 host_vendor!$host_vendor$ac_delim
21669 host_os!$host_os$ac_delim
21670 target!$target$ac_delim
21671 target_cpu!$target_cpu$ac_delim
21672 target_vendor!$target_vendor$ac_delim
21673 target_os!$target_os$ac_delim
21675 HOST_OS!$HOST_OS$ac_delim
21676 TARGET_OS!$TARGET_OS$ac_delim
21677 LINKALL!$LINKALL$ac_delim
21678 NOLINKALL!$NOLINKALL$ac_delim
21679 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21680 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21681 ARCH!$ARCH$ac_delim
21682 ENDIAN!$ENDIAN$ac_delim
21683 GREP!$GREP$ac_delim
21684 EGREP!$EGREP$ac_delim
21685 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21686 BUILD_CC!$BUILD_CC$ac_delim
21687 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21688 BUILD_CXX!$BUILD_CXX$ac_delim
21689 CVSBUILD!$CVSBUILD$ac_delim
21690 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21691 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21692 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21693 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21694 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21695 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21696 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21697 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21698 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21699 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21701 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21702 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21703 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21704 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21707 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21709 elif $ac_last_try; then
21710 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21711 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21712 { (exit 1); exit 1; }; }
21714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21718 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21719 if test -n "$ac_eof"; then
21720 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21721 ac_eof=`expr $ac_eof + 1`
21724 cat >>$CONFIG_STATUS <<_ACEOF
21725 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21729 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21730 s/^/s,@/; s/!/@,|#_!!_#|/
21733 s/'"$ac_delim"'$/,g/; t
21735 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21736 ' >>$CONFIG_STATUS <conf$$subs.sed
21737 rm -f conf$$subs.sed
21738 cat >>$CONFIG_STATUS <<_ACEOF
21744 for ac_last_try in false false false false false :; do
21745 cat >conf$$subs.sed <<_ACEOF
21746 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21747 ENABLE_PIC!$ENABLE_PIC$ac_delim
21748 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21749 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21750 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21751 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21752 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21753 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21754 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21755 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21756 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21757 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21758 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21759 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21761 ifGNUmake!$ifGNUmake$ac_delim
21762 LN_S!$LN_S$ac_delim
21765 DATE!$DATE$ac_delim
21766 FIND!$FIND$ac_delim
21767 MKDIR!$MKDIR$ac_delim
21769 RANLIB!$RANLIB$ac_delim
21774 BINPWD!$BINPWD$ac_delim
21775 GRAPHVIZ!$GRAPHVIZ$ac_delim
21778 NEATO!$NEATO$ac_delim
21779 TWOPI!$TWOPI$ac_delim
21780 CIRCO!$CIRCO$ac_delim
21782 DOTTY!$DOTTY$ac_delim
21783 XDOT_PY!$XDOT_PY$ac_delim
21784 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21785 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21786 INSTALL_DATA!$INSTALL_DATA$ac_delim
21787 BZIP2!$BZIP2$ac_delim
21789 DOXYGEN!$DOXYGEN$ac_delim
21790 GROFF!$GROFF$ac_delim
21791 GZIPBIN!$GZIPBIN$ac_delim
21792 POD2HTML!$POD2HTML$ac_delim
21793 POD2MAN!$POD2MAN$ac_delim
21794 PDFROFF!$PDFROFF$ac_delim
21795 RUNTEST!$RUNTEST$ac_delim
21796 TCLSH!$TCLSH$ac_delim
21798 OCAMLC!$OCAMLC$ac_delim
21799 OCAMLOPT!$OCAMLOPT$ac_delim
21800 OCAMLDEP!$OCAMLDEP$ac_delim
21801 OCAMLDOC!$OCAMLDOC$ac_delim
21803 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21804 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21805 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21806 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21807 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21808 LIBADD_DL!$LIBADD_DL$ac_delim
21809 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21810 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21811 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21812 USE_UDIS86!$USE_UDIS86$ac_delim
21813 USE_OPROFILE!$USE_OPROFILE$ac_delim
21814 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21815 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21816 MMAP_FILE!$MMAP_FILE$ac_delim
21817 SHLIBEXT!$SHLIBEXT$ac_delim
21818 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21819 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21820 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21821 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21822 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21823 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21824 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21825 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21826 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21827 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21828 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21829 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21830 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21831 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21832 RPATH!$RPATH$ac_delim
21833 RDYNAMIC!$RDYNAMIC$ac_delim
21834 LIBOBJS!$LIBOBJS$ac_delim
21835 LTLIBOBJS!$LTLIBOBJS$ac_delim
21838 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21840 elif $ac_last_try; then
21841 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21842 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21843 { (exit 1); exit 1; }; }
21845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21849 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21850 if test -n "$ac_eof"; then
21851 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21852 ac_eof=`expr $ac_eof + 1`
21855 cat >>$CONFIG_STATUS <<_ACEOF
21856 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21860 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21861 s/^/s,@/; s/!/@,|#_!!_#|/
21864 s/'"$ac_delim"'$/,g/; t
21866 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21867 ' >>$CONFIG_STATUS <conf$$subs.sed
21868 rm -f conf$$subs.sed
21869 cat >>$CONFIG_STATUS <<_ACEOF
21876 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21877 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21878 # trailing colons and then remove the whole line if VPATH becomes empty
21879 # (actually we leave an empty line to preserve line numbers).
21880 if test "x$srcdir" = x.; then
21881 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21882 s/:*\$(srcdir):*/:/
21883 s/:*\${srcdir}:*/:/
21885 s/^\([^=]*=[ ]*\):*/\1/
21891 cat >>$CONFIG_STATUS <<\_ACEOF
21892 fi # test -n "$CONFIG_FILES"
21895 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21898 :[FHLC]) ac_mode=$ac_tag; continue;;
21900 case $ac_mode$ac_tag in
21902 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21903 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21904 { (exit 1); exit 1; }; };;
21905 :[FH]-) ac_tag=-:-;;
21906 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21923 -) ac_f="$tmp/stdin";;
21924 *) # Look for the file first in the build tree, then in the source tree
21925 # (if the path is not absolute). The absolute path cannot be DOS-style,
21926 # because $ac_f cannot contain `:'.
21930 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21932 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21933 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21934 { (exit 1); exit 1; }; };;
21936 ac_file_inputs="$ac_file_inputs $ac_f"
21939 # Let's still pretend it is `configure' which instantiates (i.e., don't
21940 # use $as_me), people would be surprised to read:
21941 # /* config.h. Generated by config.status. */
21942 configure_input="Generated from "`IFS=:
21943 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21944 if test x"$ac_file" != x-; then
21945 configure_input="$ac_file. $configure_input"
21946 { echo "$as_me:$LINENO: creating $ac_file" >&5
21947 echo "$as_me: creating $ac_file" >&6;}
21951 *:-:* | *:-) cat >"$tmp/stdin";;
21956 ac_dir=`$as_dirname -- "$ac_file" ||
21957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21958 X"$ac_file" : 'X\(//\)[^/]' \| \
21959 X"$ac_file" : 'X\(//\)$' \| \
21960 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21966 /^X\(\/\/\)[^/].*/{
21981 -*) as_dir=./$as_dir;;
21983 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21987 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21988 *) as_qdir=$as_dir;;
21990 as_dirs="'$as_qdir' $as_dirs"
21991 as_dir=`$as_dirname -- "$as_dir" ||
21992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21993 X"$as_dir" : 'X\(//\)[^/]' \| \
21994 X"$as_dir" : 'X\(//\)$' \| \
21995 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22001 /^X\(\/\/\)[^/].*/{
22014 test -d "$as_dir" && break
22016 test -z "$as_dirs" || eval "mkdir $as_dirs"
22017 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22018 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22019 { (exit 1); exit 1; }; }; }
22023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22025 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22026 # A ".." for each directory in $ac_dir_suffix.
22027 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22028 case $ac_top_builddir_sub in
22029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22033 ac_abs_top_builddir=$ac_pwd
22034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22035 # for backward compatibility:
22036 ac_top_builddir=$ac_top_build_prefix
22039 .) # We are building in place.
22041 ac_top_srcdir=$ac_top_builddir_sub
22042 ac_abs_top_srcdir=$ac_pwd ;;
22043 [\\/]* | ?:[\\/]* ) # Absolute name.
22044 ac_srcdir=$srcdir$ac_dir_suffix;
22045 ac_top_srcdir=$srcdir
22046 ac_abs_top_srcdir=$srcdir ;;
22047 *) # Relative name.
22048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22049 ac_top_srcdir=$ac_top_build_prefix$srcdir
22050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22067 cat >>$CONFIG_STATUS <<\_ACEOF
22068 # If the template does not know about datarootdir, expand it.
22069 # FIXME: This hack should be removed a few years after 2.60.
22070 ac_datarootdir_hack=; ac_datarootdir_seen=
22072 case `sed -n '/datarootdir/ {
22081 ' $ac_file_inputs` in
22082 *datarootdir*) ac_datarootdir_seen=yes;;
22083 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22084 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22085 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22087 cat >>$CONFIG_STATUS <<_ACEOF
22088 ac_datarootdir_hack='
22089 s&@datadir@&$datadir&g
22090 s&@docdir@&$docdir&g
22091 s&@infodir@&$infodir&g
22092 s&@localedir@&$localedir&g
22093 s&@mandir@&$mandir&g
22094 s&\\\${datarootdir}&$datarootdir&g' ;;
22098 # Neutralize VPATH when `$srcdir' = `.'.
22099 # Shell code in configure.ac might set extrasub.
22100 # FIXME: do we really want to maintain this feature?
22101 cat >>$CONFIG_STATUS <<_ACEOF
22105 cat >>$CONFIG_STATUS <<\_ACEOF
22107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22108 s&@configure_input@&$configure_input&;t t
22109 s&@top_builddir@&$ac_top_builddir_sub&;t t
22110 s&@srcdir@&$ac_srcdir&;t t
22111 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22112 s&@top_srcdir@&$ac_top_srcdir&;t t
22113 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22114 s&@builddir@&$ac_builddir&;t t
22115 s&@abs_builddir@&$ac_abs_builddir&;t t
22116 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22117 s&@INSTALL@&$ac_INSTALL&;t t
22118 $ac_datarootdir_hack
22119 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22121 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22122 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22123 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22124 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22125 which seems to be undefined. Please make sure it is defined." >&5
22126 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22127 which seems to be undefined. Please make sure it is defined." >&2;}
22131 -) cat "$tmp/out"; rm -f "$tmp/out";;
22132 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22137 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22138 echo "$as_me: executing $ac_file commands" >&6;}
22143 case $ac_file$ac_mode in
22144 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22145 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22146 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22147 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22148 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22149 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22150 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22151 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22152 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22153 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22159 { (exit 0); exit 0; }
22161 chmod +x $CONFIG_STATUS
22162 ac_clean_files=$ac_clean_files_save
22165 # configure is writing to config.log, and then calls config.status.
22166 # config.status does its own redirection, appending to config.log.
22167 # Unfortunately, on DOS this fails, as config.log is still kept open
22168 # by configure, so config.status won't be able to write to it; its
22169 # output is simply discarded. So we exec the FD to /dev/null,
22170 # effectively closing config.log, so it can be properly (re)opened and
22171 # appended to by config.status. When coming back to configure, we
22172 # need to make the FD available again.
22173 if test "$no_create" != yes; then
22175 ac_config_status_args=
22176 test "$silent" = yes &&
22177 ac_config_status_args="$ac_config_status_args --quiet"
22179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22182 # would make configure fail if this is the last instruction.
22183 $ac_cs_success || { (exit 1); exit 1; }
22187 # CONFIG_SUBDIRS section.
22189 if test "$no_recursion" != yes; then
22191 # Remove --cache-file and --srcdir arguments so they do not pile up.
22192 ac_sub_configure_args=
22194 eval "set x $ac_configure_args"
22198 if test -n "$ac_prev"; then
22203 -cache-file | --cache-file | --cache-fil | --cache-fi \
22204 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22205 ac_prev=cache_file ;;
22206 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22207 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22210 --config-cache | -C)
22212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22216 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22218 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22222 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22224 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22228 # Always prepend --prefix to ensure using the same prefix
22229 # in subdir configurations.
22230 ac_arg="--prefix=$prefix"
22232 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22234 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22237 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22239 # Do not complain, so a configure script can configure whichever
22240 # parts of a large source tree are present.
22241 test -d "$srcdir/$ac_dir" || continue
22243 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22244 echo "$as_me:$LINENO: $ac_msg" >&5
22248 -*) as_dir=./$as_dir;;
22250 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22254 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22255 *) as_qdir=$as_dir;;
22257 as_dirs="'$as_qdir' $as_dirs"
22258 as_dir=`$as_dirname -- "$as_dir" ||
22259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22260 X"$as_dir" : 'X\(//\)[^/]' \| \
22261 X"$as_dir" : 'X\(//\)$' \| \
22262 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22268 /^X\(\/\/\)[^/].*/{
22281 test -d "$as_dir" && break
22283 test -z "$as_dirs" || eval "mkdir $as_dirs"
22284 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22285 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22286 { (exit 1); exit 1; }; }; }
22290 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22292 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22293 # A ".." for each directory in $ac_dir_suffix.
22294 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22295 case $ac_top_builddir_sub in
22296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22300 ac_abs_top_builddir=$ac_pwd
22301 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22302 # for backward compatibility:
22303 ac_top_builddir=$ac_top_build_prefix
22306 .) # We are building in place.
22308 ac_top_srcdir=$ac_top_builddir_sub
22309 ac_abs_top_srcdir=$ac_pwd ;;
22310 [\\/]* | ?:[\\/]* ) # Absolute name.
22311 ac_srcdir=$srcdir$ac_dir_suffix;
22312 ac_top_srcdir=$srcdir
22313 ac_abs_top_srcdir=$srcdir ;;
22314 *) # Relative name.
22315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22316 ac_top_srcdir=$ac_top_build_prefix$srcdir
22317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22319 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22324 # Check for guested configure; otherwise get Cygnus style configure.
22325 if test -f "$ac_srcdir/configure.gnu"; then
22326 ac_sub_configure=$ac_srcdir/configure.gnu
22327 elif test -f "$ac_srcdir/configure"; then
22328 ac_sub_configure=$ac_srcdir/configure
22329 elif test -f "$ac_srcdir/configure.in"; then
22330 # This should be Cygnus configure.
22331 ac_sub_configure=$ac_aux_dir/configure
22333 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22334 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22338 # The recursion is here.
22339 if test -n "$ac_sub_configure"; then
22340 # Make the cache file name correct relative to the subdirectory.
22341 case $cache_file in
22342 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22343 *) # Relative name.
22344 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22347 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22348 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22349 # The eval makes quoting arguments work.
22350 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22351 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22352 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22353 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22354 { (exit 1); exit 1; }; }