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
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
755 HAVE_LINK_VERSION_SCRIPT
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
762 NO_MISSING_FIELD_INITIALIZERS
763 COVERED_SWITCH_DEFAULT
784 ENABLE_VISIBILITY_INLINES_HIDDEN
790 ac_precious_vars='build_alias
801 ac_subdirs_all='tools/polly'
803 # Initialize some variables set by options.
805 ac_init_version=false
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
815 program_transform_name=s,x,x,
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 # Accept the important Cygnus configure options, so we can diagnose typos.
867 case $ac_dashdash$ac_option in
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
889 cache_file=config.cache ;;
891 -datadir | --datadir | --datadi | --datad)
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
903 -disable-* | --disable-*)
904 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
909 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
910 eval enable_$ac_feature=no ;;
912 -docdir | --docdir | --docdi | --doc | --do)
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 -enable-* | --enable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=\$ac_optarg ;;
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
944 -help | --help | --hel | --he | -h)
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 htmldir=$ac_optarg ;;
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
974 -libdir | --libdir | --libdi | --libd)
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
986 -localedir | --localedir | --localedi | --localed | --locale)
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1065 -psdir | --psdir | --psdi | --psd | --ps)
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 sbindir=$ac_optarg ;;
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 sharedstatedir=$ac_optarg ;;
1091 -site | --site | --sit)
1093 -site=* | --site=* | --sit=*)
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1120 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
1125 ac_package=`echo $ac_package| sed 's/-/_/g'`
1126 eval with_$ac_package=\$ac_optarg ;;
1128 -without-* | --without-*)
1129 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1132 { echo "$as_me: error: invalid package name: $ac_package" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_package=`echo $ac_package | sed 's/-/_/g'`
1135 eval with_$ac_package=no ;;
1138 # Obsolete; use --with-x.
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1155 -*) { echo "$as_me: error: unrecognized option: $ac_option
1156 Try \`$0 --help' for more information." >&2
1157 { (exit 1); exit 1; }; }
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1165 { (exit 1); exit 1; }; }
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1170 # FIXME: should be removed in autoconf 3.0.
1171 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 { echo "$as_me: error: missing argument to $ac_option" >&2
1183 { (exit 1); exit 1; }; }
1186 # Be sure to have absolute directory names.
1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
1192 eval ac_val=\$$ac_var
1194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198 { (exit 1); exit 1; }; }
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1206 target=$target_alias
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222 test "$silent" = yes && exec 6>/dev/null
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 { echo "$as_me: error: Working directory cannot be determined" >&2
1229 { (exit 1); exit 1; }; }
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 { echo "$as_me: error: pwd does not report name of working directory" >&2
1232 { (exit 1); exit 1; }; }
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
1238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$0" ||
1240 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241 X"$0" : 'X\(//\)[^/]' \| \
1242 X"$0" : 'X\(//\)$' \| \
1243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1267 ac_srcdir_defaulted=no
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1272 { (exit 1); exit 1; }; }
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1277 { (exit 1); exit 1; }; }
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 # Report the --help message.
1299 if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1303 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE. See below for descriptions of some of the useful variables.
1310 Defaults for the options are specified in brackets.
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323 Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
1325 [$ac_default_prefix]
1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1334 For better control, use the options below.
1336 Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 --target=TARGET configure for building compilers for TARGET [HOST]
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-polly Use polly if available (default is YES)
1377 --enable-libcpp Use libc++ if available (default is NO)
1378 --enable-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1396 --enable-shared Build a shared library and link tools against it
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
1404 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1405 xcore, msp430, nvptx, cbe, and cpp (default=all)
1406 --enable-bindings Build specific language bindings:
1407 all,auto,none,{binding-name} (default=auto)
1408 --enable-libffi Check for the presence of libffi (default is NO)
1409 --enable-ltdl-install install libltdl
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-llvmsrc Location of LLVM Source Code
1415 --with-llvmobj Location of LLVM Object Code
1416 --with-optimize-option Select the compiler options to use for optimized
1418 --with-extra-options Specify additional options to compile LLVM with
1419 --with-extra-ld-options Specify additional options to link LLVM with
1420 --with-ocaml-libdir Specify install location for ocaml bindings (default
1422 --with-clang-resource-dir
1423 Relative directory from the Clang binary for
1425 --with-c-include-dirs Colon separated list of directories clang will
1427 --with-gcc-toolchain Directory where gcc is installed.
1428 --with-binutils-include Specify path to binutils/include/ containing
1429 plugin-api.h file for gold plugin.
1430 --with-bug-report-url Specify the URL where bug reports should be
1431 submitted (default=http://llvm.org/bugs/)
1432 --with-tclinclude directory where tcl headers are
1433 --with-udis86=<path> Use udis86 external x86 disassembler library
1434 --with-oprofile=<prefix>
1435 Tell OProfile >= 0.9.4 how to symbolize JIT output
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1443 you have headers in a nonstandard directory <include dir>
1444 CXX C++ compiler command
1445 CXXFLAGS C++ compiler flags
1448 Use these variables to override the choices made by `configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1451 Report bugs to <bugs@yourdomain>.
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" || continue
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1479 .) # We are building in place.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1503 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1512 [SAMPLE] configure [x.xx]
1513 generated by GNU Autoconf 2.60
1515 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1516 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1522 cat >config.log <<_ACEOF
1523 This file contains any messages produced by compilers while
1524 running configure, to aid debugging if configure makes a mistake.
1526 It was created by [SAMPLE] $as_me [x.xx], which was
1527 generated by GNU Autoconf 2.60. Invocation command line was
1539 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1540 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1541 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1542 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1543 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1545 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1546 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1548 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1549 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1550 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1551 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1552 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1553 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1554 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 test -z "$as_dir" && as_dir=.
1563 echo "PATH: $as_dir"
1579 # Keep a trace of the command line.
1580 # Strip out --no-create and --no-recursion so they do not pile up.
1581 # Strip out --silent because we don't want to record it for future runs.
1582 # Also quote any args containing shell meta-characters.
1583 # Make two passes to allow for proper duplicate-argument suppression.
1587 ac_must_keep_next=false
1593 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1595 | -silent | --silent | --silen | --sile | --sil)
1598 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1601 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1603 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1604 if test $ac_must_keep_next = true; then
1605 ac_must_keep_next=false # Got value, back to normal.
1608 *=* | --config-cache | -C | -disable-* | --disable-* \
1609 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1610 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1611 | -with-* | --with-* | -without-* | --without-* | --x)
1612 case "$ac_configure_args0 " in
1613 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1616 -* ) ac_must_keep_next=true ;;
1619 ac_configure_args="$ac_configure_args '$ac_arg'"
1624 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1625 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1627 # When interrupted or exit'd, cleanup temporary files, and complete
1628 # config.log. We remove comments because anyway the quotes in there
1629 # would cause problems or look ugly.
1630 # WARNING: Use '\'' to represent an apostrophe within the trap.
1631 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1632 trap 'exit_status=$?
1633 # Save into config.log some information that might help in debugging.
1638 ## ---------------- ##
1639 ## Cache variables. ##
1640 ## ---------------- ##
1643 # The following way of writing the cache mishandles newlines in values,
1645 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1646 eval ac_val=\$$ac_var
1650 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1651 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1654 _ | IFS | as_nl) ;; #(
1655 *) $as_unset $ac_var ;;
1660 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1661 *${as_nl}ac_space=\ *)
1663 "s/'\''/'\''\\\\'\'''\''/g;
1664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1675 ## ----------------- ##
1676 ## Output variables. ##
1677 ## ----------------- ##
1680 for ac_var in $ac_subst_vars
1682 eval ac_val=\$$ac_var
1684 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686 echo "$ac_var='\''$ac_val'\''"
1690 if test -n "$ac_subst_files"; then
1692 ## ------------------- ##
1693 ## File substitutions. ##
1694 ## ------------------- ##
1697 for ac_var in $ac_subst_files
1699 eval ac_val=\$$ac_var
1701 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1703 echo "$ac_var='\''$ac_val'\''"
1708 if test -s confdefs.h; then
1718 test "$ac_signal" != 0 &&
1719 echo "$as_me: caught signal $ac_signal"
1720 echo "$as_me: exit $exit_status"
1722 rm -f core *.core core.conftest.* &&
1723 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1726 for ac_signal in 1 2 13 15; do
1727 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1731 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1732 rm -f -r conftest* confdefs.h
1734 # Predefined preprocessor variables.
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_NAME "$PACKAGE_NAME"
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1751 cat >>confdefs.h <<_ACEOF
1752 #define PACKAGE_STRING "$PACKAGE_STRING"
1756 cat >>confdefs.h <<_ACEOF
1757 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1761 # Let the site file select an alternate cache file if it wants to.
1762 # Prefer explicitly selected file to automatically selected ones.
1763 if test -n "$CONFIG_SITE"; then
1764 set x "$CONFIG_SITE"
1765 elif test "x$prefix" != xNONE; then
1766 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1768 set x "$ac_default_prefix/share/config.site" \
1769 "$ac_default_prefix/etc/config.site"
1774 if test -r "$ac_site_file"; then
1775 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1776 echo "$as_me: loading site script $ac_site_file" >&6;}
1777 sed 's/^/| /' "$ac_site_file" >&5
1782 if test -r "$cache_file"; then
1783 # Some versions of bash will fail to source /dev/null (special
1784 # files actually), so we avoid doing that.
1785 if test -f "$cache_file"; then
1786 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1787 echo "$as_me: loading cache $cache_file" >&6;}
1789 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1790 *) . "./$cache_file";;
1794 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1795 echo "$as_me: creating cache $cache_file" >&6;}
1799 # Check that the precious variables saved in the cache have kept the same
1801 ac_cache_corrupted=false
1802 for ac_var in $ac_precious_vars; do
1803 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1804 eval ac_new_set=\$ac_env_${ac_var}_set
1805 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1806 eval ac_new_val=\$ac_env_${ac_var}_value
1807 case $ac_old_set,$ac_new_set in
1809 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1810 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1811 ac_cache_corrupted=: ;;
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1818 if test "x$ac_old_val" != "x$ac_new_val"; then
1819 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1820 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1821 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1822 echo "$as_me: former value: $ac_old_val" >&2;}
1823 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1824 echo "$as_me: current value: $ac_new_val" >&2;}
1825 ac_cache_corrupted=:
1828 # Pass precious variables to config.status.
1829 if test "$ac_new_set" = set; then
1831 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1832 *) ac_arg=$ac_var=$ac_new_val ;;
1834 case " $ac_configure_args " in
1835 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1836 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1840 if $ac_cache_corrupted; then
1841 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1842 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1843 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1844 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1845 { (exit 1); exit 1; }; }
1873 ac_cpp='$CPP $CPPFLAGS'
1874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880 LLVM_SRC_ROOT="../.."
1881 LLVM_OBJ_ROOT="../.."
1883 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1884 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1887 # Check whether --with-llvmsrc was given.
1888 if test "${with_llvmsrc+set}" = set; then
1889 withval=$with_llvmsrc; llvm_src="$withval"
1891 llvm_src="$LLVM_ABS_SRC_ROOT"
1897 # Check whether --with-llvmobj was given.
1898 if test "${with_llvmobj+set}" = set; then
1899 withval=$with_llvmobj; llvm_obj="$withval"
1901 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1906 ac_config_commands="$ac_config_commands setup"
1910 { echo "$as_me:$LINENO: checking llvm-config" >&5
1911 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1912 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1913 if ! test -f "$llvm_config_path" ; then
1914 llvm_config_path="no"
1916 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1917 echo "${ECHO_T}$llvm_config_path" >&6; }
1919 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1920 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1921 if test "$llvm_config_path" != no ; then
1922 llvm_package_version=`$llvm_config_path --version`
1924 llvm_package_version="unknown";
1926 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1927 echo "${ECHO_T}$llvm_package_version" >&6; }
1928 LLVM_VERSION=$llvm_package_version
1934 for ac_dir in autoconf "$srcdir"/autoconf; do
1935 if test -f "$ac_dir/install-sh"; then
1937 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 elif test -f "$ac_dir/install.sh"; then
1941 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 elif test -f "$ac_dir/shtool"; then
1945 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 if test -z "$ac_aux_dir"; then
1950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1951 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1952 { (exit 1); exit 1; }; }
1955 # These three variables are undocumented and unsupported,
1956 # and are intended to be withdrawn in a future Autoconf release.
1957 # They can cause serious problems if a builder's source tree is in a directory
1958 # whose full name contains unusual characters.
1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1961 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 if test -n "$ac_tool_prefix"; then
1972 for ac_prog in clang llvm-gcc gcc
1974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1978 if test "${ac_cv_prog_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 if test -n "$CC"; then
2003 { echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6; }
2006 { echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6; }
2011 test -n "$CC" && break
2014 if test -z "$CC"; then
2016 for ac_prog in clang llvm-gcc gcc
2018 # Extract the first word of "$ac_prog", so it can be a program name with args.
2019 set dummy $ac_prog; ac_word=$2
2020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 if test -n "$ac_ct_CC"; then
2026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 ac_cv_prog_ac_ct_CC="$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046 if test -n "$ac_ct_CC"; then
2047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048 echo "${ECHO_T}$ac_ct_CC" >&6; }
2050 { echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6; }
2055 test -n "$ac_ct_CC" && break
2058 if test "x$ac_ct_CC" = x; then
2061 case $cross_compiling:$ac_tool_warned in
2063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2064 whose name does not start with the host triplet. If you think this
2065 configuration is useful to you, please write to autoconf@gnu.org." >&5
2066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet. If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2069 ac_tool_warned=yes ;;
2076 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2077 See \`config.log' for more details." >&5
2078 echo "$as_me: error: no acceptable C compiler found in \$PATH
2079 See \`config.log' for more details." >&2;}
2080 { (exit 1); exit 1; }; }
2082 # Provide some information about the compiler.
2083 echo "$as_me:$LINENO: checking for C compiler version" >&5
2084 ac_compiler=`set X $ac_compile; echo $2`
2085 { (ac_try="$ac_compiler --version >&5"
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2091 (eval "$ac_compiler --version >&5") 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (ac_try="$ac_compiler -v >&5"
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler -v >&5") 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105 { (ac_try="$ac_compiler -V >&5"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -V >&5") 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2116 cat >conftest.$ac_ext <<_ACEOF
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h. */
2131 ac_clean_files_save=$ac_clean_files
2132 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2133 # Try to create an executable without -o first, disregard a.out.
2134 # It will help us diagnose broken compilers, and finding out an intuition
2136 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2137 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2138 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2140 # List of possible output files, starting from the most likely.
2141 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2142 # only as a last resort. b.out is created by i960 compilers.
2143 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2145 # The IRIX 6 linker writes into existing files which may not be
2146 # executable, retaining their permissions. Remove them first so a
2147 # subsequent execution test works.
2149 for ac_file in $ac_files
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2153 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158 if { (ac_try="$ac_link_default"
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2164 (eval "$ac_link_default") 2>&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
2168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2170 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2171 # so that the user can short-circuit this test for compilers unknown to
2173 for ac_file in $ac_files
2175 test -f "$ac_file" || continue
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2180 # We found the default executable, but exeext='' is most
2184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 # We set ac_cv_exeext here because the later test for it is not
2189 # safe: cross compilers may not add the suffix if given an `-o'
2190 # argument, so we may need to know it at that point already.
2191 # Even if this section looks crufty: it has the advantage of
2198 test "$ac_cv_exeext" = no && ac_cv_exeext=
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2204 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: C compiler cannot create executables
2207 See \`config.log' for more details." >&2;}
2208 { (exit 77); exit 77; }; }
2211 ac_exeext=$ac_cv_exeext
2212 { echo "$as_me:$LINENO: result: $ac_file" >&5
2213 echo "${ECHO_T}$ac_file" >&6; }
2215 # Check that the compiler produces executables we can run. If not, either
2216 # the compiler is broken, or we cross compile.
2217 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2219 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220 # If not cross compiling, check that we can run a simple program.
2221 if test "$cross_compiling" != yes; then
2222 if { ac_try='./$ac_file'
2223 { (case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_try") 2>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2234 if test "$cross_compiling" = maybe; then
2237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }
2247 { echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6; }
2250 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251 ac_clean_files=$ac_clean_files_save
2252 # Check that the compiler produces executables we can run. If not, either
2253 # the compiler is broken, or we cross compile.
2254 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2256 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257 echo "${ECHO_T}$cross_compiling" >&6; }
2259 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2261 if { (ac_try="$ac_link"
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_link") 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2275 for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2288 See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
2292 rm -f conftest$ac_cv_exeext
2293 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2294 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2296 rm -f conftest.$ac_ext
2297 EXEEXT=$ac_cv_exeext
2299 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2300 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2301 if test "${ac_cv_objext+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 cat >conftest.$ac_ext <<_ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2319 rm -f conftest.o conftest.obj
2320 if { (ac_try="$ac_compile"
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_compile") 2>&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; then
2330 for ac_file in conftest.o conftest.obj conftest.*; do
2331 test -f "$ac_file" || continue;
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
2349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352 echo "${ECHO_T}$ac_cv_objext" >&6; }
2353 OBJEXT=$ac_cv_objext
2355 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2357 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 cat >conftest.$ac_ext <<_ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2378 rm -f conftest.$ac_objext
2379 if { (ac_try="$ac_compile"
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385 (eval "$ac_compile") 2>conftest.er1
2387 grep -v '^ *+' conftest.er1 >conftest.err
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393 { (case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_try") 2>&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest.$ac_objext'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2424 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426 GCC=`test $ac_compiler_gnu = yes && echo yes`
2427 ac_test_CFLAGS=${CFLAGS+set}
2428 ac_save_CFLAGS=$CFLAGS
2429 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431 if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 ac_save_c_werror_flag=$ac_c_werror_flag
2435 ac_c_werror_flag=yes
2438 cat >conftest.$ac_ext <<_ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2453 rm -f conftest.$ac_objext
2454 if { (ac_try="$ac_compile"
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compile") 2>conftest.er1
2462 grep -v '^ *+' conftest.er1 >conftest.err
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468 { (case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_try") 2>&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2493 cat >conftest.$ac_ext <<_ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2508 rm -f conftest.$ac_objext
2509 if { (ac_try="$ac_compile"
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_compile") 2>conftest.er1
2517 grep -v '^ *+' conftest.er1 >conftest.err
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2523 { (case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_try") 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_try") 2>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2547 ac_c_werror_flag=$ac_save_c_werror_flag
2549 cat >conftest.$ac_ext <<_ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2564 rm -f conftest.$ac_objext
2565 if { (ac_try="$ac_compile"
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compile") 2>conftest.er1
2573 grep -v '^ *+' conftest.er1 >conftest.err
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2579 { (case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_try") 2>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 ac_c_werror_flag=$ac_save_c_werror_flag
2615 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2617 if test "$ac_test_CFLAGS" = set; then
2618 CFLAGS=$ac_save_CFLAGS
2619 elif test $ac_cv_prog_cc_g = yes; then
2620 if test "$GCC" = yes; then
2626 if test "$GCC" = yes; then
2632 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2633 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2634 if test "${ac_cv_prog_cc_c89+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 ac_cv_prog_cc_c89=no
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2647 #include <sys/types.h>
2648 #include <sys/stat.h>
2649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2650 struct buf { int x; };
2651 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652 static char *e (p, i)
2658 static char *f (char * (*g) (char **, int), char **p, ...)
2663 s = g (p, va_arg (v,int));
2668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2669 function prototypes and stuff, but not '\xHH' hex character constants.
2670 These don't provoke an error unfortunately, instead are silently treated
2671 as 'x'. The following induces an error, until -std is added to get
2672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2673 array size at least. It's necessary to write '\x00'==0 to get something
2674 that's true only with -std. */
2675 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2677 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2678 inside strings and character constants. */
2680 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2682 int test (int i, double x);
2683 struct s1 {int (*f) (int a);};
2684 struct s2 {int (*f) (double a);};
2685 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2691 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2696 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2699 CC="$ac_save_CC $ac_arg"
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2715 { (case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_try") 2>&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_try") 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 ac_cv_prog_cc_c89=$ac_arg
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2742 rm -f core conftest.err conftest.$ac_objext
2743 test "x$ac_cv_prog_cc_c89" != "xno" && break
2745 rm -f conftest.$ac_ext
2750 case "x$ac_cv_prog_cc_c89" in
2752 { echo "$as_me:$LINENO: result: none needed" >&5
2753 echo "${ECHO_T}none needed" >&6; } ;;
2755 { echo "$as_me:$LINENO: result: unsupported" >&5
2756 echo "${ECHO_T}unsupported" >&6; } ;;
2758 CC="$CC $ac_cv_prog_cc_c89"
2759 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2760 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2765 ac_cpp='$CPP $CPPFLAGS'
2766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771 ac_cpp='$CXXCPP $CPPFLAGS'
2772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2775 if test -z "$CXX"; then
2776 if test -n "$CCC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 for ac_prog in clang++ llvm-g++ g++
2782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_CXX+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 if test -n "$CXX"; then
2790 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 if test -n "$CXX"; then
2811 { echo "$as_me:$LINENO: result: $CXX" >&5
2812 echo "${ECHO_T}$CXX" >&6; }
2814 { echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6; }
2819 test -n "$CXX" && break
2822 if test -z "$CXX"; then
2824 for ac_prog in clang++ llvm-g++ g++
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827 set dummy $ac_prog; ac_word=$2
2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 if test -n "$ac_ct_CXX"; then
2834 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_ac_ct_CXX="$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2854 if test -n "$ac_ct_CXX"; then
2855 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2856 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2858 { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2863 test -n "$ac_ct_CXX" && break
2866 if test "x$ac_ct_CXX" = x; then
2869 case $cross_compiling:$ac_tool_warned in
2871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet. If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&5
2874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet. If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2877 ac_tool_warned=yes ;;
2885 # Provide some information about the compiler.
2886 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2887 ac_compiler=`set X $ac_compile; echo $2`
2888 { (ac_try="$ac_compiler --version >&5"
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compiler --version >&5") 2>&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2898 { (ac_try="$ac_compiler -v >&5"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler -v >&5") 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908 { (ac_try="$ac_compiler -V >&5"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -V >&5") 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2919 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2920 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2921 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 cat >conftest.$ac_ext <<_ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } &&
2956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2957 { (case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_try") 2>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2988 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2989 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2990 GXX=`test $ac_compiler_gnu = yes && echo yes`
2991 ac_test_CXXFLAGS=${CXXFLAGS+set}
2992 ac_save_CXXFLAGS=$CXXFLAGS
2993 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2994 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_cxx_g+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2999 ac_cxx_werror_flag=yes
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3032 { (case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_try") 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cxx_g=yes
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3081 grep -v '^ *+' conftest.er1 >conftest.err
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3137 grep -v '^ *+' conftest.er1 >conftest.err
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_prog_cxx_g=yes
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3179 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3180 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3181 if test "$ac_test_CXXFLAGS" = set; then
3182 CXXFLAGS=$ac_save_CXXFLAGS
3183 elif test $ac_cv_prog_cxx_g = yes; then
3184 if test "$GXX" = yes; then
3190 if test "$GXX" = yes; then
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3209 # On Suns, sometimes $CPP names a directory.
3210 if test -n "$CPP" && test -d "$CPP"; then
3213 if test -z "$CPP"; then
3214 if test "${ac_cv_prog_CPP+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 # Double quotes because CPP needs to be expanded
3218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3221 for ac_c_preproc_warn_flag in '' yes
3223 # Use a header file that comes with gcc, so configuring glibc
3224 # with a fresh cross-compiler works.
3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226 # <limits.h> exists even on freestanding compilers.
3227 # On the NeXT, cc -E runs the code through the compiler's parser,
3228 # not just through cpp. "Syntax error" is here to catch this case.
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3236 # include <limits.h>
3238 # include <assert.h>
3242 if { (ac_try="$ac_cpp conftest.$ac_ext"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3250 grep -v '^ *+' conftest.er1 >conftest.err
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev/null; then
3255 if test -s conftest.err; then
3256 ac_cpp_err=$ac_c_preproc_warn_flag
3257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3264 if test -z "$ac_cpp_err"; then
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3270 # Broken: fails on valid input.
3274 rm -f conftest.err conftest.$ac_ext
3276 # OK, works on sane cases. Now check whether nonexistent headers
3277 # can be detected and how.
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3284 #include <ac_nonexistent.h>
3286 if { (ac_try="$ac_cpp conftest.$ac_ext"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3308 if test -z "$ac_cpp_err"; then
3309 # Broken: success on invalid input.
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 # Passes both tests.
3320 rm -f conftest.err conftest.$ac_ext
3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324 rm -f conftest.err conftest.$ac_ext
3325 if $ac_preproc_ok; then
3337 { echo "$as_me:$LINENO: result: $CPP" >&5
3338 echo "${ECHO_T}$CPP" >&6; }
3340 for ac_c_preproc_warn_flag in '' yes
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3355 # include <limits.h>
3357 # include <assert.h>
3361 if { (ac_try="$ac_cpp conftest.$ac_ext"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null; then
3374 if test -s conftest.err; then
3375 ac_cpp_err=$ac_c_preproc_warn_flag
3376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3383 if test -z "$ac_cpp_err"; then
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 # Broken: fails on valid input.
3393 rm -f conftest.err conftest.$ac_ext
3395 # OK, works on sane cases. Now check whether nonexistent headers
3396 # can be detected and how.
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #include <ac_nonexistent.h>
3405 if { (ac_try="$ac_cpp conftest.$ac_ext"
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3413 grep -v '^ *+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427 if test -z "$ac_cpp_err"; then
3428 # Broken: success on invalid input.
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 # Passes both tests.
3439 rm -f conftest.err conftest.$ac_ext
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.err conftest.$ac_ext
3444 if $ac_preproc_ok; then
3447 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448 See \`config.log' for more details." >&5
3449 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463 # Check whether --enable-polly was given.
3464 if test "${enable_polly+set}" = set; then
3465 enableval=$enable_polly;
3470 case "$enableval" in
3475 default) ENABLE_POLLY=1
3477 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3478 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3479 { (exit 1); exit 1; }; } ;;
3483 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3486 subdirs="$subdirs tools/polly"
3491 # Make sure we can run config.sub.
3492 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3493 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3494 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3495 { (exit 1); exit 1; }; }
3497 { echo "$as_me:$LINENO: checking build system type" >&5
3498 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3499 if test "${ac_cv_build+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 ac_build_alias=$build_alias
3503 test "x$ac_build_alias" = x &&
3504 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3505 test "x$ac_build_alias" = x &&
3506 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3507 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3508 { (exit 1); exit 1; }; }
3509 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3510 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3511 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3512 { (exit 1); exit 1; }; }
3515 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3516 echo "${ECHO_T}$ac_cv_build" >&6; }
3517 case $ac_cv_build in
3519 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3520 echo "$as_me: error: invalid value of canonical build" >&2;}
3521 { (exit 1); exit 1; }; };;
3524 ac_save_IFS=$IFS; IFS='-'
3530 # Remember, the first character of IFS is used to create $*,
3531 # except with old shells:
3534 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3537 { echo "$as_me:$LINENO: checking host system type" >&5
3538 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3539 if test "${ac_cv_host+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 if test "x$host_alias" = x; then
3543 ac_cv_host=$ac_cv_build
3545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3546 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3547 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3548 { (exit 1); exit 1; }; }
3552 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3553 echo "${ECHO_T}$ac_cv_host" >&6; }
3556 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3557 echo "$as_me: error: invalid value of canonical host" >&2;}
3558 { (exit 1); exit 1; }; };;
3561 ac_save_IFS=$IFS; IFS='-'
3567 # Remember, the first character of IFS is used to create $*,
3568 # except with old shells:
3571 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3574 { echo "$as_me:$LINENO: checking target system type" >&5
3575 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3576 if test "${ac_cv_target+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 if test "x$target_alias" = x; then
3580 ac_cv_target=$ac_cv_host
3582 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3583 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3584 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3585 { (exit 1); exit 1; }; }
3589 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3590 echo "${ECHO_T}$ac_cv_target" >&6; }
3591 case $ac_cv_target in
3593 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3594 echo "$as_me: error: invalid value of canonical target" >&2;}
3595 { (exit 1); exit 1; }; };;
3597 target=$ac_cv_target
3598 ac_save_IFS=$IFS; IFS='-'
3604 # Remember, the first character of IFS is used to create $*,
3605 # except with old shells:
3608 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3611 # The aliases save the names the user supplied, while $host etc.
3612 # will get canonicalized.
3613 test -n "$target_alias" &&
3614 test "$program_prefix$program_suffix$program_transform_name" = \
3616 program_prefix=${target_alias}-
3618 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3619 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3620 if test "${llvm_cv_os_type+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 llvm_cv_link_all_option="-Wl,--whole-archive"
3626 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3627 llvm_cv_os_type="AIX"
3628 llvm_cv_platform_type="Unix" ;;
3630 llvm_cv_link_all_option="-Wl,--whole-archive"
3631 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3632 llvm_cv_os_type="IRIX"
3633 llvm_cv_platform_type="Unix" ;;
3635 llvm_cv_link_all_option="-Wl,--whole-archive"
3636 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3637 llvm_cv_os_type="Cygwin"
3638 llvm_cv_platform_type="Unix" ;;
3640 llvm_cv_link_all_option="-Wl,-all_load"
3641 llvm_cv_no_link_all_option="-Wl,-noall_load"
3642 llvm_cv_os_type="Darwin"
3643 llvm_cv_platform_type="Unix" ;;
3645 llvm_cv_link_all_option="-Wl,-all_load"
3646 llvm_cv_no_link_all_option="-Wl,-noall_load"
3647 llvm_cv_os_type="Minix"
3648 llvm_cv_platform_type="Unix" ;;
3649 *-*-freebsd* | *-*-kfreebsd-gnu)
3650 llvm_cv_link_all_option="-Wl,--whole-archive"
3651 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3652 llvm_cv_os_type="FreeBSD"
3653 llvm_cv_platform_type="Unix" ;;
3655 llvm_cv_link_all_option="-Wl,--whole-archive"
3656 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3657 llvm_cv_os_type="OpenBSD"
3658 llvm_cv_platform_type="Unix" ;;
3660 llvm_cv_link_all_option="-Wl,--whole-archive"
3661 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3662 llvm_cv_os_type="NetBSD"
3663 llvm_cv_platform_type="Unix" ;;
3665 llvm_cv_link_all_option="-Wl,--whole-archive"
3666 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3667 llvm_cv_os_type="DragonFly"
3668 llvm_cv_platform_type="Unix" ;;
3670 llvm_cv_link_all_option="-Wl,--whole-archive"
3671 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3672 llvm_cv_os_type="HP-UX"
3673 llvm_cv_platform_type="Unix" ;;
3675 llvm_cv_link_all_option="-Wl,--whole-archive"
3676 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3677 llvm_cv_os_type="Interix"
3678 llvm_cv_platform_type="Unix" ;;
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="Linux"
3683 llvm_cv_platform_type="Unix" ;;
3685 llvm_cv_link_all_option="-Wl,--whole-archive"
3686 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687 llvm_cv_os_type="GNU"
3688 llvm_cv_platform_type="Unix" ;;
3690 llvm_cv_link_all_option="-Wl,-z,allextract"
3691 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3692 llvm_cv_os_type="SunOS"
3693 llvm_cv_platform_type="Unix" ;;
3695 llvm_cv_link_all_option="-Wl,-z,allextract"
3696 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3697 llvm_cv_os_type="AuroraUX"
3698 llvm_cv_platform_type="Unix" ;;
3700 llvm_cv_link_all_option="-Wl,--whole-archive"
3701 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3702 llvm_cv_os_type="Win32"
3703 llvm_cv_platform_type="Win32" ;;
3705 llvm_cv_link_all_option="-Wl,--whole-archive"
3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707 llvm_cv_os_type="MingW"
3708 llvm_cv_platform_type="Win32" ;;
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="Haiku"
3713 llvm_cv_platform_type="Unix" ;;
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="Freestanding"
3718 llvm_cv_platform_type="Unix" ;;
3720 llvm_cv_link_all_option="-Wl,--whole-archive"
3721 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722 llvm_cv_os_type="Freestanding"
3723 llvm_cv_platform_type="Unix" ;;
3725 llvm_cv_link_all_option=""
3726 llvm_cv_no_link_all_option=""
3727 llvm_cv_os_type="Unknown"
3728 llvm_cv_platform_type="Unknown" ;;
3731 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3732 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3734 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3735 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3736 if test "${llvm_cv_target_os_type+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 llvm_cv_target_os_type="AIX" ;;
3743 llvm_cv_target_os_type="IRIX" ;;
3745 llvm_cv_target_os_type="Cygwin" ;;
3747 llvm_cv_target_os_type="Darwin" ;;
3749 llvm_cv_target_os_type="Minix" ;;
3750 *-*-freebsd* | *-*-kfreebsd-gnu)
3751 llvm_cv_target_os_type="FreeBSD" ;;
3753 llvm_cv_target_os_type="OpenBSD" ;;
3755 llvm_cv_target_os_type="NetBSD" ;;
3757 llvm_cv_target_os_type="DragonFly" ;;
3759 llvm_cv_target_os_type="HP-UX" ;;
3761 llvm_cv_target_os_type="Interix" ;;
3763 llvm_cv_target_os_type="Linux" ;;
3765 llvm_cv_target_os_type="GNU" ;;
3767 llvm_cv_target_os_type="SunOS" ;;
3769 llvm_cv_target_os_type="AuroraUX" ;;
3771 llvm_cv_target_os_type="Win32" ;;
3773 llvm_cv_target_os_type="MingW" ;;
3775 llvm_cv_target_os_type="Haiku" ;;
3777 llvm_cv_target_os_type="RTEMS" ;;
3779 llvm_cv_target_os_type="NativeClient" ;;
3781 llvm_cv_target_os_type="Freestanding" ;;
3783 llvm_cv_target_os_type="Unknown" ;;
3786 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3787 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3789 if test "$llvm_cv_os_type" = "Unknown" ; then
3790 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3791 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3792 { (exit 1); exit 1; }; }
3797 HOST_OS=$llvm_cv_os_type
3799 TARGET_OS=$llvm_cv_target_os_type
3802 LINKALL=$llvm_cv_link_all_option
3804 NOLINKALL=$llvm_cv_no_link_all_option
3807 case $llvm_cv_platform_type in
3810 cat >>confdefs.h <<\_ACEOF
3811 #define LLVM_ON_UNIX 1
3821 cat >>confdefs.h <<\_ACEOF
3822 #define LLVM_ON_WIN32 1
3832 { echo "$as_me:$LINENO: checking target architecture" >&5
3833 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3834 if test "${llvm_cv_target_arch+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 i?86-*) llvm_cv_target_arch="x86" ;;
3839 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3840 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3841 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3842 arm*-*) llvm_cv_target_arch="ARM" ;;
3843 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3844 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3845 xcore-*) llvm_cv_target_arch="XCore" ;;
3846 msp430-*) llvm_cv_target_arch="MSP430" ;;
3847 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3848 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3849 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3850 *) llvm_cv_target_arch="Unknown" ;;
3853 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3854 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3856 if test "$llvm_cv_target_arch" = "Unknown" ; then
3857 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3858 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3861 # Determine the LLVM native architecture for the target
3862 case "$llvm_cv_target_arch" in
3863 x86) LLVM_NATIVE_ARCH="X86" ;;
3864 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3865 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3868 ARCH=$llvm_cv_target_arch
3873 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3874 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3875 if test "${ac_cv_path_GREP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 # Extract the first word of "grep ggrep" to use in msg output
3879 if test -z "$GREP"; then
3880 set dummy grep ggrep; ac_prog_name=$2
3881 if test "${ac_cv_path_GREP+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 ac_path_GREP_found=false
3885 # Loop through the user's path and test for each of PROGNAME-LIST
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890 test -z "$as_dir" && as_dir=.
3891 for ac_prog in grep ggrep; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3894 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3895 # Check for GNU ac_path_GREP and select it if it is found.
3896 # Check for GNU $ac_path_GREP
3897 case `"$ac_path_GREP" --version 2>&1` in
3899 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3902 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3905 cat "conftest.in" "conftest.in" >"conftest.tmp"
3906 mv "conftest.tmp" "conftest.in"
3907 cp "conftest.in" "conftest.nl"
3908 echo 'GREP' >> "conftest.nl"
3909 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911 ac_count=`expr $ac_count + 1`
3912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3913 # Best one so far, save it but keep looking for a better one
3914 ac_cv_path_GREP="$ac_path_GREP"
3915 ac_path_GREP_max=$ac_count
3917 # 10*(2^10) chars as input seems more than enough
3918 test $ac_count -gt 10 && break
3920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3924 $ac_path_GREP_found && break 3
3934 GREP="$ac_cv_path_GREP"
3935 if test -z "$GREP"; then
3936 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3937 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3938 { (exit 1); exit 1; }; }
3942 ac_cv_path_GREP=$GREP
3947 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3948 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3949 GREP="$ac_cv_path_GREP"
3952 { echo "$as_me:$LINENO: checking for egrep" >&5
3953 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3954 if test "${ac_cv_path_EGREP+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3958 then ac_cv_path_EGREP="$GREP -E"
3960 # Extract the first word of "egrep" to use in msg output
3961 if test -z "$EGREP"; then
3962 set dummy egrep; ac_prog_name=$2
3963 if test "${ac_cv_path_EGREP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 ac_path_EGREP_found=false
3967 # Loop through the user's path and test for each of PROGNAME-LIST
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972 test -z "$as_dir" && as_dir=.
3973 for ac_prog in egrep; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3976 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3977 # Check for GNU ac_path_EGREP and select it if it is found.
3978 # Check for GNU $ac_path_EGREP
3979 case `"$ac_path_EGREP" --version 2>&1` in
3981 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3984 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3987 cat "conftest.in" "conftest.in" >"conftest.tmp"
3988 mv "conftest.tmp" "conftest.in"
3989 cp "conftest.in" "conftest.nl"
3990 echo 'EGREP' >> "conftest.nl"
3991 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993 ac_count=`expr $ac_count + 1`
3994 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3995 # Best one so far, save it but keep looking for a better one
3996 ac_cv_path_EGREP="$ac_path_EGREP"
3997 ac_path_EGREP_max=$ac_count
3999 # 10*(2^10) chars as input seems more than enough
4000 test $ac_count -gt 10 && break
4002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 $ac_path_EGREP_found && break 3
4016 EGREP="$ac_cv_path_EGREP"
4017 if test -z "$EGREP"; then
4018 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4019 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4020 { (exit 1); exit 1; }; }
4024 ac_cv_path_EGREP=$EGREP
4030 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4031 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4032 EGREP="$ac_cv_path_EGREP"
4035 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4036 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4037 if test "${ac_cv_header_stdc+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4059 rm -f conftest.$ac_objext
4060 if { (ac_try="$ac_compile"
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_compile") 2>conftest.er1
4068 grep -v '^ *+' conftest.er1 >conftest.err
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4074 { (case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_try") 2>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest.$ac_objext'
4084 { (case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_try") 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_cv_header_stdc=yes
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 ac_cv_header_stdc=no
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 if test $ac_cv_header_stdc = yes; then
4104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4105 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 $EGREP "memchr" >/dev/null 2>&1; then
4118 ac_cv_header_stdc=no
4124 if test $ac_cv_header_stdc = yes; then
4125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136 $EGREP "free" >/dev/null 2>&1; then
4139 ac_cv_header_stdc=no
4145 if test $ac_cv_header_stdc = yes; then
4146 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4147 if test "$cross_compiling" = yes; then
4150 cat >conftest.$ac_ext <<_ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4158 #if ((' ' & 0x0FF) == 0x020)
4159 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4160 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4162 # define ISLOWER(c) \
4163 (('a' <= (c) && (c) <= 'i') \
4164 || ('j' <= (c) && (c) <= 'r') \
4165 || ('s' <= (c) && (c) <= 'z'))
4166 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4169 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4174 for (i = 0; i < 256; i++)
4175 if (XOR (islower (i), ISLOWER (i))
4176 || toupper (i) != TOUPPER (i))
4181 rm -f conftest$ac_exeext
4182 if { (ac_try="$ac_link"
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_link") 2>&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4203 echo "$as_me: program exited with status $ac_status" >&5
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4208 ac_cv_header_stdc=no
4210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4216 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4217 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4218 if test $ac_cv_header_stdc = yes; then
4220 cat >>confdefs.h <<\_ACEOF
4221 #define STDC_HEADERS 1
4226 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237 inttypes.h stdint.h unistd.h
4239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 $ac_includes_default
4253 #include <$ac_header>
4255 rm -f conftest.$ac_objext
4256 if { (ac_try="$ac_compile"
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_compile") 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 eval "$as_ac_Header=yes"
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4294 eval "$as_ac_Header=no"
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_res=`eval echo '${'$as_ac_Header'}'`
4300 { echo "$as_me:$LINENO: result: $ac_res" >&5
4301 echo "${ECHO_T}$ac_res" >&6; }
4302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4303 cat >>confdefs.h <<_ACEOF
4304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4313 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4314 if test "${ac_cv_c_bigendian+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 # See if sys/param.h defines the BYTE_ORDER macro.
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 #include <sys/types.h>
4325 #include <sys/param.h>
4330 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4338 rm -f conftest.$ac_objext
4339 if { (ac_try="$ac_compile"
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_compile") 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4353 { (case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_try") 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_try") 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 # It does; now see whether it defined to BIG_ENDIAN or not.
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 #include <sys/types.h>
4380 #include <sys/param.h>
4385 #if BYTE_ORDER != BIG_ENDIAN
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_compile") 2>conftest.er1
4402 grep -v '^ *+' conftest.er1 >conftest.err
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_try") 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_c_bigendian=yes
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 ac_cv_c_bigendian=no
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 # It does not; compile a test program.
4441 if test "$cross_compiling" = yes; then
4442 # try to guess the endianness by grepping values into an object file
4443 ac_cv_c_bigendian=unknown
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4451 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4452 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4453 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4454 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4455 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4459 _ascii (); _ebcdic ();
4464 rm -f conftest.$ac_objext
4465 if { (ac_try="$ac_compile"
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_compile") 2>conftest.er1
4473 grep -v '^ *+' conftest.er1 >conftest.err
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4479 { (case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_try") 2>&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_try") 2>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4499 ac_cv_c_bigendian=yes
4501 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4502 if test "$ac_cv_c_bigendian" = unknown; then
4503 ac_cv_c_bigendian=no
4505 # finding both strings is unlikely to happen, but who knows?
4506 ac_cv_c_bigendian=unknown
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 cat >conftest.$ac_ext <<_ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 $ac_includes_default
4529 /* Are we little or big endian? From Harbison&Steele. */
4533 char c[sizeof (long int)];
4536 return u.c[sizeof (long int) - 1] == 1;
4542 rm -f conftest$ac_exeext
4543 if { (ac_try="$ac_link"
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_link") 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4553 { (case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_try") 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4562 ac_cv_c_bigendian=no
4564 echo "$as_me: program exited with status $ac_status" >&5
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4569 ac_cv_c_bigendian=yes
4571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4580 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4581 case $ac_cv_c_bigendian in
4589 { { echo "$as_me:$LINENO: error: unknown endianness
4590 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4591 echo "$as_me: error: unknown endianness
4592 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4593 { (exit 1); exit 1; }; } ;;
4597 if test "$cross_compiling" = yes; then
4598 LLVM_CROSS_COMPILING=1
4601 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4602 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4603 if test "${ac_cv_build_exeext+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4607 ac_cv_build_exeext=.exe
4609 ac_build_prefix=${build_alias}-
4611 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4612 set dummy ${ac_build_prefix}gcc; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 if test -n "$BUILD_CC"; then
4619 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 BUILD_CC=$ac_cv_prog_BUILD_CC
4639 if test -n "$BUILD_CC"; then
4640 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4641 echo "${ECHO_T}$BUILD_CC" >&6; }
4643 { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4648 if test -z "$BUILD_CC"; then
4649 # Extract the first word of "gcc", so it can be a program name with args.
4650 set dummy gcc; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 if test -n "$BUILD_CC"; then
4657 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 ac_cv_prog_BUILD_CC="gcc"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 BUILD_CC=$ac_cv_prog_BUILD_CC
4677 if test -n "$BUILD_CC"; then
4678 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4679 echo "${ECHO_T}$BUILD_CC" >&6; }
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4686 if test -z "$BUILD_CC"; then
4687 # Extract the first word of "cc", so it can be a program name with args.
4688 set dummy cc; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 if test -n "$BUILD_CC"; then
4695 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4706 ac_prog_rejected=yes
4709 ac_cv_prog_BUILD_CC="cc"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 if test $ac_prog_rejected = yes; then
4718 # We found a bogon in the path, so make sure we never use it.
4719 set dummy $ac_cv_prog_BUILD_CC
4721 if test $# != 0; then
4722 # We chose a different compiler from the bogus one.
4723 # However, it has the same basename, so the bogon will be chosen
4724 # first if we set BUILD_CC to just the basename; use the full file name.
4726 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4731 BUILD_CC=$ac_cv_prog_BUILD_CC
4732 if test -n "$BUILD_CC"; then
4733 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4734 echo "${ECHO_T}$BUILD_CC" >&6; }
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4743 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4744 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4745 { (exit 1); exit 1; }; }
4746 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4748 echo 'int main () { return 0; }' > conftest.$ac_ext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4751 (eval $ac_build_link) 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; then
4755 for file in conftest.*; do
4757 *.c | *.o | *.obj | *.dSYM) ;;
4758 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4762 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4763 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4764 { (exit 1); exit 1; }; }
4767 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4772 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4773 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4774 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4775 ac_build_exeext=$BUILD_EXEEXT
4777 ac_build_prefix=${build_alias}-
4778 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4779 set dummy ${ac_build_prefix}g++; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 if test -n "$BUILD_CXX"; then
4786 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4806 if test -n "$BUILD_CXX"; then
4807 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4808 echo "${ECHO_T}$BUILD_CXX" >&6; }
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4815 if test -z "$BUILD_CXX"; then
4816 # Extract the first word of "g++", so it can be a program name with args.
4817 set dummy g++; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 if test -n "$BUILD_CXX"; then
4824 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_BUILD_CXX="g++"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4844 if test -n "$BUILD_CXX"; then
4845 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4846 echo "${ECHO_T}$BUILD_CXX" >&6; }
4848 { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4853 if test -z "$BUILD_CXX"; then
4854 # Extract the first word of "c++", so it can be a program name with args.
4855 set dummy c++; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test -n "$BUILD_CXX"; then
4862 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4873 ac_prog_rejected=yes
4876 ac_cv_prog_BUILD_CXX="c++"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 if test $ac_prog_rejected = yes; then
4885 # We found a bogon in the path, so make sure we never use it.
4886 set dummy $ac_cv_prog_BUILD_CXX
4888 if test $# != 0; then
4889 # We chose a different compiler from the bogus one.
4890 # However, it has the same basename, so the bogon will be chosen
4891 # first if we set BUILD_CXX to just the basename; use the full file name.
4893 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4898 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4899 if test -n "$BUILD_CXX"; then
4900 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4901 echo "${ECHO_T}$BUILD_CXX" >&6; }
4903 { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4911 LLVM_CROSS_COMPILING=0
4915 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4926 # Check whether --enable-libcpp was given.
4927 if test "${enable_libcpp+set}" = set; then
4928 enableval=$enable_libcpp;
4933 case "$enableval" in
4934 yes) ENABLE_LIBCPP=1
4938 default) ENABLE_LIBCPP=0
4940 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4941 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4942 { (exit 1); exit 1; }; } ;;
4945 # Check whether --enable-optimized was given.
4946 if test "${enable_optimized+set}" = set; then
4947 enableval=$enable_optimized;
4952 if test ${enableval} = "no" ; then
4956 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4960 # Check whether --enable-profiling was given.
4961 if test "${enable_profiling+set}" = set; then
4962 enableval=$enable_profiling;
4967 if test ${enableval} = "no" ; then
4971 ENABLE_PROFILING=ENABLE_PROFILING=1
4975 # Check whether --enable-assertions was given.
4976 if test "${enable_assertions+set}" = set; then
4977 enableval=$enable_assertions;
4982 if test ${enableval} = "yes" ; then
4986 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4990 # Check whether --enable-expensive-checks was given.
4991 if test "${enable_expensive_checks+set}" = set; then
4992 enableval=$enable_expensive_checks;
4997 if test ${enableval} = "yes" ; then
4998 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5000 EXPENSIVE_CHECKS=yes
5003 ENABLE_EXPENSIVE_CHECKS=
5009 # Check whether --enable-debug-runtime was given.
5010 if test "${enable_debug_runtime+set}" = set; then
5011 enableval=$enable_debug_runtime;
5016 if test ${enableval} = "no" ; then
5020 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5024 # Check whether --enable-debug-symbols was given.
5025 if test "${enable_debug_symbols+set}" = set; then
5026 enableval=$enable_debug_symbols;
5031 if test ${enableval} = "no" ; then
5035 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5039 # Check whether --enable-jit was given.
5040 if test "${enable_jit+set}" = set; then
5041 enableval=$enable_jit;
5046 if test ${enableval} = "no"
5051 case "$llvm_cv_target_arch" in
5052 x86) TARGET_HAS_JIT=1
5054 Sparc) TARGET_HAS_JIT=0
5056 PowerPC) TARGET_HAS_JIT=1
5058 x86_64) TARGET_HAS_JIT=1
5060 ARM) TARGET_HAS_JIT=1
5062 Mips) TARGET_HAS_JIT=1
5064 XCore) TARGET_HAS_JIT=0
5066 MSP430) TARGET_HAS_JIT=0
5068 Hexagon) TARGET_HAS_JIT=0
5070 MBlaze) TARGET_HAS_JIT=0
5072 NVPTX) TARGET_HAS_JIT=0
5079 # Check whether --enable-docs was given.
5080 if test "${enable_docs+set}" = set; then
5081 enableval=$enable_docs;
5086 case "$enableval" in
5091 default) ENABLE_DOCS=1
5093 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5094 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5095 { (exit 1); exit 1; }; } ;;
5098 # Check whether --enable-doxygen was given.
5099 if test "${enable_doxygen+set}" = set; then
5100 enableval=$enable_doxygen;
5105 case "$enableval" in
5106 yes) ENABLE_DOXYGEN=1
5108 no) ENABLE_DOXYGEN=0
5110 default) ENABLE_DOXYGEN=0
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5117 # Check whether --enable-threads was given.
5118 if test "${enable_threads+set}" = set; then
5119 enableval=$enable_threads;
5124 case "$enableval" in
5125 yes) ENABLE_THREADS=1
5127 no) ENABLE_THREADS=0
5129 default) ENABLE_THREADS=1
5131 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5132 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5133 { (exit 1); exit 1; }; } ;;
5136 cat >>confdefs.h <<_ACEOF
5137 #define ENABLE_THREADS $ENABLE_THREADS
5141 # Check whether --enable-pthreads was given.
5142 if test "${enable_pthreads+set}" = set; then
5143 enableval=$enable_pthreads;
5148 case "$enableval" in
5149 yes) ENABLE_PTHREADS=1
5151 no) ENABLE_PTHREADS=0
5153 default) ENABLE_PTHREADS=1
5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5156 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5157 { (exit 1); exit 1; }; } ;;
5160 # Check whether --enable-pic was given.
5161 if test "${enable_pic+set}" = set; then
5162 enableval=$enable_pic;
5167 case "$enableval" in
5172 default) ENABLE_PIC=1
5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5179 cat >>confdefs.h <<_ACEOF
5180 #define ENABLE_PIC $ENABLE_PIC
5184 # Check whether --enable-shared was given.
5185 if test "${enable_shared+set}" = set; then
5186 enableval=$enable_shared;
5191 case "$enableval" in
5192 yes) ENABLE_SHARED=1
5196 default) ENABLE_SHARED=0
5198 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5200 { (exit 1); exit 1; }; } ;;
5203 # Check whether --enable-embed-stdcxx was given.
5204 if test "${enable_embed_stdcxx+set}" = set; then
5205 enableval=$enable_embed_stdcxx;
5210 case "$enableval" in
5211 yes) ENABLE_EMBED_STDCXX=1
5213 no) ENABLE_EMBED_STDCXX=0
5215 default) ENABLE_EMBED_STDCXX=1
5217 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5219 { (exit 1); exit 1; }; } ;;
5222 # Check whether --enable-timestamps was given.
5223 if test "${enable_timestamps+set}" = set; then
5224 enableval=$enable_timestamps;
5229 case "$enableval" in
5230 yes) ENABLE_TIMESTAMPS=1
5232 no) ENABLE_TIMESTAMPS=0
5234 default) ENABLE_TIMESTAMPS=1
5236 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5237 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5238 { (exit 1); exit 1; }; } ;;
5241 cat >>confdefs.h <<_ACEOF
5242 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5247 # Check whether --enable-targets was given.
5248 if test "${enable_targets+set}" = set; then
5249 enableval=$enable_targets;
5254 if test "$enableval" = host-only ; then
5257 case "$enableval" in
5258 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze NVPTX" ;;
5259 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5261 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5262 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5263 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5264 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5265 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5266 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5267 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5268 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5269 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5270 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5271 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5272 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5273 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5274 host) case "$llvm_cv_target_arch" in
5275 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5276 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5277 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5278 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5279 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5280 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5281 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5282 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5283 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5284 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5285 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5286 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5287 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5288 echo "$as_me: error: Can not set target to build" >&2;}
5289 { (exit 1); exit 1; }; } ;;
5291 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5292 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5298 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5301 # Determine whether we are building LLVM support for the native architecture.
5302 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5303 for a_target in $TARGETS_TO_BUILD; do
5304 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5306 cat >>confdefs.h <<_ACEOF
5307 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5310 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5311 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5312 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5313 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5314 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5315 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5317 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5318 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5321 cat >>confdefs.h <<_ACEOF
5322 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5326 cat >>confdefs.h <<_ACEOF
5327 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5331 cat >>confdefs.h <<_ACEOF
5332 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5336 cat >>confdefs.h <<_ACEOF
5337 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5340 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5342 cat >>confdefs.h <<_ACEOF
5343 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5347 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5349 cat >>confdefs.h <<_ACEOF
5350 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5357 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5358 # target feature def files.
5359 LLVM_ENUM_TARGETS=""
5360 LLVM_ENUM_ASM_PRINTERS=""
5361 LLVM_ENUM_ASM_PARSERS=""
5362 LLVM_ENUM_DISASSEMBLERS=""
5363 for target_to_build in $TARGETS_TO_BUILD; do
5364 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5365 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5366 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5368 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5369 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5371 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5372 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5381 # Check whether --with-optimize-option was given.
5382 if test "${with_optimize_option+set}" = set; then
5383 withval=$with_optimize_option;
5388 { echo "$as_me:$LINENO: checking optimization flags" >&5
5389 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5392 case "$llvm_cv_os_type" in
5393 FreeBSD) optimize_option=-O2 ;;
5394 MingW) optimize_option=-O2 ;;
5395 *) optimize_option=-O3 ;;
5397 *) optimize_option="$withval" ;;
5399 OPTIMIZE_OPTION=$optimize_option
5401 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5402 echo "${ECHO_T}$optimize_option" >&6; }
5405 # Check whether --with-extra-options was given.
5406 if test "${with_extra_options+set}" = set; then
5407 withval=$with_extra_options;
5413 default) EXTRA_OPTIONS= ;;
5414 *) EXTRA_OPTIONS=$withval ;;
5416 EXTRA_OPTIONS=$EXTRA_OPTIONS
5420 # Check whether --with-extra-ld-options was given.
5421 if test "${with_extra_ld_options+set}" = set; then
5422 withval=$with_extra_ld_options;
5428 default) EXTRA_LD_OPTIONS= ;;
5429 *) EXTRA_LD_OPTIONS=$withval ;;
5431 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5434 # Check whether --enable-bindings was given.
5435 if test "${enable_bindings+set}" = set; then
5436 enableval=$enable_bindings;
5441 BINDINGS_TO_BUILD=""
5442 case "$enableval" in
5443 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5444 all ) BINDINGS_TO_BUILD="ocaml" ;;
5445 none | no) BINDINGS_TO_BUILD="" ;;
5446 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5447 case "$a_binding" in
5448 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5449 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5450 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5451 { (exit 1); exit 1; }; } ;;
5458 # Check whether --with-ocaml-libdir was given.
5459 if test "${with_ocaml_libdir+set}" = set; then
5460 withval=$with_ocaml_libdir;
5466 auto) with_ocaml_libdir="$withval" ;;
5467 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5468 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5469 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5470 { (exit 1); exit 1; }; } ;;
5474 # Check whether --with-clang-resource-dir was given.
5475 if test "${with_clang_resource_dir+set}" = set; then
5476 withval=$with_clang_resource_dir;
5482 cat >>confdefs.h <<_ACEOF
5483 #define CLANG_RESOURCE_DIR "$withval"
5488 # Check whether --with-c-include-dirs was given.
5489 if test "${with_c_include_dirs+set}" = set; then
5490 withval=$with_c_include_dirs;
5496 cat >>confdefs.h <<_ACEOF
5497 #define C_INCLUDE_DIRS "$withval"
5501 # Clang normally uses the system c++ headers and libraries. With this option,
5502 # clang will use the ones provided by a gcc installation instead. This option should
5503 # be passed the same value that was used with --prefix when configuring gcc.
5505 # Check whether --with-gcc-toolchain was given.
5506 if test "${with_gcc_toolchain+set}" = set; then
5507 withval=$with_gcc_toolchain;
5513 cat >>confdefs.h <<_ACEOF
5514 #define GCC_INSTALL_PREFIX "$withval"
5519 # Check whether --with-binutils-include was given.
5520 if test "${with_binutils_include+set}" = set; then
5521 withval=$with_binutils_include;
5527 default) WITH_BINUTILS_INCDIR=default ;;
5528 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5529 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5530 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5531 { (exit 1); exit 1; }; } ;;
5533 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5534 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5536 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5537 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5538 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5539 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5540 { (exit 1); exit 1; }; };
5545 # Check whether --with-bug-report-url was given.
5546 if test "${with_bug_report_url+set}" = set; then
5547 withval=$with_bug_report_url;
5549 withval="http://llvm.org/bugs/"
5553 cat >>confdefs.h <<_ACEOF
5554 #define BUG_REPORT_URL "$withval"
5558 # Check whether --enable-libffi was given.
5559 if test "${enable_libffi+set}" = set; then
5560 enableval=$enable_libffi; case "$enableval" in
5561 yes) llvm_cv_enable_libffi="yes" ;;
5562 no) llvm_cv_enable_libffi="no" ;;
5563 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5564 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5565 { (exit 1); exit 1; }; } ;;
5568 llvm_cv_enable_libffi=no
5573 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5574 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5575 if test "${lt_cv_path_NM+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 if test -n "$NM"; then
5579 # Let the user override the test.
5582 lt_nm_to_check="${ac_tool_prefix}nm"
5583 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5584 lt_nm_to_check="$lt_nm_to_check nm"
5586 for lt_tmp_nm in $lt_nm_to_check; do
5587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5588 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5590 test -z "$ac_dir" && ac_dir=.
5591 tmp_nm="$ac_dir/$lt_tmp_nm"
5592 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5593 # Check to see if the nm accepts a BSD-compat flag.
5594 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5595 # nm: unknown option "B" ignored
5596 # Tru64's nm complains that /dev/null is an invalid object file
5597 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5598 */dev/null* | *'Invalid file or object type'*)
5599 lt_cv_path_NM="$tmp_nm -B"
5603 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5605 lt_cv_path_NM="$tmp_nm -p"
5609 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5610 continue # so that we can try to find one that supports BSD flags
5619 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5622 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5623 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5628 { echo "$as_me:$LINENO: checking for GNU make" >&5
5629 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5630 if test "${llvm_cv_gnu_make_command+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 llvm_cv_gnu_make_command=''
5634 for a in "$MAKE" make gmake gnumake ; do
5635 if test -z "$a" ; then continue ; fi ;
5636 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5638 llvm_cv_gnu_make_command=$a ;
5643 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5644 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5645 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5649 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5650 echo "${ECHO_T}\"Not found\"" >&6; };
5654 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5655 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5657 if test "$LN_S" = "ln -s"; then
5658 { echo "$as_me:$LINENO: result: yes" >&5
5659 echo "${ECHO_T}yes" >&6; }
5661 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5662 echo "${ECHO_T}no, using $LN_S" >&6; }
5665 # Extract the first word of "cmp", so it can be a program name with args.
5666 set dummy cmp; ac_word=$2
5667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5669 if test "${ac_cv_path_CMP+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5697 if test -n "$CMP"; then
5698 { echo "$as_me:$LINENO: result: $CMP" >&5
5699 echo "${ECHO_T}$CMP" >&6; }
5701 { echo "$as_me:$LINENO: result: no" >&5
5702 echo "${ECHO_T}no" >&6; }
5706 # Extract the first word of "cp", so it can be a program name with args.
5707 set dummy cp; ac_word=$2
5708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710 if test "${ac_cv_path_CP+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5738 if test -n "$CP"; then
5739 { echo "$as_me:$LINENO: result: $CP" >&5
5740 echo "${ECHO_T}$CP" >&6; }
5742 { echo "$as_me:$LINENO: result: no" >&5
5743 echo "${ECHO_T}no" >&6; }
5747 # Extract the first word of "date", so it can be a program name with args.
5748 set dummy date; ac_word=$2
5749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5751 if test "${ac_cv_path_DATE+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 test -z "$as_dir" && as_dir=.
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5766 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5778 DATE=$ac_cv_path_DATE
5779 if test -n "$DATE"; then
5780 { echo "$as_me:$LINENO: result: $DATE" >&5
5781 echo "${ECHO_T}$DATE" >&6; }
5783 { echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6; }
5788 # Extract the first word of "find", so it can be a program name with args.
5789 set dummy find; ac_word=$2
5790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5792 if test "${ac_cv_path_FIND+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5807 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5819 FIND=$ac_cv_path_FIND
5820 if test -n "$FIND"; then
5821 { echo "$as_me:$LINENO: result: $FIND" >&5
5822 echo "${ECHO_T}$FIND" >&6; }
5824 { echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6; }
5829 # Extract the first word of "grep", so it can be a program name with args.
5830 set dummy grep; ac_word=$2
5831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5833 if test "${ac_cv_path_GREP+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5848 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5860 GREP=$ac_cv_path_GREP
5861 if test -n "$GREP"; then
5862 { echo "$as_me:$LINENO: result: $GREP" >&5
5863 echo "${ECHO_T}$GREP" >&6; }
5865 { echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6; }
5870 # Extract the first word of "mkdir", so it can be a program name with args.
5871 set dummy mkdir; ac_word=$2
5872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5874 if test "${ac_cv_path_MKDIR+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5889 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5901 MKDIR=$ac_cv_path_MKDIR
5902 if test -n "$MKDIR"; then
5903 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5904 echo "${ECHO_T}$MKDIR" >&6; }
5906 { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5911 # Extract the first word of "mv", so it can be a program name with args.
5912 set dummy mv; ac_word=$2
5913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5915 if test "${ac_cv_path_MV+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5943 if test -n "$MV"; then
5944 { echo "$as_me:$LINENO: result: $MV" >&5
5945 echo "${ECHO_T}$MV" >&6; }
5947 { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5952 if test -n "$ac_tool_prefix"; then
5953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5957 if test "${ac_cv_prog_RANLIB+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 if test -n "$RANLIB"; then
5961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 RANLIB=$ac_cv_prog_RANLIB
5981 if test -n "$RANLIB"; then
5982 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5983 echo "${ECHO_T}$RANLIB" >&6; }
5985 { echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6; }
5991 if test -z "$ac_cv_prog_RANLIB"; then
5992 ac_ct_RANLIB=$RANLIB
5993 # Extract the first word of "ranlib", so it can be a program name with args.
5994 set dummy ranlib; ac_word=$2
5995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 if test -n "$ac_ct_RANLIB"; then
6001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_prog_ac_ct_RANLIB="ranlib"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6021 if test -n "$ac_ct_RANLIB"; then
6022 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6023 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6025 { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6029 if test "x$ac_ct_RANLIB" = x; then
6032 case $cross_compiling:$ac_tool_warned in
6034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6035 whose name does not start with the host triplet. If you think this
6036 configuration is useful to you, please write to autoconf@gnu.org." >&5
6037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6038 whose name does not start with the host triplet. If you think this
6039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6040 ac_tool_warned=yes ;;
6042 RANLIB=$ac_ct_RANLIB
6045 RANLIB="$ac_cv_prog_RANLIB"
6048 if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}ar; ac_word=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_prog_AR+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 if test -n "$AR"; then
6057 ac_cv_prog_AR="$AR" # Let the user override the test.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_AR="${ac_tool_prefix}ar"
6067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 if test -n "$AR"; then
6078 { echo "$as_me:$LINENO: result: $AR" >&5
6079 echo "${ECHO_T}$AR" >&6; }
6081 { echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6; }
6087 if test -z "$ac_cv_prog_AR"; then
6089 # Extract the first word of "ar", so it can be a program name with args.
6090 set dummy ar; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 if test -n "$ac_ct_AR"; then
6097 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_ac_ct_AR="ar"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6117 if test -n "$ac_ct_AR"; then
6118 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6119 echo "${ECHO_T}$ac_ct_AR" >&6; }
6121 { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6125 if test "x$ac_ct_AR" = x; then
6128 case $cross_compiling:$ac_tool_warned in
6130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6131 whose name does not start with the host triplet. If you think this
6132 configuration is useful to you, please write to autoconf@gnu.org." >&5
6133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6134 whose name does not start with the host triplet. If you think this
6135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6136 ac_tool_warned=yes ;;
6144 # Extract the first word of "rm", so it can be a program name with args.
6145 set dummy rm; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_path_RM+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6176 if test -n "$RM"; then
6177 { echo "$as_me:$LINENO: result: $RM" >&5
6178 echo "${ECHO_T}$RM" >&6; }
6180 { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6185 # Extract the first word of "sed", so it can be a program name with args.
6186 set dummy sed; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_SED+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6217 if test -n "$SED"; then
6218 { echo "$as_me:$LINENO: result: $SED" >&5
6219 echo "${ECHO_T}$SED" >&6; }
6221 { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6226 # Extract the first word of "tar", so it can be a program name with args.
6227 set dummy tar; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_path_TAR+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6258 if test -n "$TAR"; then
6259 { echo "$as_me:$LINENO: result: $TAR" >&5
6260 echo "${ECHO_T}$TAR" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6267 # Extract the first word of "pwd", so it can be a program name with args.
6268 set dummy pwd; ac_word=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_path_BINPWD+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6298 BINPWD=$ac_cv_path_BINPWD
6299 if test -n "$BINPWD"; then
6300 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6301 echo "${ECHO_T}$BINPWD" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6309 # Extract the first word of "Graphviz", so it can be a program name with args.
6310 set dummy Graphviz; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6340 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6341 if test -n "$GRAPHVIZ"; then
6342 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6343 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6345 { echo "$as_me:$LINENO: result: no" >&5
6346 echo "${ECHO_T}no" >&6; }
6350 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6352 cat >>confdefs.h <<\_ACEOF
6353 #define HAVE_GRAPHVIZ 1
6356 if test "$llvm_cv_os_type" = "MingW" ; then
6357 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6360 cat >>confdefs.h <<_ACEOF
6361 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6365 # Extract the first word of "dot", so it can be a program name with args.
6366 set dummy dot; ac_word=$2
6367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369 if test "${ac_cv_path_DOT+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6397 if test -n "$DOT"; then
6398 { echo "$as_me:$LINENO: result: $DOT" >&5
6399 echo "${ECHO_T}$DOT" >&6; }
6401 { echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6; }
6406 if test "$DOT" != "echo dot" ; then
6408 cat >>confdefs.h <<\_ACEOF
6412 if test "$llvm_cv_os_type" = "MingW" ; then
6413 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6416 cat >>confdefs.h <<_ACEOF
6417 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6421 # Extract the first word of "fdp", so it can be a program name with args.
6422 set dummy fdp; ac_word=$2
6423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425 if test "${ac_cv_path_FDP+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6453 if test -n "$FDP"; then
6454 { echo "$as_me:$LINENO: result: $FDP" >&5
6455 echo "${ECHO_T}$FDP" >&6; }
6457 { echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6; }
6462 if test "$FDP" != "echo fdp" ; then
6464 cat >>confdefs.h <<\_ACEOF
6468 if test "$llvm_cv_os_type" = "MingW" ; then
6469 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6472 cat >>confdefs.h <<_ACEOF
6473 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6477 # Extract the first word of "neato", so it can be a program name with args.
6478 set dummy neato; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_path_NEATO+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6508 NEATO=$ac_cv_path_NEATO
6509 if test -n "$NEATO"; then
6510 { echo "$as_me:$LINENO: result: $NEATO" >&5
6511 echo "${ECHO_T}$NEATO" >&6; }
6513 { echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6; }
6518 if test "$NEATO" != "echo neato" ; then
6520 cat >>confdefs.h <<\_ACEOF
6521 #define HAVE_NEATO 1
6524 if test "$llvm_cv_os_type" = "MingW" ; then
6525 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6528 cat >>confdefs.h <<_ACEOF
6529 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6533 # Extract the first word of "twopi", so it can be a program name with args.
6534 set dummy twopi; ac_word=$2
6535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6537 if test "${ac_cv_path_TWOPI+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6564 TWOPI=$ac_cv_path_TWOPI
6565 if test -n "$TWOPI"; then
6566 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6567 echo "${ECHO_T}$TWOPI" >&6; }
6569 { echo "$as_me:$LINENO: result: no" >&5
6570 echo "${ECHO_T}no" >&6; }
6574 if test "$TWOPI" != "echo twopi" ; then
6576 cat >>confdefs.h <<\_ACEOF
6577 #define HAVE_TWOPI 1
6580 if test "$llvm_cv_os_type" = "MingW" ; then
6581 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6584 cat >>confdefs.h <<_ACEOF
6585 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6589 # Extract the first word of "circo", so it can be a program name with args.
6590 set dummy circo; ac_word=$2
6591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6593 if test "${ac_cv_path_CIRCO+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6620 CIRCO=$ac_cv_path_CIRCO
6621 if test -n "$CIRCO"; then
6622 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6623 echo "${ECHO_T}$CIRCO" >&6; }
6625 { echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6; }
6630 if test "$CIRCO" != "echo circo" ; then
6632 cat >>confdefs.h <<\_ACEOF
6633 #define HAVE_CIRCO 1
6636 if test "$llvm_cv_os_type" = "MingW" ; then
6637 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6640 cat >>confdefs.h <<_ACEOF
6641 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6645 for ac_prog in gv gsview32
6647 # Extract the first word of "$ac_prog", so it can be a program name with args.
6648 set dummy $ac_prog; ac_word=$2
6649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6651 if test "${ac_cv_path_GV+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 if test -n "$GV"; then
6679 { echo "$as_me:$LINENO: result: $GV" >&5
6680 echo "${ECHO_T}$GV" >&6; }
6682 { echo "$as_me:$LINENO: result: no" >&5
6683 echo "${ECHO_T}no" >&6; }
6687 test -n "$GV" && break
6689 test -n "$GV" || GV="echo gv"
6691 if test "$GV" != "echo gv" ; then
6693 cat >>confdefs.h <<\_ACEOF
6697 if test "$llvm_cv_os_type" = "MingW" ; then
6698 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6701 cat >>confdefs.h <<_ACEOF
6702 #define LLVM_PATH_GV "$GV${EXEEXT}"
6706 # Extract the first word of "dotty", so it can be a program name with args.
6707 set dummy dotty; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_DOTTY+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6737 DOTTY=$ac_cv_path_DOTTY
6738 if test -n "$DOTTY"; then
6739 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6740 echo "${ECHO_T}$DOTTY" >&6; }
6742 { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6747 if test "$DOTTY" != "echo dotty" ; then
6749 cat >>confdefs.h <<\_ACEOF
6750 #define HAVE_DOTTY 1
6753 if test "$llvm_cv_os_type" = "MingW" ; then
6754 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6757 cat >>confdefs.h <<_ACEOF
6758 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6762 # Extract the first word of "xdot.py", so it can be a program name with args.
6763 set dummy xdot.py; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6793 XDOT_PY=$ac_cv_path_XDOT_PY
6794 if test -n "$XDOT_PY"; then
6795 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6796 echo "${ECHO_T}$XDOT_PY" >&6; }
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6803 if test "$XDOT_PY" != "echo xdot.py" ; then
6805 cat >>confdefs.h <<\_ACEOF
6806 #define HAVE_XDOT_PY 1
6809 if test "$llvm_cv_os_type" = "MingW" ; then
6810 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6813 cat >>confdefs.h <<_ACEOF
6814 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6819 # Find a good install program. We prefer a C program (faster),
6820 # so one script is as good as another. But avoid the broken or
6821 # incompatible versions:
6822 # SysV /etc/install, /usr/sbin/install
6823 # SunOS /usr/etc/install
6824 # IRIX /sbin/install
6826 # AmigaOS /C/install, which installs bootblocks on floppy discs
6827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6830 # OS/2's system install, which has a completely different semantic
6831 # ./install, which can be erroneously created by make from ./install.sh.
6832 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6833 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6834 if test -z "$INSTALL"; then
6835 if test "${ac_cv_path_install+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 test -z "$as_dir" && as_dir=.
6843 # Account for people who put trailing slashes in PATH elements.
6845 ./ | .// | /cC/* | \
6846 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6847 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6850 # OSF1 and SCO ODT 3.0 have their own names for install.
6851 # Don't use installbsd from OSF since it installs stuff as root
6853 for ac_prog in ginstall scoinst install; do
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6856 if test $ac_prog = install &&
6857 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6858 # AIX install. It has an incompatible calling convention.
6860 elif test $ac_prog = install &&
6861 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6862 # program-specific install script used by HP pwplus--don't use.
6865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6878 if test "${ac_cv_path_install+set}" = set; then
6879 INSTALL=$ac_cv_path_install
6881 # As a last resort, use the slow shell script. Don't cache a
6882 # value for INSTALL within a source directory, because that will
6883 # break other packages using the cache if that directory is
6884 # removed, or if the value is a relative name.
6885 INSTALL=$ac_install_sh
6888 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6889 echo "${ECHO_T}$INSTALL" >&6; }
6891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6892 # It thinks the first close brace ends the variable substitution.
6893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6900 [\\/$]* | ?:[\\/]* ) ;;
6901 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6904 # Extract the first word of "bzip2", so it can be a program name with args.
6905 set dummy bzip2; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_BZIP2+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 BZIP2=$ac_cv_path_BZIP2
6935 if test -n "$BZIP2"; then
6936 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6937 echo "${ECHO_T}$BZIP2" >&6; }
6939 { echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6; }
6944 # Extract the first word of "cat", so it can be a program name with args.
6945 set dummy cat; ac_word=$2
6946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6948 if test "${ac_cv_path_CAT+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 if test -n "$CAT"; then
6976 { echo "$as_me:$LINENO: result: $CAT" >&5
6977 echo "${ECHO_T}$CAT" >&6; }
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6984 # Extract the first word of "doxygen", so it can be a program name with args.
6985 set dummy doxygen; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 DOXYGEN=$ac_cv_path_DOXYGEN
7015 if test -n "$DOXYGEN"; then
7016 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7017 echo "${ECHO_T}$DOXYGEN" >&6; }
7019 { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7024 # Extract the first word of "groff", so it can be a program name with args.
7025 set dummy groff; ac_word=$2
7026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028 if test "${ac_cv_path_GROFF+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 GROFF=$ac_cv_path_GROFF
7055 if test -n "$GROFF"; then
7056 { echo "$as_me:$LINENO: result: $GROFF" >&5
7057 echo "${ECHO_T}$GROFF" >&6; }
7059 { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7064 # Extract the first word of "gzip", so it can be a program name with args.
7065 set dummy gzip; ac_word=$2
7066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 GZIPBIN=$ac_cv_path_GZIPBIN
7095 if test -n "$GZIPBIN"; then
7096 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7097 echo "${ECHO_T}$GZIPBIN" >&6; }
7099 { echo "$as_me:$LINENO: result: no" >&5
7100 echo "${ECHO_T}no" >&6; }
7104 # Extract the first word of "pod2html", so it can be a program name with args.
7105 set dummy pod2html; ac_word=$2
7106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7108 if test "${ac_cv_path_POD2HTML+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7123 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 POD2HTML=$ac_cv_path_POD2HTML
7135 if test -n "$POD2HTML"; then
7136 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7137 echo "${ECHO_T}$POD2HTML" >&6; }
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7144 # Extract the first word of "pod2man", so it can be a program name with args.
7145 set dummy pod2man; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_POD2MAN+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 POD2MAN=$ac_cv_path_POD2MAN
7175 if test -n "$POD2MAN"; then
7176 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7177 echo "${ECHO_T}$POD2MAN" >&6; }
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7184 # Extract the first word of "pdfroff", so it can be a program name with args.
7185 set dummy pdfroff; ac_word=$2
7186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188 if test "${ac_cv_path_PDFROFF+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 PDFROFF=$ac_cv_path_PDFROFF
7215 if test -n "$PDFROFF"; then
7216 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7217 echo "${ECHO_T}$PDFROFF" >&6; }
7219 { echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6; }
7224 # Extract the first word of "runtest", so it can be a program name with args.
7225 set dummy runtest; ac_word=$2
7226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228 if test "${ac_cv_path_RUNTEST+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 RUNTEST=$ac_cv_path_RUNTEST
7255 if test -n "$RUNTEST"; then
7256 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7257 echo "${ECHO_T}$RUNTEST" >&6; }
7259 { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7266 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7267 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7269 # Check whether --with-tclinclude was given.
7270 if test "${with_tclinclude+set}" = set; then
7271 withval=$with_tclinclude; with_tclinclude=${withval}
7276 if test "${ac_cv_path_tclsh+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 if test x"${with_tclinclude}" != x ; then
7281 if test -f ${with_tclinclude}/tclsh ; then
7282 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7283 elif test -f ${with_tclinclude}/src/tclsh ; then
7284 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7286 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7287 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7288 { (exit 1); exit 1; }; }
7294 if test x"${ac_cv_path_tclsh}" = x ; then
7295 { echo "$as_me:$LINENO: result: none" >&5
7296 echo "${ECHO_T}none" >&6; }
7297 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
7299 # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy $ac_prog; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_TCLSH+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 TCLSH=$ac_cv_path_TCLSH
7330 if test -n "$TCLSH"; then
7331 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7332 echo "${ECHO_T}$TCLSH" >&6; }
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7339 test -n "$TCLSH" && break
7342 if test x"${TCLSH}" = x ; then
7343 ac_cv_path_tclsh='';
7345 ac_cv_path_tclsh="${TCLSH}";
7348 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7349 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7350 TCLSH="${ac_cv_path_tclsh}"
7354 # Extract the first word of "zip", so it can be a program name with args.
7355 set dummy zip; ac_word=$2
7356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358 if test "${ac_cv_path_ZIP+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7373 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 if test -n "$ZIP"; then
7386 { echo "$as_me:$LINENO: result: $ZIP" >&5
7387 echo "${ECHO_T}$ZIP" >&6; }
7389 { echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6; }
7394 for ac_prog in ocamlc
7396 # Extract the first word of "$ac_prog", so it can be a program name with args.
7397 set dummy $ac_prog; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_path_OCAMLC+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7415 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 OCAMLC=$ac_cv_path_OCAMLC
7427 if test -n "$OCAMLC"; then
7428 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7429 echo "${ECHO_T}$OCAMLC" >&6; }
7431 { echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6; }
7436 test -n "$OCAMLC" && break
7439 for ac_prog in ocamlopt
7441 # Extract the first word of "$ac_prog", so it can be a program name with args.
7442 set dummy $ac_prog; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 OCAMLOPT=$ac_cv_path_OCAMLOPT
7472 if test -n "$OCAMLOPT"; then
7473 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7474 echo "${ECHO_T}$OCAMLOPT" >&6; }
7476 { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7481 test -n "$OCAMLOPT" && break
7484 for ac_prog in ocamldep
7486 # Extract the first word of "$ac_prog", so it can be a program name with args.
7487 set dummy $ac_prog; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 OCAMLDEP=$ac_cv_path_OCAMLDEP
7517 if test -n "$OCAMLDEP"; then
7518 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7519 echo "${ECHO_T}$OCAMLDEP" >&6; }
7521 { echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6; }
7526 test -n "$OCAMLDEP" && break
7529 for ac_prog in ocamldoc
7531 # Extract the first word of "$ac_prog", so it can be a program name with args.
7532 set dummy $ac_prog; ac_word=$2
7533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 OCAMLDOC=$ac_cv_path_OCAMLDOC
7562 if test -n "$OCAMLDOC"; then
7563 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7564 echo "${ECHO_T}$OCAMLDOC" >&6; }
7566 { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7571 test -n "$OCAMLDOC" && break
7574 for ac_prog in gas as
7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
7577 set dummy $ac_prog; ac_word=$2
7578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7580 if test "${ac_cv_path_GAS+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 if test -n "$GAS"; then
7608 { echo "$as_me:$LINENO: result: $GAS" >&5
7609 echo "${ECHO_T}$GAS" >&6; }
7611 { echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6; }
7616 test -n "$GAS" && break
7620 { echo "$as_me:$LINENO: checking for linker version" >&5
7621 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7622 if test "${llvm_cv_link_version+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 version_string="$(ld -v 2>&1 | head -1)"
7629 if (echo "$version_string" | grep -q "ld64"); then
7630 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7632 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7636 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7637 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7639 cat >>confdefs.h <<_ACEOF
7640 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7645 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7646 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7647 if test "${llvm_cv_link_use_r+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 ac_cpp='$CPP $CPPFLAGS'
7652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657 CFLAGS="$CFLAGS -Wl,-R."
7658 cat >conftest.$ac_ext <<_ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7673 rm -f conftest.$ac_objext conftest$ac_exeext
7674 if { (ac_try="$ac_link"
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_link") 2>conftest.er1
7682 grep -v '^ *+' conftest.er1 >conftest.err
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7688 { (case "(($ac_try" in
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693 (eval "$ac_try") 2>&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_try") 2>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
7707 llvm_cv_link_use_r=yes
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 llvm_cv_link_use_r=no
7715 rm -f core conftest.err conftest.$ac_objext \
7716 conftest$ac_exeext conftest.$ac_ext
7719 ac_cpp='$CPP $CPPFLAGS'
7720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7726 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7727 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7728 if test "$llvm_cv_link_use_r" = yes ; then
7730 cat >>confdefs.h <<\_ACEOF
7731 #define HAVE_LINK_R 1
7737 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7738 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7739 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 ac_cpp='$CPP $CPPFLAGS'
7744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7750 cat >conftest.$ac_ext <<_ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7765 rm -f conftest.$ac_objext conftest$ac_exeext
7766 if { (ac_try="$ac_link"
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772 (eval "$ac_link") 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7780 { (case "(($ac_try" in
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_try") 2>&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; } &&
7789 { ac_try='test -s conftest$ac_exeext'
7790 { (case "(($ac_try" in
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_try") 2>&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 llvm_cv_link_use_export_dynamic=yes
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 llvm_cv_link_use_export_dynamic=no
7807 rm -f core conftest.err conftest.$ac_objext \
7808 conftest$ac_exeext conftest.$ac_ext
7811 ac_cpp='$CPP $CPPFLAGS'
7812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7818 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7819 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7820 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7822 cat >>confdefs.h <<\_ACEOF
7823 #define HAVE_LINK_EXPORT_DYNAMIC 1
7829 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7830 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7831 if test "${llvm_cv_link_use_version_script+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7842 # The following code is from the autoconf manual,
7843 # "11.13: Limitations of Usual Tools".
7844 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7845 # Use mktemp if possible; otherwise fall back on mkdir,
7846 # with $RANDOM to make collisions less likely.
7850 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7852 test -n "$tmp" && test -d "$tmp"
7854 tmp=$TMPDIR/foo$$-$RANDOM
7855 (umask 077 && mkdir "$tmp")
7858 echo "{" > "$tmp/export.map"
7859 echo " global: main;" >> "$tmp/export.map"
7860 echo " local: *;" >> "$tmp/export.map"
7861 echo "};" >> "$tmp/export.map"
7863 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7864 cat >conftest.$ac_ext <<_ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7879 rm -f conftest.$ac_objext conftest$ac_exeext
7880 if { (ac_try="$ac_link"
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7886 (eval "$ac_link") 2>conftest.er1
7888 grep -v '^ *+' conftest.er1 >conftest.err
7890 cat conftest.err >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } &&
7893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7894 { (case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_try") 2>&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; } &&
7903 { ac_try='test -s conftest$ac_exeext'
7904 { (case "(($ac_try" in
7905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906 *) ac_try_echo=$ac_try;;
7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909 (eval "$ac_try") 2>&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 llvm_cv_link_use_version_script=yes
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 llvm_cv_link_use_version_script=no
7921 rm -f core conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7923 rm "$tmp/export.map"
7927 ac_cpp='$CPP $CPPFLAGS'
7928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7935 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7936 if test "$llvm_cv_link_use_version_script" = yes ; then
7937 HAVE_LINK_VERSION_SCRIPT=1
7944 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7945 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7946 if test "${ac_cv_c_const+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 cat >conftest.$ac_ext <<_ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7959 /* FIXME: Include the comments suggested by Paul. */
7961 /* Ultrix mips cc rejects this. */
7962 typedef int charset[2];
7964 /* SunOS 4.1.1 cc rejects this. */
7965 char const *const *ccp;
7967 /* NEC SVR4.0.2 mips cc rejects this. */
7968 struct point {int x, y;};
7969 static struct point const zero = {0,0};
7970 /* AIX XL C 1.02.0.0 rejects this.
7971 It does not let you subtract one const X* pointer from another in
7972 an arm of an if-expression whose if-part is not a constant
7974 const char *g = "string";
7975 ccp = &g + (g ? g-g : 0);
7976 /* HPUX 7.0 cc rejects these. */
7979 ccp = (char const *const *) p;
7980 { /* SCO 3.2v4 cc rejects this. */
7982 char const *s = 0 ? (char *) 0 : (char const *) 0;
7987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7989 const int *foo = &x[0];
7992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7993 typedef const int *iptr;
7997 { /* AIX XL C 1.02.0.0 rejects this saying
7998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7999 struct s { int j; const int *ap[3]; };
8000 struct s *b; b->j = 5;
8002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8006 return !x[0] && !zero.x;
8013 rm -f conftest.$ac_objext
8014 if { (ac_try="$ac_compile"
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_compile") 2>conftest.er1
8022 grep -v '^ *+' conftest.er1 >conftest.err
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } &&
8027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8028 { (case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_try") 2>&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try='test -s conftest.$ac_objext'
8038 { (case "(($ac_try" in
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043 (eval "$ac_try") 2>&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8058 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8059 if test $ac_cv_c_const = no; then
8061 cat >>confdefs.h <<\_ACEOF
8073 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8074 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8075 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8076 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 #include <sys/types.h>
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8107 grep -v '^ *+' conftest.er1 >conftest.err
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } &&
8112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8113 { (case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_try") 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_try") 2>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 eval "$as_ac_Header=yes"
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 eval "$as_ac_Header=no"
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 ac_res=`eval echo '${'$as_ac_Header'}'`
8143 { echo "$as_me:$LINENO: result: $ac_res" >&5
8144 echo "${ECHO_T}$ac_res" >&6; }
8145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8146 cat >>confdefs.h <<_ACEOF
8147 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8150 ac_header_dirent=$ac_hdr; break
8154 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8155 if test $ac_header_dirent = dirent.h; then
8156 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8157 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8158 if test "${ac_cv_search_opendir+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 ac_func_search_save_LIBS=$LIBS
8162 cat >conftest.$ac_ext <<_ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8169 /* Override any GCC internal prototype to avoid an error.
8170 Use char because int might match the return type of a GCC
8171 builtin and then its argument prototype would still apply. */
8184 for ac_lib in '' dir; do
8185 if test -z "$ac_lib"; then
8186 ac_res="none required"
8189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8191 rm -f conftest.$ac_objext conftest$ac_exeext
8192 if { (ac_try="$ac_link"
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_link") 2>conftest.er1
8200 grep -v '^ *+' conftest.er1 >conftest.err
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8206 { (case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_try") 2>&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try='test -s conftest$ac_exeext'
8216 { (case "(($ac_try" in
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_try") 2>&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; }; then
8225 ac_cv_search_opendir=$ac_res
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8233 rm -f core conftest.err conftest.$ac_objext \
8235 if test "${ac_cv_search_opendir+set}" = set; then
8239 if test "${ac_cv_search_opendir+set}" = set; then
8242 ac_cv_search_opendir=no
8245 LIBS=$ac_func_search_save_LIBS
8247 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8248 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8249 ac_res=$ac_cv_search_opendir
8250 if test "$ac_res" != no; then
8251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8256 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8257 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8258 if test "${ac_cv_search_opendir+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 ac_func_search_save_LIBS=$LIBS
8262 cat >conftest.$ac_ext <<_ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8269 /* Override any GCC internal prototype to avoid an error.
8270 Use char because int might match the return type of a GCC
8271 builtin and then its argument prototype would still apply. */
8284 for ac_lib in '' x; do
8285 if test -z "$ac_lib"; then
8286 ac_res="none required"
8289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8291 rm -f conftest.$ac_objext conftest$ac_exeext
8292 if { (ac_try="$ac_link"
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_link") 2>conftest.er1
8300 grep -v '^ *+' conftest.er1 >conftest.err
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8306 { (case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_try") 2>&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; } &&
8315 { ac_try='test -s conftest$ac_exeext'
8316 { (case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_try") 2>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 ac_cv_search_opendir=$ac_res
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8333 rm -f core conftest.err conftest.$ac_objext \
8335 if test "${ac_cv_search_opendir+set}" = set; then
8339 if test "${ac_cv_search_opendir+set}" = set; then
8342 ac_cv_search_opendir=no
8345 LIBS=$ac_func_search_save_LIBS
8347 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8348 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8349 ac_res=$ac_cv_search_opendir
8350 if test "$ac_res" != no; then
8351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8358 for ac_header in dlfcn.h
8360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 ac_res=`eval echo '${'$as_ac_Header'}'`
8368 { echo "$as_me:$LINENO: result: $ac_res" >&5
8369 echo "${ECHO_T}$ac_res" >&6; }
8371 # Is the header compilable?
8372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8374 cat >conftest.$ac_ext <<_ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 #include <$ac_header>
8383 rm -f conftest.$ac_objext
8384 if { (ac_try="$ac_compile"
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_compile") 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest.$ac_objext'
8408 { (case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_try") 2>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_header_compiler=yes
8419 echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8422 ac_header_compiler=no
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8427 echo "${ECHO_T}$ac_header_compiler" >&6; }
8429 # Is the header present?
8430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 #include <$ac_header>
8440 if { (ac_try="$ac_cpp conftest.$ac_ext"
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8448 grep -v '^ *+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } >/dev/null; then
8453 if test -s conftest.err; then
8454 ac_cpp_err=$ac_c_preproc_warn_flag
8455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8462 if test -z "$ac_cpp_err"; then
8463 ac_header_preproc=yes
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 ac_header_preproc=no
8471 rm -f conftest.err conftest.$ac_ext
8472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8473 echo "${ECHO_T}$ac_header_preproc" >&6; }
8475 # So? What about this header?
8476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8482 ac_header_preproc=yes
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8498 ## ------------------------------ ##
8499 ## Report this to bugs@yourdomain ##
8500 ## ------------------------------ ##
8502 ) | sed "s/^/$as_me: WARNING: /" >&2
8505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 eval "$as_ac_Header=\$ac_header_preproc"
8512 ac_res=`eval echo '${'$as_ac_Header'}'`
8513 { echo "$as_me:$LINENO: result: $ac_res" >&5
8514 echo "${ECHO_T}$ac_res" >&6; }
8517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8518 cat >>confdefs.h <<_ACEOF
8519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8526 # Check whether --enable-ltdl-install was given.
8527 if test "${enable_ltdl_install+set}" = set; then
8528 enableval=$enable_ltdl_install;
8534 if test x"${enable_ltdl_install-no}" != xno; then
8536 INSTALL_LTDL_FALSE='#'
8538 INSTALL_LTDL_TRUE='#'
8544 if test x"${enable_ltdl_convenience-no}" != xno; then
8545 CONVENIENCE_LTDL_TRUE=
8546 CONVENIENCE_LTDL_FALSE='#'
8548 CONVENIENCE_LTDL_TRUE='#'
8549 CONVENIENCE_LTDL_FALSE=
8553 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8554 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8556 libname_spec='lib$name'
8564 shlibpath_overrides_runpath=unknown
8566 dynamic_linker="$host_os ld.so"
8567 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8568 if test "$GCC" = yes; then
8569 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8570 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8571 # if the path contains ";" then we assume it to be the separator
8572 # otherwise default to the standard path separator (i.e. ":") - it is
8573 # assumed that no part of a normal pathname contains ";" but that should
8574 # okay in the real world where ";" in dirpaths is itself problematic.
8575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8582 need_lib_prefix=unknown
8583 hardcode_into_libs=no
8585 # when you set need_version to no, make sure it does not cause -set_version
8586 # flags to be left without arguments
8587 need_version=unknown
8592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8593 shlibpath_var=LIBPATH
8595 # AIX 3 has no versioning support, so we append a major version to the name.
8596 soname_spec='${libname}${release}${shared_ext}$major'
8603 hardcode_into_libs=yes
8604 if test "$host_cpu" = ia64; then
8605 # AIX 5 supports IA64
8606 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8607 shlibpath_var=LD_LIBRARY_PATH
8609 # With GCC up to 2.95.x, collect2 would create an import file
8610 # for dependence libraries. The import file would start with
8611 # the line `#! .'. This would cause the generated library to
8612 # depend on `.', always an invalid library. This was fixed in
8613 # development snapshots of GCC prior to 3.0.
8615 aix4 | aix4.[01] | aix4.[01].*)
8616 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8618 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8625 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8626 # soname into executable. Probably we can add versioning support to
8627 # collect2, so additional links can be useful in future.
8628 if test "$aix_use_runtimelinking" = yes; then
8629 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8630 # instead of lib<name>.a to let people know that these are not
8631 # typical AIX shared libraries.
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8634 # We preserve .a as extension for shared libraries through AIX4.2
8635 # and later when we are not doing run time linking.
8636 library_names_spec='${libname}${release}.a $libname.a'
8637 soname_spec='${libname}${release}${shared_ext}$major'
8639 shlibpath_var=LIBPATH
8644 library_names_spec='$libname.ixlibrary $libname.a'
8645 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8646 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'
8650 library_names_spec='${libname}${shared_ext}'
8651 dynamic_linker="$host_os ld.so"
8652 shlibpath_var=LIBRARY_PATH
8658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8659 soname_spec='${libname}${release}${shared_ext}$major'
8660 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8661 shlibpath_var=LD_LIBRARY_PATH
8662 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8663 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8664 # the default ld.so.conf also contains /usr/contrib/lib and
8665 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8666 # libtool to hard-code these into programs
8669 cygwin* | mingw* | pw32*)
8670 version_type=windows
8675 case $GCC,$host_os in
8676 yes,cygwin* | yes,mingw* | yes,pw32*)
8677 library_names_spec='$libname.dll.a'
8678 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8679 postinstall_cmds='base_file=`basename \${file}`~
8680 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8681 dldir=$destdir/`dirname \$dlpath`~
8682 test -d \$dldir || mkdir -p \$dldir~
8683 $install_prog $dir/$dlname \$dldir/$dlname~
8684 chmod a+x \$dldir/$dlname'
8685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8686 dlpath=$dir/\$dldll~
8688 shlibpath_overrides_runpath=yes
8692 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8693 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8694 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8697 # MinGW DLLs use traditional 'lib' prefix
8698 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8700 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8701 # It is most probably a Windows format PATH printed by
8702 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8703 # path with ; separators, and with drive letters. We can handle the
8704 # drive letters (cygwin fileutils understands them), so leave them,
8705 # especially as we might pass files found there to a mingw objdump,
8706 # which wouldn't understand a cygwinified path. Ahh.
8707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8713 # pw32 DLLs use 'pw' prefix rather than 'lib'
8714 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8720 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8723 dynamic_linker='Win32 ld.exe'
8724 # FIXME: first we should search . and the directory the executable is in
8728 darwin* | rhapsody*)
8729 dynamic_linker="$host_os dyld"
8733 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8734 soname_spec='${libname}${release}${major}$shared_ext'
8735 shlibpath_overrides_runpath=yes
8736 shlibpath_var=DYLD_LIBRARY_PATH
8737 shrext_cmds='.dylib'
8738 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8739 if test "$GCC" = yes; then
8740 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"`
8742 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8744 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 shlibpath_var=LD_LIBRARY_PATH
8764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8765 soname_spec='${libname}${release}${shared_ext}$major'
8766 shlibpath_var=LD_LIBRARY_PATH
8767 shlibpath_overrides_runpath=no
8768 hardcode_into_libs=yes
8769 dynamic_linker='GNU ld.so'
8772 freebsd* | dragonfly*)
8773 # DragonFly does not have aout. When/if they implement a new
8774 # versioning mechanism, adjust this.
8775 if test -x /usr/bin/objformat; then
8776 objformat=`/usr/bin/objformat`
8779 freebsd[123].*) objformat=aout ;;
8783 version_type=freebsd-$objformat
8784 case $version_type in
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8795 shlibpath_var=LD_LIBRARY_PATH
8798 shlibpath_overrides_runpath=yes
8800 freebsd3.[01]* | freebsdelf3.[01]*)
8801 shlibpath_overrides_runpath=yes
8802 hardcode_into_libs=yes
8804 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8805 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8806 shlibpath_overrides_runpath=no
8807 hardcode_into_libs=yes
8809 freebsd*) # from 4.6 on
8810 shlibpath_overrides_runpath=yes
8811 hardcode_into_libs=yes
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8821 soname_spec='${libname}${release}${shared_ext}$major'
8822 shlibpath_var=LD_LIBRARY_PATH
8823 hardcode_into_libs=yes
8826 hpux9* | hpux10* | hpux11*)
8827 # Give a soname corresponding to the major version so that dld.sl refuses to
8828 # link against other versions.
8835 hardcode_into_libs=yes
8836 dynamic_linker="$host_os dld.so"
8837 shlibpath_var=LD_LIBRARY_PATH
8838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 if test "X$HPUX_IA64_MODE" = X32; then
8842 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8844 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8850 hardcode_into_libs=yes
8851 dynamic_linker="$host_os dld.sl"
8852 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8861 dynamic_linker="$host_os dld.sl"
8862 shlibpath_var=SHLIB_PATH
8863 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8865 soname_spec='${libname}${release}${shared_ext}$major'
8868 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8869 postinstall_cmds='chmod 555 $lib'
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 shlibpath_overrides_runpath=no
8881 hardcode_into_libs=yes
8884 irix5* | irix6* | nonstopux*)
8886 nonstopux*) version_type=nonstopux ;;
8888 if test "$lt_cv_prog_gnu_ld" = yes; then
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8899 irix5* | nonstopux*)
8903 case $LD in # libtool.m4 will add one of these switches to LD
8904 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8905 libsuff= shlibsuff= libmagic=32-bit;;
8906 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8907 libsuff=32 shlibsuff=N32 libmagic=N32;;
8908 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8909 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8910 *) libsuff= shlibsuff= libmagic=never-match;;
8914 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8915 shlibpath_overrides_runpath=no
8916 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8917 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8918 hardcode_into_libs=yes
8921 # No shared lib support for Linux oldld, aout, or coff.
8922 linux*oldld* | linux*aout* | linux*coff*)
8926 # This must be Linux ELF.
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=no
8936 # This implies no fast_install, which is unacceptable.
8937 # Some rework will be needed to allow for fast_install
8938 # before this can be enabled.
8939 hardcode_into_libs=yes
8941 # Append ld.so.conf contents to the search path
8942 if test -f /etc/ld.so.conf; then
8943 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' ' '`
8944 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8947 # We used to test for /lib/ld.so.1 and disable shared libraries on
8948 # powerpc, because MkLinux only supported shared libraries with the
8949 # GNU dynamic linker. Since this was broken with cross compilers,
8950 # most powerpc-linux boxes support dynamic linking these days and
8951 # people can always --disable-shared, the test was removed, and we
8952 # assume the GNU/Linux dynamic linker is in use.
8953 dynamic_linker='GNU/Linux ld.so'
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8961 soname_spec='${libname}${release}${shared_ext}$major'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=no
8964 hardcode_into_libs=yes
8965 dynamic_linker='GNU ld.so'
8972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8975 dynamic_linker='NetBSD (a.out) ld.so'
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 dynamic_linker='NetBSD ld.elf_so'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=yes
8983 hardcode_into_libs=yes
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 shlibpath_overrides_runpath=yes
9005 sys_lib_dlsearch_path_spec="/usr/lib"
9007 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9009 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9010 *) need_version=no ;;
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9014 shlibpath_var=LD_LIBRARY_PATH
9015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9017 openbsd2.[89] | openbsd2.[89].*)
9018 shlibpath_overrides_runpath=no
9021 shlibpath_overrides_runpath=yes
9025 shlibpath_overrides_runpath=yes
9030 libname_spec='$name'
9033 library_names_spec='$libname${shared_ext} $libname.a'
9034 dynamic_linker='OS/2 ld.exe'
9035 shlibpath_var=LIBPATH
9038 osf3* | osf4* | osf5*)
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9046 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes
9057 hardcode_into_libs=yes
9058 # ldd complains unless libraries are executable
9059 postinstall_cmds='chmod +x $lib'
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9065 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=yes
9068 if test "$with_gnu_ld" = yes; then
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 case $host_vendor in
9081 shlibpath_overrides_runpath=no
9083 export_dynamic_flag_spec='${wl}-Blargedynsym'
9084 runpath_var=LD_RUN_PATH
9092 shlibpath_overrides_runpath=no
9093 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9099 if test -d /usr/nec ;then
9101 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9102 soname_spec='$libname${shared_ext}.$major'
9103 shlibpath_var=LD_LIBRARY_PATH
9107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9108 version_type=freebsd-elf
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 hardcode_into_libs=yes
9115 if test "$with_gnu_ld" = yes; then
9116 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9117 shlibpath_overrides_runpath=no
9119 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9120 shlibpath_overrides_runpath=yes
9123 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9127 sys_lib_dlsearch_path_spec='/usr/lib'
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 shlibpath_var=LD_LIBRARY_PATH
9141 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9142 echo "${ECHO_T}$dynamic_linker" >&6; }
9143 test "$dynamic_linker" = no && can_build_shared=no
9145 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9146 if test "$GCC" = yes; then
9147 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9151 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9152 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9153 if test "${libltdl_cv_shlibext+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 eval libltdl_cv_shlibext=$shrext_cmds
9161 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9162 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9163 if test -n "$libltdl_cv_shlibext"; then
9165 cat >>confdefs.h <<_ACEOF
9166 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9172 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9173 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9174 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 libltdl_cv_shlibpath_var="$shlibpath_var"
9179 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9180 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9181 if test -n "$libltdl_cv_shlibpath_var"; then
9183 cat >>confdefs.h <<_ACEOF
9184 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9190 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9191 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9192 if test "${libltdl_cv_sys_search_path+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9197 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9198 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9199 if test -n "$libltdl_cv_sys_search_path"; then
9201 for dir in $libltdl_cv_sys_search_path; do
9202 if test -z "$sys_search_path"; then
9203 sys_search_path="$dir"
9205 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9209 cat >>confdefs.h <<_ACEOF
9210 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9215 { echo "$as_me:$LINENO: checking for objdir" >&5
9216 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9217 if test "${libltdl_cv_objdir+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 libltdl_cv_objdir="$objdir"
9221 if test -n "$objdir"; then
9224 rm -f .libs 2>/dev/null
9225 mkdir .libs 2>/dev/null
9226 if test -d .libs; then
9227 libltdl_cv_objdir=.libs
9229 # MS-DOS does not allow filenames that begin with a dot.
9230 libltdl_cv_objdir=_libs
9232 rmdir .libs 2>/dev/null
9236 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9237 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9239 cat >>confdefs.h <<_ACEOF
9240 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9248 # Check for command to grab the raw symbol name followed by C symbol from nm.
9249 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9250 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9251 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 # These are sane defaults that work on at least a few old systems.
9256 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9258 # Character class describing NM global symbol codes.
9259 symcode='[BCDEGRST]'
9261 # Regexp to match symbols that can be accessed directly from C.
9262 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9264 # Transform an extracted symbol line into a proper C declaration
9265 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9267 # Transform an extracted symbol line into symbol name and symbol address
9268 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'"
9270 # Define system-specific variables.
9275 cygwin* | mingw* | pw32*)
9276 symcode='[ABCDGISTW]'
9278 hpux*) # Its linker distinguishes data from code symbols
9279 if test "$host_cpu" = ia64; then
9280 symcode='[ABCDEGRST]'
9282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9283 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'"
9286 if test "$host_cpu" = ia64; then
9287 symcode='[ABCDGIRSTW]'
9288 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9289 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'"
9293 symcode='[BCDEGRST]'
9296 symcode='[BCDEGQRST]'
9307 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9315 # Handle CRLF in mingw tool chain
9319 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9323 # If we're using GNU nm, then use its standard symbol codes.
9324 case `$NM -V 2>&1` in
9325 *GNU* | *'with BFD'*)
9326 symcode='[ABCDGIRSTW]' ;;
9329 # Try without a prefix undercore, then with it.
9330 for ac_symprfx in "" "_"; do
9332 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9333 symxfrm="\\1 $ac_symprfx\\2 \\2"
9335 # Write the raw and C identifiers.
9336 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9338 # Check to see that the pipe works correctly.
9342 cat > conftest.$ac_ext <<EOF
9347 void nm_test_func(){}
9351 int main(){nm_test_var='a';nm_test_func();return(0);}
9354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355 (eval $ac_compile) 2>&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; then
9359 # Now try to grab the symbols.
9361 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9362 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } && test -s "$nlist"; then
9366 # Try sorting and uniquifying the output.
9367 if sort "$nlist" | uniq > "$nlist"T; then
9368 mv -f "$nlist"T "$nlist"
9373 # Make sure that we snagged all the symbols we need.
9374 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9375 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9376 cat <<EOF > conftest.$ac_ext
9382 # Now generate the symbol file.
9383 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9385 cat <<EOF >> conftest.$ac_ext
9386 #if defined (__STDC__) && __STDC__
9387 # define lt_ptr_t void *
9389 # define lt_ptr_t char *
9393 /* The mapping between symbol names and symbols. */
9398 lt_preloaded_symbols[] =
9401 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9402 cat <<\EOF >> conftest.$ac_ext
9410 # Now try linking the two files.
9411 mv conftest.$ac_objext conftstm.$ac_objext
9412 lt_save_LIBS="$LIBS"
9413 lt_save_CFLAGS="$CFLAGS"
9414 LIBS="conftstm.$ac_objext"
9415 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417 (eval $ac_link) 2>&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9423 LIBS="$lt_save_LIBS"
9424 CFLAGS="$lt_save_CFLAGS"
9426 echo "cannot find nm_test_func in $nlist" >&5
9429 echo "cannot find nm_test_var in $nlist" >&5
9432 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9435 echo "$progname: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9438 rm -f conftest* conftst*
9440 # Do not use the global_symbol_pipe unless it works.
9441 if test "$pipe_works" = yes; then
9444 lt_cv_sys_global_symbol_pipe=
9450 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9451 lt_cv_sys_global_symbol_to_cdecl=
9453 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9454 { echo "$as_me:$LINENO: result: failed" >&5
9455 echo "${ECHO_T}failed" >&6; }
9457 { echo "$as_me:$LINENO: result: ok" >&5
9458 echo "${ECHO_T}ok" >&6; }
9462 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9463 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9464 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9468 libltdl_cv_preloaded_symbols=yes
9470 libltdl_cv_preloaded_symbols=no
9474 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9475 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9476 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9478 cat >>confdefs.h <<\_ACEOF
9479 #define HAVE_PRELOADED_SYMBOLS 1
9487 ac_cpp='$CPP $CPPFLAGS'
9488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9493 { echo "$as_me:$LINENO: checking for shl_load" >&5
9494 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9495 if test "${ac_cv_func_shl_load+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 cat >conftest.$ac_ext <<_ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9506 #define shl_load innocuous_shl_load
9508 /* System header to define __stub macros and hopefully few prototypes,
9509 which can conflict with char shl_load (); below.
9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511 <limits.h> exists even on freestanding compilers. */
9514 # include <limits.h>
9516 # include <assert.h>
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined __stub_shl_load || defined __stub___shl_load
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9552 grep -v '^ *+' conftest.er1 >conftest.err
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9558 { (case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_try") 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; } &&
9567 { ac_try='test -s conftest$ac_exeext'
9568 { (case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_try") 2>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_func_shl_load=yes
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 ac_cv_func_shl_load=no
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9588 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9589 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9590 if test $ac_cv_func_shl_load = yes; then
9592 cat >>confdefs.h <<\_ACEOF
9593 #define HAVE_SHL_LOAD 1
9597 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9598 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9599 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 ac_check_lib_save_LIBS=$LIBS
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9611 /* Override any GCC internal prototype to avoid an error.
9612 Use char because int might match the return type of a GCC
9613 builtin and then its argument prototype would still apply. */
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9635 grep -v '^ *+' conftest.er1 >conftest.err
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9641 { (case "(($ac_try" in
9642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643 *) ac_try_echo=$ac_try;;
9645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646 (eval "$ac_try") 2>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; } &&
9650 { ac_try='test -s conftest$ac_exeext'
9651 { (case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_try") 2>&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 ac_cv_lib_dld_shl_load=yes
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 ac_cv_lib_dld_shl_load=no
9668 rm -f core conftest.err conftest.$ac_objext \
9669 conftest$ac_exeext conftest.$ac_ext
9670 LIBS=$ac_check_lib_save_LIBS
9672 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9673 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9674 if test $ac_cv_lib_dld_shl_load = yes; then
9676 cat >>confdefs.h <<\_ACEOF
9677 #define HAVE_SHL_LOAD 1
9680 LIBADD_DL="$LIBADD_DL -ldld"
9682 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9683 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9684 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 ac_check_lib_save_LIBS=$LIBS
9689 cat >conftest.$ac_ext <<_ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9696 /* Override any GCC internal prototype to avoid an error.
9697 Use char because int might match the return type of a GCC
9698 builtin and then its argument prototype would still apply. */
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9720 grep -v '^ *+' conftest.er1 >conftest.err
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_try") 2>&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_cv_lib_dl_dlopen=yes
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_cv_lib_dl_dlopen=no
9753 rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755 LIBS=$ac_check_lib_save_LIBS
9757 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9758 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9759 if test $ac_cv_lib_dl_dlopen = yes; then
9761 cat >>confdefs.h <<\_ACEOF
9762 #define HAVE_LIBDL 1
9765 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (ac_try="$ac_link"
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_link") 2>conftest.er1
9794 grep -v '^ *+' conftest.er1 >conftest.err
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
9799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9800 { (case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_try") 2>&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try='test -s conftest$ac_exeext'
9810 { (case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_try") 2>&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9820 cat >>confdefs.h <<\_ACEOF
9821 #define HAVE_LIBDL 1
9823 libltdl_cv_func_dlopen="yes"
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9828 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9829 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9830 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 ac_check_lib_save_LIBS=$LIBS
9835 cat >conftest.$ac_ext <<_ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9842 /* Override any GCC internal prototype to avoid an error.
9843 Use char because int might match the return type of a GCC
9844 builtin and then its argument prototype would still apply. */
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (ac_try="$ac_link"
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_link") 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9872 { (case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_try") 2>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest$ac_exeext'
9882 { (case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_try") 2>&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; }; then
9891 ac_cv_lib_svld_dlopen=yes
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_cv_lib_svld_dlopen=no
9899 rm -f core conftest.err conftest.$ac_objext \
9900 conftest$ac_exeext conftest.$ac_ext
9901 LIBS=$ac_check_lib_save_LIBS
9903 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9904 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9905 if test $ac_cv_lib_svld_dlopen = yes; then
9907 cat >>confdefs.h <<\_ACEOF
9908 #define HAVE_LIBDL 1
9911 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9913 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9914 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9915 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 ac_check_lib_save_LIBS=$LIBS
9920 cat >conftest.$ac_ext <<_ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9927 /* Override any GCC internal prototype to avoid an error.
9928 Use char because int might match the return type of a GCC
9929 builtin and then its argument prototype would still apply. */
9942 rm -f conftest.$ac_objext conftest$ac_exeext
9943 if { (ac_try="$ac_link"
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_link") 2>conftest.er1
9951 grep -v '^ *+' conftest.er1 >conftest.err
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest$ac_exeext'
9967 { (case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_try") 2>&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_lib_dld_dld_link=yes
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 ac_cv_lib_dld_dld_link=no
9984 rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_check_lib_save_LIBS
9988 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9989 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9990 if test $ac_cv_lib_dld_dld_link = yes; then
9992 cat >>confdefs.h <<\_ACEOF
9996 LIBADD_DL="$LIBADD_DL -ldld"
9998 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9999 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10000 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 cat >conftest.$ac_ext <<_ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10011 #define _dyld_func_lookup innocuous__dyld_func_lookup
10013 /* System header to define __stub macros and hopefully few prototypes,
10014 which can conflict with char _dyld_func_lookup (); below.
10015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10016 <limits.h> exists even on freestanding compilers. */
10019 # include <limits.h>
10021 # include <assert.h>
10024 #undef _dyld_func_lookup
10026 /* Override any GCC internal prototype to avoid an error.
10027 Use char because int might match the return type of a GCC
10028 builtin and then its argument prototype would still apply. */
10032 char _dyld_func_lookup ();
10033 /* The GNU C library defines this for functions which it implements
10034 to always fail with ENOSYS. Some functions are actually named
10035 something starting with __ and the normal name is an alias. */
10036 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10043 return _dyld_func_lookup ();
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (ac_try="$ac_link"
10050 case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_link") 2>conftest.er1
10057 grep -v '^ *+' conftest.er1 >conftest.err
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try='test -s conftest$ac_exeext'
10073 { (case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_try") 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10082 ac_cv_func__dyld_func_lookup=yes
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 ac_cv_func__dyld_func_lookup=no
10090 rm -f core conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10093 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10094 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10095 if test $ac_cv_func__dyld_func_lookup = yes; then
10097 cat >>confdefs.h <<\_ACEOF
10098 #define HAVE_DYLD 1
10112 rm -f core conftest.err conftest.$ac_objext \
10113 conftest$ac_exeext conftest.$ac_ext
10124 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10126 lt_save_LIBS="$LIBS"
10127 LIBS="$LIBS $LIBADD_DL"
10129 for ac_func in dlerror
10131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 cat >conftest.$ac_ext <<_ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10145 #define $ac_func innocuous_$ac_func
10147 /* System header to define __stub macros and hopefully few prototypes,
10148 which can conflict with char $ac_func (); below.
10149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10150 <limits.h> exists even on freestanding compilers. */
10153 # include <limits.h>
10155 # include <assert.h>
10160 /* Override any GCC internal prototype to avoid an error.
10161 Use char because int might match the return type of a GCC
10162 builtin and then its argument prototype would still apply. */
10167 /* The GNU C library defines this for functions which it implements
10168 to always fail with ENOSYS. Some functions are actually named
10169 something starting with __ and the normal name is an alias. */
10170 #if defined __stub_$ac_func || defined __stub___$ac_func
10177 return $ac_func ();
10182 rm -f conftest.$ac_objext conftest$ac_exeext
10183 if { (ac_try="$ac_link"
10184 case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_link") 2>conftest.er1
10191 grep -v '^ *+' conftest.er1 >conftest.err
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10197 { (case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_try") 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest$ac_exeext'
10207 { (case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_try") 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
10216 eval "$as_ac_var=yes"
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10221 eval "$as_ac_var=no"
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10227 ac_res=`eval echo '${'$as_ac_var'}'`
10228 { echo "$as_me:$LINENO: result: $ac_res" >&5
10229 echo "${ECHO_T}$ac_res" >&6; }
10230 if test `eval echo '${'$as_ac_var'}'` = yes; then
10231 cat >>confdefs.h <<_ACEOF
10232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10238 LIBS="$lt_save_LIBS"
10241 ac_cpp='$CPP $CPPFLAGS'
10242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10248 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10249 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10250 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 ac_cv_sys_symbol_underscore=no
10254 cat > conftest.$ac_ext <<EOF
10255 void nm_test_func(){}
10256 int main(){nm_test_func;return 0;}
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; then
10263 # Now try to grab the symbols.
10264 ac_nlist=conftest.nm
10265 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10266 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && test -s "$ac_nlist"; then
10270 # See whether the symbols have a leading underscore.
10271 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10272 ac_cv_sys_symbol_underscore=yes
10274 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10277 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10281 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10284 echo "configure: failed program was:" >&5
10290 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10291 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10294 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10295 if test x"$libltdl_cv_func_dlopen" = xyes ||
10296 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10297 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10298 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10299 if test "${libltdl_cv_need_uscore+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 libltdl_cv_need_uscore=unknown
10304 LIBS="$LIBS $LIBADD_DL"
10305 if test "$cross_compiling" = yes; then :
10306 libltdl_cv_need_uscore=cross
10308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10309 lt_status=$lt_dlunknown
10310 cat > conftest.$ac_ext <<EOF
10311 #line 10311 "configure"
10312 #include "confdefs.h"
10321 # define LT_DLGLOBAL RTLD_GLOBAL
10324 # define LT_DLGLOBAL DL_GLOBAL
10326 # define LT_DLGLOBAL 0
10330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10331 find out it does not work in some platform. */
10332 #ifndef LT_DLLAZY_OR_NOW
10334 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10337 # define LT_DLLAZY_OR_NOW DL_LAZY
10340 # define LT_DLLAZY_OR_NOW RTLD_NOW
10343 # define LT_DLLAZY_OR_NOW DL_NOW
10345 # define LT_DLLAZY_OR_NOW 0
10353 extern "C" void exit (int);
10356 void fnord() { int i=42;}
10359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10360 int status = $lt_dlunknown;
10364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10365 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10366 /* dlclose (self); */
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375 (eval $ac_link) 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10379 (./conftest; exit; ) >&5 2>/dev/null
10381 case x$lt_status in
10382 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10383 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10384 x$lt_dlunknown|x*) ;;
10387 # compilation failed
10396 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10397 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10401 if test x"$libltdl_cv_need_uscore" = xyes; then
10403 cat >>confdefs.h <<\_ACEOF
10404 #define NEED_USCORE 1
10410 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10411 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10412 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 # PORTME does your system automatically load deplibs for dlopen?
10416 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10417 # For now, we just catch OSes we know something about -- in the
10418 # future, we'll try test this programmatically.
10419 libltdl_cv_sys_dlopen_deplibs=unknown
10421 aix3*|aix4.1.*|aix4.2.*)
10422 # Unknown whether this is true for these versions of AIX, but
10423 # we want this `case' here to explicitly catch those versions.
10424 libltdl_cv_sys_dlopen_deplibs=unknown
10427 libltdl_cv_sys_dlopen_deplibs=yes
10430 # Assuming the user has installed a libdl from somewhere, this is true
10431 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10432 libltdl_cv_sys_dlopen_deplibs=yes
10434 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10435 # GNU and its variants, using gnu ld.so (Glibc)
10436 libltdl_cv_sys_dlopen_deplibs=yes
10439 libltdl_cv_sys_dlopen_deplibs=yes
10442 libltdl_cv_sys_dlopen_deplibs=yes
10444 irix[12345]*|irix6.[01]*)
10445 # Catch all versions of IRIX before 6.2, and indicate that we don't
10446 # know how it worked for any of those versions.
10447 libltdl_cv_sys_dlopen_deplibs=unknown
10450 # The case above catches anything before 6.2, and it's known that
10451 # at 6.2 and later dlopen does load deplibs.
10452 libltdl_cv_sys_dlopen_deplibs=yes
10455 libltdl_cv_sys_dlopen_deplibs=yes
10458 libltdl_cv_sys_dlopen_deplibs=yes
10461 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10462 # it did *not* use an RPATH in a shared library to find objects the
10463 # library depends on, so we explicitly say `no'.
10464 libltdl_cv_sys_dlopen_deplibs=no
10466 osf5.0|osf5.0a|osf5.1)
10467 # dlopen *does* load deplibs and with the right loader patch applied
10468 # it even uses RPATH in a shared library to search for shared objects
10469 # that the library depends on, but there's no easy way to know if that
10470 # patch is installed. Since this is the case, all we can really
10471 # say is unknown -- it depends on the patch being installed. If
10472 # it is, this changes to `yes'. Without it, it would be `no'.
10473 libltdl_cv_sys_dlopen_deplibs=unknown
10476 # the two cases above should catch all versions of osf <= 5.1. Read
10477 # the comments above for what we know about them.
10478 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10479 # is used to find them so we can finally say `yes'.
10480 libltdl_cv_sys_dlopen_deplibs=yes
10483 libltdl_cv_sys_dlopen_deplibs=yes
10485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10486 libltdl_cv_sys_dlopen_deplibs=yes
10491 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10492 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10493 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10495 cat >>confdefs.h <<\_ACEOF
10496 #define LTDL_DLOPEN_DEPLIBS 1
10502 for ac_header in argz.h
10504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 ac_res=`eval echo '${'$as_ac_Header'}'`
10512 { echo "$as_me:$LINENO: result: $ac_res" >&5
10513 echo "${ECHO_T}$ac_res" >&6; }
10515 # Is the header compilable?
10516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 $ac_includes_default
10525 #include <$ac_header>
10527 rm -f conftest.$ac_objext
10528 if { (ac_try="$ac_compile"
10529 case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_compile") 2>conftest.er1
10536 grep -v '^ *+' conftest.er1 >conftest.err
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } &&
10541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; } &&
10551 { ac_try='test -s conftest.$ac_objext'
10552 { (case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_try") 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 ac_header_compiler=yes
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 ac_header_compiler=no
10569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10571 echo "${ECHO_T}$ac_header_compiler" >&6; }
10573 # Is the header present?
10574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <$ac_header>
10584 if { (ac_try="$ac_cpp conftest.$ac_ext"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10592 grep -v '^ *+' conftest.er1 >conftest.err
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } >/dev/null; then
10597 if test -s conftest.err; then
10598 ac_cpp_err=$ac_c_preproc_warn_flag
10599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10606 if test -z "$ac_cpp_err"; then
10607 ac_header_preproc=yes
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10612 ac_header_preproc=no
10615 rm -f conftest.err conftest.$ac_ext
10616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10617 echo "${ECHO_T}$ac_header_preproc" >&6; }
10619 # So? What about this header?
10620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10626 ac_header_preproc=yes
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10642 ## ------------------------------ ##
10643 ## Report this to bugs@yourdomain ##
10644 ## ------------------------------ ##
10646 ) | sed "s/^/$as_me: WARNING: /" >&2
10649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 eval "$as_ac_Header=\$ac_header_preproc"
10656 ac_res=`eval echo '${'$as_ac_Header'}'`
10657 { echo "$as_me:$LINENO: result: $ac_res" >&5
10658 echo "${ECHO_T}$ac_res" >&6; }
10661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10662 cat >>confdefs.h <<_ACEOF
10663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10671 { echo "$as_me:$LINENO: checking for error_t" >&5
10672 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10673 if test "${ac_cv_type_error_t+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10686 typedef error_t ac__type_new_;
10690 if ((ac__type_new_ *) 0)
10692 if (sizeof (ac__type_new_))
10698 rm -f conftest.$ac_objext
10699 if { (ac_try="$ac_compile"
10700 case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_compile") 2>conftest.er1
10707 grep -v '^ *+' conftest.er1 >conftest.err
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10713 { (case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_try") 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; } &&
10722 { ac_try='test -s conftest.$ac_objext'
10723 { (case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_try") 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 ac_cv_type_error_t=yes
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10737 ac_cv_type_error_t=no
10740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10742 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10743 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10744 if test $ac_cv_type_error_t = yes; then
10746 cat >>confdefs.h <<_ACEOF
10747 #define HAVE_ERROR_T 1
10753 cat >>confdefs.h <<\_ACEOF
10754 #define error_t int
10765 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10768 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 cat >conftest.$ac_ext <<_ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10781 #define $ac_func innocuous_$ac_func
10783 /* System header to define __stub macros and hopefully few prototypes,
10784 which can conflict with char $ac_func (); below.
10785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10786 <limits.h> exists even on freestanding compilers. */
10789 # include <limits.h>
10791 # include <assert.h>
10796 /* Override any GCC internal prototype to avoid an error.
10797 Use char because int might match the return type of a GCC
10798 builtin and then its argument prototype would still apply. */
10803 /* The GNU C library defines this for functions which it implements
10804 to always fail with ENOSYS. Some functions are actually named
10805 something starting with __ and the normal name is an alias. */
10806 #if defined __stub_$ac_func || defined __stub___$ac_func
10813 return $ac_func ();
10818 rm -f conftest.$ac_objext conftest$ac_exeext
10819 if { (ac_try="$ac_link"
10820 case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_link") 2>conftest.er1
10827 grep -v '^ *+' conftest.er1 >conftest.err
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } &&
10832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10833 { (case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_try") 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; } &&
10842 { ac_try='test -s conftest$ac_exeext'
10843 { (case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_try") 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 eval "$as_ac_var=yes"
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 eval "$as_ac_var=no"
10860 rm -f core conftest.err conftest.$ac_objext \
10861 conftest$ac_exeext conftest.$ac_ext
10863 ac_res=`eval echo '${'$as_ac_var'}'`
10864 { echo "$as_me:$LINENO: result: $ac_res" >&5
10865 echo "${ECHO_T}$ac_res" >&6; }
10866 if test `eval echo '${'$as_ac_var'}'` = yes; then
10867 cat >>confdefs.h <<_ACEOF
10868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10901 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10911 ac_res=`eval echo '${'$as_ac_Header'}'`
10912 { echo "$as_me:$LINENO: result: $ac_res" >&5
10913 echo "${ECHO_T}$ac_res" >&6; }
10915 # Is the header compilable?
10916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 $ac_includes_default
10925 #include <$ac_header>
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_compile") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_try") 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_header_compiler=yes
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10966 ac_header_compiler=no
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10971 echo "${ECHO_T}$ac_header_compiler" >&6; }
10973 # Is the header present?
10974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 #include <$ac_header>
10984 if { (ac_try="$ac_cpp conftest.$ac_ext"
10985 case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10992 grep -v '^ *+' conftest.er1 >conftest.err
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } >/dev/null; then
10997 if test -s conftest.err; then
10998 ac_cpp_err=$ac_c_preproc_warn_flag
10999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11006 if test -z "$ac_cpp_err"; then
11007 ac_header_preproc=yes
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 ac_header_preproc=no
11015 rm -f conftest.err conftest.$ac_ext
11016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11017 echo "${ECHO_T}$ac_header_preproc" >&6; }
11019 # So? What about this header?
11020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11026 ac_header_preproc=yes
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11042 ## ------------------------------ ##
11043 ## Report this to bugs@yourdomain ##
11044 ## ------------------------------ ##
11046 ) | sed "s/^/$as_me: WARNING: /" >&2
11049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 eval "$as_ac_Header=\$ac_header_preproc"
11056 ac_res=`eval echo '${'$as_ac_Header'}'`
11057 { echo "$as_me:$LINENO: result: $ac_res" >&5
11058 echo "${ECHO_T}$ac_res" >&6; }
11061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11062 cat >>confdefs.h <<_ACEOF
11063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11074 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 ac_res=`eval echo '${'$as_ac_Header'}'`
11084 { echo "$as_me:$LINENO: result: $ac_res" >&5
11085 echo "${ECHO_T}$ac_res" >&6; }
11087 # Is the header compilable?
11088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11090 cat >conftest.$ac_ext <<_ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 $ac_includes_default
11097 #include <$ac_header>
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11108 grep -v '^ *+' conftest.er1 >conftest.err
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11114 { (case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_try") 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; } &&
11123 { ac_try='test -s conftest.$ac_objext'
11124 { (case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_try") 2>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 ac_header_compiler=yes
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 ac_header_compiler=no
11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11143 echo "${ECHO_T}$ac_header_compiler" >&6; }
11145 # Is the header present?
11146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11148 cat >conftest.$ac_ext <<_ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 #include <$ac_header>
11156 if { (ac_try="$ac_cpp conftest.$ac_ext"
11157 case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11164 grep -v '^ *+' conftest.er1 >conftest.err
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } >/dev/null; then
11169 if test -s conftest.err; then
11170 ac_cpp_err=$ac_c_preproc_warn_flag
11171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11178 if test -z "$ac_cpp_err"; then
11179 ac_header_preproc=yes
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_header_preproc=no
11187 rm -f conftest.err conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11189 echo "${ECHO_T}$ac_header_preproc" >&6; }
11191 # So? What about this header?
11192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11198 ac_header_preproc=yes
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11214 ## ------------------------------ ##
11215 ## Report this to bugs@yourdomain ##
11216 ## ------------------------------ ##
11218 ) | sed "s/^/$as_me: WARNING: /" >&2
11221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 eval "$as_ac_Header=\$ac_header_preproc"
11228 ac_res=`eval echo '${'$as_ac_Header'}'`
11229 { echo "$as_me:$LINENO: result: $ac_res" >&5
11230 echo "${ECHO_T}$ac_res" >&6; }
11233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11234 cat >>confdefs.h <<_ACEOF
11235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11244 for ac_header in string.h strings.h
11246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 ac_res=`eval echo '${'$as_ac_Header'}'`
11254 { echo "$as_me:$LINENO: result: $ac_res" >&5
11255 echo "${ECHO_T}$ac_res" >&6; }
11257 # Is the header compilable?
11258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11260 cat >conftest.$ac_ext <<_ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11266 $ac_includes_default
11267 #include <$ac_header>
11269 rm -f conftest.$ac_objext
11270 if { (ac_try="$ac_compile"
11271 case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_compile") 2>conftest.er1
11278 grep -v '^ *+' conftest.er1 >conftest.err
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
11283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11284 { (case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_try") 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; } &&
11293 { ac_try='test -s conftest.$ac_objext'
11294 { (case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_try") 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 ac_header_compiler=yes
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11308 ac_header_compiler=no
11311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11313 echo "${ECHO_T}$ac_header_compiler" >&6; }
11315 # Is the header present?
11316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 #include <$ac_header>
11326 if { (ac_try="$ac_cpp conftest.$ac_ext"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } >/dev/null; then
11339 if test -s conftest.err; then
11340 ac_cpp_err=$ac_c_preproc_warn_flag
11341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11348 if test -z "$ac_cpp_err"; then
11349 ac_header_preproc=yes
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 ac_header_preproc=no
11357 rm -f conftest.err conftest.$ac_ext
11358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11359 echo "${ECHO_T}$ac_header_preproc" >&6; }
11361 # So? What about this header?
11362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11368 ac_header_preproc=yes
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11384 ## ------------------------------ ##
11385 ## Report this to bugs@yourdomain ##
11386 ## ------------------------------ ##
11388 ) | sed "s/^/$as_me: WARNING: /" >&2
11391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 eval "$as_ac_Header=\$ac_header_preproc"
11398 ac_res=`eval echo '${'$as_ac_Header'}'`
11399 { echo "$as_me:$LINENO: result: $ac_res" >&5
11400 echo "${ECHO_T}$ac_res" >&6; }
11403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11404 cat >>confdefs.h <<_ACEOF
11405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11415 for ac_func in strchr index
11417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 cat >conftest.$ac_ext <<_ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11431 #define $ac_func innocuous_$ac_func
11433 /* System header to define __stub macros and hopefully few prototypes,
11434 which can conflict with char $ac_func (); below.
11435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11436 <limits.h> exists even on freestanding compilers. */
11439 # include <limits.h>
11441 # include <assert.h>
11446 /* Override any GCC internal prototype to avoid an error.
11447 Use char because int might match the return type of a GCC
11448 builtin and then its argument prototype would still apply. */
11453 /* The GNU C library defines this for functions which it implements
11454 to always fail with ENOSYS. Some functions are actually named
11455 something starting with __ and the normal name is an alias. */
11456 #if defined __stub_$ac_func || defined __stub___$ac_func
11463 return $ac_func ();
11468 rm -f conftest.$ac_objext conftest$ac_exeext
11469 if { (ac_try="$ac_link"
11470 case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_link") 2>conftest.er1
11477 grep -v '^ *+' conftest.er1 >conftest.err
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } &&
11482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11483 { (case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_try") 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; } &&
11492 { ac_try='test -s conftest$ac_exeext'
11493 { (case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_try") 2>&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; }; then
11502 eval "$as_ac_var=yes"
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 eval "$as_ac_var=no"
11510 rm -f core conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11513 ac_res=`eval echo '${'$as_ac_var'}'`
11514 { echo "$as_me:$LINENO: result: $ac_res" >&5
11515 echo "${ECHO_T}$ac_res" >&6; }
11516 if test `eval echo '${'$as_ac_var'}'` = yes; then
11517 cat >>confdefs.h <<_ACEOF
11518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11526 for ac_func in strrchr rindex
11528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 cat >conftest.$ac_ext <<_ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11542 #define $ac_func innocuous_$ac_func
11544 /* System header to define __stub macros and hopefully few prototypes,
11545 which can conflict with char $ac_func (); below.
11546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11547 <limits.h> exists even on freestanding compilers. */
11550 # include <limits.h>
11552 # include <assert.h>
11557 /* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11564 /* The GNU C library defines this for functions which it implements
11565 to always fail with ENOSYS. Some functions are actually named
11566 something starting with __ and the normal name is an alias. */
11567 #if defined __stub_$ac_func || defined __stub___$ac_func
11574 return $ac_func ();
11579 rm -f conftest.$ac_objext conftest$ac_exeext
11580 if { (ac_try="$ac_link"
11581 case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586 (eval "$ac_link") 2>conftest.er1
11588 grep -v '^ *+' conftest.er1 >conftest.err
11590 cat conftest.err >&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } &&
11593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11594 { (case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_try") 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try='test -s conftest$ac_exeext'
11604 { (case "(($ac_try" in
11605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606 *) ac_try_echo=$ac_try;;
11608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609 (eval "$ac_try") 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 eval "$as_ac_var=yes"
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11618 eval "$as_ac_var=no"
11621 rm -f core conftest.err conftest.$ac_objext \
11622 conftest$ac_exeext conftest.$ac_ext
11624 ac_res=`eval echo '${'$as_ac_var'}'`
11625 { echo "$as_me:$LINENO: result: $ac_res" >&5
11626 echo "${ECHO_T}$ac_res" >&6; }
11627 if test `eval echo '${'$as_ac_var'}'` = yes; then
11628 cat >>confdefs.h <<_ACEOF
11629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11637 for ac_func in memcpy bcopy
11639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 cat >conftest.$ac_ext <<_ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11653 #define $ac_func innocuous_$ac_func
11655 /* System header to define __stub macros and hopefully few prototypes,
11656 which can conflict with char $ac_func (); below.
11657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11658 <limits.h> exists even on freestanding compilers. */
11661 # include <limits.h>
11663 # include <assert.h>
11668 /* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11675 /* The GNU C library defines this for functions which it implements
11676 to always fail with ENOSYS. Some functions are actually named
11677 something starting with __ and the normal name is an alias. */
11678 #if defined __stub_$ac_func || defined __stub___$ac_func
11685 return $ac_func ();
11690 rm -f conftest.$ac_objext conftest$ac_exeext
11691 if { (ac_try="$ac_link"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_link") 2>conftest.er1
11699 grep -v '^ *+' conftest.er1 >conftest.err
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11705 { (case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_try") 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest$ac_exeext'
11715 { (case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_try") 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 eval "$as_ac_var=yes"
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 eval "$as_ac_var=no"
11732 rm -f core conftest.err conftest.$ac_objext \
11733 conftest$ac_exeext conftest.$ac_ext
11735 ac_res=`eval echo '${'$as_ac_var'}'`
11736 { echo "$as_me:$LINENO: result: $ac_res" >&5
11737 echo "${ECHO_T}$ac_res" >&6; }
11738 if test `eval echo '${'$as_ac_var'}'` = yes; then
11739 cat >>confdefs.h <<_ACEOF
11740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11748 for ac_func in memmove strcmp
11750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 cat >conftest.$ac_ext <<_ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11764 #define $ac_func innocuous_$ac_func
11766 /* System header to define __stub macros and hopefully few prototypes,
11767 which can conflict with char $ac_func (); below.
11768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11769 <limits.h> exists even on freestanding compilers. */
11772 # include <limits.h>
11774 # include <assert.h>
11779 /* Override any GCC internal prototype to avoid an error.
11780 Use char because int might match the return type of a GCC
11781 builtin and then its argument prototype would still apply. */
11786 /* The GNU C library defines this for functions which it implements
11787 to always fail with ENOSYS. Some functions are actually named
11788 something starting with __ and the normal name is an alias. */
11789 #if defined __stub_$ac_func || defined __stub___$ac_func
11796 return $ac_func ();
11801 rm -f conftest.$ac_objext conftest$ac_exeext
11802 if { (ac_try="$ac_link"
11803 case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_link") 2>conftest.er1
11810 grep -v '^ *+' conftest.er1 >conftest.err
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest$ac_exeext'
11826 { (case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_try") 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 eval "$as_ac_var=yes"
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 eval "$as_ac_var=no"
11843 rm -f core conftest.err conftest.$ac_objext \
11844 conftest$ac_exeext conftest.$ac_ext
11846 ac_res=`eval echo '${'$as_ac_var'}'`
11847 { echo "$as_me:$LINENO: result: $ac_res" >&5
11848 echo "${ECHO_T}$ac_res" >&6; }
11849 if test `eval echo '${'$as_ac_var'}'` = yes; then
11850 cat >>confdefs.h <<_ACEOF
11851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11860 for ac_func in closedir opendir readdir
11862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 cat >conftest.$ac_ext <<_ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11876 #define $ac_func innocuous_$ac_func
11878 /* System header to define __stub macros and hopefully few prototypes,
11879 which can conflict with char $ac_func (); below.
11880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11881 <limits.h> exists even on freestanding compilers. */
11884 # include <limits.h>
11886 # include <assert.h>
11891 /* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
11898 /* The GNU C library defines this for functions which it implements
11899 to always fail with ENOSYS. Some functions are actually named
11900 something starting with __ and the normal name is an alias. */
11901 #if defined __stub_$ac_func || defined __stub___$ac_func
11908 return $ac_func ();
11913 rm -f conftest.$ac_objext conftest$ac_exeext
11914 if { (ac_try="$ac_link"
11915 case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_link") 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11928 { (case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_try") 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; } &&
11937 { ac_try='test -s conftest$ac_exeext'
11938 { (case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943 (eval "$ac_try") 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 eval "$as_ac_var=yes"
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 eval "$as_ac_var=no"
11955 rm -f core conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11958 ac_res=`eval echo '${'$as_ac_var'}'`
11959 { echo "$as_me:$LINENO: result: $ac_res" >&5
11960 echo "${ECHO_T}$ac_res" >&6; }
11961 if test `eval echo '${'$as_ac_var'}'` = yes; then
11962 cat >>confdefs.h <<_ACEOF
11963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11971 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11972 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11985 if test "$GCC" != "yes" && test "$ICC" != "yes"
11987 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11988 echo "$as_me: error: gcc|icc required but not found" >&2;}
11989 { (exit 1); exit 1; }; }
11992 if test "$GXX" != "yes" && test "$IXX" != "yes"
11994 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11995 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11996 { (exit 1); exit 1; }; }
11999 if test "$GCC" = "yes"
12001 cat >conftest.$ac_ext <<_ACEOF
12002 #if !defined(__GNUC__) || __GNUC__ < 3
12003 #error Unsupported GCC version
12007 rm -f conftest.$ac_objext
12008 if { (ac_try="$ac_compile"
12009 case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014 (eval "$ac_compile") 2>conftest.er1
12016 grep -v '^ *+' conftest.er1 >conftest.err
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12022 { (case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_try") 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; } &&
12031 { ac_try='test -s conftest.$ac_objext'
12032 { (case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_try") 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12047 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12048 { (exit 1); exit 1; }; }
12051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 if test -z "$llvm_cv_gnu_make_command"
12056 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12057 echo "$as_me: error: GNU Make required but not found" >&2;}
12058 { (exit 1); exit 1; }; }
12061 { echo "$as_me:$LINENO: result: ok" >&5
12062 echo "${ECHO_T}ok" >&6; }
12064 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12065 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12066 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12068 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12070 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12072 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12073 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12077 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12078 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12079 if test "${ac_cv_lib_m_sin+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 ac_check_lib_save_LIBS=$LIBS
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12091 /* Override any GCC internal prototype to avoid an error.
12092 Use char because int might match the return type of a GCC
12093 builtin and then its argument prototype would still apply. */
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_link") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12121 { (case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_try") 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest$ac_exeext'
12131 { (case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_try") 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 ac_cv_lib_m_sin=yes
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12152 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12153 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12154 if test $ac_cv_lib_m_sin = yes; then
12155 cat >>confdefs.h <<_ACEOF
12156 #define HAVE_LIBM 1
12163 if test "$llvm_cv_os_type" = "MingW" ; then
12165 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12166 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12167 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 ac_check_lib_save_LIBS=$LIBS
12171 LIBS="-limagehlp $LIBS"
12172 cat >conftest.$ac_ext <<_ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12188 rm -f conftest.$ac_objext conftest$ac_exeext
12189 if { (ac_try="$ac_link"
12190 case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_link") 2>conftest.er1
12197 grep -v '^ *+' conftest.er1 >conftest.err
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12203 { (case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_try") 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; } &&
12212 { ac_try='test -s conftest$ac_exeext'
12213 { (case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_try") 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; }; then
12222 ac_cv_lib_imagehlp_main=yes
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12227 ac_cv_lib_imagehlp_main=no
12230 rm -f core conftest.err conftest.$ac_objext \
12231 conftest$ac_exeext conftest.$ac_ext
12232 LIBS=$ac_check_lib_save_LIBS
12234 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12235 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12236 if test $ac_cv_lib_imagehlp_main = yes; then
12237 cat >>confdefs.h <<_ACEOF
12238 #define HAVE_LIBIMAGEHLP 1
12241 LIBS="-limagehlp $LIBS"
12246 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12247 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12248 if test "${ac_cv_lib_psapi_main+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lpsapi $LIBS"
12253 cat >conftest.$ac_ext <<_ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12269 rm -f conftest.$ac_objext conftest$ac_exeext
12270 if { (ac_try="$ac_link"
12271 case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276 (eval "$ac_link") 2>conftest.er1
12278 grep -v '^ *+' conftest.er1 >conftest.err
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12284 { (case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_try") 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try='test -s conftest$ac_exeext'
12294 { (case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_try") 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 ac_cv_lib_psapi_main=yes
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 ac_cv_lib_psapi_main=no
12311 rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_lib_save_LIBS
12315 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12316 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12317 if test $ac_cv_lib_psapi_main = yes; then
12318 cat >>confdefs.h <<_ACEOF
12319 #define HAVE_LIBPSAPI 1
12322 LIBS="-lpsapi $LIBS"
12328 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12329 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12330 if test "${ac_cv_search_dlopen+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 ac_func_search_save_LIBS=$LIBS
12334 cat >conftest.$ac_ext <<_ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12341 /* Override any GCC internal prototype to avoid an error.
12342 Use char because int might match the return type of a GCC
12343 builtin and then its argument prototype would still apply. */
12356 for ac_lib in '' dl; do
12357 if test -z "$ac_lib"; then
12358 ac_res="none required"
12361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12363 rm -f conftest.$ac_objext conftest$ac_exeext
12364 if { (ac_try="$ac_link"
12365 case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_link") 2>conftest.er1
12372 grep -v '^ *+' conftest.er1 >conftest.err
12374 cat conftest.err >&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } &&
12377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12378 { (case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_try") 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest$ac_exeext'
12388 { (case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_try") 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_cv_search_dlopen=$ac_res
12399 echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12405 rm -f core conftest.err conftest.$ac_objext \
12407 if test "${ac_cv_search_dlopen+set}" = set; then
12411 if test "${ac_cv_search_dlopen+set}" = set; then
12414 ac_cv_search_dlopen=no
12416 rm conftest.$ac_ext
12417 LIBS=$ac_func_search_save_LIBS
12419 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12420 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12421 ac_res=$ac_cv_search_dlopen
12422 if test "$ac_res" != no; then
12423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12425 cat >>confdefs.h <<\_ACEOF
12426 #define HAVE_DLOPEN 1
12430 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12431 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12435 if test "$llvm_cv_enable_libffi" = "yes" ; then
12436 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12437 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12438 if test "${ac_cv_search_ffi_call+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 ac_func_search_save_LIBS=$LIBS
12442 cat >conftest.$ac_ext <<_ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12449 /* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
12459 return ffi_call ();
12464 for ac_lib in '' ffi; do
12465 if test -z "$ac_lib"; then
12466 ac_res="none required"
12469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12471 rm -f conftest.$ac_objext conftest$ac_exeext
12472 if { (ac_try="$ac_link"
12473 case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_link") 2>conftest.er1
12480 grep -v '^ *+' conftest.er1 >conftest.err
12482 cat conftest.err >&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
12485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12486 { (case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_try") 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; } &&
12495 { ac_try='test -s conftest$ac_exeext'
12496 { (case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_try") 2>&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 ac_cv_search_ffi_call=$ac_res
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12513 rm -f core conftest.err conftest.$ac_objext \
12515 if test "${ac_cv_search_ffi_call+set}" = set; then
12519 if test "${ac_cv_search_ffi_call+set}" = set; then
12522 ac_cv_search_ffi_call=no
12524 rm conftest.$ac_ext
12525 LIBS=$ac_func_search_save_LIBS
12527 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12528 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12529 ac_res=$ac_cv_search_ffi_call
12530 if test "$ac_res" != no; then
12531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12533 cat >>confdefs.h <<\_ACEOF
12534 #define HAVE_FFI_CALL 1
12538 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12539 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12540 { (exit 1); exit 1; }; }
12545 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12546 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12547 if test "${ac_cv_search_mallinfo+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 ac_func_search_save_LIBS=$LIBS
12551 cat >conftest.$ac_ext <<_ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12558 /* Override any GCC internal prototype to avoid an error.
12559 Use char because int might match the return type of a GCC
12560 builtin and then its argument prototype would still apply. */
12568 return mallinfo ();
12573 for ac_lib in '' malloc; do
12574 if test -z "$ac_lib"; then
12575 ac_res="none required"
12578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12580 rm -f conftest.$ac_objext conftest$ac_exeext
12581 if { (ac_try="$ac_link"
12582 case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_link") 2>conftest.er1
12589 grep -v '^ *+' conftest.er1 >conftest.err
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
12594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12595 { (case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_try") 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; } &&
12604 { ac_try='test -s conftest$ac_exeext'
12605 { (case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_try") 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_search_mallinfo=$ac_res
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12622 rm -f core conftest.err conftest.$ac_objext \
12624 if test "${ac_cv_search_mallinfo+set}" = set; then
12628 if test "${ac_cv_search_mallinfo+set}" = set; then
12631 ac_cv_search_mallinfo=no
12633 rm conftest.$ac_ext
12634 LIBS=$ac_func_search_save_LIBS
12636 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12637 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12638 ac_res=$ac_cv_search_mallinfo
12639 if test "$ac_res" != no; then
12640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12642 cat >>confdefs.h <<\_ACEOF
12643 #define HAVE_MALLINFO 1
12649 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12651 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12652 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12653 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 ac_check_lib_save_LIBS=$LIBS
12657 LIBS="-lpthread $LIBS"
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12671 char pthread_mutex_init ();
12675 return pthread_mutex_init ();
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (ac_try="$ac_link"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_link") 2>conftest.er1
12689 grep -v '^ *+' conftest.er1 >conftest.err
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } &&
12694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12695 { (case "(($ac_try" in
12696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12700 (eval "$ac_try") 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_try") 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_lib_pthread_pthread_mutex_init=yes
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 ac_cv_lib_pthread_pthread_mutex_init=no
12722 rm -f core conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
12724 LIBS=$ac_check_lib_save_LIBS
12726 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12727 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12728 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12729 cat >>confdefs.h <<_ACEOF
12730 #define HAVE_LIBPTHREAD 1
12733 LIBS="-lpthread $LIBS"
12737 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12738 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12739 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 ac_func_search_save_LIBS=$LIBS
12743 cat >conftest.$ac_ext <<_ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12756 char pthread_mutex_lock ();
12760 return pthread_mutex_lock ();
12765 for ac_lib in '' pthread; do
12766 if test -z "$ac_lib"; then
12767 ac_res="none required"
12770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (ac_try="$ac_link"
12774 case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_link") 2>conftest.er1
12781 grep -v '^ *+' conftest.er1 >conftest.err
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_try") 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_try") 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_search_pthread_mutex_lock=$ac_res
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12814 rm -f core conftest.err conftest.$ac_objext \
12816 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12820 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12823 ac_cv_search_pthread_mutex_lock=no
12825 rm conftest.$ac_ext
12826 LIBS=$ac_func_search_save_LIBS
12828 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12829 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12830 ac_res=$ac_cv_search_pthread_mutex_lock
12831 if test "$ac_res" != no; then
12832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12834 cat >>confdefs.h <<\_ACEOF
12835 #define HAVE_PTHREAD_MUTEX_LOCK 1
12840 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12841 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12842 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 ac_func_search_save_LIBS=$LIBS
12846 cat >conftest.$ac_ext <<_ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12853 /* Override any GCC internal prototype to avoid an error.
12854 Use char because int might match the return type of a GCC
12855 builtin and then its argument prototype would still apply. */
12859 char pthread_rwlock_init ();
12863 return pthread_rwlock_init ();
12868 for ac_lib in '' pthread; do
12869 if test -z "$ac_lib"; then
12870 ac_res="none required"
12873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12875 rm -f conftest.$ac_objext conftest$ac_exeext
12876 if { (ac_try="$ac_link"
12877 case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_link") 2>conftest.er1
12884 grep -v '^ *+' conftest.er1 >conftest.err
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } &&
12889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12890 { (case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_try") 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; } &&
12899 { ac_try='test -s conftest$ac_exeext'
12900 { (case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_try") 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_cv_search_pthread_rwlock_init=$ac_res
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12917 rm -f core conftest.err conftest.$ac_objext \
12919 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12923 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12926 ac_cv_search_pthread_rwlock_init=no
12928 rm conftest.$ac_ext
12929 LIBS=$ac_func_search_save_LIBS
12931 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12932 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12933 ac_res=$ac_cv_search_pthread_rwlock_init
12934 if test "$ac_res" != no; then
12935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12937 cat >>confdefs.h <<\_ACEOF
12938 #define HAVE_PTHREAD_RWLOCK_INIT 1
12943 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12944 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12945 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 ac_func_search_save_LIBS=$LIBS
12949 cat >conftest.$ac_ext <<_ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12956 /* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
12962 char pthread_getspecific ();
12966 return pthread_getspecific ();
12971 for ac_lib in '' pthread; do
12972 if test -z "$ac_lib"; then
12973 ac_res="none required"
12976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12978 rm -f conftest.$ac_objext conftest$ac_exeext
12979 if { (ac_try="$ac_link"
12980 case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_link") 2>conftest.er1
12987 grep -v '^ *+' conftest.er1 >conftest.err
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12993 { (case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_try") 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 ac_cv_search_pthread_getspecific=$ac_res
13014 echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13020 rm -f core conftest.err conftest.$ac_objext \
13022 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13026 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13029 ac_cv_search_pthread_getspecific=no
13031 rm conftest.$ac_ext
13032 LIBS=$ac_func_search_save_LIBS
13034 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13035 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13036 ac_res=$ac_cv_search_pthread_getspecific
13037 if test "$ac_res" != no; then
13038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13040 cat >>confdefs.h <<\_ACEOF
13041 #define HAVE_PTHREAD_GETSPECIFIC 1
13049 # Check whether --with-udis86 was given.
13050 if test "${with_udis86+set}" = set; then
13051 withval=$with_udis86;
13056 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13059 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13060 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13061 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 ac_check_lib_save_LIBS=$LIBS
13065 LIBS="-ludis86 $LIBS"
13066 cat >conftest.$ac_ext <<_ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13073 /* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (ac_try="$ac_link"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_link") 2>conftest.er1
13097 grep -v '^ *+' conftest.er1 >conftest.err
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13103 { (case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_try") 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest$ac_exeext'
13113 { (case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_try") 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 ac_cv_lib_udis86_ud_init=yes
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13127 ac_cv_lib_udis86_ud_init=no
13130 rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13132 LIBS=$ac_check_lib_save_LIBS
13134 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13135 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13136 if test $ac_cv_lib_udis86_ud_init = yes; then
13137 cat >>confdefs.h <<_ACEOF
13138 #define HAVE_LIBUDIS86 1
13141 LIBS="-ludis86 $LIBS"
13145 echo "Error! You need to have libudis86 around."
13157 cat >>confdefs.h <<_ACEOF
13158 #define USE_UDIS86 $USE_UDIS86
13163 # Check whether --with-oprofile was given.
13164 if test "${with_oprofile+set}" = set; then
13165 withval=$with_oprofile;
13169 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13170 no) llvm_cv_oppath=
13173 *) llvm_cv_oppath="${withval}/lib/oprofile"
13174 CPPFLAGS="-I${withval}/include";;
13176 if test -n "$llvm_cv_oppath" ; then
13177 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13178 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13179 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13180 if test "${ac_cv_search_bfd_init+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 ac_func_search_save_LIBS=$LIBS
13184 cat >conftest.$ac_ext <<_ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13191 /* Override any GCC internal prototype to avoid an error.
13192 Use char because int might match the return type of a GCC
13193 builtin and then its argument prototype would still apply. */
13201 return bfd_init ();
13206 for ac_lib in '' bfd; do
13207 if test -z "$ac_lib"; then
13208 ac_res="none required"
13211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13213 rm -f conftest.$ac_objext conftest$ac_exeext
13214 if { (ac_try="$ac_link"
13215 case "(($ac_try" in
13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13220 (eval "$ac_link") 2>conftest.er1
13222 grep -v '^ *+' conftest.er1 >conftest.err
13224 cat conftest.err >&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } &&
13227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13228 { (case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_try") 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; } &&
13237 { ac_try='test -s conftest$ac_exeext'
13238 { (case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_try") 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; }; then
13247 ac_cv_search_bfd_init=$ac_res
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13255 rm -f core conftest.err conftest.$ac_objext \
13257 if test "${ac_cv_search_bfd_init+set}" = set; then
13261 if test "${ac_cv_search_bfd_init+set}" = set; then
13264 ac_cv_search_bfd_init=no
13266 rm conftest.$ac_ext
13267 LIBS=$ac_func_search_save_LIBS
13269 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13270 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13271 ac_res=$ac_cv_search_bfd_init
13272 if test "$ac_res" != no; then
13273 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13277 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13278 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13279 if test "${ac_cv_search_op_open_agent+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 ac_func_search_save_LIBS=$LIBS
13283 cat >conftest.$ac_ext <<_ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13296 char op_open_agent ();
13300 return op_open_agent ();
13305 for ac_lib in '' opagent; do
13306 if test -z "$ac_lib"; then
13307 ac_res="none required"
13310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1 >conftest.err
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest$ac_exeext'
13337 { (case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_try") 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 ac_cv_search_op_open_agent=$ac_res
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13354 rm -f core conftest.err conftest.$ac_objext \
13356 if test "${ac_cv_search_op_open_agent+set}" = set; then
13360 if test "${ac_cv_search_op_open_agent+set}" = set; then
13363 ac_cv_search_op_open_agent=no
13365 rm conftest.$ac_ext
13366 LIBS=$ac_func_search_save_LIBS
13368 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13369 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13370 ac_res=$ac_cv_search_op_open_agent
13371 if test "$ac_res" != no; then
13372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13376 echo "Error! You need to have libopagent around."
13381 if test "${ac_cv_header_opagent_h+set}" = set; then
13382 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13383 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13384 if test "${ac_cv_header_opagent_h+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13388 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13390 # Is the header compilable?
13391 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13392 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13393 cat >conftest.$ac_ext <<_ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 $ac_includes_default
13400 #include <opagent.h>
13402 rm -f conftest.$ac_objext
13403 if { (ac_try="$ac_compile"
13404 case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_compile") 2>conftest.er1
13411 grep -v '^ *+' conftest.er1 >conftest.err
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest.$ac_objext'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_header_compiler=yes
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 ac_header_compiler=no
13444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13446 echo "${ECHO_T}$ac_header_compiler" >&6; }
13448 # Is the header present?
13449 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13450 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13451 cat >conftest.$ac_ext <<_ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13457 #include <opagent.h>
13459 if { (ac_try="$ac_cpp conftest.$ac_ext"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13467 grep -v '^ *+' conftest.er1 >conftest.err
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } >/dev/null; then
13472 if test -s conftest.err; then
13473 ac_cpp_err=$ac_c_preproc_warn_flag
13474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13481 if test -z "$ac_cpp_err"; then
13482 ac_header_preproc=yes
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13487 ac_header_preproc=no
13490 rm -f conftest.err conftest.$ac_ext
13491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13492 echo "${ECHO_T}$ac_header_preproc" >&6; }
13494 # So? What about this header?
13495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13497 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13498 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13500 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13501 ac_header_preproc=yes
13504 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13505 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13507 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13509 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13511 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13513 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13515 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13517 ## ------------------------------ ##
13518 ## Report this to bugs@yourdomain ##
13519 ## ------------------------------ ##
13521 ) | sed "s/^/$as_me: WARNING: /" >&2
13524 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13525 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13526 if test "${ac_cv_header_opagent_h+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 ac_cv_header_opagent_h=$ac_header_preproc
13531 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13532 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13535 if test $ac_cv_header_opagent_h = yes; then
13539 echo "Error! You need to have opagent.h around."
13555 cat >>confdefs.h <<_ACEOF
13556 #define USE_OPROFILE $USE_OPROFILE
13566 ac_header_dirent=no
13567 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13568 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13569 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13570 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 #include <sys/types.h>
13592 rm -f conftest.$ac_objext
13593 if { (ac_try="$ac_compile"
13594 case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_compile") 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest.$ac_objext'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 eval "$as_ac_Header=yes"
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 eval "$as_ac_Header=no"
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636 ac_res=`eval echo '${'$as_ac_Header'}'`
13637 { echo "$as_me:$LINENO: result: $ac_res" >&5
13638 echo "${ECHO_T}$ac_res" >&6; }
13639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13640 cat >>confdefs.h <<_ACEOF
13641 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13644 ac_header_dirent=$ac_hdr; break
13648 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13649 if test $ac_header_dirent = dirent.h; then
13650 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13651 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13652 if test "${ac_cv_search_opendir+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 ac_func_search_save_LIBS=$LIBS
13656 cat >conftest.$ac_ext <<_ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13678 for ac_lib in '' dir; do
13679 if test -z "$ac_lib"; then
13680 ac_res="none required"
13683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13685 rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (ac_try="$ac_link"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_link") 2>conftest.er1
13694 grep -v '^ *+' conftest.er1 >conftest.err
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest$ac_exeext'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_search_opendir=$ac_res
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13727 rm -f core conftest.err conftest.$ac_objext \
13729 if test "${ac_cv_search_opendir+set}" = set; then
13733 if test "${ac_cv_search_opendir+set}" = set; then
13736 ac_cv_search_opendir=no
13738 rm conftest.$ac_ext
13739 LIBS=$ac_func_search_save_LIBS
13741 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13742 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13743 ac_res=$ac_cv_search_opendir
13744 if test "$ac_res" != no; then
13745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13750 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13752 if test "${ac_cv_search_opendir+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 ac_func_search_save_LIBS=$LIBS
13756 cat >conftest.$ac_ext <<_ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13763 /* Override any GCC internal prototype to avoid an error.
13764 Use char because int might match the return type of a GCC
13765 builtin and then its argument prototype would still apply. */
13778 for ac_lib in '' x; do
13779 if test -z "$ac_lib"; then
13780 ac_res="none required"
13783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13785 rm -f conftest.$ac_objext conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_link") 2>conftest.er1
13794 grep -v '^ *+' conftest.er1 >conftest.err
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800 { (case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_try") 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest$ac_exeext'
13810 { (case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_try") 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_search_opendir=$ac_res
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13827 rm -f core conftest.err conftest.$ac_objext \
13829 if test "${ac_cv_search_opendir+set}" = set; then
13833 if test "${ac_cv_search_opendir+set}" = set; then
13836 ac_cv_search_opendir=no
13838 rm conftest.$ac_ext
13839 LIBS=$ac_func_search_save_LIBS
13841 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13842 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13843 ac_res=$ac_cv_search_opendir
13844 if test "$ac_res" != no; then
13845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13851 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13852 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13853 if test "${ac_cv_header_mmap_anon+set}" = set; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 ac_cpp='$CPP $CPPFLAGS'
13858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13862 cat >conftest.$ac_ext <<_ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 #include <sys/mman.h>
13869 #include <unistd.h>
13874 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13879 rm -f conftest.$ac_objext
13880 if { (ac_try="$ac_compile"
13881 case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_compile") 2>conftest.er1
13888 grep -v '^ *+' conftest.er1 >conftest.err
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13894 { (case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_try") 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; } &&
13903 { ac_try='test -s conftest.$ac_objext'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_cv_header_mmap_anon=yes
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13918 ac_cv_header_mmap_anon=no
13921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923 ac_cpp='$CPP $CPPFLAGS'
13924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13930 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13931 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13932 if test "$ac_cv_header_mmap_anon" = yes; then
13934 cat >>confdefs.h <<\_ACEOF
13935 #define HAVE_MMAP_ANONYMOUS 1
13940 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13941 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13942 if test "${ac_cv_header_stat_broken+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 cat >conftest.$ac_ext <<_ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 #include <sys/types.h>
13952 #include <sys/stat.h>
13954 #if defined S_ISBLK && defined S_IFDIR
13955 # if S_ISBLK (S_IFDIR)
13960 #if defined S_ISBLK && defined S_IFCHR
13961 # if S_ISBLK (S_IFCHR)
13966 #if defined S_ISLNK && defined S_IFREG
13967 # if S_ISLNK (S_IFREG)
13972 #if defined S_ISSOCK && defined S_IFREG
13973 # if S_ISSOCK (S_IFREG)
13979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13980 $EGREP "You lose" >/dev/null 2>&1; then
13981 ac_cv_header_stat_broken=yes
13983 ac_cv_header_stat_broken=no
13988 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13989 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13990 if test $ac_cv_header_stat_broken = yes; then
13992 cat >>confdefs.h <<\_ACEOF
13993 #define STAT_MACROS_BROKEN 1
13998 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13999 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14000 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <sys/types.h>
14010 #include <sys/wait.h>
14011 #ifndef WEXITSTATUS
14012 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14015 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14023 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14028 rm -f conftest.$ac_objext
14029 if { (ac_try="$ac_compile"
14030 case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_compile") 2>conftest.er1
14037 grep -v '^ *+' conftest.er1 >conftest.err
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
14042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14043 { (case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_try") 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; } &&
14052 { ac_try='test -s conftest.$ac_objext'
14053 { (case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_try") 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_header_sys_wait_h=yes
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14067 ac_cv_header_sys_wait_h=no
14070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14073 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14074 if test $ac_cv_header_sys_wait_h = yes; then
14076 cat >>confdefs.h <<\_ACEOF
14077 #define HAVE_SYS_WAIT_H 1
14082 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14083 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14084 if test "${ac_cv_header_time+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 cat >conftest.$ac_ext <<_ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 #include <sys/types.h>
14094 #include <sys/time.h>
14100 if ((struct tm *) 0)
14106 rm -f conftest.$ac_objext
14107 if { (ac_try="$ac_compile"
14108 case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_compile") 2>conftest.er1
14115 grep -v '^ *+' conftest.er1 >conftest.err
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14121 { (case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_try") 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; } &&
14130 { ac_try='test -s conftest.$ac_objext'
14131 { (case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_try") 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 ac_cv_header_time=yes
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14145 ac_cv_header_time=no
14148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14151 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14152 if test $ac_cv_header_time = yes; then
14154 cat >>confdefs.h <<\_ACEOF
14155 #define TIME_WITH_SYS_TIME 1
14167 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 ac_res=`eval echo '${'$as_ac_Header'}'`
14177 { echo "$as_me:$LINENO: result: $ac_res" >&5
14178 echo "${ECHO_T}$ac_res" >&6; }
14180 # Is the header compilable?
14181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14183 cat >conftest.$ac_ext <<_ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189 $ac_includes_default
14190 #include <$ac_header>
14192 rm -f conftest.$ac_objext
14193 if { (ac_try="$ac_compile"
14194 case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_compile") 2>conftest.er1
14201 grep -v '^ *+' conftest.er1 >conftest.err
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest.$ac_objext'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 ac_header_compiler=yes
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14231 ac_header_compiler=no
14234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14236 echo "${ECHO_T}$ac_header_compiler" >&6; }
14238 # Is the header present?
14239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14241 cat >conftest.$ac_ext <<_ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 #include <$ac_header>
14249 if { (ac_try="$ac_cpp conftest.$ac_ext"
14250 case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14257 grep -v '^ *+' conftest.er1 >conftest.err
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } >/dev/null; then
14262 if test -s conftest.err; then
14263 ac_cpp_err=$ac_c_preproc_warn_flag
14264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14271 if test -z "$ac_cpp_err"; then
14272 ac_header_preproc=yes
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14277 ac_header_preproc=no
14280 rm -f conftest.err conftest.$ac_ext
14281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14282 echo "${ECHO_T}$ac_header_preproc" >&6; }
14284 # So? What about this header?
14285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14291 ac_header_preproc=yes
14294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14307 ## ------------------------------ ##
14308 ## Report this to bugs@yourdomain ##
14309 ## ------------------------------ ##
14311 ) | sed "s/^/$as_me: WARNING: /" >&2
14314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 eval "$as_ac_Header=\$ac_header_preproc"
14321 ac_res=`eval echo '${'$as_ac_Header'}'`
14322 { echo "$as_me:$LINENO: result: $ac_res" >&5
14323 echo "${ECHO_T}$ac_res" >&6; }
14326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14327 cat >>confdefs.h <<_ACEOF
14328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14341 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 ac_res=`eval echo '${'$as_ac_Header'}'`
14351 { echo "$as_me:$LINENO: result: $ac_res" >&5
14352 echo "${ECHO_T}$ac_res" >&6; }
14354 # Is the header compilable?
14355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14357 cat >conftest.$ac_ext <<_ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 $ac_includes_default
14364 #include <$ac_header>
14366 rm -f conftest.$ac_objext
14367 if { (ac_try="$ac_compile"
14368 case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_compile") 2>conftest.er1
14375 grep -v '^ *+' conftest.er1 >conftest.err
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } &&
14380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14381 { (case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_try") 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_try") 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }; then
14400 ac_header_compiler=yes
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14405 ac_header_compiler=no
14408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14410 echo "${ECHO_T}$ac_header_compiler" >&6; }
14412 # Is the header present?
14413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14415 cat >conftest.$ac_ext <<_ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 #include <$ac_header>
14423 if { (ac_try="$ac_cpp conftest.$ac_ext"
14424 case "(($ac_try" in
14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 *) ac_try_echo=$ac_try;;
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14431 grep -v '^ *+' conftest.er1 >conftest.err
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } >/dev/null; then
14436 if test -s conftest.err; then
14437 ac_cpp_err=$ac_c_preproc_warn_flag
14438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14445 if test -z "$ac_cpp_err"; then
14446 ac_header_preproc=yes
14448 echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14451 ac_header_preproc=no
14454 rm -f conftest.err conftest.$ac_ext
14455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14456 echo "${ECHO_T}$ac_header_preproc" >&6; }
14458 # So? What about this header?
14459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14465 ac_header_preproc=yes
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14481 ## ------------------------------ ##
14482 ## Report this to bugs@yourdomain ##
14483 ## ------------------------------ ##
14485 ) | sed "s/^/$as_me: WARNING: /" >&2
14488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 eval "$as_ac_Header=\$ac_header_preproc"
14495 ac_res=`eval echo '${'$as_ac_Header'}'`
14496 { echo "$as_me:$LINENO: result: $ac_res" >&5
14497 echo "${ECHO_T}$ac_res" >&6; }
14500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14501 cat >>confdefs.h <<_ACEOF
14502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14511 for ac_header in utime.h windows.h
14513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 ac_res=`eval echo '${'$as_ac_Header'}'`
14521 { echo "$as_me:$LINENO: result: $ac_res" >&5
14522 echo "${ECHO_T}$ac_res" >&6; }
14524 # Is the header compilable?
14525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14527 cat >conftest.$ac_ext <<_ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 $ac_includes_default
14534 #include <$ac_header>
14536 rm -f conftest.$ac_objext
14537 if { (ac_try="$ac_compile"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_compile") 2>conftest.er1
14545 grep -v '^ *+' conftest.er1 >conftest.err
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest.$ac_objext'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_header_compiler=yes
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 ac_header_compiler=no
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14580 echo "${ECHO_T}$ac_header_compiler" >&6; }
14582 # Is the header present?
14583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14585 cat >conftest.$ac_ext <<_ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 #include <$ac_header>
14593 if { (ac_try="$ac_cpp conftest.$ac_ext"
14594 case "(($ac_try" in
14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596 *) ac_try_echo=$ac_try;;
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14601 grep -v '^ *+' conftest.er1 >conftest.err
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } >/dev/null; then
14606 if test -s conftest.err; then
14607 ac_cpp_err=$ac_c_preproc_warn_flag
14608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14615 if test -z "$ac_cpp_err"; then
14616 ac_header_preproc=yes
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14621 ac_header_preproc=no
14624 rm -f conftest.err conftest.$ac_ext
14625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14626 echo "${ECHO_T}$ac_header_preproc" >&6; }
14628 # So? What about this header?
14629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14635 ac_header_preproc=yes
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14651 ## ------------------------------ ##
14652 ## Report this to bugs@yourdomain ##
14653 ## ------------------------------ ##
14655 ) | sed "s/^/$as_me: WARNING: /" >&2
14658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 eval "$as_ac_Header=\$ac_header_preproc"
14665 ac_res=`eval echo '${'$as_ac_Header'}'`
14666 { echo "$as_me:$LINENO: result: $ac_res" >&5
14667 echo "${ECHO_T}$ac_res" >&6; }
14670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14671 cat >>confdefs.h <<_ACEOF
14672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14684 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14693 ac_res=`eval echo '${'$as_ac_Header'}'`
14694 { echo "$as_me:$LINENO: result: $ac_res" >&5
14695 echo "${ECHO_T}$ac_res" >&6; }
14697 # Is the header compilable?
14698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14700 cat >conftest.$ac_ext <<_ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 $ac_includes_default
14707 #include <$ac_header>
14709 rm -f conftest.$ac_objext
14710 if { (ac_try="$ac_compile"
14711 case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_compile") 2>conftest.er1
14718 grep -v '^ *+' conftest.er1 >conftest.err
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
14723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14724 { (case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_try") 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest.$ac_objext'
14734 { (case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_try") 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_header_compiler=yes
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 ac_header_compiler=no
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14753 echo "${ECHO_T}$ac_header_compiler" >&6; }
14755 # Is the header present?
14756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14758 cat >conftest.$ac_ext <<_ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 #include <$ac_header>
14766 if { (ac_try="$ac_cpp conftest.$ac_ext"
14767 case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14774 grep -v '^ *+' conftest.er1 >conftest.err
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } >/dev/null; then
14779 if test -s conftest.err; then
14780 ac_cpp_err=$ac_c_preproc_warn_flag
14781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14788 if test -z "$ac_cpp_err"; then
14789 ac_header_preproc=yes
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 ac_header_preproc=no
14797 rm -f conftest.err conftest.$ac_ext
14798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14799 echo "${ECHO_T}$ac_header_preproc" >&6; }
14801 # So? What about this header?
14802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14808 ac_header_preproc=yes
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14824 ## ------------------------------ ##
14825 ## Report this to bugs@yourdomain ##
14826 ## ------------------------------ ##
14828 ) | sed "s/^/$as_me: WARNING: /" >&2
14831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 eval "$as_ac_Header=\$ac_header_preproc"
14838 ac_res=`eval echo '${'$as_ac_Header'}'`
14839 { echo "$as_me:$LINENO: result: $ac_res" >&5
14840 echo "${ECHO_T}$ac_res" >&6; }
14843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14844 cat >>confdefs.h <<_ACEOF
14845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14856 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 ac_res=`eval echo '${'$as_ac_Header'}'`
14866 { echo "$as_me:$LINENO: result: $ac_res" >&5
14867 echo "${ECHO_T}$ac_res" >&6; }
14869 # Is the header compilable?
14870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14872 cat >conftest.$ac_ext <<_ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 $ac_includes_default
14879 #include <$ac_header>
14881 rm -f conftest.$ac_objext
14882 if { (ac_try="$ac_compile"
14883 case "(($ac_try" in
14884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14885 *) ac_try_echo=$ac_try;;
14887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888 (eval "$ac_compile") 2>conftest.er1
14890 grep -v '^ *+' conftest.er1 >conftest.err
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14896 { (case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901 (eval "$ac_try") 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest.$ac_objext'
14906 { (case "(($ac_try" in
14907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908 *) ac_try_echo=$ac_try;;
14910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911 (eval "$ac_try") 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 ac_header_compiler=yes
14917 echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 ac_header_compiler=no
14923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14925 echo "${ECHO_T}$ac_header_compiler" >&6; }
14927 # Is the header present?
14928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14930 cat >conftest.$ac_ext <<_ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 #include <$ac_header>
14938 if { (ac_try="$ac_cpp conftest.$ac_ext"
14939 case "(($ac_try" in
14940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941 *) ac_try_echo=$ac_try;;
14943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14946 grep -v '^ *+' conftest.er1 >conftest.err
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } >/dev/null; then
14951 if test -s conftest.err; then
14952 ac_cpp_err=$ac_c_preproc_warn_flag
14953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14960 if test -z "$ac_cpp_err"; then
14961 ac_header_preproc=yes
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ac_header_preproc=no
14969 rm -f conftest.err conftest.$ac_ext
14970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14971 echo "${ECHO_T}$ac_header_preproc" >&6; }
14973 # So? What about this header?
14974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14980 ac_header_preproc=yes
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14996 ## ------------------------------ ##
14997 ## Report this to bugs@yourdomain ##
14998 ## ------------------------------ ##
15000 ) | sed "s/^/$as_me: WARNING: /" >&2
15003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15008 eval "$as_ac_Header=\$ac_header_preproc"
15010 ac_res=`eval echo '${'$as_ac_Header'}'`
15011 { echo "$as_me:$LINENO: result: $ac_res" >&5
15012 echo "${ECHO_T}$ac_res" >&6; }
15015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15016 cat >>confdefs.h <<_ACEOF
15017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15025 for ac_header in valgrind/valgrind.h
15027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15034 ac_res=`eval echo '${'$as_ac_Header'}'`
15035 { echo "$as_me:$LINENO: result: $ac_res" >&5
15036 echo "${ECHO_T}$ac_res" >&6; }
15038 # Is the header compilable?
15039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15041 cat >conftest.$ac_ext <<_ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 $ac_includes_default
15048 #include <$ac_header>
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15059 grep -v '^ *+' conftest.er1 >conftest.err
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15065 { (case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_try") 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try='test -s conftest.$ac_objext'
15075 { (case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_try") 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }; then
15084 ac_header_compiler=yes
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 ac_header_compiler=no
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15094 echo "${ECHO_T}$ac_header_compiler" >&6; }
15096 # Is the header present?
15097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15099 cat >conftest.$ac_ext <<_ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 #include <$ac_header>
15107 if { (ac_try="$ac_cpp conftest.$ac_ext"
15108 case "(($ac_try" in
15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15115 grep -v '^ *+' conftest.er1 >conftest.err
15117 cat conftest.err >&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } >/dev/null; then
15120 if test -s conftest.err; then
15121 ac_cpp_err=$ac_c_preproc_warn_flag
15122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15129 if test -z "$ac_cpp_err"; then
15130 ac_header_preproc=yes
15132 echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15135 ac_header_preproc=no
15138 rm -f conftest.err conftest.$ac_ext
15139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15140 echo "${ECHO_T}$ac_header_preproc" >&6; }
15142 # So? What about this header?
15143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15149 ac_header_preproc=yes
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15165 ## ------------------------------ ##
15166 ## Report this to bugs@yourdomain ##
15167 ## ------------------------------ ##
15169 ) | sed "s/^/$as_me: WARNING: /" >&2
15172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 eval "$as_ac_Header=\$ac_header_preproc"
15179 ac_res=`eval echo '${'$as_ac_Header'}'`
15180 { echo "$as_me:$LINENO: result: $ac_res" >&5
15181 echo "${ECHO_T}$ac_res" >&6; }
15184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15185 cat >>confdefs.h <<_ACEOF
15186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15194 for ac_header in fenv.h
15196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 ac_res=`eval echo '${'$as_ac_Header'}'`
15204 { echo "$as_me:$LINENO: result: $ac_res" >&5
15205 echo "${ECHO_T}$ac_res" >&6; }
15207 # Is the header compilable?
15208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15210 cat >conftest.$ac_ext <<_ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 $ac_includes_default
15217 #include <$ac_header>
15219 rm -f conftest.$ac_objext
15220 if { (ac_try="$ac_compile"
15221 case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_compile") 2>conftest.er1
15228 grep -v '^ *+' conftest.er1 >conftest.err
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } &&
15233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15234 { (case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_try") 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; } &&
15243 { ac_try='test -s conftest.$ac_objext'
15244 { (case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_try") 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; }; then
15253 ac_header_compiler=yes
15255 echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15258 ac_header_compiler=no
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15263 echo "${ECHO_T}$ac_header_compiler" >&6; }
15265 # Is the header present?
15266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15268 cat >conftest.$ac_ext <<_ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15274 #include <$ac_header>
15276 if { (ac_try="$ac_cpp conftest.$ac_ext"
15277 case "(($ac_try" in
15278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279 *) ac_try_echo=$ac_try;;
15281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15284 grep -v '^ *+' conftest.er1 >conftest.err
15286 cat conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } >/dev/null; then
15289 if test -s conftest.err; then
15290 ac_cpp_err=$ac_c_preproc_warn_flag
15291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15298 if test -z "$ac_cpp_err"; then
15299 ac_header_preproc=yes
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 ac_header_preproc=no
15307 rm -f conftest.err conftest.$ac_ext
15308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15309 echo "${ECHO_T}$ac_header_preproc" >&6; }
15311 # So? What about this header?
15312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15318 ac_header_preproc=yes
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15334 ## ------------------------------ ##
15335 ## Report this to bugs@yourdomain ##
15336 ## ------------------------------ ##
15338 ) | sed "s/^/$as_me: WARNING: /" >&2
15341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15346 eval "$as_ac_Header=\$ac_header_preproc"
15348 ac_res=`eval echo '${'$as_ac_Header'}'`
15349 { echo "$as_me:$LINENO: result: $ac_res" >&5
15350 echo "${ECHO_T}$ac_res" >&6; }
15353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15354 cat >>confdefs.h <<_ACEOF
15355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15362 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15364 for ac_header in pthread.h
15366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 ac_res=`eval echo '${'$as_ac_Header'}'`
15374 { echo "$as_me:$LINENO: result: $ac_res" >&5
15375 echo "${ECHO_T}$ac_res" >&6; }
15377 # Is the header compilable?
15378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 $ac_includes_default
15387 #include <$ac_header>
15389 rm -f conftest.$ac_objext
15390 if { (ac_try="$ac_compile"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_compile") 2>conftest.er1
15398 grep -v '^ *+' conftest.er1 >conftest.err
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15404 { (case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_try") 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; } &&
15413 { ac_try='test -s conftest.$ac_objext'
15414 { (case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_try") 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15423 ac_header_compiler=yes
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15428 ac_header_compiler=no
15431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15433 echo "${ECHO_T}$ac_header_compiler" >&6; }
15435 # Is the header present?
15436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15438 cat >conftest.$ac_ext <<_ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15444 #include <$ac_header>
15446 if { (ac_try="$ac_cpp conftest.$ac_ext"
15447 case "(($ac_try" in
15448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449 *) ac_try_echo=$ac_try;;
15451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15454 grep -v '^ *+' conftest.er1 >conftest.err
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } >/dev/null; then
15459 if test -s conftest.err; then
15460 ac_cpp_err=$ac_c_preproc_warn_flag
15461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15468 if test -z "$ac_cpp_err"; then
15469 ac_header_preproc=yes
15471 echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15474 ac_header_preproc=no
15477 rm -f conftest.err conftest.$ac_ext
15478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15479 echo "${ECHO_T}$ac_header_preproc" >&6; }
15481 # So? What about this header?
15482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15488 ac_header_preproc=yes
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15504 ## ------------------------------ ##
15505 ## Report this to bugs@yourdomain ##
15506 ## ------------------------------ ##
15508 ) | sed "s/^/$as_me: WARNING: /" >&2
15511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 eval "$as_ac_Header=\$ac_header_preproc"
15518 ac_res=`eval echo '${'$as_ac_Header'}'`
15519 { echo "$as_me:$LINENO: result: $ac_res" >&5
15520 echo "${ECHO_T}$ac_res" >&6; }
15523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15524 cat >>confdefs.h <<_ACEOF
15525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15541 if test "$llvm_cv_enable_libffi" = "yes" ; then
15544 for ac_header in ffi.h ffi/ffi.h
15546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 ac_res=`eval echo '${'$as_ac_Header'}'`
15554 { echo "$as_me:$LINENO: result: $ac_res" >&5
15555 echo "${ECHO_T}$ac_res" >&6; }
15557 # Is the header compilable?
15558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15560 cat >conftest.$ac_ext <<_ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15566 $ac_includes_default
15567 #include <$ac_header>
15569 rm -f conftest.$ac_objext
15570 if { (ac_try="$ac_compile"
15571 case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_compile") 2>conftest.er1
15578 grep -v '^ *+' conftest.er1 >conftest.err
15580 cat conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15584 { (case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_try") 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest.$ac_objext'
15594 { (case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_try") 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; }; then
15603 ac_header_compiler=yes
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_header_compiler=no
15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15613 echo "${ECHO_T}$ac_header_compiler" >&6; }
15615 # Is the header present?
15616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15618 cat >conftest.$ac_ext <<_ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 #include <$ac_header>
15626 if { (ac_try="$ac_cpp conftest.$ac_ext"
15627 case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15634 grep -v '^ *+' conftest.er1 >conftest.err
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } >/dev/null; then
15639 if test -s conftest.err; then
15640 ac_cpp_err=$ac_c_preproc_warn_flag
15641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15648 if test -z "$ac_cpp_err"; then
15649 ac_header_preproc=yes
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_header_preproc=no
15657 rm -f conftest.err conftest.$ac_ext
15658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15659 echo "${ECHO_T}$ac_header_preproc" >&6; }
15661 # So? What about this header?
15662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15668 ac_header_preproc=yes
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15684 ## ------------------------------ ##
15685 ## Report this to bugs@yourdomain ##
15686 ## ------------------------------ ##
15688 ) | sed "s/^/$as_me: WARNING: /" >&2
15691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 eval "$as_ac_Header=\$ac_header_preproc"
15698 ac_res=`eval echo '${'$as_ac_Header'}'`
15699 { echo "$as_me:$LINENO: result: $ac_res" >&5
15700 echo "${ECHO_T}$ac_res" >&6; }
15703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15704 cat >>confdefs.h <<_ACEOF
15705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15715 for ac_header in CrashReporterClient.h
15717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 ac_res=`eval echo '${'$as_ac_Header'}'`
15725 { echo "$as_me:$LINENO: result: $ac_res" >&5
15726 echo "${ECHO_T}$ac_res" >&6; }
15728 # Is the header compilable?
15729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15731 cat >conftest.$ac_ext <<_ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 $ac_includes_default
15738 #include <$ac_header>
15740 rm -f conftest.$ac_objext
15741 if { (ac_try="$ac_compile"
15742 case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_compile") 2>conftest.er1
15749 grep -v '^ *+' conftest.er1 >conftest.err
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15755 { (case "(($ac_try" in
15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_try") 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try='test -s conftest.$ac_objext'
15765 { (case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_try") 2>&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 ac_header_compiler=yes
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15779 ac_header_compiler=no
15782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15784 echo "${ECHO_T}$ac_header_compiler" >&6; }
15786 # Is the header present?
15787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15789 cat >conftest.$ac_ext <<_ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795 #include <$ac_header>
15797 if { (ac_try="$ac_cpp conftest.$ac_ext"
15798 case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15805 grep -v '^ *+' conftest.er1 >conftest.err
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } >/dev/null; then
15810 if test -s conftest.err; then
15811 ac_cpp_err=$ac_c_preproc_warn_flag
15812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15819 if test -z "$ac_cpp_err"; then
15820 ac_header_preproc=yes
15822 echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15825 ac_header_preproc=no
15828 rm -f conftest.err conftest.$ac_ext
15829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15830 echo "${ECHO_T}$ac_header_preproc" >&6; }
15832 # So? What about this header?
15833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15839 ac_header_preproc=yes
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15855 ## ------------------------------ ##
15856 ## Report this to bugs@yourdomain ##
15857 ## ------------------------------ ##
15859 ) | sed "s/^/$as_me: WARNING: /" >&2
15862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 eval "$as_ac_Header=\$ac_header_preproc"
15869 ac_res=`eval echo '${'$as_ac_Header'}'`
15870 { echo "$as_me:$LINENO: result: $ac_res" >&5
15871 echo "${ECHO_T}$ac_res" >&6; }
15874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15875 cat >>confdefs.h <<_ACEOF
15876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15884 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15885 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15886 cat >conftest.$ac_ext <<_ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 extern const char *__crashreporter_info__;
15894 __crashreporter_info__ = "test";
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (ac_try="$ac_link"
15901 case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_link") 2>conftest.er1
15908 grep -v '^ *+' conftest.er1 >conftest.err
15910 cat conftest.err >&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15914 { (case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_try") 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest$ac_exeext'
15924 { (case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_try") 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 { echo "$as_me:$LINENO: result: yes" >&5
15934 echo "${ECHO_T}yes" >&6; }
15936 cat >>confdefs.h <<\_ACEOF
15937 #define HAVE_CRASHREPORTER_INFO 1
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 { echo "$as_me:$LINENO: result: no" >&5
15945 echo "${ECHO_T}no" >&6; }
15947 cat >>confdefs.h <<\_ACEOF
15948 #define HAVE_CRASHREPORTER_INFO 0
15953 rm -f core conftest.err conftest.$ac_objext \
15954 conftest$ac_exeext conftest.$ac_ext
15959 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15960 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15961 if test "${ac_cv_huge_val_sanity+set}" = set; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 ac_cpp='$CXXCPP $CPPFLAGS'
15967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15971 ac_save_CXXFLAGS=$CXXFLAGS
15972 CXXFLAGS="$CXXFLAGS -pedantic"
15973 if test "$cross_compiling" = yes; then
15974 ac_cv_huge_val_sanity=yes
15976 cat >conftest.$ac_ext <<_ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15986 double x = HUGE_VAL; return x != x;
15991 rm -f conftest$ac_exeext
15992 if { (ac_try="$ac_link"
15993 case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_link") 2>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 ac_cv_huge_val_sanity=yes
16013 echo "$as_me: program exited with status $ac_status" >&5
16014 echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16017 ( exit $ac_status )
16018 ac_cv_huge_val_sanity=no
16020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16024 CXXFLAGS=$ac_save_CXXFLAGS
16026 ac_cpp='$CPP $CPPFLAGS'
16027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16033 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16034 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16035 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16038 { echo "$as_me:$LINENO: checking for pid_t" >&5
16039 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16040 if test "${ac_cv_type_pid_t+set}" = set; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 cat >conftest.$ac_ext <<_ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16049 $ac_includes_default
16050 typedef pid_t ac__type_new_;
16054 if ((ac__type_new_ *) 0)
16056 if (sizeof (ac__type_new_))
16062 rm -f conftest.$ac_objext
16063 if { (ac_try="$ac_compile"
16064 case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_compile") 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } &&
16076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16077 { (case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_try") 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest.$ac_objext'
16087 { (case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_try") 2>&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_cv_type_pid_t=yes
16098 echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16101 ac_cv_type_pid_t=no
16104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16106 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16107 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16108 if test $ac_cv_type_pid_t = yes; then
16112 cat >>confdefs.h <<_ACEOF
16118 { echo "$as_me:$LINENO: checking for size_t" >&5
16119 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16120 if test "${ac_cv_type_size_t+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 $ac_includes_default
16130 typedef size_t ac__type_new_;
16134 if ((ac__type_new_ *) 0)
16136 if (sizeof (ac__type_new_))
16142 rm -f conftest.$ac_objext
16143 if { (ac_try="$ac_compile"
16144 case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_compile") 2>conftest.er1
16151 grep -v '^ *+' conftest.er1 >conftest.err
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } &&
16156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16157 { (case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162 (eval "$ac_try") 2>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; } &&
16166 { ac_try='test -s conftest.$ac_objext'
16167 { (case "(($ac_try" in
16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172 (eval "$ac_try") 2>&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); }; }; then
16176 ac_cv_type_size_t=yes
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 ac_cv_type_size_t=no
16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16186 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16187 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16188 if test $ac_cv_type_size_t = yes; then
16192 cat >>confdefs.h <<_ACEOF
16193 #define size_t unsigned int
16199 cat >>confdefs.h <<_ACEOF
16200 #define RETSIGTYPE void
16203 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16204 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16205 if test "${ac_cv_struct_tm+set}" = set; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 cat >conftest.$ac_ext <<_ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 #include <sys/types.h>
16220 struct tm *tp; tp->tm_sec;
16225 rm -f conftest.$ac_objext
16226 if { (ac_try="$ac_compile"
16227 case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_compile") 2>conftest.er1
16234 grep -v '^ *+' conftest.er1 >conftest.err
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } &&
16239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16240 { (case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_try") 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } &&
16249 { ac_try='test -s conftest.$ac_objext'
16250 { (case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_try") 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_cv_struct_tm=time.h
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 ac_cv_struct_tm=sys/time.h
16267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16270 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16271 if test $ac_cv_struct_tm = sys/time.h; then
16273 cat >>confdefs.h <<\_ACEOF
16274 #define TM_IN_SYS_TIME 1
16279 { echo "$as_me:$LINENO: checking for int64_t" >&5
16280 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16281 if test "${ac_cv_type_int64_t+set}" = set; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16284 cat >conftest.$ac_ext <<_ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 $ac_includes_default
16291 typedef int64_t ac__type_new_;
16295 if ((ac__type_new_ *) 0)
16297 if (sizeof (ac__type_new_))
16303 rm -f conftest.$ac_objext
16304 if { (ac_try="$ac_compile"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16312 grep -v '^ *+' conftest.er1 >conftest.err
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; } &&
16327 { ac_try='test -s conftest.$ac_objext'
16328 { (case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_try") 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 ac_cv_type_int64_t=yes
16339 echo "$as_me: failed program was:" >&5
16340 sed 's/^/| /' conftest.$ac_ext >&5
16342 ac_cv_type_int64_t=no
16345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16347 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16348 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16349 if test $ac_cv_type_int64_t = yes; then
16351 cat >>confdefs.h <<_ACEOF
16352 #define HAVE_INT64_T 1
16357 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16358 echo "$as_me: error: Type int64_t required but not found" >&2;}
16359 { (exit 1); exit 1; }; }
16362 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16363 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16364 if test "${ac_cv_type_uint64_t+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 $ac_includes_default
16374 typedef uint64_t ac__type_new_;
16378 if ((ac__type_new_ *) 0)
16380 if (sizeof (ac__type_new_))
16386 rm -f conftest.$ac_objext
16387 if { (ac_try="$ac_compile"
16388 case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_compile") 2>conftest.er1
16395 grep -v '^ *+' conftest.er1 >conftest.err
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
16400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16401 { (case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_try") 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; } &&
16410 { ac_try='test -s conftest.$ac_objext'
16411 { (case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_try") 2>&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
16420 ac_cv_type_uint64_t=yes
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16425 ac_cv_type_uint64_t=no
16428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16431 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16432 if test $ac_cv_type_uint64_t = yes; then
16434 cat >>confdefs.h <<_ACEOF
16435 #define HAVE_UINT64_T 1
16440 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16441 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16442 if test "${ac_cv_type_u_int64_t+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 cat >conftest.$ac_ext <<_ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 $ac_includes_default
16452 typedef u_int64_t ac__type_new_;
16456 if ((ac__type_new_ *) 0)
16458 if (sizeof (ac__type_new_))
16464 rm -f conftest.$ac_objext
16465 if { (ac_try="$ac_compile"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_compile") 2>conftest.er1
16473 grep -v '^ *+' conftest.er1 >conftest.err
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
16478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try='test -s conftest.$ac_objext'
16489 { (case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_try") 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 ac_cv_type_u_int64_t=yes
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 ac_cv_type_u_int64_t=no
16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16508 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16509 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16510 if test $ac_cv_type_u_int64_t = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define HAVE_U_INT64_T 1
16518 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16519 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16520 { (exit 1); exit 1; }; }
16534 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 cat >conftest.$ac_ext <<_ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16550 #define $ac_func innocuous_$ac_func
16552 /* System header to define __stub macros and hopefully few prototypes,
16553 which can conflict with char $ac_func (); below.
16554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16555 <limits.h> exists even on freestanding compilers. */
16558 # include <limits.h>
16560 # include <assert.h>
16565 /* Override any GCC internal prototype to avoid an error.
16566 Use char because int might match the return type of a GCC
16567 builtin and then its argument prototype would still apply. */
16572 /* The GNU C library defines this for functions which it implements
16573 to always fail with ENOSYS. Some functions are actually named
16574 something starting with __ and the normal name is an alias. */
16575 #if defined __stub_$ac_func || defined __stub___$ac_func
16582 return $ac_func ();
16587 rm -f conftest.$ac_objext conftest$ac_exeext
16588 if { (ac_try="$ac_link"
16589 case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_link") 2>conftest.er1
16596 grep -v '^ *+' conftest.er1 >conftest.err
16598 cat conftest.err >&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
16601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16602 { (case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_try") 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest$ac_exeext'
16612 { (case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_try") 2>&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16621 eval "$as_ac_var=yes"
16623 echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16626 eval "$as_ac_var=no"
16629 rm -f core conftest.err conftest.$ac_objext \
16630 conftest$ac_exeext conftest.$ac_ext
16632 ac_res=`eval echo '${'$as_ac_var'}'`
16633 { echo "$as_me:$LINENO: result: $ac_res" >&5
16634 echo "${ECHO_T}$ac_res" >&6; }
16635 if test `eval echo '${'$as_ac_var'}'` = yes; then
16636 cat >>confdefs.h <<_ACEOF
16637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16647 for ac_func in powf fmodf strtof round
16649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 cat >conftest.$ac_ext <<_ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16663 #define $ac_func innocuous_$ac_func
16665 /* System header to define __stub macros and hopefully few prototypes,
16666 which can conflict with char $ac_func (); below.
16667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16668 <limits.h> exists even on freestanding compilers. */
16671 # include <limits.h>
16673 # include <assert.h>
16678 /* Override any GCC internal prototype to avoid an error.
16679 Use char because int might match the return type of a GCC
16680 builtin and then its argument prototype would still apply. */
16685 /* The GNU C library defines this for functions which it implements
16686 to always fail with ENOSYS. Some functions are actually named
16687 something starting with __ and the normal name is an alias. */
16688 #if defined __stub_$ac_func || defined __stub___$ac_func
16695 return $ac_func ();
16700 rm -f conftest.$ac_objext conftest$ac_exeext
16701 if { (ac_try="$ac_link"
16702 case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_link") 2>conftest.er1
16709 grep -v '^ *+' conftest.er1 >conftest.err
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
16714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try='test -s conftest$ac_exeext'
16725 { (case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_try") 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 eval "$as_ac_var=yes"
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16739 eval "$as_ac_var=no"
16742 rm -f core conftest.err conftest.$ac_objext \
16743 conftest$ac_exeext conftest.$ac_ext
16745 ac_res=`eval echo '${'$as_ac_var'}'`
16746 { echo "$as_me:$LINENO: result: $ac_res" >&5
16747 echo "${ECHO_T}$ac_res" >&6; }
16748 if test `eval echo '${'$as_ac_var'}'` = yes; then
16749 cat >>confdefs.h <<_ACEOF
16750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16761 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 cat >conftest.$ac_ext <<_ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16777 #define $ac_func innocuous_$ac_func
16779 /* System header to define __stub macros and hopefully few prototypes,
16780 which can conflict with char $ac_func (); below.
16781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16782 <limits.h> exists even on freestanding compilers. */
16785 # include <limits.h>
16787 # include <assert.h>
16792 /* Override any GCC internal prototype to avoid an error.
16793 Use char because int might match the return type of a GCC
16794 builtin and then its argument prototype would still apply. */
16799 /* The GNU C library defines this for functions which it implements
16800 to always fail with ENOSYS. Some functions are actually named
16801 something starting with __ and the normal name is an alias. */
16802 #if defined __stub_$ac_func || defined __stub___$ac_func
16809 return $ac_func ();
16814 rm -f conftest.$ac_objext conftest$ac_exeext
16815 if { (ac_try="$ac_link"
16816 case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_link") 2>conftest.er1
16823 grep -v '^ *+' conftest.er1 >conftest.err
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16829 { (case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834 (eval "$ac_try") 2>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; } &&
16838 { ac_try='test -s conftest$ac_exeext'
16839 { (case "(($ac_try" in
16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841 *) ac_try_echo=$ac_try;;
16843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844 (eval "$ac_try") 2>&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 eval "$as_ac_var=yes"
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 eval "$as_ac_var=no"
16856 rm -f core conftest.err conftest.$ac_objext \
16857 conftest$ac_exeext conftest.$ac_ext
16859 ac_res=`eval echo '${'$as_ac_var'}'`
16860 { echo "$as_me:$LINENO: result: $ac_res" >&5
16861 echo "${ECHO_T}$ac_res" >&6; }
16862 if test `eval echo '${'$as_ac_var'}'` = yes; then
16863 cat >>confdefs.h <<_ACEOF
16864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16873 for ac_func in isatty mkdtemp mkstemp
16875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 cat >conftest.$ac_ext <<_ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16889 #define $ac_func innocuous_$ac_func
16891 /* System header to define __stub macros and hopefully few prototypes,
16892 which can conflict with char $ac_func (); below.
16893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16894 <limits.h> exists even on freestanding compilers. */
16897 # include <limits.h>
16899 # include <assert.h>
16904 /* Override any GCC internal prototype to avoid an error.
16905 Use char because int might match the return type of a GCC
16906 builtin and then its argument prototype would still apply. */
16911 /* The GNU C library defines this for functions which it implements
16912 to always fail with ENOSYS. Some functions are actually named
16913 something starting with __ and the normal name is an alias. */
16914 #if defined __stub_$ac_func || defined __stub___$ac_func
16921 return $ac_func ();
16926 rm -f conftest.$ac_objext conftest$ac_exeext
16927 if { (ac_try="$ac_link"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_link") 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16941 { (case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_try") 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; } &&
16950 { ac_try='test -s conftest$ac_exeext'
16951 { (case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_try") 2>&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 eval "$as_ac_var=yes"
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 eval "$as_ac_var=no"
16968 rm -f core conftest.err conftest.$ac_objext \
16969 conftest$ac_exeext conftest.$ac_ext
16971 ac_res=`eval echo '${'$as_ac_var'}'`
16972 { echo "$as_me:$LINENO: result: $ac_res" >&5
16973 echo "${ECHO_T}$ac_res" >&6; }
16974 if test `eval echo '${'$as_ac_var'}'` = yes; then
16975 cat >>confdefs.h <<_ACEOF
16976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16988 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16996 cat >conftest.$ac_ext <<_ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17004 #define $ac_func innocuous_$ac_func
17006 /* System header to define __stub macros and hopefully few prototypes,
17007 which can conflict with char $ac_func (); below.
17008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17009 <limits.h> exists even on freestanding compilers. */
17012 # include <limits.h>
17014 # include <assert.h>
17019 /* Override any GCC internal prototype to avoid an error.
17020 Use char because int might match the return type of a GCC
17021 builtin and then its argument prototype would still apply. */
17026 /* The GNU C library defines this for functions which it implements
17027 to always fail with ENOSYS. Some functions are actually named
17028 something starting with __ and the normal name is an alias. */
17029 #if defined __stub_$ac_func || defined __stub___$ac_func
17036 return $ac_func ();
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (ac_try="$ac_link"
17043 case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_link") 2>conftest.er1
17050 grep -v '^ *+' conftest.er1 >conftest.err
17052 cat conftest.err >&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
17055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest$ac_exeext'
17066 { (case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_try") 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 eval "$as_ac_var=yes"
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 eval "$as_ac_var=no"
17083 rm -f core conftest.err conftest.$ac_objext \
17084 conftest$ac_exeext conftest.$ac_ext
17086 ac_res=`eval echo '${'$as_ac_var'}'`
17087 { echo "$as_me:$LINENO: result: $ac_res" >&5
17088 echo "${ECHO_T}$ac_res" >&6; }
17089 if test `eval echo '${'$as_ac_var'}'` = yes; then
17090 cat >>confdefs.h <<_ACEOF
17091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17100 for ac_func in strerror strerror_r setenv
17102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 cat >conftest.$ac_ext <<_ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17116 #define $ac_func innocuous_$ac_func
17118 /* System header to define __stub macros and hopefully few prototypes,
17119 which can conflict with char $ac_func (); below.
17120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17121 <limits.h> exists even on freestanding compilers. */
17124 # include <limits.h>
17126 # include <assert.h>
17131 /* Override any GCC internal prototype to avoid an error.
17132 Use char because int might match the return type of a GCC
17133 builtin and then its argument prototype would still apply. */
17138 /* The GNU C library defines this for functions which it implements
17139 to always fail with ENOSYS. Some functions are actually named
17140 something starting with __ and the normal name is an alias. */
17141 #if defined __stub_$ac_func || defined __stub___$ac_func
17148 return $ac_func ();
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (ac_try="$ac_link"
17155 case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_link") 2>conftest.er1
17162 grep -v '^ *+' conftest.er1 >conftest.err
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168 { (case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_try") 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; } &&
17177 { ac_try='test -s conftest$ac_exeext'
17178 { (case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_try") 2>&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
17187 eval "$as_ac_var=yes"
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17192 eval "$as_ac_var=no"
17195 rm -f core conftest.err conftest.$ac_objext \
17196 conftest$ac_exeext conftest.$ac_ext
17198 ac_res=`eval echo '${'$as_ac_var'}'`
17199 { echo "$as_me:$LINENO: result: $ac_res" >&5
17200 echo "${ECHO_T}$ac_res" >&6; }
17201 if test `eval echo '${'$as_ac_var'}'` = yes; then
17202 cat >>confdefs.h <<_ACEOF
17203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17213 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17221 cat >conftest.$ac_ext <<_ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h. */
17227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17229 #define $ac_func innocuous_$ac_func
17231 /* System header to define __stub macros and hopefully few prototypes,
17232 which can conflict with char $ac_func (); below.
17233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17234 <limits.h> exists even on freestanding compilers. */
17237 # include <limits.h>
17239 # include <assert.h>
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17251 /* The GNU C library defines this for functions which it implements
17252 to always fail with ENOSYS. Some functions are actually named
17253 something starting with __ and the normal name is an alias. */
17254 #if defined __stub_$ac_func || defined __stub___$ac_func
17261 return $ac_func ();
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17275 grep -v '^ *+' conftest.er1 >conftest.err
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17281 { (case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_try") 2>&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; } &&
17290 { ac_try='test -s conftest$ac_exeext'
17291 { (case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_try") 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 eval "$as_ac_var=yes"
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17305 eval "$as_ac_var=no"
17308 rm -f core conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
17311 ac_res=`eval echo '${'$as_ac_var'}'`
17312 { echo "$as_me:$LINENO: result: $ac_res" >&5
17313 echo "${ECHO_T}$ac_res" >&6; }
17314 if test `eval echo '${'$as_ac_var'}'` = yes; then
17315 cat >>confdefs.h <<_ACEOF
17316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17327 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17335 cat >conftest.$ac_ext <<_ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17343 #define $ac_func innocuous_$ac_func
17345 /* System header to define __stub macros and hopefully few prototypes,
17346 which can conflict with char $ac_func (); below.
17347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17348 <limits.h> exists even on freestanding compilers. */
17351 # include <limits.h>
17353 # include <assert.h>
17358 /* Override any GCC internal prototype to avoid an error.
17359 Use char because int might match the return type of a GCC
17360 builtin and then its argument prototype would still apply. */
17365 /* The GNU C library defines this for functions which it implements
17366 to always fail with ENOSYS. Some functions are actually named
17367 something starting with __ and the normal name is an alias. */
17368 #if defined __stub_$ac_func || defined __stub___$ac_func
17375 return $ac_func ();
17380 rm -f conftest.$ac_objext conftest$ac_exeext
17381 if { (ac_try="$ac_link"
17382 case "(($ac_try" in
17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384 *) ac_try_echo=$ac_try;;
17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387 (eval "$ac_link") 2>conftest.er1
17389 grep -v '^ *+' conftest.er1 >conftest.err
17391 cat conftest.err >&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
17394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17395 { (case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_try") 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest$ac_exeext'
17405 { (case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_try") 2>&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; }; then
17414 eval "$as_ac_var=yes"
17416 echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17419 eval "$as_ac_var=no"
17422 rm -f core conftest.err conftest.$ac_objext \
17423 conftest$ac_exeext conftest.$ac_ext
17425 ac_res=`eval echo '${'$as_ac_var'}'`
17426 { echo "$as_me:$LINENO: result: $ac_res" >&5
17427 echo "${ECHO_T}$ac_res" >&6; }
17428 if test `eval echo '${'$as_ac_var'}'` = yes; then
17429 cat >>confdefs.h <<_ACEOF
17430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17436 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17437 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17438 if test "${llvm_cv_c_printf_a+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 ac_cpp='$CPP $CPPFLAGS'
17443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17447 if test "$cross_compiling" = yes; then
17448 llvmac_cv_c_printf_a=no
17450 cat >conftest.$ac_ext <<_ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17459 #include <stdlib.h>
17465 volatile double A, B;
17469 sprintf(Buffer, "%a", A);
17473 if (A != 0x1.999999999999ap-4)
17480 rm -f conftest$ac_exeext
17481 if { (ac_try="$ac_link"
17482 case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_link") 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17491 { (case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 llvm_cv_c_printf_a=yes
17502 echo "$as_me: program exited with status $ac_status" >&5
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 ( exit $ac_status )
17507 llvmac_cv_c_printf_a=no
17509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17514 ac_cpp='$CPP $CPPFLAGS'
17515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17520 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17521 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17522 if test "$llvm_cv_c_printf_a" = "yes"; then
17524 cat >>confdefs.h <<\_ACEOF
17525 #define HAVE_PRINTF_A 1
17531 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17532 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17533 if test "${ac_cv_func_rand48+set}" = set; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 ac_cpp='$CXXCPP $CPPFLAGS'
17538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17542 cat >conftest.$ac_ext <<_ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h. */
17548 #include <stdlib.h>
17552 srand48(0);lrand48();drand48();
17557 rm -f conftest.$ac_objext
17558 if { (ac_try="$ac_compile"
17559 case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17566 grep -v '^ *+' conftest.er1 >conftest.err
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17572 { (case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_try") 2>&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
17582 { (case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_try") 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591 ac_cv_func_rand48=yes
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17596 ac_cv_func_rand48=no
17599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17601 ac_cpp='$CPP $CPPFLAGS'
17602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17607 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17608 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17610 if test "$ac_cv_func_rand48" = "yes" ; then
17612 cat >>confdefs.h <<\_ACEOF
17613 #define HAVE_RAND48 1
17619 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17620 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17621 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 cat >conftest.$ac_ext <<_ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 $ac_includes_default
17635 char *p = (char *) strerror_s;
17643 rm -f conftest.$ac_objext
17644 if { (ac_try="$ac_compile"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_compile") 2>conftest.er1
17652 grep -v '^ *+' conftest.er1 >conftest.err
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658 { (case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_try") 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest.$ac_objext'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_cv_have_decl_strerror_s=yes
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17682 ac_cv_have_decl_strerror_s=no
17685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17687 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17688 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17689 if test $ac_cv_have_decl_strerror_s = yes; then
17691 cat >>confdefs.h <<_ACEOF
17692 #define HAVE_DECL_STRERROR_S 1
17697 cat >>confdefs.h <<_ACEOF
17698 #define HAVE_DECL_STRERROR_S 0
17706 if test "$llvm_cv_os_type" = "MingW" ; then
17707 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17708 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17709 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17712 ac_check_lib_save_LIBS=$LIBS
17714 cat >conftest.$ac_ext <<_ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17721 /* Override any GCC internal prototype to avoid an error.
17722 Use char because int might match the return type of a GCC
17723 builtin and then its argument prototype would still apply. */
17736 rm -f conftest.$ac_objext conftest$ac_exeext
17737 if { (ac_try="$ac_link"
17738 case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_link") 2>conftest.er1
17745 grep -v '^ *+' conftest.er1 >conftest.err
17747 cat conftest.err >&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
17750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17751 { (case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_try") 2>&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest$ac_exeext'
17761 { (case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766 (eval "$ac_try") 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 ac_cv_lib_gcc__alloca=yes
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17775 ac_cv_lib_gcc__alloca=no
17778 rm -f core conftest.err conftest.$ac_objext \
17779 conftest$ac_exeext conftest.$ac_ext
17780 LIBS=$ac_check_lib_save_LIBS
17782 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17783 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17784 if test $ac_cv_lib_gcc__alloca = yes; then
17786 cat >>confdefs.h <<\_ACEOF
17787 #define HAVE__ALLOCA 1
17792 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17793 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17794 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 ac_check_lib_save_LIBS=$LIBS
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17806 /* Override any GCC internal prototype to avoid an error.
17807 Use char because int might match the return type of a GCC
17808 builtin and then its argument prototype would still apply. */
17816 return __alloca ();
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (ac_try="$ac_link"
17823 case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_link") 2>conftest.er1
17830 grep -v '^ *+' conftest.er1 >conftest.err
17832 cat conftest.err >&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
17835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17836 { (case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_try") 2>&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest$ac_exeext'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 ac_cv_lib_gcc___alloca=yes
17857 echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17860 ac_cv_lib_gcc___alloca=no
17863 rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17865 LIBS=$ac_check_lib_save_LIBS
17867 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17868 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17869 if test $ac_cv_lib_gcc___alloca = yes; then
17871 cat >>confdefs.h <<\_ACEOF
17872 #define HAVE___ALLOCA 1
17877 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17878 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17879 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17882 ac_check_lib_save_LIBS=$LIBS
17884 cat >conftest.$ac_ext <<_ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17891 /* Override any GCC internal prototype to avoid an error.
17892 Use char because int might match the return type of a GCC
17893 builtin and then its argument prototype would still apply. */
17901 return __chkstk ();
17906 rm -f conftest.$ac_objext conftest$ac_exeext
17907 if { (ac_try="$ac_link"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_link") 2>conftest.er1
17915 grep -v '^ *+' conftest.er1 >conftest.err
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
17920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17921 { (case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_try") 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest$ac_exeext'
17931 { (case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_try") 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_cv_lib_gcc___chkstk=yes
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 ac_cv_lib_gcc___chkstk=no
17948 rm -f core conftest.err conftest.$ac_objext \
17949 conftest$ac_exeext conftest.$ac_ext
17950 LIBS=$ac_check_lib_save_LIBS
17952 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17953 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17954 if test $ac_cv_lib_gcc___chkstk = yes; then
17956 cat >>confdefs.h <<\_ACEOF
17957 #define HAVE___CHKSTK 1
17962 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17963 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17964 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17967 ac_check_lib_save_LIBS=$LIBS
17969 cat >conftest.$ac_ext <<_ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h. */
17976 /* Override any GCC internal prototype to avoid an error.
17977 Use char because int might match the return type of a GCC
17978 builtin and then its argument prototype would still apply. */
17986 return ___chkstk ();
17991 rm -f conftest.$ac_objext conftest$ac_exeext
17992 if { (ac_try="$ac_link"
17993 case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_link") 2>conftest.er1
18000 grep -v '^ *+' conftest.er1 >conftest.err
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18006 { (case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_try") 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest$ac_exeext'
18016 { (case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_try") 2>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; }; then
18025 ac_cv_lib_gcc____chkstk=yes
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18030 ac_cv_lib_gcc____chkstk=no
18033 rm -f core conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18035 LIBS=$ac_check_lib_save_LIBS
18037 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18038 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18039 if test $ac_cv_lib_gcc____chkstk = yes; then
18041 cat >>confdefs.h <<\_ACEOF
18042 #define HAVE____CHKSTK 1
18048 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18049 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18050 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 ac_check_lib_save_LIBS=$LIBS
18055 cat >conftest.$ac_ext <<_ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18062 /* Override any GCC internal prototype to avoid an error.
18063 Use char because int might match the return type of a GCC
18064 builtin and then its argument prototype would still apply. */
18072 return __ashldi3 ();
18077 rm -f conftest.$ac_objext conftest$ac_exeext
18078 if { (ac_try="$ac_link"
18079 case "(($ac_try" in
18080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081 *) ac_try_echo=$ac_try;;
18083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084 (eval "$ac_link") 2>conftest.er1
18086 grep -v '^ *+' conftest.er1 >conftest.err
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18092 { (case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_try") 2>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; } &&
18101 { ac_try='test -s conftest$ac_exeext'
18102 { (case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_try") 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; }; then
18111 ac_cv_lib_gcc___ashldi3=yes
18113 echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18116 ac_cv_lib_gcc___ashldi3=no
18119 rm -f core conftest.err conftest.$ac_objext \
18120 conftest$ac_exeext conftest.$ac_ext
18121 LIBS=$ac_check_lib_save_LIBS
18123 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18124 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18125 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18127 cat >>confdefs.h <<\_ACEOF
18128 #define HAVE___ASHLDI3 1
18133 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18134 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18135 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 ac_check_lib_save_LIBS=$LIBS
18140 cat >conftest.$ac_ext <<_ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18147 /* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18157 return __ashrdi3 ();
18162 rm -f conftest.$ac_objext conftest$ac_exeext
18163 if { (ac_try="$ac_link"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_link") 2>conftest.er1
18171 grep -v '^ *+' conftest.er1 >conftest.err
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
18176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18177 { (case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_try") 2>&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest$ac_exeext'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_cv_lib_gcc___ashrdi3=yes
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 ac_cv_lib_gcc___ashrdi3=no
18204 rm -f core conftest.err conftest.$ac_objext \
18205 conftest$ac_exeext conftest.$ac_ext
18206 LIBS=$ac_check_lib_save_LIBS
18208 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18209 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18210 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18212 cat >>confdefs.h <<\_ACEOF
18213 #define HAVE___ASHRDI3 1
18218 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18219 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18220 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18223 ac_check_lib_save_LIBS=$LIBS
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18242 return __divdi3 ();
18247 rm -f conftest.$ac_objext conftest$ac_exeext
18248 if { (ac_try="$ac_link"
18249 case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_link") 2>conftest.er1
18256 grep -v '^ *+' conftest.er1 >conftest.err
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } &&
18261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18262 { (case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_try") 2>&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; } &&
18271 { ac_try='test -s conftest$ac_exeext'
18272 { (case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_try") 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_lib_gcc___divdi3=yes
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18286 ac_cv_lib_gcc___divdi3=no
18289 rm -f core conftest.err conftest.$ac_objext \
18290 conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18293 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18294 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18295 if test $ac_cv_lib_gcc___divdi3 = yes; then
18297 cat >>confdefs.h <<\_ACEOF
18298 #define HAVE___DIVDI3 1
18303 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18304 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18305 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 ac_check_lib_save_LIBS=$LIBS
18310 cat >conftest.$ac_ext <<_ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18327 return __fixdfdi ();
18332 rm -f conftest.$ac_objext conftest$ac_exeext
18333 if { (ac_try="$ac_link"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_link") 2>conftest.er1
18341 grep -v '^ *+' conftest.er1 >conftest.err
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } &&
18346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18347 { (case "(($ac_try" in
18348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349 *) ac_try_echo=$ac_try;;
18351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352 (eval "$ac_try") 2>&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; } &&
18356 { ac_try='test -s conftest$ac_exeext'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 ac_cv_lib_gcc___fixdfdi=yes
18368 echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18371 ac_cv_lib_gcc___fixdfdi=no
18374 rm -f core conftest.err conftest.$ac_objext \
18375 conftest$ac_exeext conftest.$ac_ext
18376 LIBS=$ac_check_lib_save_LIBS
18378 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18379 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18380 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18382 cat >>confdefs.h <<\_ACEOF
18383 #define HAVE___FIXDFDI 1
18388 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18389 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18390 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 ac_check_lib_save_LIBS=$LIBS
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18402 /* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18412 return __fixsfdi ();
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (ac_try="$ac_link"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_link") 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18432 { (case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_try") 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest$ac_exeext'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_lib_gcc___fixsfdi=yes
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18456 ac_cv_lib_gcc___fixsfdi=no
18459 rm -f core conftest.err conftest.$ac_objext \
18460 conftest$ac_exeext conftest.$ac_ext
18461 LIBS=$ac_check_lib_save_LIBS
18463 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18464 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18465 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18467 cat >>confdefs.h <<\_ACEOF
18468 #define HAVE___FIXSFDI 1
18473 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18474 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18475 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 ac_check_lib_save_LIBS=$LIBS
18480 cat >conftest.$ac_ext <<_ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18487 /* Override any GCC internal prototype to avoid an error.
18488 Use char because int might match the return type of a GCC
18489 builtin and then its argument prototype would still apply. */
18493 char __floatdidf ();
18497 return __floatdidf ();
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (ac_try="$ac_link"
18504 case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_link") 2>conftest.er1
18511 grep -v '^ *+' conftest.er1 >conftest.err
18513 cat conftest.err >&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } &&
18516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18517 { (case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_try") 2>&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try='test -s conftest$ac_exeext'
18527 { (case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_try") 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 ac_cv_lib_gcc___floatdidf=yes
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18541 ac_cv_lib_gcc___floatdidf=no
18544 rm -f core conftest.err conftest.$ac_objext \
18545 conftest$ac_exeext conftest.$ac_ext
18546 LIBS=$ac_check_lib_save_LIBS
18548 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18549 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18550 if test $ac_cv_lib_gcc___floatdidf = yes; then
18552 cat >>confdefs.h <<\_ACEOF
18553 #define HAVE___FLOATDIDF 1
18558 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18559 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18560 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 ac_check_lib_save_LIBS=$LIBS
18565 cat >conftest.$ac_ext <<_ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18572 /* Override any GCC internal prototype to avoid an error.
18573 Use char because int might match the return type of a GCC
18574 builtin and then its argument prototype would still apply. */
18582 return __lshrdi3 ();
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (ac_try="$ac_link"
18589 case "(($ac_try" in
18590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591 *) ac_try_echo=$ac_try;;
18593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18594 (eval "$ac_link") 2>conftest.er1
18596 grep -v '^ *+' conftest.er1 >conftest.err
18598 cat conftest.err >&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } &&
18601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18602 { (case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_try") 2>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; } &&
18611 { ac_try='test -s conftest$ac_exeext'
18612 { (case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_try") 2>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; }; then
18621 ac_cv_lib_gcc___lshrdi3=yes
18623 echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18626 ac_cv_lib_gcc___lshrdi3=no
18629 rm -f core conftest.err conftest.$ac_objext \
18630 conftest$ac_exeext conftest.$ac_ext
18631 LIBS=$ac_check_lib_save_LIBS
18633 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18634 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18635 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18637 cat >>confdefs.h <<\_ACEOF
18638 #define HAVE___LSHRDI3 1
18643 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18644 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18645 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18648 ac_check_lib_save_LIBS=$LIBS
18650 cat >conftest.$ac_ext <<_ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18657 /* Override any GCC internal prototype to avoid an error.
18658 Use char because int might match the return type of a GCC
18659 builtin and then its argument prototype would still apply. */
18667 return __moddi3 ();
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (ac_try="$ac_link"
18674 case "(($ac_try" in
18675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18676 *) ac_try_echo=$ac_try;;
18678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18679 (eval "$ac_link") 2>conftest.er1
18681 grep -v '^ *+' conftest.er1 >conftest.err
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
18686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18687 { (case "(($ac_try" in
18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18692 (eval "$ac_try") 2>&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; } &&
18696 { ac_try='test -s conftest$ac_exeext'
18697 { (case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_try") 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; }; then
18706 ac_cv_lib_gcc___moddi3=yes
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 ac_cv_lib_gcc___moddi3=no
18714 rm -f core conftest.err conftest.$ac_objext \
18715 conftest$ac_exeext conftest.$ac_ext
18716 LIBS=$ac_check_lib_save_LIBS
18718 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18719 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18720 if test $ac_cv_lib_gcc___moddi3 = yes; then
18722 cat >>confdefs.h <<\_ACEOF
18723 #define HAVE___MODDI3 1
18728 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18729 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18730 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 ac_check_lib_save_LIBS=$LIBS
18735 cat >conftest.$ac_ext <<_ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18742 /* Override any GCC internal prototype to avoid an error.
18743 Use char because int might match the return type of a GCC
18744 builtin and then its argument prototype would still apply. */
18752 return __udivdi3 ();
18757 rm -f conftest.$ac_objext conftest$ac_exeext
18758 if { (ac_try="$ac_link"
18759 case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_link") 2>conftest.er1
18766 grep -v '^ *+' conftest.er1 >conftest.err
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } &&
18771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18772 { (case "(($ac_try" in
18773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774 *) ac_try_echo=$ac_try;;
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777 (eval "$ac_try") 2>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; } &&
18781 { ac_try='test -s conftest$ac_exeext'
18782 { (case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_try") 2>&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18791 ac_cv_lib_gcc___udivdi3=yes
18793 echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18796 ac_cv_lib_gcc___udivdi3=no
18799 rm -f core conftest.err conftest.$ac_objext \
18800 conftest$ac_exeext conftest.$ac_ext
18801 LIBS=$ac_check_lib_save_LIBS
18803 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18804 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18805 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18807 cat >>confdefs.h <<\_ACEOF
18808 #define HAVE___UDIVDI3 1
18813 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18814 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18815 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
18818 ac_check_lib_save_LIBS=$LIBS
18820 cat >conftest.$ac_ext <<_ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18827 /* Override any GCC internal prototype to avoid an error.
18828 Use char because int might match the return type of a GCC
18829 builtin and then its argument prototype would still apply. */
18837 return __umoddi3 ();
18842 rm -f conftest.$ac_objext conftest$ac_exeext
18843 if { (ac_try="$ac_link"
18844 case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_link") 2>conftest.er1
18851 grep -v '^ *+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18857 { (case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862 (eval "$ac_try") 2>&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } &&
18866 { ac_try='test -s conftest$ac_exeext'
18867 { (case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_try") 2>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
18876 ac_cv_lib_gcc___umoddi3=yes
18878 echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18881 ac_cv_lib_gcc___umoddi3=no
18884 rm -f core conftest.err conftest.$ac_objext \
18885 conftest$ac_exeext conftest.$ac_ext
18886 LIBS=$ac_check_lib_save_LIBS
18888 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18889 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18890 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18892 cat >>confdefs.h <<\_ACEOF
18893 #define HAVE___UMODDI3 1
18899 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18900 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18901 if test "${ac_cv_lib_gcc___main+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 ac_check_lib_save_LIBS=$LIBS
18906 cat >conftest.$ac_ext <<_ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h. */
18913 /* Override any GCC internal prototype to avoid an error.
18914 Use char because int might match the return type of a GCC
18915 builtin and then its argument prototype would still apply. */
18928 rm -f conftest.$ac_objext conftest$ac_exeext
18929 if { (ac_try="$ac_link"
18930 case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_link") 2>conftest.er1
18937 grep -v '^ *+' conftest.er1 >conftest.err
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18943 { (case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_try") 2>&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; } &&
18952 { ac_try='test -s conftest$ac_exeext'
18953 { (case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_try") 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_cv_lib_gcc___main=yes
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 ac_cv_lib_gcc___main=no
18970 rm -f core conftest.err conftest.$ac_objext \
18971 conftest$ac_exeext conftest.$ac_ext
18972 LIBS=$ac_check_lib_save_LIBS
18974 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18975 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18976 if test $ac_cv_lib_gcc___main = yes; then
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE___MAIN 1
18984 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18985 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18986 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 ac_check_lib_save_LIBS=$LIBS
18991 cat >conftest.$ac_ext <<_ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18998 /* Override any GCC internal prototype to avoid an error.
18999 Use char because int might match the return type of a GCC
19000 builtin and then its argument prototype would still apply. */
19008 return __cmpdi2 ();
19013 rm -f conftest.$ac_objext conftest$ac_exeext
19014 if { (ac_try="$ac_link"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_link") 2>conftest.er1
19022 grep -v '^ *+' conftest.er1 >conftest.err
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest$ac_exeext'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; }; then
19047 ac_cv_lib_gcc___cmpdi2=yes
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 ac_cv_lib_gcc___cmpdi2=no
19055 rm -f core conftest.err conftest.$ac_objext \
19056 conftest$ac_exeext conftest.$ac_ext
19057 LIBS=$ac_check_lib_save_LIBS
19059 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19060 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19061 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19063 cat >>confdefs.h <<\_ACEOF
19064 #define HAVE___CMPDI2 1
19071 if test "$llvm_cv_os_type" = "MingW" ; then
19072 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19073 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19074 cat >conftest.$ac_ext <<_ACEOF
19075 #include <windows.h>
19076 #include <imagehlp.h>
19077 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19078 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19080 rm -f conftest.$ac_objext
19081 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19089 grep -v '^ *+' conftest.er1 >conftest.err
19091 cat conftest.err >&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } &&
19094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19095 { (case "(($ac_try" in
19096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097 *) ac_try_echo=$ac_try;;
19099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19100 (eval "$ac_try") 2>&5
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); }; } &&
19104 { ac_try='test -s conftest.$ac_objext'
19105 { (case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_try") 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19115 { echo "$as_me:$LINENO: result: yes" >&5
19116 echo "${ECHO_T}yes" >&6; }
19117 llvm_cv_win32_elmcb_pcstr="PCSTR"
19120 echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19124 { echo "$as_me:$LINENO: result: no" >&5
19125 echo "${ECHO_T}no" >&6; }
19126 llvm_cv_win32_elmcb_pcstr="PSTR"
19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19132 cat >>confdefs.h <<_ACEOF
19133 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19139 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19140 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19141 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19145 ac_cpp='$CXXCPP $CPPFLAGS'
19146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19150 cat >conftest.$ac_ext <<_ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19165 rm -f conftest.$ac_objext
19166 if { (ac_try="$ac_compile"
19167 case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_compile") 2>conftest.er1
19174 grep -v '^ *+' conftest.er1 >conftest.err
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19180 { (case "(($ac_try" in
19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182 *) ac_try_echo=$ac_try;;
19184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185 (eval "$ac_try") 2>&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try='test -s conftest.$ac_objext'
19190 { (case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_try") 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_cv_func_isnan_in_math_h=yes
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 ac_cv_func_isnan_in_math_h=no
19207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19209 ac_cpp='$CPP $CPPFLAGS'
19210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19215 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19216 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19219 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19221 cat >>confdefs.h <<\_ACEOF
19222 #define HAVE_ISNAN_IN_MATH_H 1
19227 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19228 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19229 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19233 ac_cpp='$CXXCPP $CPPFLAGS'
19234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_compile") 2>conftest.er1
19262 grep -v '^ *+' conftest.er1 >conftest.err
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19268 { (case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_try") 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; } &&
19277 { ac_try='test -s conftest.$ac_objext'
19278 { (case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_try") 2>&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
19287 ac_cv_func_isnan_in_cmath=yes
19289 echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19292 ac_cv_func_isnan_in_cmath=no
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19297 ac_cpp='$CPP $CPPFLAGS'
19298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19303 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19304 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19306 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19308 cat >>confdefs.h <<\_ACEOF
19309 #define HAVE_ISNAN_IN_CMATH 1
19314 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19315 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19316 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19320 ac_cpp='$CXXCPP $CPPFLAGS'
19321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19325 cat >conftest.$ac_ext <<_ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19335 float f; std::isnan(f);
19340 rm -f conftest.$ac_objext
19341 if { (ac_try="$ac_compile"
19342 case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_compile") 2>conftest.er1
19349 grep -v '^ *+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
19354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19355 { (case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_try") 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_try") 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_func_std_isnan_in_cmath=yes
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_func_std_isnan_in_cmath=no
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19384 ac_cpp='$CPP $CPPFLAGS'
19385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19391 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19393 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19395 cat >>confdefs.h <<\_ACEOF
19396 #define HAVE_STD_ISNAN_IN_CMATH 1
19402 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19403 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19404 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 ac_cpp='$CXXCPP $CPPFLAGS'
19409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19413 cat >conftest.$ac_ext <<_ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19428 rm -f conftest.$ac_objext
19429 if { (ac_try="$ac_compile"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_compile") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19443 { (case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_try") 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest.$ac_objext'
19453 { (case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_try") 2>&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19462 ac_cv_func_isinf_in_math_h=yes
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19467 ac_cv_func_isinf_in_math_h=no
19470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472 ac_cpp='$CPP $CPPFLAGS'
19473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19478 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19479 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19481 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19483 cat >>confdefs.h <<\_ACEOF
19484 #define HAVE_ISINF_IN_MATH_H 1
19489 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19490 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19491 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19492 echo $ECHO_N "(cached) $ECHO_C" >&6
19495 ac_cpp='$CXXCPP $CPPFLAGS'
19496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19515 rm -f conftest.$ac_objext
19516 if { (ac_try="$ac_compile"
19517 case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_compile") 2>conftest.er1
19524 grep -v '^ *+' conftest.er1 >conftest.err
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19530 { (case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_try") 2>&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest.$ac_objext'
19540 { (case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_try") 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_func_isinf_in_cmath=yes
19551 echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19554 ac_cv_func_isinf_in_cmath=no
19557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19559 ac_cpp='$CPP $CPPFLAGS'
19560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19565 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19566 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19568 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19570 cat >>confdefs.h <<\_ACEOF
19571 #define HAVE_ISINF_IN_CMATH 1
19576 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19577 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19578 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 ac_cpp='$CXXCPP $CPPFLAGS'
19583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19587 cat >conftest.$ac_ext <<_ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19597 float f; std::isinf(f);
19602 rm -f conftest.$ac_objext
19603 if { (ac_try="$ac_compile"
19604 case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_compile") 2>conftest.er1
19611 grep -v '^ *+' conftest.er1 >conftest.err
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } &&
19616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19617 { (case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_try") 2>&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; } &&
19626 { ac_try='test -s conftest.$ac_objext'
19627 { (case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_try") 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 ac_cv_func_std_isinf_in_cmath=yes
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19641 ac_cv_func_std_isinf_in_cmath=no
19644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19646 ac_cpp='$CPP $CPPFLAGS'
19647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19652 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19653 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19655 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19657 cat >>confdefs.h <<\_ACEOF
19658 #define HAVE_STD_ISINF_IN_CMATH 1
19663 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19664 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19665 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 ac_cpp='$CXXCPP $CPPFLAGS'
19670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19674 cat >conftest.$ac_ext <<_ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19680 #include <ieeefp.h>
19684 float f; finite(f);
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_compile") 2>conftest.er1
19698 grep -v '^ *+' conftest.er1 >conftest.err
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19704 { (case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_try") 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try='test -s conftest.$ac_objext'
19714 { (case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_try") 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 ac_cv_func_finite_in_ieeefp_h=yes
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_cv_func_finite_in_ieeefp_h=no
19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19733 ac_cpp='$CPP $CPPFLAGS'
19734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19740 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19742 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19744 cat >>confdefs.h <<\_ACEOF
19745 #define HAVE_FINITE_IN_IEEEFP_H 1
19752 if test "$llvm_cv_platform_type" = "Unix" ; then
19755 for ac_header in stdlib.h unistd.h
19757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 ac_res=`eval echo '${'$as_ac_Header'}'`
19765 { echo "$as_me:$LINENO: result: $ac_res" >&5
19766 echo "${ECHO_T}$ac_res" >&6; }
19768 # Is the header compilable?
19769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19771 cat >conftest.$ac_ext <<_ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 $ac_includes_default
19778 #include <$ac_header>
19780 rm -f conftest.$ac_objext
19781 if { (ac_try="$ac_compile"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_compile") 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19795 { (case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_try") 2>&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest.$ac_objext'
19805 { (case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810 (eval "$ac_try") 2>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
19814 ac_header_compiler=yes
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19819 ac_header_compiler=no
19822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19824 echo "${ECHO_T}$ac_header_compiler" >&6; }
19826 # Is the header present?
19827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19829 cat >conftest.$ac_ext <<_ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 #include <$ac_header>
19837 if { (ac_try="$ac_cpp conftest.$ac_ext"
19838 case "(($ac_try" in
19839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19840 *) ac_try_echo=$ac_try;;
19842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19845 grep -v '^ *+' conftest.er1 >conftest.err
19847 cat conftest.err >&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } >/dev/null; then
19850 if test -s conftest.err; then
19851 ac_cpp_err=$ac_c_preproc_warn_flag
19852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19859 if test -z "$ac_cpp_err"; then
19860 ac_header_preproc=yes
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 ac_header_preproc=no
19868 rm -f conftest.err conftest.$ac_ext
19869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19870 echo "${ECHO_T}$ac_header_preproc" >&6; }
19872 # So? What about this header?
19873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19879 ac_header_preproc=yes
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19895 ## ------------------------------ ##
19896 ## Report this to bugs@yourdomain ##
19897 ## ------------------------------ ##
19899 ) | sed "s/^/$as_me: WARNING: /" >&2
19902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 eval "$as_ac_Header=\$ac_header_preproc"
19909 ac_res=`eval echo '${'$as_ac_Header'}'`
19910 { echo "$as_me:$LINENO: result: $ac_res" >&5
19911 echo "${ECHO_T}$ac_res" >&6; }
19914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19915 cat >>confdefs.h <<_ACEOF
19916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19924 for ac_func in getpagesize
19926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 cat >conftest.$ac_ext <<_ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19940 #define $ac_func innocuous_$ac_func
19942 /* System header to define __stub macros and hopefully few prototypes,
19943 which can conflict with char $ac_func (); below.
19944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19945 <limits.h> exists even on freestanding compilers. */
19948 # include <limits.h>
19950 # include <assert.h>
19955 /* Override any GCC internal prototype to avoid an error.
19956 Use char because int might match the return type of a GCC
19957 builtin and then its argument prototype would still apply. */
19962 /* The GNU C library defines this for functions which it implements
19963 to always fail with ENOSYS. Some functions are actually named
19964 something starting with __ and the normal name is an alias. */
19965 #if defined __stub_$ac_func || defined __stub___$ac_func
19972 return $ac_func ();
19977 rm -f conftest.$ac_objext conftest$ac_exeext
19978 if { (ac_try="$ac_link"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_link") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19992 { (case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_try") 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest$ac_exeext'
20002 { (case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_try") 2>&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; }; then
20011 eval "$as_ac_var=yes"
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 eval "$as_ac_var=no"
20019 rm -f core conftest.err conftest.$ac_objext \
20020 conftest$ac_exeext conftest.$ac_ext
20022 ac_res=`eval echo '${'$as_ac_var'}'`
20023 { echo "$as_me:$LINENO: result: $ac_res" >&5
20024 echo "${ECHO_T}$ac_res" >&6; }
20025 if test `eval echo '${'$as_ac_var'}'` = yes; then
20026 cat >>confdefs.h <<_ACEOF
20027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20033 { echo "$as_me:$LINENO: checking for working mmap" >&5
20034 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20035 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20036 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 if test "$cross_compiling" = yes; then
20039 ac_cv_func_mmap_fixed_mapped=no
20041 cat >conftest.$ac_ext <<_ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h. */
20047 $ac_includes_default
20048 /* malloc might have been renamed as rpl_malloc. */
20051 /* Thanks to Mike Haertel and Jim Avera for this test.
20052 Here is a matrix of mmap possibilities:
20053 mmap private not fixed
20054 mmap private fixed at somewhere currently unmapped
20055 mmap private fixed at somewhere already mapped
20056 mmap shared not fixed
20057 mmap shared fixed at somewhere currently unmapped
20058 mmap shared fixed at somewhere already mapped
20059 For private mappings, we should verify that changes cannot be read()
20060 back from the file, nor mmap's back from the file at a different
20061 address. (There have been systems where private was not correctly
20062 implemented like the infamous i386 svr4.0, and systems where the
20063 VM page cache was not coherent with the file system buffer cache
20064 like early versions of FreeBSD and possibly contemporary NetBSD.)
20065 For shared mappings, we should conversely verify that changes get
20066 propagated back to all the places they're supposed to be.
20068 Grep wants private fixed already mapped.
20069 The main things grep needs to know about mmap are:
20070 * does it exist and is it safe to write into the mmap'd area
20071 * how to use it (BSD variants) */
20074 #include <sys/mman.h>
20076 #if !STDC_HEADERS && !HAVE_STDLIB_H
20080 /* This mess was copied from the GNU getpagesize.h. */
20081 #if !HAVE_GETPAGESIZE
20082 /* Assume that all systems that can run configure have sys/param.h. */
20083 # if !HAVE_SYS_PARAM_H
20084 # define HAVE_SYS_PARAM_H 1
20087 # ifdef _SC_PAGESIZE
20088 # define getpagesize() sysconf(_SC_PAGESIZE)
20089 # else /* no _SC_PAGESIZE */
20090 # if HAVE_SYS_PARAM_H
20091 # include <sys/param.h>
20092 # ifdef EXEC_PAGESIZE
20093 # define getpagesize() EXEC_PAGESIZE
20094 # else /* no EXEC_PAGESIZE */
20096 # define getpagesize() NBPG * CLSIZE
20099 # endif /* no CLSIZE */
20100 # else /* no NBPG */
20102 # define getpagesize() NBPC
20103 # else /* no NBPC */
20105 # define getpagesize() PAGESIZE
20106 # endif /* PAGESIZE */
20107 # endif /* no NBPC */
20108 # endif /* no NBPG */
20109 # endif /* no EXEC_PAGESIZE */
20110 # else /* no HAVE_SYS_PARAM_H */
20111 # define getpagesize() 8192 /* punt totally */
20112 # endif /* no HAVE_SYS_PARAM_H */
20113 # endif /* no _SC_PAGESIZE */
20115 #endif /* no HAVE_GETPAGESIZE */
20120 char *data, *data2, *data3;
20124 pagesize = getpagesize ();
20126 /* First, make a file with some known garbage in it. */
20127 data = (char *) malloc (pagesize);
20130 for (i = 0; i < pagesize; ++i)
20131 *(data + i) = rand ();
20133 fd = creat ("conftest.mmap", 0600);
20136 if (write (fd, data, pagesize) != pagesize)
20140 /* Next, try to mmap the file at a fixed address which already has
20141 something else allocated at it. If we can, also make sure that
20142 we see the same garbage. */
20143 fd = open ("conftest.mmap", O_RDWR);
20146 data2 = (char *) malloc (2 * pagesize);
20149 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20150 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20151 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20153 for (i = 0; i < pagesize; ++i)
20154 if (*(data + i) != *(data2 + i))
20157 /* Finally, make sure that changes to the mapped area do not
20158 percolate back to the file as seen by read(). (This is a bug on
20159 some variants of i386 svr4.0.) */
20160 for (i = 0; i < pagesize; ++i)
20161 *(data2 + i) = *(data2 + i) + 1;
20162 data3 = (char *) malloc (pagesize);
20165 if (read (fd, data3, pagesize) != pagesize)
20167 for (i = 0; i < pagesize; ++i)
20168 if (*(data + i) != *(data3 + i))
20174 rm -f conftest$ac_exeext
20175 if { (ac_try="$ac_link"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_link") 2>&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20185 { (case "(($ac_try" in
20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187 *) ac_try_echo=$ac_try;;
20189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190 (eval "$ac_try") 2>&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 ac_cv_func_mmap_fixed_mapped=yes
20196 echo "$as_me: program exited with status $ac_status" >&5
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ( exit $ac_status )
20201 ac_cv_func_mmap_fixed_mapped=no
20203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20208 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20209 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20210 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_MMAP 1
20217 rm -f conftest.mmap
20219 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20220 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20221 if test "${ac_cv_func_mmap_file+set}" = set; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
20225 ac_cpp='$CPP $CPPFLAGS'
20226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20230 if test "$cross_compiling" = yes; then
20231 ac_cv_func_mmap_file=no
20233 cat >conftest.$ac_ext <<_ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20241 #include <sys/types.h>
20242 #include <sys/mman.h>
20250 fd = creat ("foo",0777);
20251 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20253 return (fd != (int) MAP_FAILED);
20258 rm -f conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_link") 2>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20269 { (case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_try") 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; }; then
20278 ac_cv_func_mmap_file=yes
20280 echo "$as_me: program exited with status $ac_status" >&5
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 ( exit $ac_status )
20285 ac_cv_func_mmap_file=no
20287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20292 ac_cpp='$CPP $CPPFLAGS'
20293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20299 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20300 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20301 if test "$ac_cv_func_mmap_file" = yes; then
20303 cat >>confdefs.h <<\_ACEOF
20304 #define HAVE_MMAP_FILE
20311 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20312 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20313 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 if test "$llvm_cv_os_type" = "Interix" ; then
20317 ac_cv_need_dev_zero_for_mmap=yes
20319 ac_cv_need_dev_zero_for_mmap=no
20323 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20324 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20325 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20327 cat >>confdefs.h <<\_ACEOF
20328 #define NEED_DEV_ZERO_FOR_MMAP 1
20333 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20335 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20336 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20338 if test "$ac_cv_func_mmap_file" = "no"
20340 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20341 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20345 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20346 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20348 ac_cpp='$CXXCPP $CPPFLAGS'
20349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20353 cat >conftest.$ac_ext <<_ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h. */
20360 volatile unsigned long val = 1;
20361 __sync_synchronize();
20362 __sync_val_compare_and_swap(&val, 1, 0);
20363 __sync_add_and_fetch(&val, 1);
20364 __sync_sub_and_fetch(&val, 1);
20369 rm -f conftest.$ac_objext conftest$ac_exeext
20370 if { (ac_try="$ac_link"
20371 case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_link") 2>conftest.er1
20378 grep -v '^ *+' conftest.er1 >conftest.err
20380 cat conftest.err >&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } &&
20383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20384 { (case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_try") 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; } &&
20393 { ac_try='test -s conftest$ac_exeext'
20394 { (case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_try") 2>&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; }; then
20404 ac_cpp='$CPP $CPPFLAGS'
20405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20409 { echo "$as_me:$LINENO: result: yes" >&5
20410 echo "${ECHO_T}yes" >&6; }
20412 cat >>confdefs.h <<\_ACEOF
20413 #define LLVM_HAS_ATOMICS 1
20417 echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 { echo "$as_me:$LINENO: result: no" >&5
20421 echo "${ECHO_T}no" >&6; }
20423 cat >>confdefs.h <<\_ACEOF
20424 #define LLVM_HAS_ATOMICS 0
20427 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20428 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20431 rm -f core conftest.err conftest.$ac_objext \
20432 conftest$ac_exeext conftest.$ac_ext
20435 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20436 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20437 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20438 if test "${llvm_cv_linux_mixed+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 ac_cpp='$CPP $CPPFLAGS'
20443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20447 cat >conftest.$ac_ext <<_ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20454 error: Not x86-64 even if uname says so!
20465 rm -f conftest.$ac_objext
20466 if { (ac_try="$ac_compile"
20467 case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472 (eval "$ac_compile") 2>conftest.er1
20474 grep -v '^ *+' conftest.er1 >conftest.err
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20480 { (case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_try") 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try='test -s conftest.$ac_objext'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20499 llvm_cv_linux_mixed=no
20501 echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20504 llvm_cv_linux_mixed=yes
20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20509 ac_cpp='$CPP $CPPFLAGS'
20510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20516 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20517 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20519 if test "$llvm_cv_linux_mixed" = "yes"; then
20520 llvm_cv_target_arch="x86"
20526 for ac_func in __dso_handle
20528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20532 echo $ECHO_N "(cached) $ECHO_C" >&6
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20542 #define $ac_func innocuous_$ac_func
20544 /* System header to define __stub macros and hopefully few prototypes,
20545 which can conflict with char $ac_func (); below.
20546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20547 <limits.h> exists even on freestanding compilers. */
20550 # include <limits.h>
20552 # include <assert.h>
20557 /* Override any GCC internal prototype to avoid an error.
20558 Use char because int might match the return type of a GCC
20559 builtin and then its argument prototype would still apply. */
20564 /* The GNU C library defines this for functions which it implements
20565 to always fail with ENOSYS. Some functions are actually named
20566 something starting with __ and the normal name is an alias. */
20567 #if defined __stub_$ac_func || defined __stub___$ac_func
20574 return $ac_func ();
20579 rm -f conftest.$ac_objext conftest$ac_exeext
20580 if { (ac_try="$ac_link"
20581 case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_link") 2>conftest.er1
20588 grep -v '^ *+' conftest.er1 >conftest.err
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } &&
20593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20594 { (case "(($ac_try" in
20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599 (eval "$ac_try") 2>&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; } &&
20603 { ac_try='test -s conftest$ac_exeext'
20604 { (case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_try") 2>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; }; then
20613 eval "$as_ac_var=yes"
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 eval "$as_ac_var=no"
20621 rm -f core conftest.err conftest.$ac_objext \
20622 conftest$ac_exeext conftest.$ac_ext
20624 ac_res=`eval echo '${'$as_ac_var'}'`
20625 { echo "$as_me:$LINENO: result: $ac_res" >&5
20626 echo "${ECHO_T}$ac_res" >&6; }
20627 if test `eval echo '${'$as_ac_var'}'` = yes; then
20628 cat >>confdefs.h <<_ACEOF
20629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20636 SHLIBEXT=$libltdl_cv_shlibext
20639 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20642 # Translate the various configuration directories and other basic
20643 # information into substitutions that will end up in Makefile.config.in
20644 # that these configured values can be used by the makefiles
20645 if test "${prefix}" = "NONE" ; then
20646 prefix="/usr/local"
20648 eval LLVM_PREFIX="${prefix}";
20649 eval LLVM_BINDIR="${prefix}/bin";
20650 eval LLVM_LIBDIR="${prefix}/lib";
20651 eval LLVM_DATADIR="${prefix}/share/llvm";
20652 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20653 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20654 eval LLVM_INCLUDEDIR="${prefix}/include";
20655 eval LLVM_INFODIR="${prefix}/info";
20656 eval LLVM_MANDIR="${prefix}/man";
20657 LLVM_CONFIGTIME=`date`
20669 # Place the various directores into the config.h file as #defines so that we
20670 # can know about the installation paths within LLVM.
20672 cat >>confdefs.h <<_ACEOF
20673 #define LLVM_PREFIX "$LLVM_PREFIX"
20677 cat >>confdefs.h <<_ACEOF
20678 #define LLVM_BINDIR "$LLVM_BINDIR"
20682 cat >>confdefs.h <<_ACEOF
20683 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20687 cat >>confdefs.h <<_ACEOF
20688 #define LLVM_DATADIR "$LLVM_DATADIR"
20692 cat >>confdefs.h <<_ACEOF
20693 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20697 cat >>confdefs.h <<_ACEOF
20698 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20702 cat >>confdefs.h <<_ACEOF
20703 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20707 cat >>confdefs.h <<_ACEOF
20708 #define LLVM_INFODIR "$LLVM_INFODIR"
20712 cat >>confdefs.h <<_ACEOF
20713 #define LLVM_MANDIR "$LLVM_MANDIR"
20717 cat >>confdefs.h <<_ACEOF
20718 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20722 cat >>confdefs.h <<_ACEOF
20723 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20727 # Determine which bindings to build.
20728 if test "$BINDINGS_TO_BUILD" = auto ; then
20729 BINDINGS_TO_BUILD=""
20730 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20731 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20734 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20737 # This isn't really configurey, but it avoids having to repeat the list in
20742 # Do any work necessary to ensure that bindings have what they need.
20743 binding_prereqs_failed=0
20744 for a_binding in $BINDINGS_TO_BUILD ; do
20745 case "$a_binding" in
20747 if test "x$OCAMLC" = x ; then
20748 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20749 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20750 binding_prereqs_failed=1
20752 if test "x$OCAMLDEP" = x ; then
20753 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20754 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20755 binding_prereqs_failed=1
20757 if test "x$OCAMLOPT" = x ; then
20758 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20759 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20761 if test "x$with_ocaml_libdir" != xauto ; then
20762 OCAML_LIBDIR=$with_ocaml_libdir
20765 ocaml_stdlib="`"$OCAMLC" -where`"
20766 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20768 # ocaml stdlib is beneath our prefix; use stdlib
20769 OCAML_LIBDIR=$ocaml_stdlib
20772 # ocaml stdlib is outside our prefix; use libdir/ocaml
20773 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20780 if test "$binding_prereqs_failed" = 1 ; then
20781 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20782 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20783 { (exit 1); exit 1; }; }
20786 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20787 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20788 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20792 ac_cpp='$CXXCPP $CPPFLAGS'
20793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20797 oldcxxflags="$CXXFLAGS"
20798 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20799 cat >conftest.$ac_ext <<_ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h. */
20805 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20814 rm -f conftest.$ac_objext
20815 if { (ac_try="$ac_compile"
20816 case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_compile") 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20829 { (case "(($ac_try" in
20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_try") 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; } &&
20838 { ac_try='test -s conftest.$ac_objext'
20839 { (case "(($ac_try" in
20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841 *) ac_try_echo=$ac_try;;
20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844 (eval "$ac_try") 2>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; }; then
20848 llvm_cv_cxx_visibility_inlines_hidden=yes
20850 echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20853 llvm_cv_cxx_visibility_inlines_hidden=no
20856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20857 CXXFLAGS="$oldcxxflags"
20859 ac_cpp='$CPP $CPPFLAGS'
20860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20866 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20867 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20868 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20869 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20872 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20877 if test "$llvm_cv_link_use_r" = "yes" ; then
20884 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20885 RDYNAMIC="-Wl,-export-dynamic"
20893 ac_config_files="$ac_config_files Makefile.common"
20895 ac_config_files="$ac_config_files Makefile.llvm.config"
20898 ac_config_commands="$ac_config_commands Makefile"
20901 ac_config_commands="$ac_config_commands lib/Makefile"
20904 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20907 ac_config_commands="$ac_config_commands tools/Makefile"
20910 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20914 cat >confcache <<\_ACEOF
20915 # This file is a shell script that caches the results of configure
20916 # tests run on this system so they can be shared between configure
20917 # scripts and configure runs, see configure's option --config-cache.
20918 # It is not useful on other systems. If it contains results you don't
20919 # want to keep, you may remove or edit it.
20921 # config.status only pays attention to the cache file if you give it
20922 # the --recheck option to rerun configure.
20924 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20925 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20926 # following values.
20930 # The following way of writing the cache mishandles newlines in values,
20931 # but we know of no workaround that is simple, portable, and efficient.
20932 # So, we kill variables containing newlines.
20933 # Ultrix sh set writes to stderr and can't be redirected directly,
20934 # and sets the high bit in the cache file unless we assign to the vars.
20936 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20937 eval ac_val=\$$ac_var
20941 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20942 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20945 _ | IFS | as_nl) ;; #(
20946 *) $as_unset $ac_var ;;
20952 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20953 *${as_nl}ac_space=\ *)
20954 # `set' does not quote correctly, so add quotes (double-quote
20955 # substitution turns \\\\ into \\, and sed turns \\ into \).
20958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20961 # `set' quotes correctly as required by POSIX, so do not add quotes.
20962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20973 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20975 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20976 if test -w "$cache_file"; then
20977 test "x$cache_file" != "x/dev/null" &&
20978 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20979 echo "$as_me: updating cache $cache_file" >&6;}
20980 cat confcache >$cache_file
20982 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20983 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20989 # Let make expand exec_prefix.
20990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20992 # Transform confdefs.h into DEFS.
20993 # Protect against shell expansion while executing Makefile rules.
20994 # Protect against Makefile macro expansion.
20996 # If the first sed substitution is executed (which looks for macros that
20997 # take arguments), then branch to the quote section. Otherwise,
20998 # look for a macro that doesn't take arguments.
21002 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21004 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21008 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21021 DEFS=`sed -n "$ac_script" confdefs.h`
21026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21027 # 1. Remove the extension, and $U if already installed.
21028 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21029 ac_i=`echo "$ac_i" | sed "$ac_script"`
21030 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21031 # will be set to the directory where LIBOBJS objects are built.
21032 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21033 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21035 LIBOBJS=$ac_libobjs
21037 LTLIBOBJS=$ac_ltlibobjs
21040 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21041 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21042 Usually this means the macro was only invoked conditionally." >&5
21043 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21044 Usually this means the macro was only invoked conditionally." >&2;}
21045 { (exit 1); exit 1; }; }
21047 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21048 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21049 Usually this means the macro was only invoked conditionally." >&5
21050 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21051 Usually this means the macro was only invoked conditionally." >&2;}
21052 { (exit 1); exit 1; }; }
21055 : ${CONFIG_STATUS=./config.status}
21056 ac_clean_files_save=$ac_clean_files
21057 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21058 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21059 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21060 cat >$CONFIG_STATUS <<_ACEOF
21062 # Generated by $as_me.
21063 # Run this file to recreate the current configuration.
21064 # Compiler output produced by configure, useful for debugging
21065 # configure, is in config.log if it exists.
21068 ac_cs_recheck=false
21070 SHELL=\${CONFIG_SHELL-$SHELL}
21073 cat >>$CONFIG_STATUS <<\_ACEOF
21074 ## --------------------- ##
21075 ## M4sh Initialization. ##
21076 ## --------------------- ##
21078 # Be Bourne compatible
21079 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21082 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21083 # is contrary to our usage. Disable this feature.
21084 alias -g '${1+"$@"}'='"$@"'
21085 setopt NO_GLOB_SUBST
21087 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21089 BIN_SH=xpg4; export BIN_SH # for Tru64
21090 DUALCASE=1; export DUALCASE # for MKS sh
21094 # Avoid depending upon Character Ranges.
21095 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21096 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21097 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21098 as_cr_digits='0123456789'
21099 as_cr_alnum=$as_cr_Letters$as_cr_digits
21101 # The user is always right.
21102 if test "${PATH_SEPARATOR+set}" != set; then
21103 echo "#! /bin/sh" >conf$$.sh
21104 echo "exit 0" >>conf$$.sh
21106 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21114 # Support unset when possible.
21115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21123 # We need space, tab and new line, in precisely that order. Quoting is
21124 # there to prevent editors from complaining about space-tab.
21125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21126 # splitting by setting IFS to empty value.)
21131 # Find who we are. Look in the path if we contain no directory separator.
21133 *[\\/]* ) as_myself=$0 ;;
21134 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21135 for as_dir in $PATH
21138 test -z "$as_dir" && as_dir=.
21139 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21145 # We did not find ourselves, most probably we were run as `sh COMMAND'
21146 # in which case we are not to be found in the path.
21147 if test "x$as_myself" = x; then
21150 if test ! -f "$as_myself"; then
21151 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21152 { (exit 1); exit 1; }
21155 # Work around bugs in pre-3.0 UWIN ksh.
21156 for as_var in ENV MAIL MAILPATH
21157 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21165 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21166 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21167 LC_TELEPHONE LC_TIME
21169 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21170 eval $as_var=C; export $as_var
21172 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21176 # Required to use basename.
21177 if expr a : '\(a\)' >/dev/null 2>&1 &&
21178 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21184 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21185 as_basename=basename
21191 # Name of the executable.
21192 as_me=`$as_basename -- "$0" ||
21193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21194 X"$0" : 'X\(//\)$' \| \
21195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21197 sed '/^.*\/\([^/][^/]*\)\/*$/{
21216 as_lineno_1=$LINENO
21217 as_lineno_2=$LINENO
21218 test "x$as_lineno_1" != "x$as_lineno_2" &&
21219 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21221 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21222 # uniformly replaced by the line number. The first 'sed' inserts a
21223 # line-number line after each line using $LINENO; the second 'sed'
21224 # does the real work. The second script uses 'N' to pair each
21225 # line-number line with the line containing $LINENO, and appends
21226 # trailing '-' during substitution so that $LINENO is not a special
21227 # case at line end.
21228 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21229 # scripts with optimization help from Paolo Bonzini. Blame Lee
21230 # E. McMahon (1931-1989) for sed's syntax. :-)
21242 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21245 ' >$as_me.lineno &&
21246 chmod +x "$as_me.lineno" ||
21247 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21248 { (exit 1); exit 1; }; }
21250 # Don't try to exec as it changes $[0], causing all sort of problems
21251 # (the dirname of $[0] is not the place where we might find the
21252 # original and so on. Autoconf is especially sensitive to this).
21253 . "./$as_me.lineno"
21254 # Exit status is that of the last command.
21259 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21265 ECHO_C= ECHO_N= ECHO_T=
21266 case `echo -n x` in
21268 case `echo 'x\c'` in
21269 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21276 if expr a : '\(a\)' >/dev/null 2>&1 &&
21277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21283 rm -f conf$$ conf$$.exe conf$$.file
21284 if test -d conf$$.dir; then
21285 rm -f conf$$.dir/conf$$.file
21291 if ln -s conf$$.file conf$$ 2>/dev/null; then
21293 # ... but there are two gotchas:
21294 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21295 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21296 # In both cases, we have to default to `cp -p'.
21297 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21299 elif ln conf$$.file conf$$ 2>/dev/null; then
21304 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21305 rmdir conf$$.dir 2>/dev/null
21307 if mkdir -p . 2>/dev/null; then
21310 test -d ./-p && rmdir ./-p
21314 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21315 # systems may use methods other than mode bits to determine executability.
21316 cat >conf$$.file <<_ASEOF
21320 chmod +x conf$$.file
21321 if test -x conf$$.file >/dev/null 2>&1; then
21322 as_executable_p="test -x"
21328 # Sed expression to map a string onto a valid CPP name.
21329 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21331 # Sed expression to map a string onto a valid variable name.
21332 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21337 # Save the log message, to keep $[0] and so on meaningful, and to
21338 # report actual input values of CONFIG_FILES etc. instead of their
21339 # values after options handling.
21341 This file was extended by [SAMPLE] $as_me [x.xx], which was
21342 generated by GNU Autoconf 2.60. Invocation command line was
21344 CONFIG_FILES = $CONFIG_FILES
21345 CONFIG_HEADERS = $CONFIG_HEADERS
21346 CONFIG_LINKS = $CONFIG_LINKS
21347 CONFIG_COMMANDS = $CONFIG_COMMANDS
21350 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21355 cat >>$CONFIG_STATUS <<_ACEOF
21356 # Files that config.status was made for.
21357 config_files="$ac_config_files"
21358 config_commands="$ac_config_commands"
21362 cat >>$CONFIG_STATUS <<\_ACEOF
21364 \`$as_me' instantiates files from templates according to the
21365 current configuration.
21367 Usage: $0 [OPTIONS] [FILE]...
21369 -h, --help print this help, then exit
21370 -V, --version print version number, then exit
21371 -q, --quiet do not print progress messages
21372 -d, --debug don't remove temporary files
21373 --recheck update $as_me by reconfiguring in the same conditions
21374 --file=FILE[:TEMPLATE]
21375 instantiate the configuration file FILE
21377 Configuration files:
21380 Configuration commands:
21383 Report bugs to <bug-autoconf@gnu.org>."
21386 cat >>$CONFIG_STATUS <<_ACEOF
21388 [SAMPLE] config.status [x.xx]
21389 configured by $0, generated by GNU Autoconf 2.60,
21390 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21392 Copyright (C) 2006 Free Software Foundation, Inc.
21393 This config.status script is free software; the Free Software Foundation
21394 gives unlimited permission to copy, distribute and modify it."
21401 cat >>$CONFIG_STATUS <<\_ACEOF
21402 # If no file are specified by the user, then we need to provide default
21403 # value. By we need to know if files were specified by the user.
21409 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21410 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21421 # Handling of the options.
21422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21424 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21425 echo "$ac_cs_version"; exit ;;
21426 --debug | --debu | --deb | --de | --d | -d )
21428 --file | --fil | --fi | --f )
21430 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21431 ac_need_defaults=false;;
21432 --he | --h | --help | --hel | -h )
21433 echo "$ac_cs_usage"; exit ;;
21434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21438 # This is an error.
21439 -*) { echo "$as_me: error: unrecognized option: $1
21440 Try \`$0 --help' for more information." >&2
21441 { (exit 1); exit 1; }; } ;;
21443 *) ac_config_targets="$ac_config_targets $1"
21444 ac_need_defaults=false ;;
21450 ac_configure_extra_args=
21452 if $ac_cs_silent; then
21454 ac_configure_extra_args="$ac_configure_extra_args --silent"
21458 cat >>$CONFIG_STATUS <<_ACEOF
21459 if \$ac_cs_recheck; then
21460 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21461 CONFIG_SHELL=$SHELL
21462 export CONFIG_SHELL
21463 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21467 cat >>$CONFIG_STATUS <<\_ACEOF
21471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21472 ## Running $as_me. ##
21478 cat >>$CONFIG_STATUS <<_ACEOF
21482 llvm_src="${LLVM_SRC}"
21486 cat >>$CONFIG_STATUS <<\_ACEOF
21488 # Handling of arguments.
21489 for ac_config_target in $ac_config_targets
21491 case $ac_config_target in
21492 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21493 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21494 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21495 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21496 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21497 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21498 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21499 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21501 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21502 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21503 { (exit 1); exit 1; }; };;
21508 # If the user did not use the arguments to specify the items to instantiate,
21509 # then the envvar interface is used. Set only those that are not.
21510 # We use the long form for the default assignment because of an extremely
21511 # bizarre bug on SunOS 4.1.3.
21512 if $ac_need_defaults; then
21513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21514 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21517 # Have a temporary directory for convenience. Make it in the build tree
21518 # simply because there is no reason against having it here, and in addition,
21519 # creating and moving files from /tmp can sometimes cause problems.
21520 # Hook for its removal unless debugging.
21521 # Note that there is a small window in which the directory will not be cleaned:
21522 # after its creation but before its name has been assigned to `$tmp'.
21526 trap 'exit_status=$?
21527 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21529 trap '{ (exit 1); exit 1; }' 1 2 13 15
21531 # Create a (secure) tmp directory for tmp files.
21534 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21535 test -n "$tmp" && test -d "$tmp"
21538 tmp=./conf$$-$RANDOM
21539 (umask 077 && mkdir "$tmp")
21542 echo "$me: cannot create a temporary directory in ." >&2
21543 { (exit 1); exit 1; }
21547 # Set up the sed scripts for CONFIG_FILES section.
21550 # No need to generate the scripts if there are no CONFIG_FILES.
21551 # This happens for instance when ./config.status config.h
21552 if test -n "$CONFIG_FILES"; then
21559 for ac_last_try in false false false false false :; do
21560 cat >conf$$subs.sed <<_ACEOF
21561 SHELL!$SHELL$ac_delim
21562 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21563 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21564 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21565 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21566 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21567 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21568 exec_prefix!$exec_prefix$ac_delim
21569 prefix!$prefix$ac_delim
21570 program_transform_name!$program_transform_name$ac_delim
21571 bindir!$bindir$ac_delim
21572 sbindir!$sbindir$ac_delim
21573 libexecdir!$libexecdir$ac_delim
21574 datarootdir!$datarootdir$ac_delim
21575 datadir!$datadir$ac_delim
21576 sysconfdir!$sysconfdir$ac_delim
21577 sharedstatedir!$sharedstatedir$ac_delim
21578 localstatedir!$localstatedir$ac_delim
21579 includedir!$includedir$ac_delim
21580 oldincludedir!$oldincludedir$ac_delim
21581 docdir!$docdir$ac_delim
21582 infodir!$infodir$ac_delim
21583 htmldir!$htmldir$ac_delim
21584 dvidir!$dvidir$ac_delim
21585 pdfdir!$pdfdir$ac_delim
21586 psdir!$psdir$ac_delim
21587 libdir!$libdir$ac_delim
21588 localedir!$localedir$ac_delim
21589 mandir!$mandir$ac_delim
21590 DEFS!$DEFS$ac_delim
21591 ECHO_C!$ECHO_C$ac_delim
21592 ECHO_N!$ECHO_N$ac_delim
21593 ECHO_T!$ECHO_T$ac_delim
21594 LIBS!$LIBS$ac_delim
21595 build_alias!$build_alias$ac_delim
21596 host_alias!$host_alias$ac_delim
21597 target_alias!$target_alias$ac_delim
21598 LLVM_SRC!$LLVM_SRC$ac_delim
21599 LLVM_OBJ!$LLVM_OBJ$ac_delim
21600 LLVM_VERSION!$LLVM_VERSION$ac_delim
21602 CFLAGS!$CFLAGS$ac_delim
21603 LDFLAGS!$LDFLAGS$ac_delim
21604 CPPFLAGS!$CPPFLAGS$ac_delim
21605 ac_ct_CC!$ac_ct_CC$ac_delim
21606 EXEEXT!$EXEEXT$ac_delim
21607 OBJEXT!$OBJEXT$ac_delim
21609 CXXFLAGS!$CXXFLAGS$ac_delim
21610 ac_ct_CXX!$ac_ct_CXX$ac_delim
21612 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21613 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21614 subdirs!$subdirs$ac_delim
21615 build!$build$ac_delim
21616 build_cpu!$build_cpu$ac_delim
21617 build_vendor!$build_vendor$ac_delim
21618 build_os!$build_os$ac_delim
21619 host!$host$ac_delim
21620 host_cpu!$host_cpu$ac_delim
21621 host_vendor!$host_vendor$ac_delim
21622 host_os!$host_os$ac_delim
21623 target!$target$ac_delim
21624 target_cpu!$target_cpu$ac_delim
21625 target_vendor!$target_vendor$ac_delim
21626 target_os!$target_os$ac_delim
21628 HOST_OS!$HOST_OS$ac_delim
21629 TARGET_OS!$TARGET_OS$ac_delim
21630 LINKALL!$LINKALL$ac_delim
21631 NOLINKALL!$NOLINKALL$ac_delim
21632 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21633 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21634 ARCH!$ARCH$ac_delim
21635 ENDIAN!$ENDIAN$ac_delim
21636 GREP!$GREP$ac_delim
21637 EGREP!$EGREP$ac_delim
21638 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21639 BUILD_CC!$BUILD_CC$ac_delim
21640 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21641 BUILD_CXX!$BUILD_CXX$ac_delim
21642 CVSBUILD!$CVSBUILD$ac_delim
21643 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21644 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21645 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21646 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21647 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21648 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21649 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21650 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21652 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21653 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21654 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21655 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21656 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21657 ENABLE_PIC!$ENABLE_PIC$ac_delim
21660 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21662 elif $ac_last_try; then
21663 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21664 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21665 { (exit 1); exit 1; }; }
21667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21671 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21672 if test -n "$ac_eof"; then
21673 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21674 ac_eof=`expr $ac_eof + 1`
21677 cat >>$CONFIG_STATUS <<_ACEOF
21678 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21682 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21683 s/^/s,@/; s/!/@,|#_!!_#|/
21686 s/'"$ac_delim"'$/,g/; t
21688 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21689 ' >>$CONFIG_STATUS <conf$$subs.sed
21690 rm -f conf$$subs.sed
21691 cat >>$CONFIG_STATUS <<_ACEOF
21697 for ac_last_try in false false false false false :; do
21698 cat >conf$$subs.sed <<_ACEOF
21699 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21700 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21701 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21702 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21703 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21704 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21705 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21706 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21707 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21708 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21709 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21710 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21712 ifGNUmake!$ifGNUmake$ac_delim
21713 LN_S!$LN_S$ac_delim
21716 DATE!$DATE$ac_delim
21717 FIND!$FIND$ac_delim
21718 MKDIR!$MKDIR$ac_delim
21720 RANLIB!$RANLIB$ac_delim
21725 BINPWD!$BINPWD$ac_delim
21726 GRAPHVIZ!$GRAPHVIZ$ac_delim
21729 NEATO!$NEATO$ac_delim
21730 TWOPI!$TWOPI$ac_delim
21731 CIRCO!$CIRCO$ac_delim
21733 DOTTY!$DOTTY$ac_delim
21734 XDOT_PY!$XDOT_PY$ac_delim
21735 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21736 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21737 INSTALL_DATA!$INSTALL_DATA$ac_delim
21738 BZIP2!$BZIP2$ac_delim
21740 DOXYGEN!$DOXYGEN$ac_delim
21741 GROFF!$GROFF$ac_delim
21742 GZIPBIN!$GZIPBIN$ac_delim
21743 POD2HTML!$POD2HTML$ac_delim
21744 POD2MAN!$POD2MAN$ac_delim
21745 PDFROFF!$PDFROFF$ac_delim
21746 RUNTEST!$RUNTEST$ac_delim
21747 TCLSH!$TCLSH$ac_delim
21749 OCAMLC!$OCAMLC$ac_delim
21750 OCAMLOPT!$OCAMLOPT$ac_delim
21751 OCAMLDEP!$OCAMLDEP$ac_delim
21752 OCAMLDOC!$OCAMLDOC$ac_delim
21754 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21755 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21756 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21757 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21758 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21759 LIBADD_DL!$LIBADD_DL$ac_delim
21760 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21761 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21762 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21763 USE_UDIS86!$USE_UDIS86$ac_delim
21764 USE_OPROFILE!$USE_OPROFILE$ac_delim
21765 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21766 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21767 MMAP_FILE!$MMAP_FILE$ac_delim
21768 SHLIBEXT!$SHLIBEXT$ac_delim
21769 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21770 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21771 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21772 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21773 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21774 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21775 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21776 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21777 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21778 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21779 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21780 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21781 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21782 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21783 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21784 RPATH!$RPATH$ac_delim
21785 RDYNAMIC!$RDYNAMIC$ac_delim
21786 LIBOBJS!$LIBOBJS$ac_delim
21787 LTLIBOBJS!$LTLIBOBJS$ac_delim
21790 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
21792 elif $ac_last_try; then
21793 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21794 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21795 { (exit 1); exit 1; }; }
21797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21801 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21802 if test -n "$ac_eof"; then
21803 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21804 ac_eof=`expr $ac_eof + 1`
21807 cat >>$CONFIG_STATUS <<_ACEOF
21808 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21812 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21813 s/^/s,@/; s/!/@,|#_!!_#|/
21816 s/'"$ac_delim"'$/,g/; t
21818 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21819 ' >>$CONFIG_STATUS <conf$$subs.sed
21820 rm -f conf$$subs.sed
21821 cat >>$CONFIG_STATUS <<_ACEOF
21828 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21830 # trailing colons and then remove the whole line if VPATH becomes empty
21831 # (actually we leave an empty line to preserve line numbers).
21832 if test "x$srcdir" = x.; then
21833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21834 s/:*\$(srcdir):*/:/
21835 s/:*\${srcdir}:*/:/
21837 s/^\([^=]*=[ ]*\):*/\1/
21843 cat >>$CONFIG_STATUS <<\_ACEOF
21844 fi # test -n "$CONFIG_FILES"
21847 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21850 :[FHLC]) ac_mode=$ac_tag; continue;;
21852 case $ac_mode$ac_tag in
21854 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21855 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21856 { (exit 1); exit 1; }; };;
21857 :[FH]-) ac_tag=-:-;;
21858 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21875 -) ac_f="$tmp/stdin";;
21876 *) # Look for the file first in the build tree, then in the source tree
21877 # (if the path is not absolute). The absolute path cannot be DOS-style,
21878 # because $ac_f cannot contain `:'.
21882 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21884 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21885 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21886 { (exit 1); exit 1; }; };;
21888 ac_file_inputs="$ac_file_inputs $ac_f"
21891 # Let's still pretend it is `configure' which instantiates (i.e., don't
21892 # use $as_me), people would be surprised to read:
21893 # /* config.h. Generated by config.status. */
21894 configure_input="Generated from "`IFS=:
21895 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21896 if test x"$ac_file" != x-; then
21897 configure_input="$ac_file. $configure_input"
21898 { echo "$as_me:$LINENO: creating $ac_file" >&5
21899 echo "$as_me: creating $ac_file" >&6;}
21903 *:-:* | *:-) cat >"$tmp/stdin";;
21908 ac_dir=`$as_dirname -- "$ac_file" ||
21909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21910 X"$ac_file" : 'X\(//\)[^/]' \| \
21911 X"$ac_file" : 'X\(//\)$' \| \
21912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21918 /^X\(\/\/\)[^/].*/{
21933 -*) as_dir=./$as_dir;;
21935 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21939 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21940 *) as_qdir=$as_dir;;
21942 as_dirs="'$as_qdir' $as_dirs"
21943 as_dir=`$as_dirname -- "$as_dir" ||
21944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21945 X"$as_dir" : 'X\(//\)[^/]' \| \
21946 X"$as_dir" : 'X\(//\)$' \| \
21947 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21953 /^X\(\/\/\)[^/].*/{
21966 test -d "$as_dir" && break
21968 test -z "$as_dirs" || eval "mkdir $as_dirs"
21969 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21970 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21971 { (exit 1); exit 1; }; }; }
21975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21977 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21978 # A ".." for each directory in $ac_dir_suffix.
21979 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21980 case $ac_top_builddir_sub in
21981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21985 ac_abs_top_builddir=$ac_pwd
21986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21987 # for backward compatibility:
21988 ac_top_builddir=$ac_top_build_prefix
21991 .) # We are building in place.
21993 ac_top_srcdir=$ac_top_builddir_sub
21994 ac_abs_top_srcdir=$ac_pwd ;;
21995 [\\/]* | ?:[\\/]* ) # Absolute name.
21996 ac_srcdir=$srcdir$ac_dir_suffix;
21997 ac_top_srcdir=$srcdir
21998 ac_abs_top_srcdir=$srcdir ;;
21999 *) # Relative name.
22000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22001 ac_top_srcdir=$ac_top_build_prefix$srcdir
22002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22019 cat >>$CONFIG_STATUS <<\_ACEOF
22020 # If the template does not know about datarootdir, expand it.
22021 # FIXME: This hack should be removed a few years after 2.60.
22022 ac_datarootdir_hack=; ac_datarootdir_seen=
22024 case `sed -n '/datarootdir/ {
22033 ' $ac_file_inputs` in
22034 *datarootdir*) ac_datarootdir_seen=yes;;
22035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22036 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22037 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22039 cat >>$CONFIG_STATUS <<_ACEOF
22040 ac_datarootdir_hack='
22041 s&@datadir@&$datadir&g
22042 s&@docdir@&$docdir&g
22043 s&@infodir@&$infodir&g
22044 s&@localedir@&$localedir&g
22045 s&@mandir@&$mandir&g
22046 s&\\\${datarootdir}&$datarootdir&g' ;;
22050 # Neutralize VPATH when `$srcdir' = `.'.
22051 # Shell code in configure.ac might set extrasub.
22052 # FIXME: do we really want to maintain this feature?
22053 cat >>$CONFIG_STATUS <<_ACEOF
22057 cat >>$CONFIG_STATUS <<\_ACEOF
22059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22060 s&@configure_input@&$configure_input&;t t
22061 s&@top_builddir@&$ac_top_builddir_sub&;t t
22062 s&@srcdir@&$ac_srcdir&;t t
22063 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22064 s&@top_srcdir@&$ac_top_srcdir&;t t
22065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22066 s&@builddir@&$ac_builddir&;t t
22067 s&@abs_builddir@&$ac_abs_builddir&;t t
22068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22069 s&@INSTALL@&$ac_INSTALL&;t t
22070 $ac_datarootdir_hack
22071 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22073 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22074 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22076 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22077 which seems to be undefined. Please make sure it is defined." >&5
22078 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22079 which seems to be undefined. Please make sure it is defined." >&2;}
22083 -) cat "$tmp/out"; rm -f "$tmp/out";;
22084 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22089 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22090 echo "$as_me: executing $ac_file commands" >&6;}
22095 case $ac_file$ac_mode in
22096 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22097 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22098 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22099 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22100 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22101 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22102 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22103 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22104 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22105 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22111 { (exit 0); exit 0; }
22113 chmod +x $CONFIG_STATUS
22114 ac_clean_files=$ac_clean_files_save
22117 # configure is writing to config.log, and then calls config.status.
22118 # config.status does its own redirection, appending to config.log.
22119 # Unfortunately, on DOS this fails, as config.log is still kept open
22120 # by configure, so config.status won't be able to write to it; its
22121 # output is simply discarded. So we exec the FD to /dev/null,
22122 # effectively closing config.log, so it can be properly (re)opened and
22123 # appended to by config.status. When coming back to configure, we
22124 # need to make the FD available again.
22125 if test "$no_create" != yes; then
22127 ac_config_status_args=
22128 test "$silent" = yes &&
22129 ac_config_status_args="$ac_config_status_args --quiet"
22131 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22133 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22134 # would make configure fail if this is the last instruction.
22135 $ac_cs_success || { (exit 1); exit 1; }
22139 # CONFIG_SUBDIRS section.
22141 if test "$no_recursion" != yes; then
22143 # Remove --cache-file and --srcdir arguments so they do not pile up.
22144 ac_sub_configure_args=
22146 eval "set x $ac_configure_args"
22150 if test -n "$ac_prev"; then
22155 -cache-file | --cache-file | --cache-fil | --cache-fi \
22156 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22157 ac_prev=cache_file ;;
22158 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22159 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22162 --config-cache | -C)
22164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22174 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22176 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22180 # Always prepend --prefix to ensure using the same prefix
22181 # in subdir configurations.
22182 ac_arg="--prefix=$prefix"
22184 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22186 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22189 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22191 # Do not complain, so a configure script can configure whichever
22192 # parts of a large source tree are present.
22193 test -d "$srcdir/$ac_dir" || continue
22195 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22196 echo "$as_me:$LINENO: $ac_msg" >&5
22200 -*) as_dir=./$as_dir;;
22202 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22206 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22207 *) as_qdir=$as_dir;;
22209 as_dirs="'$as_qdir' $as_dirs"
22210 as_dir=`$as_dirname -- "$as_dir" ||
22211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22212 X"$as_dir" : 'X\(//\)[^/]' \| \
22213 X"$as_dir" : 'X\(//\)$' \| \
22214 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22220 /^X\(\/\/\)[^/].*/{
22233 test -d "$as_dir" && break
22235 test -z "$as_dirs" || eval "mkdir $as_dirs"
22236 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22237 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22238 { (exit 1); exit 1; }; }; }
22242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22245 # A ".." for each directory in $ac_dir_suffix.
22246 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22247 case $ac_top_builddir_sub in
22248 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22249 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22252 ac_abs_top_builddir=$ac_pwd
22253 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22254 # for backward compatibility:
22255 ac_top_builddir=$ac_top_build_prefix
22258 .) # We are building in place.
22260 ac_top_srcdir=$ac_top_builddir_sub
22261 ac_abs_top_srcdir=$ac_pwd ;;
22262 [\\/]* | ?:[\\/]* ) # Absolute name.
22263 ac_srcdir=$srcdir$ac_dir_suffix;
22264 ac_top_srcdir=$srcdir
22265 ac_abs_top_srcdir=$srcdir ;;
22266 *) # Relative name.
22267 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22268 ac_top_srcdir=$ac_top_build_prefix$srcdir
22269 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22276 # Check for guested configure; otherwise get Cygnus style configure.
22277 if test -f "$ac_srcdir/configure.gnu"; then
22278 ac_sub_configure=$ac_srcdir/configure.gnu
22279 elif test -f "$ac_srcdir/configure"; then
22280 ac_sub_configure=$ac_srcdir/configure
22281 elif test -f "$ac_srcdir/configure.in"; then
22282 # This should be Cygnus configure.
22283 ac_sub_configure=$ac_aux_dir/configure
22285 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22286 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22290 # The recursion is here.
22291 if test -n "$ac_sub_configure"; then
22292 # Make the cache file name correct relative to the subdirectory.
22293 case $cache_file in
22294 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22295 *) # Relative name.
22296 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22299 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22300 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22301 # The eval makes quoting arguments work.
22302 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22303 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22304 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22305 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22306 { (exit 1); exit 1; }; }