2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.9svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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.
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
685 ENABLE_EXPENSIVE_CHECKS
698 LLVM_ENUM_ASM_PRINTERS
699 LLVM_ENUM_ASM_PARSERS
700 LLVM_ENUM_DISASSEMBLERS
756 HAVE_LINK_VERSION_SCRIPT
759 CONVENIENCE_LTDL_TRUE
760 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
780 LLVMGCC_DISABLEOPT_FLAGS
796 ENABLE_VISIBILITY_INLINES_HIDDEN
802 ac_precious_vars='build_alias
813 ac_subdirs_all='projects/llvm-gcc
817 projects/llvm-poolalloc
820 projects/llvm-stacker
828 # Initialize some variables set by options.
830 ac_init_version=false
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
840 program_transform_name=s,x,x,
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
886 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 # Accept the important Cygnus configure options, so we can diagnose typos.
892 case $ac_dashdash$ac_option in
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
914 cache_file=config.cache ;;
916 -datadir | --datadir | --datadi | --datad)
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
928 -disable-* | --disable-*)
929 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
932 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
933 { (exit 1); exit 1; }; }
934 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
935 eval enable_$ac_feature=no ;;
937 -docdir | --docdir | --docdi | --doc | --do)
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 -enable-* | --enable-*)
948 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
951 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
952 { (exit 1); exit 1; }; }
953 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
954 eval enable_$ac_feature=\$ac_optarg ;;
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
969 -help | --help | --hel | --he | -h)
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 htmldir=$ac_optarg ;;
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
999 -libdir | --libdir | --libdi | --libd)
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1090 -psdir | --psdir | --psdi | --psd | --ps)
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 sbindir=$ac_optarg ;;
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 sharedstatedir=$ac_optarg ;;
1116 -site | --site | --sit)
1118 -site=* | --site=* | --sit=*)
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1145 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package| sed 's/-/_/g'`
1151 eval with_$ac_package=\$ac_optarg ;;
1153 -without-* | --without-*)
1154 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1157 { echo "$as_me: error: invalid package name: $ac_package" >&2
1158 { (exit 1); exit 1; }; }
1159 ac_package=`echo $ac_package | sed 's/-/_/g'`
1160 eval with_$ac_package=no ;;
1163 # Obsolete; use --with-x.
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1180 -*) { echo "$as_me: error: unrecognized option: $ac_option
1181 Try \`$0 --help' for more information." >&2
1182 { (exit 1); exit 1; }; }
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1189 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1190 { (exit 1); exit 1; }; }
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1195 # FIXME: should be removed in autoconf 3.0.
1196 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1205 if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 { echo "$as_me: error: missing argument to $ac_option" >&2
1208 { (exit 1); exit 1; }; }
1211 # Be sure to have absolute directory names.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1217 eval ac_val=\$$ac_var
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1223 { (exit 1); exit 1; }; }
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1231 target=$target_alias
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
1237 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1238 If a cross compiler is detected then cross compile mode will be used." >&2
1239 elif test "x$build_alias" != "x$host_alias"; then
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247 test "$silent" = yes && exec 6>/dev/null
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 { echo "$as_me: error: Working directory cannot be determined" >&2
1254 { (exit 1); exit 1; }; }
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 { echo "$as_me: error: pwd does not report name of working directory" >&2
1257 { (exit 1); exit 1; }; }
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$0" ||
1265 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$0" : 'X\(//\)[^/]' \| \
1267 X"$0" : 'X\(//\)$' \| \
1268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1292 ac_srcdir_defaulted=no
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1297 { (exit 1); exit 1; }; }
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1302 { (exit 1); exit 1; }; }
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 # Report the --help message.
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1328 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1335 Defaults for the options are specified in brackets.
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1359 For better control, use the options below.
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 --target=TARGET configure for building compilers for TARGET [HOST]
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of llvm 2.9svn:";;
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-polly Use polly if available (default is YES)
1402 --enable-optimized Compile with optimizations enabled (default is NO)
1403 --enable-profiling Compile with profiling enabled (default is NO)
1404 --enable-assertions Compile with assertion checks enabled (default is
1406 --enable-expensive-checks
1407 Compile with expensive debug checks enabled (default
1409 --enable-debug-runtime Build runtime libs with debug symbols (default is
1411 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1412 optimization is on and YES if it's off)
1413 --enable-jit Enable Just In Time Compiling (default is YES)
1414 --enable-doxygen Build doxygen documentation (default is NO)
1415 --enable-threads Use threads if available (default is YES)
1416 --enable-pic Build LLVM with Position Independent Code (default
1418 --enable-shared Build a shared library and link tools against it
1420 --enable-timestamps Enable embedding timestamp information in build
1422 --enable-targets Build specific host targets: all or
1423 target1,target2,... Valid targets are: host, x86,
1424 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1425 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1427 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1429 --enable-bindings Build specific language bindings:
1430 all,auto,none,{binding-name} (default=auto)
1431 --enable-libffi Check for the presence of libffi (default is NO)
1432 --enable-ltdl-install install libltdl
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1439 --with-llvmgcc Specify location of llvm-gcc driver (default
1441 --with-llvmgxx Specify location of llvm-g++ driver (default
1443 --with-clang Specify location of clang compiler (default is
1445 --with-built-clang Use the compiled Clang as the LLVM compiler
1447 --with-optimize-option Select the compiler options to use for optimized
1449 --with-extra-options Specify additional options to compile LLVM with
1450 --with-ocaml-libdir Specify install location for ocaml bindings (default
1452 --with-clang-resource-dir
1453 Relative directory from the Clang binary for
1455 --with-c-include-dirs Colon separated list of directories clang will
1457 --with-cxx-include-root Directory with the libstdc++ headers.
1458 --with-cxx-include-arch Architecture of the libstdc++ headers.
1459 --with-cxx-include-32bit-dir
1460 32 bit multilib dir.
1461 --with-cxx-include-64bit-dir
1462 64 bit multilib directory.
1463 --with-binutils-include Specify path to binutils/include/ containing
1464 plugin-api.h file for gold plugin.
1465 --with-tclinclude directory where tcl headers are
1466 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1467 clang, or none; default=check)
1468 --with-udis86=<path> Use udis86 external x86 disassembler library
1469 --with-oprofile=<prefix>
1470 Tell OProfile >= 0.9.4 how to symbolize JIT output
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1486 Report bugs to <llvmbugs@cs.uiuc.edu>.
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" || continue
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1501 # A ".." for each directory in $ac_dir_suffix.
1502 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1503 case $ac_top_builddir_sub in
1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1514 .) # We are building in place.
1516 ac_top_srcdir=$ac_top_builddir_sub
1517 ac_abs_top_srcdir=$ac_pwd ;;
1518 [\\/]* | ?:[\\/]* ) # Absolute name.
1519 ac_srcdir=$srcdir$ac_dir_suffix;
1520 ac_top_srcdir=$srcdir
1521 ac_abs_top_srcdir=$srcdir ;;
1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524 ac_top_srcdir=$ac_top_build_prefix$srcdir
1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529 cd "$ac_dir" || { ac_status=$?; continue; }
1530 # Check for guested configure.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1536 $SHELL "$ac_srcdir/configure" --help=recursive
1538 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 cd "$ac_pwd" || { ac_status=$?; break; }
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1547 llvm configure 2.9svn
1548 generated by GNU Autoconf 2.60
1550 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1551 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1555 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1559 cat >config.log <<_ACEOF
1560 This file contains any messages produced by compilers while
1561 running configure, to aid debugging if configure makes a mistake.
1563 It was created by llvm $as_me 2.9svn, which was
1564 generated by GNU Autoconf 2.60. Invocation command line was
1576 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1577 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1578 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1579 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1580 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1582 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1583 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1585 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1586 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1587 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1588 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1589 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1590 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1591 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 test -z "$as_dir" && as_dir=.
1600 echo "PATH: $as_dir"
1616 # Keep a trace of the command line.
1617 # Strip out --no-create and --no-recursion so they do not pile up.
1618 # Strip out --silent because we don't want to record it for future runs.
1619 # Also quote any args containing shell meta-characters.
1620 # Make two passes to allow for proper duplicate-argument suppression.
1624 ac_must_keep_next=false
1630 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1632 | -silent | --silent | --silen | --sile | --sil)
1635 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1638 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1640 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1641 if test $ac_must_keep_next = true; then
1642 ac_must_keep_next=false # Got value, back to normal.
1645 *=* | --config-cache | -C | -disable-* | --disable-* \
1646 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1647 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1648 | -with-* | --with-* | -without-* | --without-* | --x)
1649 case "$ac_configure_args0 " in
1650 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1653 -* ) ac_must_keep_next=true ;;
1656 ac_configure_args="$ac_configure_args '$ac_arg'"
1661 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1662 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1664 # When interrupted or exit'd, cleanup temporary files, and complete
1665 # config.log. We remove comments because anyway the quotes in there
1666 # would cause problems or look ugly.
1667 # WARNING: Use '\'' to represent an apostrophe within the trap.
1668 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1669 trap 'exit_status=$?
1670 # Save into config.log some information that might help in debugging.
1675 ## ---------------- ##
1676 ## Cache variables. ##
1677 ## ---------------- ##
1680 # The following way of writing the cache mishandles newlines in values,
1682 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1683 eval ac_val=\$$ac_var
1687 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1688 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1691 _ | IFS | as_nl) ;; #(
1692 *) $as_unset $ac_var ;;
1697 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1698 *${as_nl}ac_space=\ *)
1700 "s/'\''/'\''\\\\'\'''\''/g;
1701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1712 ## ----------------- ##
1713 ## Output variables. ##
1714 ## ----------------- ##
1717 for ac_var in $ac_subst_vars
1719 eval ac_val=\$$ac_var
1721 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723 echo "$ac_var='\''$ac_val'\''"
1727 if test -n "$ac_subst_files"; then
1729 ## ------------------- ##
1730 ## File substitutions. ##
1731 ## ------------------- ##
1734 for ac_var in $ac_subst_files
1736 eval ac_val=\$$ac_var
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 echo "$ac_var='\''$ac_val'\''"
1745 if test -s confdefs.h; then
1755 test "$ac_signal" != 0 &&
1756 echo "$as_me: caught signal $ac_signal"
1757 echo "$as_me: exit $exit_status"
1759 rm -f core *.core core.conftest.* &&
1760 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1763 for ac_signal in 1 2 13 15; do
1764 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1768 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1769 rm -f -r conftest* confdefs.h
1771 # Predefined preprocessor variables.
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_NAME "$PACKAGE_NAME"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_STRING "$PACKAGE_STRING"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1798 # Let the site file select an alternate cache file if it wants to.
1799 # Prefer explicitly selected file to automatically selected ones.
1800 if test -n "$CONFIG_SITE"; then
1801 set x "$CONFIG_SITE"
1802 elif test "x$prefix" != xNONE; then
1803 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1805 set x "$ac_default_prefix/share/config.site" \
1806 "$ac_default_prefix/etc/config.site"
1811 if test -r "$ac_site_file"; then
1812 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1813 echo "$as_me: loading site script $ac_site_file" >&6;}
1814 sed 's/^/| /' "$ac_site_file" >&5
1819 if test -r "$cache_file"; then
1820 # Some versions of bash will fail to source /dev/null (special
1821 # files actually), so we avoid doing that.
1822 if test -f "$cache_file"; then
1823 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1824 echo "$as_me: loading cache $cache_file" >&6;}
1826 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1827 *) . "./$cache_file";;
1831 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1832 echo "$as_me: creating cache $cache_file" >&6;}
1836 # Check that the precious variables saved in the cache have kept the same
1838 ac_cache_corrupted=false
1839 for ac_var in $ac_precious_vars; do
1840 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1841 eval ac_new_set=\$ac_env_${ac_var}_set
1842 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1843 eval ac_new_val=\$ac_env_${ac_var}_value
1844 case $ac_old_set,$ac_new_set in
1846 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1847 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1848 ac_cache_corrupted=: ;;
1850 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1851 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1852 ac_cache_corrupted=: ;;
1855 if test "x$ac_old_val" != "x$ac_new_val"; then
1856 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1857 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1858 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1859 echo "$as_me: former value: $ac_old_val" >&2;}
1860 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1861 echo "$as_me: current value: $ac_new_val" >&2;}
1862 ac_cache_corrupted=:
1865 # Pass precious variables to config.status.
1866 if test "$ac_new_set" = set; then
1868 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1869 *) ac_arg=$ac_var=$ac_new_val ;;
1871 case " $ac_configure_args " in
1872 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1873 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1877 if $ac_cache_corrupted; then
1878 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1879 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1880 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1881 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1882 { (exit 1); exit 1; }; }
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1917 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1926 for ac_dir in autoconf "$srcdir"/autoconf; do
1927 if test -f "$ac_dir/install-sh"; then
1929 ac_install_sh="$ac_aux_dir/install-sh -c"
1931 elif test -f "$ac_dir/install.sh"; then
1933 ac_install_sh="$ac_aux_dir/install.sh -c"
1935 elif test -f "$ac_dir/shtool"; then
1937 ac_install_sh="$ac_aux_dir/shtool install -c"
1941 if test -z "$ac_aux_dir"; then
1942 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1943 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1944 { (exit 1); exit 1; }; }
1947 # These three variables are undocumented and unsupported,
1948 # and are intended to be withdrawn in a future Autoconf release.
1949 # They can cause serious problems if a builder's source tree is in a directory
1950 # whose full name contains unusual characters.
1951 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1952 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1953 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1957 if test ${srcdir} != "." ; then
1958 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1959 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1960 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1961 { (exit 1); exit 1; }; }
1967 if test -d ${srcdir}/projects/llvm-gcc ; then
1968 subdirs="$subdirs projects/llvm-gcc"
1972 if test -d ${srcdir}/projects/test-suite ; then
1973 subdirs="$subdirs projects/test-suite"
1977 if test -d ${srcdir}/projects/llvm-test ; then
1978 subdirs="$subdirs projects/llvm-test"
1982 if test -d ${srcdir}/projects/poolalloc ; then
1983 subdirs="$subdirs projects/poolalloc"
1987 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1988 subdirs="$subdirs projects/llvm-poolalloc"
1992 for i in `ls ${srcdir}/projects`
1994 if test -d ${srcdir}/projects/${i} ; then
1996 sample) subdirs="$subdirs projects/sample"
1998 privbracket) subdirs="$subdirs projects/privbracket"
2000 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2002 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2004 llvm-java) subdirs="$subdirs projects/llvm-java"
2006 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2008 safecode) subdirs="$subdirs projects/safecode"
2010 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2018 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2019 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2025 # Check whether --enable-polly was given.
2026 if test "${enable_polly+set}" = set; then
2027 enableval=$enable_polly;
2032 case "$enableval" in
2037 default) ENABLE_POLLY=1
2039 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2040 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2041 { (exit 1); exit 1; }; } ;;
2045 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2048 subdirs="$subdirs tools/polly"
2053 # Make sure we can run config.sub.
2054 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2055 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2056 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2057 { (exit 1); exit 1; }; }
2059 { echo "$as_me:$LINENO: checking build system type" >&5
2060 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2061 if test "${ac_cv_build+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 ac_build_alias=$build_alias
2065 test "x$ac_build_alias" = x &&
2066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2067 test "x$ac_build_alias" = x &&
2068 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2069 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2070 { (exit 1); exit 1; }; }
2071 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2072 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2078 echo "${ECHO_T}$ac_cv_build" >&6; }
2079 case $ac_cv_build in
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2082 echo "$as_me: error: invalid value of canonical build" >&2;}
2083 { (exit 1); exit 1; }; };;
2086 ac_save_IFS=$IFS; IFS='-'
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2096 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2099 { echo "$as_me:$LINENO: checking host system type" >&5
2100 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_host+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 if test "x$host_alias" = x; then
2105 ac_cv_host=$ac_cv_build
2107 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2114 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2115 echo "${ECHO_T}$ac_cv_host" >&6; }
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2119 echo "$as_me: error: invalid value of canonical host" >&2;}
2120 { (exit 1); exit 1; }; };;
2123 ac_save_IFS=$IFS; IFS='-'
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2133 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2136 { echo "$as_me:$LINENO: checking target system type" >&5
2137 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2138 if test "${ac_cv_target+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 if test "x$target_alias" = x; then
2142 ac_cv_target=$ac_cv_host
2144 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2151 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2152 echo "${ECHO_T}$ac_cv_target" >&6; }
2153 case $ac_cv_target in
2155 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2156 echo "$as_me: error: invalid value of canonical target" >&2;}
2157 { (exit 1); exit 1; }; };;
2159 target=$ac_cv_target
2160 ac_save_IFS=$IFS; IFS='-'
2166 # Remember, the first character of IFS is used to create $*,
2167 # except with old shells:
2170 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2173 # The aliases save the names the user supplied, while $host etc.
2174 # will get canonicalized.
2175 test -n "$target_alias" &&
2176 test "$program_prefix$program_suffix$program_transform_name" = \
2178 program_prefix=${target_alias}-
2180 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2181 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2182 if test "${llvm_cv_os_type+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 llvm_cv_link_all_option="-Wl,--whole-archive"
2188 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2189 llvm_cv_os_type="AIX"
2190 llvm_cv_platform_type="Unix" ;;
2192 llvm_cv_link_all_option="-Wl,--whole-archive"
2193 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2194 llvm_cv_os_type="IRIX"
2195 llvm_cv_platform_type="Unix" ;;
2197 llvm_cv_link_all_option="-Wl,--whole-archive"
2198 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2199 llvm_cv_os_type="Cygwin"
2200 llvm_cv_platform_type="Unix" ;;
2202 llvm_cv_link_all_option="-Wl,-all_load"
2203 llvm_cv_no_link_all_option="-Wl,-noall_load"
2204 llvm_cv_os_type="Darwin"
2205 llvm_cv_platform_type="Unix" ;;
2207 llvm_cv_link_all_option="-Wl,-all_load"
2208 llvm_cv_no_link_all_option="-Wl,-noall_load"
2209 llvm_cv_os_type="Minix"
2210 llvm_cv_platform_type="Unix" ;;
2212 llvm_cv_link_all_option="-Wl,--whole-archive"
2213 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2214 llvm_cv_os_type="FreeBSD"
2215 llvm_cv_platform_type="Unix" ;;
2217 llvm_cv_link_all_option="-Wl,--whole-archive"
2218 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2219 llvm_cv_os_type="OpenBSD"
2220 llvm_cv_platform_type="Unix" ;;
2222 llvm_cv_link_all_option="-Wl,--whole-archive"
2223 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2224 llvm_cv_os_type="NetBSD"
2225 llvm_cv_platform_type="Unix" ;;
2227 llvm_cv_link_all_option="-Wl,--whole-archive"
2228 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2229 llvm_cv_os_type="DragonFly"
2230 llvm_cv_platform_type="Unix" ;;
2232 llvm_cv_link_all_option="-Wl,--whole-archive"
2233 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2234 llvm_cv_os_type="HP-UX"
2235 llvm_cv_platform_type="Unix" ;;
2237 llvm_cv_link_all_option="-Wl,--whole-archive"
2238 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2239 llvm_cv_os_type="Interix"
2240 llvm_cv_platform_type="Unix" ;;
2242 llvm_cv_link_all_option="-Wl,--whole-archive"
2243 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2244 llvm_cv_os_type="Linux"
2245 llvm_cv_platform_type="Unix" ;;
2247 llvm_cv_link_all_option="-Wl,-z,allextract"
2248 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2249 llvm_cv_os_type="SunOS"
2250 llvm_cv_platform_type="Unix" ;;
2252 llvm_cv_link_all_option="-Wl,-z,allextract"
2253 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2254 llvm_cv_os_type="AuroraUX"
2255 llvm_cv_platform_type="Unix" ;;
2257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259 llvm_cv_os_type="Win32"
2260 llvm_cv_platform_type="Win32" ;;
2262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264 llvm_cv_os_type="MingW"
2265 llvm_cv_platform_type="Win32" ;;
2267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269 llvm_cv_os_type="Haiku"
2270 llvm_cv_platform_type="Unix" ;;
2272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274 llvm_cv_os_type="Freestanding"
2275 llvm_cv_platform_type="Unix" ;;
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="Freestanding"
2280 llvm_cv_platform_type="Unix" ;;
2282 llvm_cv_link_all_option=""
2283 llvm_cv_no_link_all_option=""
2284 llvm_cv_os_type="Unknown"
2285 llvm_cv_platform_type="Unknown" ;;
2288 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2289 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2291 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2292 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2293 if test "${llvm_cv_target_os_type+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 llvm_cv_target_os_type="AIX" ;;
2300 llvm_cv_target_os_type="IRIX" ;;
2302 llvm_cv_target_os_type="Cygwin" ;;
2304 llvm_cv_target_os_type="Darwin" ;;
2306 llvm_cv_target_os_type="Minix" ;;
2308 llvm_cv_target_os_type="FreeBSD" ;;
2310 llvm_cv_target_os_type="OpenBSD" ;;
2312 llvm_cv_target_os_type="NetBSD" ;;
2314 llvm_cv_target_os_type="DragonFly" ;;
2316 llvm_cv_target_os_type="HP-UX" ;;
2318 llvm_cv_target_os_type="Interix" ;;
2320 llvm_cv_target_os_type="Linux" ;;
2322 llvm_cv_target_os_type="SunOS" ;;
2324 llvm_cv_target_os_type="AuroraUX" ;;
2326 llvm_cv_target_os_type="Win32" ;;
2328 llvm_cv_target_os_type="MingW" ;;
2330 llvm_cv_target_os_type="Haiku" ;;
2332 llvm_cv_target_os_type="Freestanding" ;;
2334 llvm_cv_target_os_type="Unknown" ;;
2337 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2338 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2340 if test "$llvm_cv_os_type" = "Unknown" ; then
2341 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2342 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2343 { (exit 1); exit 1; }; }
2348 HOST_OS=$llvm_cv_os_type
2350 TARGET_OS=$llvm_cv_target_os_type
2353 LINKALL=$llvm_cv_link_all_option
2355 NOLINKALL=$llvm_cv_no_link_all_option
2358 case $llvm_cv_platform_type in
2361 cat >>confdefs.h <<\_ACEOF
2362 #define LLVM_ON_UNIX 1
2372 cat >>confdefs.h <<\_ACEOF
2373 #define LLVM_ON_WIN32 1
2383 { echo "$as_me:$LINENO: checking target architecture" >&5
2384 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2385 if test "${llvm_cv_target_arch+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 i?86-*) llvm_cv_target_arch="x86" ;;
2390 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2391 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2392 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2393 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2394 arm*-*) llvm_cv_target_arch="ARM" ;;
2395 mips-*) llvm_cv_target_arch="Mips" ;;
2396 xcore-*) llvm_cv_target_arch="XCore" ;;
2397 msp430-*) llvm_cv_target_arch="MSP430" ;;
2398 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2399 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2400 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2401 ptx-*) llvm_cv_target_arch="PTX" ;;
2402 *) llvm_cv_target_arch="Unknown" ;;
2405 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2406 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2408 if test "$llvm_cv_target_arch" = "Unknown" ; then
2409 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2410 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2413 # Determine the LLVM native architecture for the target
2414 case "$llvm_cv_target_arch" in
2415 x86) LLVM_NATIVE_ARCH="X86" ;;
2416 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2417 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2420 ARCH=$llvm_cv_target_arch
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428 if test -n "$ac_tool_prefix"; then
2429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2430 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 if test -n "$CC"; then
2458 { echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6; }
2461 { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2467 if test -z "$ac_cv_prog_CC"; then
2469 # Extract the first word of "gcc", so it can be a program name with args.
2470 set dummy gcc; ac_word=$2
2471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 if test -n "$ac_ct_CC"; then
2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 ac_cv_prog_ac_ct_CC="gcc"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497 if test -n "$ac_ct_CC"; then
2498 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499 echo "${ECHO_T}$ac_ct_CC" >&6; }
2501 { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2505 if test "x$ac_ct_CC" = x; then
2508 case $cross_compiling:$ac_tool_warned in
2510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2511 whose name does not start with the host triplet. If you think this
2512 configuration is useful to you, please write to autoconf@gnu.org." >&5
2513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2514 whose name does not start with the host triplet. If you think this
2515 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2516 ac_tool_warned=yes ;;
2524 if test -z "$CC"; then
2525 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}cc; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_CC="${ac_tool_prefix}cc"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 if test -n "$CC"; then
2555 { echo "$as_me:$LINENO: result: $CC" >&5
2556 echo "${ECHO_T}$CC" >&6; }
2558 { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2565 if test -z "$CC"; then
2566 # Extract the first word of "cc", so it can be a program name with args.
2567 set dummy cc; ac_word=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2585 ac_prog_rejected=yes
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 if test $ac_prog_rejected = yes; then
2597 # We found a bogon in the path, so make sure we never use it.
2598 set dummy $ac_cv_prog_CC
2600 if test $# != 0; then
2601 # We chose a different compiler from the bogus one.
2602 # However, it has the same basename, so the bogon will be chosen
2603 # first if we set CC to just the basename; use the full file name.
2605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2611 if test -n "$CC"; then
2612 { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2621 if test -z "$CC"; then
2622 if test -n "$ac_tool_prefix"; then
2623 for ac_prog in cl.exe
2625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 if test -n "$CC"; then
2654 { echo "$as_me:$LINENO: result: $CC" >&5
2655 echo "${ECHO_T}$CC" >&6; }
2657 { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2662 test -n "$CC" && break
2665 if test -z "$CC"; then
2667 for ac_prog in cl.exe
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670 set dummy $ac_prog; ac_word=$2
2671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 ac_cv_prog_ac_ct_CC="$ac_prog"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697 if test -n "$ac_ct_CC"; then
2698 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2699 echo "${ECHO_T}$ac_ct_CC" >&6; }
2701 { echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6; }
2706 test -n "$ac_ct_CC" && break
2709 if test "x$ac_ct_CC" = x; then
2712 case $cross_compiling:$ac_tool_warned in
2714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2715 whose name does not start with the host triplet. If you think this
2716 configuration is useful to you, please write to autoconf@gnu.org." >&5
2717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2718 whose name does not start with the host triplet. If you think this
2719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2720 ac_tool_warned=yes ;;
2729 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: no acceptable C compiler found in \$PATH
2732 See \`config.log' for more details." >&2;}
2733 { (exit 1); exit 1; }; }
2735 # Provide some information about the compiler.
2736 echo "$as_me:$LINENO: checking for C compiler version" >&5
2737 ac_compiler=`set X $ac_compile; echo $2`
2738 { (ac_try="$ac_compiler --version >&5"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler --version >&5") 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2748 { (ac_try="$ac_compiler -v >&5"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compiler -v >&5") 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }
2758 { (ac_try="$ac_compiler -V >&5"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_compiler -V >&5") 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2784 ac_clean_files_save=$ac_clean_files
2785 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2786 # Try to create an executable without -o first, disregard a.out.
2787 # It will help us diagnose broken compilers, and finding out an intuition
2789 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2790 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2793 # List of possible output files, starting from the most likely.
2794 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2795 # only as a last resort. b.out is created by i960 compilers.
2796 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2798 # The IRIX 6 linker writes into existing files which may not be
2799 # executable, retaining their permissions. Remove them first so a
2800 # subsequent execution test works.
2802 for ac_file in $ac_files
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2811 if { (ac_try="$ac_link_default"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_link_default") 2>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
2821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2822 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2823 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2824 # so that the user can short-circuit this test for compilers unknown to
2826 for ac_file in $ac_files
2828 test -f "$ac_file" || continue
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2833 # We found the default executable, but exeext='' is most
2837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841 # We set ac_cv_exeext here because the later test for it is not
2842 # safe: cross compilers may not add the suffix if given an `-o'
2843 # argument, so we may need to know it at that point already.
2844 # Even if this section looks crufty: it has the advantage of
2851 test "$ac_cv_exeext" = no && ac_cv_exeext=
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }
2864 ac_exeext=$ac_cv_exeext
2865 { echo "$as_me:$LINENO: result: $ac_file" >&5
2866 echo "${ECHO_T}$ac_file" >&6; }
2868 # Check that the compiler produces executables we can run. If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2871 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2873 # If not cross compiling, check that we can run a simple program.
2874 if test "$cross_compiling" != yes; then
2875 if { ac_try='./$ac_file'
2876 { (case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_try") 2>&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; }; then
2887 if test "$cross_compiling" = maybe; then
2890 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2891 If you meant to cross compile, use \`--host'.
2892 See \`config.log' for more details." >&5
2893 echo "$as_me: error: cannot run C compiled programs.
2894 If you meant to cross compile, use \`--host'.
2895 See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2900 { echo "$as_me:$LINENO: result: yes" >&5
2901 echo "${ECHO_T}yes" >&6; }
2903 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2904 ac_clean_files=$ac_clean_files_save
2905 # Check that the compiler produces executables we can run. If not, either
2906 # the compiler is broken, or we cross compile.
2907 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2908 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2909 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2910 echo "${ECHO_T}$cross_compiling" >&6; }
2912 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2913 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2914 if { (ac_try="$ac_link"
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920 (eval "$ac_link") 2>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; then
2924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2926 # work properly (i.e., refer to `conftest.exe'), while it won't with
2928 for ac_file in conftest.exe conftest conftest.*; do
2929 test -f "$ac_file" || continue
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2939 See \`config.log' for more details." >&5
2940 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2941 See \`config.log' for more details." >&2;}
2942 { (exit 1); exit 1; }; }
2945 rm -f conftest$ac_cv_exeext
2946 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2947 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2949 rm -f conftest.$ac_ext
2950 EXEEXT=$ac_cv_exeext
2952 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2953 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2954 if test "${ac_cv_objext+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 cat >conftest.$ac_ext <<_ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2972 rm -f conftest.o conftest.obj
2973 if { (ac_try="$ac_compile"
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_compile") 2>&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; then
2983 for ac_file in conftest.o conftest.obj conftest.*; do
2984 test -f "$ac_file" || continue;
2986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2995 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2996 See \`config.log' for more details." >&5
2997 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2998 See \`config.log' for more details." >&2;}
2999 { (exit 1); exit 1; }; }
3002 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3004 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3005 echo "${ECHO_T}$ac_cv_objext" >&6; }
3006 OBJEXT=$ac_cv_objext
3008 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3010 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 cat >conftest.$ac_ext <<_ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3031 rm -f conftest.$ac_objext
3032 if { (ac_try="$ac_compile"
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compile") 2>conftest.er1
3040 grep -v '^ *+' conftest.er1 >conftest.err
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; } &&
3055 { ac_try='test -s conftest.$ac_objext'
3056 { (case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_try") 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3077 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3078 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3079 GCC=`test $ac_compiler_gnu = yes && echo yes`
3080 ac_test_CFLAGS=${CFLAGS+set}
3081 ac_save_CFLAGS=$CFLAGS
3082 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3083 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3084 if test "${ac_cv_prog_cc_g+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 ac_save_c_werror_flag=$ac_c_werror_flag
3088 ac_c_werror_flag=yes
3091 cat >conftest.$ac_ext <<_ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3106 rm -f conftest.$ac_objext
3107 if { (ac_try="$ac_compile"
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_compile") 2>conftest.er1
3115 grep -v '^ *+' conftest.er1 >conftest.err
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3121 { (case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_try") 2>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; } &&
3130 { ac_try='test -s conftest.$ac_objext'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3146 cat >conftest.$ac_ext <<_ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_compile") 2>conftest.er1
3170 grep -v '^ *+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3176 { (case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_try") 2>&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; } &&
3185 { ac_try='test -s conftest.$ac_objext'
3186 { (case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_try") 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 ac_c_werror_flag=$ac_save_c_werror_flag
3202 cat >conftest.$ac_ext <<_ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3217 rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3226 grep -v '^ *+' conftest.er1 >conftest.err
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3232 { (case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_try") 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_try") 2>&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3268 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3270 if test "$ac_test_CFLAGS" = set; then
3271 CFLAGS=$ac_save_CFLAGS
3272 elif test $ac_cv_prog_cc_g = yes; then
3273 if test "$GCC" = yes; then
3279 if test "$GCC" = yes; then
3285 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3286 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3287 if test "${ac_cv_prog_cc_c89+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 ac_cv_prog_cc_c89=no
3292 cat >conftest.$ac_ext <<_ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3300 #include <sys/types.h>
3301 #include <sys/stat.h>
3302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3303 struct buf { int x; };
3304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3305 static char *e (p, i)
3311 static char *f (char * (*g) (char **, int), char **p, ...)
3316 s = g (p, va_arg (v,int));
3321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3322 function prototypes and stuff, but not '\xHH' hex character constants.
3323 These don't provoke an error unfortunately, instead are silently treated
3324 as 'x'. The following induces an error, until -std is added to get
3325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3326 array size at least. It's necessary to write '\x00'==0 to get something
3327 that's true only with -std. */
3328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3330 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3331 inside strings and character constants. */
3333 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3335 int test (int i, double x);
3336 struct s1 {int (*f) (int a);};
3337 struct s2 {int (*f) (double a);};
3338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3344 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3349 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3350 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3352 CC="$ac_save_CC $ac_arg"
3353 rm -f conftest.$ac_objext
3354 if { (ac_try="$ac_compile"
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_compile") 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3368 { (case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_try") 2>&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; } &&
3377 { ac_try='test -s conftest.$ac_objext'
3378 { (case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_try") 2>&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3387 ac_cv_prog_cc_c89=$ac_arg
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3395 rm -f core conftest.err conftest.$ac_objext
3396 test "x$ac_cv_prog_cc_c89" != "xno" && break
3398 rm -f conftest.$ac_ext
3403 case "x$ac_cv_prog_cc_c89" in
3405 { echo "$as_me:$LINENO: result: none needed" >&5
3406 echo "${ECHO_T}none needed" >&6; } ;;
3408 { echo "$as_me:$LINENO: result: unsupported" >&5
3409 echo "${ECHO_T}unsupported" >&6; } ;;
3411 CC="$CC $ac_cv_prog_cc_c89"
3412 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3413 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3430 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3431 # On Suns, sometimes $CPP names a directory.
3432 if test -n "$CPP" && test -d "$CPP"; then
3435 if test -z "$CPP"; then
3436 if test "${ac_cv_prog_CPP+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 # Double quotes because CPP needs to be expanded
3440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3443 for ac_c_preproc_warn_flag in '' yes
3445 # Use a header file that comes with gcc, so configuring glibc
3446 # with a fresh cross-compiler works.
3447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3448 # <limits.h> exists even on freestanding compilers.
3449 # On the NeXT, cc -E runs the code through the compiler's parser,
3450 # not just through cpp. "Syntax error" is here to catch this case.
3451 cat >conftest.$ac_ext <<_ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3458 # include <limits.h>
3460 # include <assert.h>
3464 if { (ac_try="$ac_cpp conftest.$ac_ext"
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3472 grep -v '^ *+' conftest.er1 >conftest.err
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev/null; then
3477 if test -s conftest.err; then
3478 ac_cpp_err=$ac_c_preproc_warn_flag
3479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486 if test -z "$ac_cpp_err"; then
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3492 # Broken: fails on valid input.
3496 rm -f conftest.err conftest.$ac_ext
3498 # OK, works on sane cases. Now check whether nonexistent headers
3499 # can be detected and how.
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #include <ac_nonexistent.h>
3508 if { (ac_try="$ac_cpp conftest.$ac_ext"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3516 grep -v '^ *+' conftest.er1 >conftest.err
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } >/dev/null; then
3521 if test -s conftest.err; then
3522 ac_cpp_err=$ac_c_preproc_warn_flag
3523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3530 if test -z "$ac_cpp_err"; then
3531 # Broken: success on invalid input.
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3537 # Passes both tests.
3542 rm -f conftest.err conftest.$ac_ext
3545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546 rm -f conftest.err conftest.$ac_ext
3547 if $ac_preproc_ok; then
3559 { echo "$as_me:$LINENO: result: $CPP" >&5
3560 echo "${ECHO_T}$CPP" >&6; }
3562 for ac_c_preproc_warn_flag in '' yes
3564 # Use a header file that comes with gcc, so configuring glibc
3565 # with a fresh cross-compiler works.
3566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3567 # <limits.h> exists even on freestanding compilers.
3568 # On the NeXT, cc -E runs the code through the compiler's parser,
3569 # not just through cpp. "Syntax error" is here to catch this case.
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3577 # include <limits.h>
3579 # include <assert.h>
3583 if { (ac_try="$ac_cpp conftest.$ac_ext"
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3591 grep -v '^ *+' conftest.er1 >conftest.err
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } >/dev/null; then
3596 if test -s conftest.err; then
3597 ac_cpp_err=$ac_c_preproc_warn_flag
3598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605 if test -z "$ac_cpp_err"; then
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 # Broken: fails on valid input.
3615 rm -f conftest.err conftest.$ac_ext
3617 # OK, works on sane cases. Now check whether nonexistent headers
3618 # can be detected and how.
3619 cat >conftest.$ac_ext <<_ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3625 #include <ac_nonexistent.h>
3627 if { (ac_try="$ac_cpp conftest.$ac_ext"
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3635 grep -v '^ *+' conftest.er1 >conftest.err
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } >/dev/null; then
3640 if test -s conftest.err; then
3641 ac_cpp_err=$ac_c_preproc_warn_flag
3642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3649 if test -z "$ac_cpp_err"; then
3650 # Broken: success on invalid input.
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3656 # Passes both tests.
3661 rm -f conftest.err conftest.$ac_ext
3664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3665 rm -f conftest.err conftest.$ac_ext
3666 if $ac_preproc_ok; then
3669 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3670 See \`config.log' for more details." >&5
3671 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3672 See \`config.log' for more details." >&2;}
3673 { (exit 1); exit 1; }; }
3677 ac_cpp='$CPP $CPPFLAGS'
3678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3684 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3685 if test "${ac_cv_path_GREP+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 # Extract the first word of "grep ggrep" to use in msg output
3689 if test -z "$GREP"; then
3690 set dummy grep ggrep; ac_prog_name=$2
3691 if test "${ac_cv_path_GREP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 ac_path_GREP_found=false
3695 # Loop through the user's path and test for each of PROGNAME-LIST
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3700 test -z "$as_dir" && as_dir=.
3701 for ac_prog in grep ggrep; do
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3704 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3705 # Check for GNU ac_path_GREP and select it if it is found.
3706 # Check for GNU $ac_path_GREP
3707 case `"$ac_path_GREP" --version 2>&1` in
3709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3712 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3715 cat "conftest.in" "conftest.in" >"conftest.tmp"
3716 mv "conftest.tmp" "conftest.in"
3717 cp "conftest.in" "conftest.nl"
3718 echo 'GREP' >> "conftest.nl"
3719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3721 ac_count=`expr $ac_count + 1`
3722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3723 # Best one so far, save it but keep looking for a better one
3724 ac_cv_path_GREP="$ac_path_GREP"
3725 ac_path_GREP_max=$ac_count
3727 # 10*(2^10) chars as input seems more than enough
3728 test $ac_count -gt 10 && break
3730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734 $ac_path_GREP_found && break 3
3744 GREP="$ac_cv_path_GREP"
3745 if test -z "$GREP"; then
3746 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3747 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3748 { (exit 1); exit 1; }; }
3752 ac_cv_path_GREP=$GREP
3757 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3758 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3759 GREP="$ac_cv_path_GREP"
3762 { echo "$as_me:$LINENO: checking for egrep" >&5
3763 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3764 if test "${ac_cv_path_EGREP+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3768 then ac_cv_path_EGREP="$GREP -E"
3770 # Extract the first word of "egrep" to use in msg output
3771 if test -z "$EGREP"; then
3772 set dummy egrep; ac_prog_name=$2
3773 if test "${ac_cv_path_EGREP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 ac_path_EGREP_found=false
3777 # Loop through the user's path and test for each of PROGNAME-LIST
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3782 test -z "$as_dir" && as_dir=.
3783 for ac_prog in egrep; do
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3786 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3787 # Check for GNU ac_path_EGREP and select it if it is found.
3788 # Check for GNU $ac_path_EGREP
3789 case `"$ac_path_EGREP" --version 2>&1` in
3791 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3794 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3797 cat "conftest.in" "conftest.in" >"conftest.tmp"
3798 mv "conftest.tmp" "conftest.in"
3799 cp "conftest.in" "conftest.nl"
3800 echo 'EGREP' >> "conftest.nl"
3801 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3803 ac_count=`expr $ac_count + 1`
3804 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3805 # Best one so far, save it but keep looking for a better one
3806 ac_cv_path_EGREP="$ac_path_EGREP"
3807 ac_path_EGREP_max=$ac_count
3809 # 10*(2^10) chars as input seems more than enough
3810 test $ac_count -gt 10 && break
3812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3816 $ac_path_EGREP_found && break 3
3826 EGREP="$ac_cv_path_EGREP"
3827 if test -z "$EGREP"; then
3828 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3829 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3830 { (exit 1); exit 1; }; }
3834 ac_cv_path_EGREP=$EGREP
3840 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3841 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3842 EGREP="$ac_cv_path_EGREP"
3845 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3846 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3847 if test "${ac_cv_header_stdc+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3869 rm -f conftest.$ac_objext
3870 if { (ac_try="$ac_compile"
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_compile") 2>conftest.er1
3878 grep -v '^ *+' conftest.er1 >conftest.err
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } &&
3883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3884 { (case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_try") 2>&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899 (eval "$ac_try") 2>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 ac_cv_header_stdc=yes
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 ac_cv_header_stdc=no
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 if test $ac_cv_header_stdc = yes; then
3914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925 $EGREP "memchr" >/dev/null 2>&1; then
3928 ac_cv_header_stdc=no
3934 if test $ac_cv_header_stdc = yes; then
3935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3936 cat >conftest.$ac_ext <<_ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946 $EGREP "free" >/dev/null 2>&1; then
3949 ac_cv_header_stdc=no
3955 if test $ac_cv_header_stdc = yes; then
3956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3957 if test "$cross_compiling" = yes; then
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3968 #if ((' ' & 0x0FF) == 0x020)
3969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3972 # define ISLOWER(c) \
3973 (('a' <= (c) && (c) <= 'i') \
3974 || ('j' <= (c) && (c) <= 'r') \
3975 || ('s' <= (c) && (c) <= 'z'))
3976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3984 for (i = 0; i < 256; i++)
3985 if (XOR (islower (i), ISLOWER (i))
3986 || toupper (i) != TOUPPER (i))
3991 rm -f conftest$ac_exeext
3992 if { (ac_try="$ac_link"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_link") 2>&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4002 { (case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_try") 2>&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4013 echo "$as_me: program exited with status $ac_status" >&5
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4018 ac_cv_header_stdc=no
4020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4026 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4027 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4028 if test $ac_cv_header_stdc = yes; then
4030 cat >>confdefs.h <<\_ACEOF
4031 #define STDC_HEADERS 1
4036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4046 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4047 inttypes.h stdint.h unistd.h
4049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 cat >conftest.$ac_ext <<_ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 $ac_includes_default
4063 #include <$ac_header>
4065 rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_compile") 2>conftest.er1
4074 grep -v '^ *+' conftest.er1 >conftest.err
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080 { (case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_try") 2>&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095 (eval "$ac_try") 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 eval "$as_ac_Header=yes"
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 eval "$as_ac_Header=no"
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_res=`eval echo '${'$as_ac_Header'}'`
4110 { echo "$as_me:$LINENO: result: $ac_res" >&5
4111 echo "${ECHO_T}$ac_res" >&6; }
4112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4113 cat >>confdefs.h <<_ACEOF
4114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4123 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4124 if test "${ac_cv_c_bigendian+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 # See if sys/param.h defines the BYTE_ORDER macro.
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #include <sys/types.h>
4135 #include <sys/param.h>
4140 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4148 rm -f conftest.$ac_objext
4149 if { (ac_try="$ac_compile"
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_compile") 2>conftest.er1
4157 grep -v '^ *+' conftest.er1 >conftest.err
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4182 # It does; now see whether it defined to BIG_ENDIAN or not.
4183 cat >conftest.$ac_ext <<_ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 #include <sys/types.h>
4190 #include <sys/param.h>
4195 #if BYTE_ORDER != BIG_ENDIAN
4203 rm -f conftest.$ac_objext
4204 if { (ac_try="$ac_compile"
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4212 grep -v '^ *+' conftest.er1 >conftest.err
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_try") 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; } &&
4227 { ac_try='test -s conftest.$ac_objext'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 ac_cv_c_bigendian=yes
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 ac_cv_c_bigendian=no
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 # It does not; compile a test program.
4251 if test "$cross_compiling" = yes; then
4252 # try to guess the endianness by grepping values into an object file
4253 ac_cv_c_bigendian=unknown
4254 cat >conftest.$ac_ext <<_ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4261 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4262 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4263 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4264 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4265 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4269 _ascii (); _ebcdic ();
4274 rm -f conftest.$ac_objext
4275 if { (ac_try="$ac_compile"
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_compile") 2>conftest.er1
4283 grep -v '^ *+' conftest.er1 >conftest.err
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4289 { (case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_try") 2>&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_try") 2>&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4309 ac_cv_c_bigendian=yes
4311 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4312 if test "$ac_cv_c_bigendian" = unknown; then
4313 ac_cv_c_bigendian=no
4315 # finding both strings is unlikely to happen, but who knows?
4316 ac_cv_c_bigendian=unknown
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 $ac_includes_default
4339 /* Are we little or big endian? From Harbison&Steele. */
4343 char c[sizeof (long int)];
4346 return u.c[sizeof (long int) - 1] == 1;
4352 rm -f conftest$ac_exeext
4353 if { (ac_try="$ac_link"
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_link") 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 ac_cv_c_bigendian=no
4374 echo "$as_me: program exited with status $ac_status" >&5
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4379 ac_cv_c_bigendian=yes
4381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4390 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4391 case $ac_cv_c_bigendian in
4399 { { echo "$as_me:$LINENO: error: unknown endianness
4400 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4401 echo "$as_me: error: unknown endianness
4402 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4403 { (exit 1); exit 1; }; } ;;
4407 if test "$cross_compiling" = yes; then
4408 LLVM_CROSS_COMPILING=1
4411 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4412 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4413 if test "${ac_cv_build_exeext+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4417 ac_cv_build_exeext=.exe
4419 ac_build_prefix=${build_alias}-
4421 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4422 set dummy ${ac_build_prefix}gcc; ac_word=$2
4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 BUILD_CC=$ac_cv_prog_BUILD_CC
4449 if test -n "$BUILD_CC"; then
4450 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451 echo "${ECHO_T}$BUILD_CC" >&6; }
4453 { echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6; }
4458 if test -z "$BUILD_CC"; then
4459 # Extract the first word of "gcc", so it can be a program name with args.
4460 set dummy gcc; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 if test -n "$BUILD_CC"; then
4467 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 ac_cv_prog_BUILD_CC="gcc"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 BUILD_CC=$ac_cv_prog_BUILD_CC
4487 if test -n "$BUILD_CC"; then
4488 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4489 echo "${ECHO_T}$BUILD_CC" >&6; }
4491 { echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6; }
4496 if test -z "$BUILD_CC"; then
4497 # Extract the first word of "cc", so it can be a program name with args.
4498 set dummy cc; ac_word=$2
4499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4501 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 if test -n "$BUILD_CC"; then
4505 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 test -z "$as_dir" && as_dir=.
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4516 ac_prog_rejected=yes
4519 ac_cv_prog_BUILD_CC="cc"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 if test $ac_prog_rejected = yes; then
4528 # We found a bogon in the path, so make sure we never use it.
4529 set dummy $ac_cv_prog_BUILD_CC
4531 if test $# != 0; then
4532 # We chose a different compiler from the bogus one.
4533 # However, it has the same basename, so the bogon will be chosen
4534 # first if we set BUILD_CC to just the basename; use the full file name.
4536 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4541 BUILD_CC=$ac_cv_prog_BUILD_CC
4542 if test -n "$BUILD_CC"; then
4543 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4544 echo "${ECHO_T}$BUILD_CC" >&6; }
4546 { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4553 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4554 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4555 { (exit 1); exit 1; }; }
4556 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4558 echo 'int main () { return 0; }' > conftest.$ac_ext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4561 (eval $ac_build_link) 2>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; then
4565 for file in conftest.*; do
4567 *.c | *.o | *.obj | *.dSYM) ;;
4568 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4572 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4573 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4574 { (exit 1); exit 1; }; }
4577 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4582 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4583 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4584 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4585 ac_build_exeext=$BUILD_EXEEXT
4587 ac_build_prefix=${build_alias}-
4588 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4589 set dummy ${ac_build_prefix}g++; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616 if test -n "$BUILD_CXX"; then
4617 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618 echo "${ECHO_T}$BUILD_CXX" >&6; }
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4625 if test -z "$BUILD_CXX"; then
4626 # Extract the first word of "g++", so it can be a program name with args.
4627 set dummy g++; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$BUILD_CXX"; then
4634 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4643 ac_cv_prog_BUILD_CXX="g++"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4654 if test -n "$BUILD_CXX"; then
4655 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4656 echo "${ECHO_T}$BUILD_CXX" >&6; }
4658 { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4663 if test -z "$BUILD_CXX"; then
4664 # Extract the first word of "c++", so it can be a program name with args.
4665 set dummy c++; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 if test -n "$BUILD_CXX"; then
4672 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4683 ac_prog_rejected=yes
4686 ac_cv_prog_BUILD_CXX="c++"
4687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 if test $ac_prog_rejected = yes; then
4695 # We found a bogon in the path, so make sure we never use it.
4696 set dummy $ac_cv_prog_BUILD_CXX
4698 if test $# != 0; then
4699 # We chose a different compiler from the bogus one.
4700 # However, it has the same basename, so the bogon will be chosen
4701 # first if we set BUILD_CXX to just the basename; use the full file name.
4703 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4708 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4709 if test -n "$BUILD_CXX"; then
4710 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4711 echo "${ECHO_T}$BUILD_CXX" >&6; }
4713 { echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6; }
4721 LLVM_CROSS_COMPILING=0
4725 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4736 # Check whether --enable-optimized was given.
4737 if test "${enable_optimized+set}" = set; then
4738 enableval=$enable_optimized;
4743 if test ${enableval} = "no" ; then
4747 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4751 # Check whether --enable-profiling was given.
4752 if test "${enable_profiling+set}" = set; then
4753 enableval=$enable_profiling;
4758 if test ${enableval} = "no" ; then
4762 ENABLE_PROFILING=ENABLE_PROFILING=1
4766 # Check whether --enable-assertions was given.
4767 if test "${enable_assertions+set}" = set; then
4768 enableval=$enable_assertions;
4773 if test ${enableval} = "yes" ; then
4777 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4781 # Check whether --enable-expensive-checks was given.
4782 if test "${enable_expensive_checks+set}" = set; then
4783 enableval=$enable_expensive_checks;
4788 if test ${enableval} = "yes" ; then
4789 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4791 EXPENSIVE_CHECKS=yes
4794 ENABLE_EXPENSIVE_CHECKS=
4800 # Check whether --enable-debug-runtime was given.
4801 if test "${enable_debug_runtime+set}" = set; then
4802 enableval=$enable_debug_runtime;
4807 if test ${enableval} = "no" ; then
4811 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4815 # Check whether --enable-debug-symbols was given.
4816 if test "${enable_debug_symbols+set}" = set; then
4817 enableval=$enable_debug_symbols;
4822 if test ${enableval} = "no" ; then
4826 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4830 # Check whether --enable-jit was given.
4831 if test "${enable_jit+set}" = set; then
4832 enableval=$enable_jit;
4837 if test ${enableval} = "no"
4842 case "$llvm_cv_target_arch" in
4843 x86) TARGET_HAS_JIT=1
4845 Sparc) TARGET_HAS_JIT=0
4847 PowerPC) TARGET_HAS_JIT=1
4849 x86_64) TARGET_HAS_JIT=1
4851 Alpha) TARGET_HAS_JIT=1
4853 ARM) TARGET_HAS_JIT=1
4855 Mips) TARGET_HAS_JIT=0
4857 XCore) TARGET_HAS_JIT=0
4859 MSP430) TARGET_HAS_JIT=0
4861 SystemZ) TARGET_HAS_JIT=0
4863 Blackfin) TARGET_HAS_JIT=0
4865 MBlaze) TARGET_HAS_JIT=0
4867 PTX) TARGET_HAS_JIT=0
4874 # Check whether --enable-doxygen was given.
4875 if test "${enable_doxygen+set}" = set; then
4876 enableval=$enable_doxygen;
4881 case "$enableval" in
4882 yes) ENABLE_DOXYGEN=1
4884 no) ENABLE_DOXYGEN=0
4886 default) ENABLE_DOXYGEN=0
4888 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4889 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4890 { (exit 1); exit 1; }; } ;;
4893 # Check whether --enable-threads was given.
4894 if test "${enable_threads+set}" = set; then
4895 enableval=$enable_threads;
4900 case "$enableval" in
4901 yes) ENABLE_THREADS=1
4903 no) ENABLE_THREADS=0
4905 default) ENABLE_THREADS=1
4907 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4908 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4909 { (exit 1); exit 1; }; } ;;
4912 cat >>confdefs.h <<_ACEOF
4913 #define ENABLE_THREADS $ENABLE_THREADS
4917 # Check whether --enable-pic was given.
4918 if test "${enable_pic+set}" = set; then
4919 enableval=$enable_pic;
4924 case "$enableval" in
4929 default) ENABLE_PIC=1
4931 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4932 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4933 { (exit 1); exit 1; }; } ;;
4936 cat >>confdefs.h <<_ACEOF
4937 #define ENABLE_PIC $ENABLE_PIC
4941 # Check whether --enable-shared was given.
4942 if test "${enable_shared+set}" = set; then
4943 enableval=$enable_shared;
4948 case "$enableval" in
4949 yes) ENABLE_SHARED=1
4953 default) ENABLE_SHARED=0
4955 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4956 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4957 { (exit 1); exit 1; }; } ;;
4960 # Check whether --enable-timestamps was given.
4961 if test "${enable_timestamps+set}" = set; then
4962 enableval=$enable_timestamps;
4967 case "$enableval" in
4968 yes) ENABLE_TIMESTAMPS=1
4970 no) ENABLE_TIMESTAMPS=0
4972 default) ENABLE_TIMESTAMPS=1
4974 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4975 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4976 { (exit 1); exit 1; }; } ;;
4979 cat >>confdefs.h <<_ACEOF
4980 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4985 # Check whether --enable-targets was given.
4986 if test "${enable_targets+set}" = set; then
4987 enableval=$enable_targets;
4992 if test "$enableval" = host-only ; then
4995 case "$enableval" in
4996 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4997 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4999 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5000 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5001 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5002 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5003 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5004 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5005 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5006 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5007 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5008 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5009 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5010 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5011 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5012 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5013 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5014 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5015 host) case "$llvm_cv_target_arch" in
5016 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5017 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5018 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5019 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5020 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5021 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5022 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5023 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5024 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5025 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5026 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5027 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5028 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5029 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5030 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5031 echo "$as_me: error: Can not set target to build" >&2;}
5032 { (exit 1); exit 1; }; } ;;
5034 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5035 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5036 { (exit 1); exit 1; }; } ;;
5041 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5044 # Determine whether we are building LLVM support for the native architecture.
5045 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5046 for a_target in $TARGETS_TO_BUILD; do
5047 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5049 cat >>confdefs.h <<_ACEOF
5050 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5053 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5054 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5055 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5057 cat >>confdefs.h <<_ACEOF
5058 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5062 cat >>confdefs.h <<_ACEOF
5063 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5067 cat >>confdefs.h <<_ACEOF
5068 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5074 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5075 # target feature def files.
5076 LLVM_ENUM_TARGETS=""
5077 LLVM_ENUM_ASM_PRINTERS=""
5078 LLVM_ENUM_ASM_PARSERS=""
5079 LLVM_ENUM_DISASSEMBLERS=""
5080 for target_to_build in $TARGETS_TO_BUILD; do
5081 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5082 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5083 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5085 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5086 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5087 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5089 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5090 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5092 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5093 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5101 # Check whether --enable-cbe-printf-a was given.
5102 if test "${enable_cbe_printf_a+set}" = set; then
5103 enableval=$enable_cbe_printf_a;
5108 case "$enableval" in
5109 yes) ENABLE_CBE_PRINTF_A=1
5111 no) ENABLE_CBE_PRINTF_A=0
5113 default) ENABLE_CBE_PRINTF_A=1
5115 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5116 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5117 { (exit 1); exit 1; }; } ;;
5120 cat >>confdefs.h <<_ACEOF
5121 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5126 # Check whether --with-llvmgccdir was given.
5127 if test "${with_llvmgccdir+set}" = set; then
5128 withval=$with_llvmgccdir;
5134 default) WITH_LLVMGCCDIR=default ;;
5135 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5136 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5137 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5138 { (exit 1); exit 1; }; } ;;
5142 # Check whether --with-llvmgcc was given.
5143 if test "${with_llvmgcc+set}" = set; then
5144 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5150 # Check whether --with-llvmgxx was given.
5151 if test "${with_llvmgxx+set}" = set; then
5152 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5157 if test -n "$LLVMGCC"; then
5158 LLVMGCCCOMMAND="$LLVMGCC"
5161 if test -n "$LLVMGXX"; then
5162 LLVMGXXCOMMAND="$LLVMGXX"
5165 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5166 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5167 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5168 { (exit 1); exit 1; }; };
5171 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5172 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5173 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5174 { (exit 1); exit 1; }; };
5178 # Check whether --with-clang was given.
5179 if test "${with_clang+set}" = set; then
5180 withval=$with_clang;
5187 # Check whether --with-built-clang was given.
5188 if test "${with_built_clang+set}" = set; then
5189 withval=$with_built_clang;
5191 with_built_clang=check
5195 { echo "$as_me:$LINENO: checking clang compiler" >&5
5196 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5199 if test "$with_clang" != "default"; then
5200 WITH_CLANGPATH="$with_clang"
5201 if ! test -x "$WITH_CLANGPATH"; then
5202 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5203 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5204 { (exit 1); exit 1; }; }
5206 elif test "$with_built_clang" = "yes"; then
5208 elif test "$with_built_clang" = "no"; then
5211 if test "$with_built_clang" != "check"; then
5212 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5213 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5214 { (exit 1); exit 1; }; }
5217 if test -f ${srcdir}/tools/clang/README.txt; then
5222 if ! test -z "$WITH_CLANGPATH"; then
5223 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5224 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5225 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5226 elif test "$WITH_BUILT_CLANG" = "1"; then
5227 { echo "$as_me:$LINENO: result: built" >&5
5228 echo "${ECHO_T}built" >&6; }
5230 { echo "$as_me:$LINENO: result: none" >&5
5231 echo "${ECHO_T}none" >&6; }
5233 CLANGPATH=$WITH_CLANGPATH
5235 CLANGXXPATH=$WITH_CLANGXXPATH
5237 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5241 # Check whether --with-optimize-option was given.
5242 if test "${with_optimize_option+set}" = set; then
5243 withval=$with_optimize_option;
5248 { echo "$as_me:$LINENO: checking optimization flags" >&5
5249 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5252 case "$llvm_cv_os_type" in
5253 FreeBSD) optimize_option=-O2 ;;
5254 MingW) optimize_option=-O2 ;;
5255 *) optimize_option=-O3 ;;
5257 *) optimize_option="$withval" ;;
5259 OPTIMIZE_OPTION=$optimize_option
5261 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5262 echo "${ECHO_T}$optimize_option" >&6; }
5265 # Check whether --with-extra-options was given.
5266 if test "${with_extra_options+set}" = set; then
5267 withval=$with_extra_options;
5273 default) EXTRA_OPTIONS= ;;
5274 *) EXTRA_OPTIONS=$withval ;;
5276 EXTRA_OPTIONS=$EXTRA_OPTIONS
5279 # Check whether --enable-bindings was given.
5280 if test "${enable_bindings+set}" = set; then
5281 enableval=$enable_bindings;
5286 BINDINGS_TO_BUILD=""
5287 case "$enableval" in
5288 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5289 all ) BINDINGS_TO_BUILD="ocaml" ;;
5290 none | no) BINDINGS_TO_BUILD="" ;;
5291 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5292 case "$a_binding" in
5293 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5294 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5295 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5303 # Check whether --with-ocaml-libdir was given.
5304 if test "${with_ocaml_libdir+set}" = set; then
5305 withval=$with_ocaml_libdir;
5311 auto) with_ocaml_libdir="$withval" ;;
5312 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5313 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5314 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5315 { (exit 1); exit 1; }; } ;;
5319 # Check whether --with-clang-resource-dir was given.
5320 if test "${with_clang_resource_dir+set}" = set; then
5321 withval=$with_clang_resource_dir;
5327 cat >>confdefs.h <<_ACEOF
5328 #define CLANG_RESOURCE_DIR "$withval"
5333 # Check whether --with-c-include-dirs was given.
5334 if test "${with_c_include_dirs+set}" = set; then
5335 withval=$with_c_include_dirs;
5341 cat >>confdefs.h <<_ACEOF
5342 #define C_INCLUDE_DIRS "$withval"
5347 # Check whether --with-cxx-include-root was given.
5348 if test "${with_cxx_include_root+set}" = set; then
5349 withval=$with_cxx_include_root;
5355 cat >>confdefs.h <<_ACEOF
5356 #define CXX_INCLUDE_ROOT "$withval"
5361 # Check whether --with-cxx-include-arch was given.
5362 if test "${with_cxx_include_arch+set}" = set; then
5363 withval=$with_cxx_include_arch;
5369 cat >>confdefs.h <<_ACEOF
5370 #define CXX_INCLUDE_ARCH "$withval"
5375 # Check whether --with-cxx-include-32bit-dir was given.
5376 if test "${with_cxx_include_32bit_dir+set}" = set; then
5377 withval=$with_cxx_include_32bit_dir;
5383 cat >>confdefs.h <<_ACEOF
5384 #define CXX_INCLUDE_32BIT_DIR "$withval"
5389 # Check whether --with-cxx-include-64bit-dir was given.
5390 if test "${with_cxx_include_64bit_dir+set}" = set; then
5391 withval=$with_cxx_include_64bit_dir;
5397 cat >>confdefs.h <<_ACEOF
5398 #define CXX_INCLUDE_64BIT_DIR "$withval"
5403 # Check whether --with-binutils-include was given.
5404 if test "${with_binutils_include+set}" = set; then
5405 withval=$with_binutils_include;
5411 default) WITH_BINUTILS_INCDIR=default ;;
5412 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5413 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5414 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5415 { (exit 1); exit 1; }; } ;;
5417 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5418 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5420 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5421 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5422 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5423 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5424 { (exit 1); exit 1; }; };
5428 # Check whether --enable-libffi was given.
5429 if test "${enable_libffi+set}" = set; then
5430 enableval=$enable_libffi; case "$enableval" in
5431 yes) llvm_cv_enable_libffi="yes" ;;
5432 no) llvm_cv_enable_libffi="no" ;;
5433 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5434 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5435 { (exit 1); exit 1; }; } ;;
5438 llvm_cv_enable_libffi=no
5444 ac_cpp='$CPP $CPPFLAGS'
5445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5449 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5450 # On Suns, sometimes $CPP names a directory.
5451 if test -n "$CPP" && test -d "$CPP"; then
5454 if test -z "$CPP"; then
5455 if test "${ac_cv_prog_CPP+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 # Double quotes because CPP needs to be expanded
5459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5462 for ac_c_preproc_warn_flag in '' yes
5464 # Use a header file that comes with gcc, so configuring glibc
5465 # with a fresh cross-compiler works.
5466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5467 # <limits.h> exists even on freestanding compilers.
5468 # On the NeXT, cc -E runs the code through the compiler's parser,
5469 # not just through cpp. "Syntax error" is here to catch this case.
5470 cat >conftest.$ac_ext <<_ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5477 # include <limits.h>
5479 # include <assert.h>
5483 if { (ac_try="$ac_cpp conftest.$ac_ext"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null; then
5496 if test -s conftest.err; then
5497 ac_cpp_err=$ac_c_preproc_warn_flag
5498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5505 if test -z "$ac_cpp_err"; then
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5511 # Broken: fails on valid input.
5515 rm -f conftest.err conftest.$ac_ext
5517 # OK, works on sane cases. Now check whether nonexistent headers
5518 # can be detected and how.
5519 cat >conftest.$ac_ext <<_ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <ac_nonexistent.h>
5527 if { (ac_try="$ac_cpp conftest.$ac_ext"
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } >/dev/null; then
5540 if test -s conftest.err; then
5541 ac_cpp_err=$ac_c_preproc_warn_flag
5542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5549 if test -z "$ac_cpp_err"; then
5550 # Broken: success on invalid input.
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 # Passes both tests.
5561 rm -f conftest.err conftest.$ac_ext
5564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5565 rm -f conftest.err conftest.$ac_ext
5566 if $ac_preproc_ok; then
5578 { echo "$as_me:$LINENO: result: $CPP" >&5
5579 echo "${ECHO_T}$CPP" >&6; }
5581 for ac_c_preproc_warn_flag in '' yes
5583 # Use a header file that comes with gcc, so configuring glibc
5584 # with a fresh cross-compiler works.
5585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586 # <limits.h> exists even on freestanding compilers.
5587 # On the NeXT, cc -E runs the code through the compiler's parser,
5588 # not just through cpp. "Syntax error" is here to catch this case.
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5596 # include <limits.h>
5598 # include <assert.h>
5602 if { (ac_try="$ac_cpp conftest.$ac_ext"
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5610 grep -v '^ *+' conftest.er1 >conftest.err
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } >/dev/null; then
5615 if test -s conftest.err; then
5616 ac_cpp_err=$ac_c_preproc_warn_flag
5617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5624 if test -z "$ac_cpp_err"; then
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5630 # Broken: fails on valid input.
5634 rm -f conftest.err conftest.$ac_ext
5636 # OK, works on sane cases. Now check whether nonexistent headers
5637 # can be detected and how.
5638 cat >conftest.$ac_ext <<_ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 #include <ac_nonexistent.h>
5646 if { (ac_try="$ac_cpp conftest.$ac_ext"
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5654 grep -v '^ *+' conftest.er1 >conftest.err
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } >/dev/null; then
5659 if test -s conftest.err; then
5660 ac_cpp_err=$ac_c_preproc_warn_flag
5661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5668 if test -z "$ac_cpp_err"; then
5669 # Broken: success on invalid input.
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 # Passes both tests.
5680 rm -f conftest.err conftest.$ac_ext
5683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5684 rm -f conftest.err conftest.$ac_ext
5685 if $ac_preproc_ok; then
5688 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5689 See \`config.log' for more details." >&5
5690 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5691 See \`config.log' for more details." >&2;}
5692 { (exit 1); exit 1; }; }
5696 ac_cpp='$CPP $CPPFLAGS'
5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702 ac_cpp='$CPP $CPPFLAGS'
5703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706 if test -n "$ac_tool_prefix"; then
5709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5713 if test "${ac_cv_prog_CC+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 if test -n "$CC"; then
5717 ac_cv_prog_CC="$CC" # Let the user override the test.
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5726 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 if test -n "$CC"; then
5738 { echo "$as_me:$LINENO: result: $CC" >&5
5739 echo "${ECHO_T}$CC" >&6; }
5741 { echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6; }
5746 test -n "$CC" && break
5749 if test -z "$CC"; then
5753 # Extract the first word of "$ac_prog", so it can be a program name with args.
5754 set dummy $ac_prog; ac_word=$2
5755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 if test -n "$ac_ct_CC"; then
5761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_prog_ac_ct_CC="$ac_prog"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5781 if test -n "$ac_ct_CC"; then
5782 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5783 echo "${ECHO_T}$ac_ct_CC" >&6; }
5785 { echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6; }
5790 test -n "$ac_ct_CC" && break
5793 if test "x$ac_ct_CC" = x; then
5796 case $cross_compiling:$ac_tool_warned in
5798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5799 whose name does not start with the host triplet. If you think this
5800 configuration is useful to you, please write to autoconf@gnu.org." >&5
5801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5802 whose name does not start with the host triplet. If you think this
5803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5804 ac_tool_warned=yes ;;
5811 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5812 See \`config.log' for more details." >&5
5813 echo "$as_me: error: no acceptable C compiler found in \$PATH
5814 See \`config.log' for more details." >&2;}
5815 { (exit 1); exit 1; }; }
5817 # Provide some information about the compiler.
5818 echo "$as_me:$LINENO: checking for C compiler version" >&5
5819 ac_compiler=`set X $ac_compile; echo $2`
5820 { (ac_try="$ac_compiler --version >&5"
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_compiler --version >&5") 2>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }
5830 { (ac_try="$ac_compiler -v >&5"
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_compiler -v >&5") 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }
5840 { (ac_try="$ac_compiler -V >&5"
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compiler -V >&5") 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }
5851 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 cat >conftest.$ac_ext <<_ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5874 rm -f conftest.$ac_objext
5875 if { (ac_try="$ac_compile"
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5889 { (case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_try") 2>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_try") 2>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5920 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5921 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5922 GCC=`test $ac_compiler_gnu = yes && echo yes`
5923 ac_test_CFLAGS=${CFLAGS+set}
5924 ac_save_CFLAGS=$CFLAGS
5925 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5926 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5927 if test "${ac_cv_prog_cc_g+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 ac_save_c_werror_flag=$ac_c_werror_flag
5931 ac_c_werror_flag=yes
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_compile") 2>conftest.er1
5958 grep -v '^ *+' conftest.er1 >conftest.err
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5964 { (case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_try") 2>&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; } &&
5973 { ac_try='test -s conftest.$ac_objext'
5974 { (case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_try") 2>&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5989 cat >conftest.$ac_ext <<_ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
6004 rm -f conftest.$ac_objext
6005 if { (ac_try="$ac_compile"
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_compile") 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019 { (case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_try") 2>&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_try") 2>&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 ac_c_werror_flag=$ac_save_c_werror_flag
6045 cat >conftest.$ac_ext <<_ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
6069 grep -v '^ *+' conftest.er1 >conftest.err
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_try") 2>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_try") 2>&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 ac_c_werror_flag=$ac_save_c_werror_flag
6111 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6112 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6113 if test "$ac_test_CFLAGS" = set; then
6114 CFLAGS=$ac_save_CFLAGS
6115 elif test $ac_cv_prog_cc_g = yes; then
6116 if test "$GCC" = yes; then
6122 if test "$GCC" = yes; then
6128 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6129 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6130 if test "${ac_cv_prog_cc_c89+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 ac_cv_prog_cc_c89=no
6135 cat >conftest.$ac_ext <<_ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6143 #include <sys/types.h>
6144 #include <sys/stat.h>
6145 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6146 struct buf { int x; };
6147 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6148 static char *e (p, i)
6154 static char *f (char * (*g) (char **, int), char **p, ...)
6159 s = g (p, va_arg (v,int));
6164 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6165 function prototypes and stuff, but not '\xHH' hex character constants.
6166 These don't provoke an error unfortunately, instead are silently treated
6167 as 'x'. The following induces an error, until -std is added to get
6168 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6169 array size at least. It's necessary to write '\x00'==0 to get something
6170 that's true only with -std. */
6171 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6173 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6174 inside strings and character constants. */
6176 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6178 int test (int i, double x);
6179 struct s1 {int (*f) (int a);};
6180 struct s2 {int (*f) (double a);};
6181 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6187 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6192 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6193 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6195 CC="$ac_save_CC $ac_arg"
6196 rm -f conftest.$ac_objext
6197 if { (ac_try="$ac_compile"
6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200 *) ac_try_echo=$ac_try;;
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203 (eval "$ac_compile") 2>conftest.er1
6205 grep -v '^ *+' conftest.er1 >conftest.err
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6211 { (case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_try") 2>&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest.$ac_objext'
6221 { (case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_try") 2>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6230 ac_cv_prog_cc_c89=$ac_arg
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6238 rm -f core conftest.err conftest.$ac_objext
6239 test "x$ac_cv_prog_cc_c89" != "xno" && break
6241 rm -f conftest.$ac_ext
6246 case "x$ac_cv_prog_cc_c89" in
6248 { echo "$as_me:$LINENO: result: none needed" >&5
6249 echo "${ECHO_T}none needed" >&6; } ;;
6251 { echo "$as_me:$LINENO: result: unsupported" >&5
6252 echo "${ECHO_T}unsupported" >&6; } ;;
6254 CC="$CC $ac_cv_prog_cc_c89"
6255 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6256 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6261 ac_cpp='$CPP $CPPFLAGS'
6262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6267 ac_cpp='$CXXCPP $CPPFLAGS'
6268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6271 if test -z "$CXX"; then
6272 if test -n "$CCC"; then
6275 if test -n "$ac_tool_prefix"; then
6278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_prog_CXX+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 if test -n "$CXX"; then
6286 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 if test -n "$CXX"; then
6307 { echo "$as_me:$LINENO: result: $CXX" >&5
6308 echo "${ECHO_T}$CXX" >&6; }
6310 { echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6; }
6315 test -n "$CXX" && break
6318 if test -z "$CXX"; then
6322 # Extract the first word of "$ac_prog", so it can be a program name with args.
6323 set dummy $ac_prog; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 if test -n "$ac_ct_CXX"; then
6330 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_ac_ct_CXX="$ac_prog"
6340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6350 if test -n "$ac_ct_CXX"; then
6351 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6352 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6354 { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6359 test -n "$ac_ct_CXX" && break
6362 if test "x$ac_ct_CXX" = x; then
6365 case $cross_compiling:$ac_tool_warned in
6367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6368 whose name does not start with the host triplet. If you think this
6369 configuration is useful to you, please write to autoconf@gnu.org." >&5
6370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6371 whose name does not start with the host triplet. If you think this
6372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6373 ac_tool_warned=yes ;;
6381 # Provide some information about the compiler.
6382 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6383 ac_compiler=`set X $ac_compile; echo $2`
6384 { (ac_try="$ac_compiler --version >&5"
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_compiler --version >&5") 2>&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }
6394 { (ac_try="$ac_compiler -v >&5"
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_compiler -v >&5") 2>&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }
6404 { (ac_try="$ac_compiler -V >&5"
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compiler -V >&5") 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }
6415 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6416 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6417 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 cat >conftest.$ac_ext <<_ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6438 rm -f conftest.$ac_objext
6439 if { (ac_try="$ac_compile"
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_compile") 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6453 { (case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_try") 2>&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_try") 2>&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6484 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6485 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6486 GXX=`test $ac_compiler_gnu = yes && echo yes`
6487 ac_test_CXXFLAGS=${CXXFLAGS+set}
6488 ac_save_CXXFLAGS=$CXXFLAGS
6489 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6490 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_cxx_g+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6495 ac_cxx_werror_flag=yes
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6513 rm -f conftest.$ac_objext
6514 if { (ac_try="$ac_compile"
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_compile") 2>conftest.er1
6522 grep -v '^ *+' conftest.er1 >conftest.err
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6528 { (case "(($ac_try" in
6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530 *) ac_try_echo=$ac_try;;
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533 (eval "$ac_try") 2>&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest.$ac_objext'
6538 { (case "(($ac_try" in
6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_try") 2>&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 ac_cv_prog_cxx_g=yes
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6553 cat >conftest.$ac_ext <<_ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6568 rm -f conftest.$ac_objext
6569 if { (ac_try="$ac_compile"
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_compile") 2>conftest.er1
6577 grep -v '^ *+' conftest.er1 >conftest.err
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6583 { (case "(($ac_try" in
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_try") 2>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest.$ac_objext'
6593 { (case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_try") 2>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6609 cat >conftest.$ac_ext <<_ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6624 rm -f conftest.$ac_objext
6625 if { (ac_try="$ac_compile"
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_compile") 2>conftest.er1
6633 grep -v '^ *+' conftest.er1 >conftest.err
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6639 { (case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_try") 2>&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try='test -s conftest.$ac_objext'
6649 { (case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_try") 2>&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 ac_cv_prog_cxx_g=yes
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6675 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6677 if test "$ac_test_CXXFLAGS" = set; then
6678 CXXFLAGS=$ac_save_CXXFLAGS
6679 elif test $ac_cv_prog_cxx_g = yes; then
6680 if test "$GXX" = yes; then
6686 if test "$GXX" = yes; then
6693 ac_cpp='$CPP $CPPFLAGS'
6694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6699 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6700 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6701 if test "${lt_cv_path_NM+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 if test -n "$NM"; then
6705 # Let the user override the test.
6708 lt_nm_to_check="${ac_tool_prefix}nm"
6709 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6710 lt_nm_to_check="$lt_nm_to_check nm"
6712 for lt_tmp_nm in $lt_nm_to_check; do
6713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6714 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6716 test -z "$ac_dir" && ac_dir=.
6717 tmp_nm="$ac_dir/$lt_tmp_nm"
6718 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6719 # Check to see if the nm accepts a BSD-compat flag.
6720 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6721 # nm: unknown option "B" ignored
6722 # Tru64's nm complains that /dev/null is an invalid object file
6723 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6724 */dev/null* | *'Invalid file or object type'*)
6725 lt_cv_path_NM="$tmp_nm -B"
6729 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6731 lt_cv_path_NM="$tmp_nm -p"
6735 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6736 continue # so that we can try to find one that supports BSD flags
6745 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6748 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6749 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6754 { echo "$as_me:$LINENO: checking for GNU make" >&5
6755 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6756 if test "${llvm_cv_gnu_make_command+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 llvm_cv_gnu_make_command=''
6760 for a in "$MAKE" make gmake gnumake ; do
6761 if test -z "$a" ; then continue ; fi ;
6762 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6764 llvm_cv_gnu_make_command=$a ;
6769 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6770 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6771 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6775 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6776 echo "${ECHO_T}\"Not found\"" >&6; };
6780 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6781 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6783 if test "$LN_S" = "ln -s"; then
6784 { echo "$as_me:$LINENO: result: yes" >&5
6785 echo "${ECHO_T}yes" >&6; }
6787 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6788 echo "${ECHO_T}no, using $LN_S" >&6; }
6791 # Extract the first word of "cmp", so it can be a program name with args.
6792 set dummy cmp; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_path_CMP+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6823 if test -n "$CMP"; then
6824 { echo "$as_me:$LINENO: result: $CMP" >&5
6825 echo "${ECHO_T}$CMP" >&6; }
6827 { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6832 # Extract the first word of "cp", so it can be a program name with args.
6833 set dummy cp; ac_word=$2
6834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836 if test "${ac_cv_path_CP+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6864 if test -n "$CP"; then
6865 { echo "$as_me:$LINENO: result: $CP" >&5
6866 echo "${ECHO_T}$CP" >&6; }
6868 { echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6; }
6873 # Extract the first word of "date", so it can be a program name with args.
6874 set dummy date; ac_word=$2
6875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877 if test "${ac_cv_path_DATE+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6892 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6904 DATE=$ac_cv_path_DATE
6905 if test -n "$DATE"; then
6906 { echo "$as_me:$LINENO: result: $DATE" >&5
6907 echo "${ECHO_T}$DATE" >&6; }
6909 { echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6; }
6914 # Extract the first word of "find", so it can be a program name with args.
6915 set dummy find; ac_word=$2
6916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918 if test "${ac_cv_path_FIND+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6945 FIND=$ac_cv_path_FIND
6946 if test -n "$FIND"; then
6947 { echo "$as_me:$LINENO: result: $FIND" >&5
6948 echo "${ECHO_T}$FIND" >&6; }
6950 { echo "$as_me:$LINENO: result: no" >&5
6951 echo "${ECHO_T}no" >&6; }
6955 # Extract the first word of "grep", so it can be a program name with args.
6956 set dummy grep; ac_word=$2
6957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6959 if test "${ac_cv_path_GREP+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6974 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6986 GREP=$ac_cv_path_GREP
6987 if test -n "$GREP"; then
6988 { echo "$as_me:$LINENO: result: $GREP" >&5
6989 echo "${ECHO_T}$GREP" >&6; }
6991 { echo "$as_me:$LINENO: result: no" >&5
6992 echo "${ECHO_T}no" >&6; }
6996 # Extract the first word of "mkdir", so it can be a program name with args.
6997 set dummy mkdir; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_path_MKDIR+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7027 MKDIR=$ac_cv_path_MKDIR
7028 if test -n "$MKDIR"; then
7029 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7030 echo "${ECHO_T}$MKDIR" >&6; }
7032 { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7037 # Extract the first word of "mv", so it can be a program name with args.
7038 set dummy mv; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_MV+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7069 if test -n "$MV"; then
7070 { echo "$as_me:$LINENO: result: $MV" >&5
7071 echo "${ECHO_T}$MV" >&6; }
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_prog_RANLIB+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 if test -n "$RANLIB"; then
7087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 RANLIB=$ac_cv_prog_RANLIB
7107 if test -n "$RANLIB"; then
7108 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7109 echo "${ECHO_T}$RANLIB" >&6; }
7111 { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7117 if test -z "$ac_cv_prog_RANLIB"; then
7118 ac_ct_RANLIB=$RANLIB
7119 # Extract the first word of "ranlib", so it can be a program name with args.
7120 set dummy ranlib; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 if test -n "$ac_ct_RANLIB"; then
7127 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_ac_ct_RANLIB="ranlib"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7147 if test -n "$ac_ct_RANLIB"; then
7148 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7149 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7155 if test "x$ac_ct_RANLIB" = x; then
7158 case $cross_compiling:$ac_tool_warned in
7160 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7161 whose name does not start with the host triplet. If you think this
7162 configuration is useful to you, please write to autoconf@gnu.org." >&5
7163 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7164 whose name does not start with the host triplet. If you think this
7165 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7166 ac_tool_warned=yes ;;
7168 RANLIB=$ac_ct_RANLIB
7171 RANLIB="$ac_cv_prog_RANLIB"
7174 if test -n "$ac_tool_prefix"; then
7175 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7176 set dummy ${ac_tool_prefix}ar; ac_word=$2
7177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179 if test "${ac_cv_prog_AR+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 if test -n "$AR"; then
7183 ac_cv_prog_AR="$AR" # Let the user override the test.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_prog_AR="${ac_tool_prefix}ar"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 if test -n "$AR"; then
7204 { echo "$as_me:$LINENO: result: $AR" >&5
7205 echo "${ECHO_T}$AR" >&6; }
7207 { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7213 if test -z "$ac_cv_prog_AR"; then
7215 # Extract the first word of "ar", so it can be a program name with args.
7216 set dummy ar; ac_word=$2
7217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 if test -n "$ac_ct_AR"; then
7223 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_prog_ac_ct_AR="ar"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7243 if test -n "$ac_ct_AR"; then
7244 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7245 echo "${ECHO_T}$ac_ct_AR" >&6; }
7247 { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7251 if test "x$ac_ct_AR" = x; then
7254 case $cross_compiling:$ac_tool_warned in
7256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7257 whose name does not start with the host triplet. If you think this
7258 configuration is useful to you, please write to autoconf@gnu.org." >&5
7259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7260 whose name does not start with the host triplet. If you think this
7261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7262 ac_tool_warned=yes ;;
7270 # Extract the first word of "rm", so it can be a program name with args.
7271 set dummy rm; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_path_RM+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7289 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7302 if test -n "$RM"; then
7303 { echo "$as_me:$LINENO: result: $RM" >&5
7304 echo "${ECHO_T}$RM" >&6; }
7306 { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7311 # Extract the first word of "sed", so it can be a program name with args.
7312 set dummy sed; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_path_SED+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7343 if test -n "$SED"; then
7344 { echo "$as_me:$LINENO: result: $SED" >&5
7345 echo "${ECHO_T}$SED" >&6; }
7347 { echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6; }
7352 # Extract the first word of "tar", so it can be a program name with args.
7353 set dummy tar; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_TAR+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7384 if test -n "$TAR"; then
7385 { echo "$as_me:$LINENO: result: $TAR" >&5
7386 echo "${ECHO_T}$TAR" >&6; }
7388 { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7393 # Extract the first word of "pwd", so it can be a program name with args.
7394 set dummy pwd; ac_word=$2
7395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397 if test "${ac_cv_path_BINPWD+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7412 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7424 BINPWD=$ac_cv_path_BINPWD
7425 if test -n "$BINPWD"; then
7426 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7427 echo "${ECHO_T}$BINPWD" >&6; }
7429 { echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6; }
7435 # Extract the first word of "Graphviz", so it can be a program name with args.
7436 set dummy Graphviz; ac_word=$2
7437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7466 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7467 if test -n "$GRAPHVIZ"; then
7468 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7469 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7471 { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7476 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7478 cat >>confdefs.h <<\_ACEOF
7479 #define HAVE_GRAPHVIZ 1
7482 if test "$llvm_cv_os_type" = "MingW" ; then
7483 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7486 cat >>confdefs.h <<_ACEOF
7487 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7491 # Extract the first word of "dot", so it can be a program name with args.
7492 set dummy dot; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_DOT+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7523 if test -n "$DOT"; then
7524 { echo "$as_me:$LINENO: result: $DOT" >&5
7525 echo "${ECHO_T}$DOT" >&6; }
7527 { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7532 if test "$DOT" != "echo dot" ; then
7534 cat >>confdefs.h <<\_ACEOF
7538 if test "$llvm_cv_os_type" = "MingW" ; then
7539 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7542 cat >>confdefs.h <<_ACEOF
7543 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7547 # Extract the first word of "fdp", so it can be a program name with args.
7548 set dummy fdp; ac_word=$2
7549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551 if test "${ac_cv_path_FDP+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7579 if test -n "$FDP"; then
7580 { echo "$as_me:$LINENO: result: $FDP" >&5
7581 echo "${ECHO_T}$FDP" >&6; }
7583 { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7588 if test "$FDP" != "echo fdp" ; then
7590 cat >>confdefs.h <<\_ACEOF
7594 if test "$llvm_cv_os_type" = "MingW" ; then
7595 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7598 cat >>confdefs.h <<_ACEOF
7599 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7603 # Extract the first word of "neato", so it can be a program name with args.
7604 set dummy neato; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_NEATO+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7634 NEATO=$ac_cv_path_NEATO
7635 if test -n "$NEATO"; then
7636 { echo "$as_me:$LINENO: result: $NEATO" >&5
7637 echo "${ECHO_T}$NEATO" >&6; }
7639 { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7644 if test "$NEATO" != "echo neato" ; then
7646 cat >>confdefs.h <<\_ACEOF
7647 #define HAVE_NEATO 1
7650 if test "$llvm_cv_os_type" = "MingW" ; then
7651 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7654 cat >>confdefs.h <<_ACEOF
7655 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7659 # Extract the first word of "twopi", so it can be a program name with args.
7660 set dummy twopi; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_TWOPI+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7690 TWOPI=$ac_cv_path_TWOPI
7691 if test -n "$TWOPI"; then
7692 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7693 echo "${ECHO_T}$TWOPI" >&6; }
7695 { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7700 if test "$TWOPI" != "echo twopi" ; then
7702 cat >>confdefs.h <<\_ACEOF
7703 #define HAVE_TWOPI 1
7706 if test "$llvm_cv_os_type" = "MingW" ; then
7707 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7710 cat >>confdefs.h <<_ACEOF
7711 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7715 # Extract the first word of "circo", so it can be a program name with args.
7716 set dummy circo; ac_word=$2
7717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719 if test "${ac_cv_path_CIRCO+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7746 CIRCO=$ac_cv_path_CIRCO
7747 if test -n "$CIRCO"; then
7748 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7749 echo "${ECHO_T}$CIRCO" >&6; }
7751 { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7756 if test "$CIRCO" != "echo circo" ; then
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_CIRCO 1
7762 if test "$llvm_cv_os_type" = "MingW" ; then
7763 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7766 cat >>confdefs.h <<_ACEOF
7767 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7771 for ac_prog in gv gsview32
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777 if test "${ac_cv_path_GV+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 if test -n "$GV"; then
7805 { echo "$as_me:$LINENO: result: $GV" >&5
7806 echo "${ECHO_T}$GV" >&6; }
7808 { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7813 test -n "$GV" && break
7815 test -n "$GV" || GV="echo gv"
7817 if test "$GV" != "echo gv" ; then
7819 cat >>confdefs.h <<\_ACEOF
7823 if test "$llvm_cv_os_type" = "MingW" ; then
7824 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7827 cat >>confdefs.h <<_ACEOF
7828 #define LLVM_PATH_GV "$GV${EXEEXT}"
7832 # Extract the first word of "dotty", so it can be a program name with args.
7833 set dummy dotty; ac_word=$2
7834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836 if test "${ac_cv_path_DOTTY+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7851 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7863 DOTTY=$ac_cv_path_DOTTY
7864 if test -n "$DOTTY"; then
7865 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7866 echo "${ECHO_T}$DOTTY" >&6; }
7868 { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7873 if test "$DOTTY" != "echo dotty" ; then
7875 cat >>confdefs.h <<\_ACEOF
7876 #define HAVE_DOTTY 1
7879 if test "$llvm_cv_os_type" = "MingW" ; then
7880 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7883 cat >>confdefs.h <<_ACEOF
7884 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7888 # Extract the first word of "xdot.py", so it can be a program name with args.
7889 set dummy xdot.py; ac_word=$2
7890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7907 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7919 XDOT_PY=$ac_cv_path_XDOT_PY
7920 if test -n "$XDOT_PY"; then
7921 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7922 echo "${ECHO_T}$XDOT_PY" >&6; }
7924 { echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6; }
7929 if test "$XDOT_PY" != "echo xdot.py" ; then
7931 cat >>confdefs.h <<\_ACEOF
7932 #define HAVE_XDOT_PY 1
7935 if test "$llvm_cv_os_type" = "MingW" ; then
7936 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7939 cat >>confdefs.h <<_ACEOF
7940 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7946 # Extract the first word of "perl", so it can be a program name with args.
7947 set dummy perl; ac_word=$2
7948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950 if test "${ac_cv_path_PERL+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7977 PERL=$ac_cv_path_PERL
7978 if test -n "$PERL"; then
7979 { echo "$as_me:$LINENO: result: $PERL" >&5
7980 echo "${ECHO_T}$PERL" >&6; }
7982 { echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6; }
7987 if test "$PERL" != "none"; then
7988 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7989 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7990 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7991 { echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6; }
7995 { echo "$as_me:$LINENO: result: not found" >&5
7996 echo "${ECHO_T}not found" >&6; }
8001 if test x"$PERL" = xnone; then
8004 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8005 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8006 { (exit 1); exit 1; }; }
8012 # Find a good install program. We prefer a C program (faster),
8013 # so one script is as good as another. But avoid the broken or
8014 # incompatible versions:
8015 # SysV /etc/install, /usr/sbin/install
8016 # SunOS /usr/etc/install
8017 # IRIX /sbin/install
8019 # AmigaOS /C/install, which installs bootblocks on floppy discs
8020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8023 # OS/2's system install, which has a completely different semantic
8024 # ./install, which can be erroneously created by make from ./install.sh.
8025 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8026 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8027 if test -z "$INSTALL"; then
8028 if test "${ac_cv_path_install+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 test -z "$as_dir" && as_dir=.
8036 # Account for people who put trailing slashes in PATH elements.
8038 ./ | .// | /cC/* | \
8039 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8040 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8043 # OSF1 and SCO ODT 3.0 have their own names for install.
8044 # Don't use installbsd from OSF since it installs stuff as root
8046 for ac_prog in ginstall scoinst install; do
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8049 if test $ac_prog = install &&
8050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8051 # AIX install. It has an incompatible calling convention.
8053 elif test $ac_prog = install &&
8054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8055 # program-specific install script used by HP pwplus--don't use.
8058 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8071 if test "${ac_cv_path_install+set}" = set; then
8072 INSTALL=$ac_cv_path_install
8074 # As a last resort, use the slow shell script. Don't cache a
8075 # value for INSTALL within a source directory, because that will
8076 # break other packages using the cache if that directory is
8077 # removed, or if the value is a relative name.
8078 INSTALL=$ac_install_sh
8081 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8082 echo "${ECHO_T}$INSTALL" >&6; }
8084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8085 # It thinks the first close brace ends the variable substitution.
8086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8093 [\\/$]* | ?:[\\/]* ) ;;
8094 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8097 # Extract the first word of "bzip2", so it can be a program name with args.
8098 set dummy bzip2; ac_word=$2
8099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101 if test "${ac_cv_path_BZIP2+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8116 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 BZIP2=$ac_cv_path_BZIP2
8128 if test -n "$BZIP2"; then
8129 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8130 echo "${ECHO_T}$BZIP2" >&6; }
8132 { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8137 # Extract the first word of "cat", so it can be a program name with args.
8138 set dummy cat; ac_word=$2
8139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141 if test "${ac_cv_path_CAT+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 if test -n "$CAT"; then
8169 { echo "$as_me:$LINENO: result: $CAT" >&5
8170 echo "${ECHO_T}$CAT" >&6; }
8172 { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8177 # Extract the first word of "doxygen", so it can be a program name with args.
8178 set dummy doxygen; ac_word=$2
8179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8181 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8196 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 DOXYGEN=$ac_cv_path_DOXYGEN
8208 if test -n "$DOXYGEN"; then
8209 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8210 echo "${ECHO_T}$DOXYGEN" >&6; }
8212 { echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6; }
8217 # Extract the first word of "groff", so it can be a program name with args.
8218 set dummy groff; ac_word=$2
8219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221 if test "${ac_cv_path_GROFF+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8236 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 GROFF=$ac_cv_path_GROFF
8248 if test -n "$GROFF"; then
8249 { echo "$as_me:$LINENO: result: $GROFF" >&5
8250 echo "${ECHO_T}$GROFF" >&6; }
8252 { echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6; }
8257 # Extract the first word of "gzip", so it can be a program name with args.
8258 set dummy gzip; ac_word=$2
8259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8261 if test "${ac_cv_path_GZIP+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8276 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 GZIP=$ac_cv_path_GZIP
8288 if test -n "$GZIP"; then
8289 { echo "$as_me:$LINENO: result: $GZIP" >&5
8290 echo "${ECHO_T}$GZIP" >&6; }
8292 { echo "$as_me:$LINENO: result: no" >&5
8293 echo "${ECHO_T}no" >&6; }
8297 # Extract the first word of "pod2html", so it can be a program name with args.
8298 set dummy pod2html; ac_word=$2
8299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8301 if test "${ac_cv_path_POD2HTML+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8316 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 POD2HTML=$ac_cv_path_POD2HTML
8328 if test -n "$POD2HTML"; then
8329 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8330 echo "${ECHO_T}$POD2HTML" >&6; }
8332 { echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6; }
8337 # Extract the first word of "pod2man", so it can be a program name with args.
8338 set dummy pod2man; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_path_POD2MAN+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 POD2MAN=$ac_cv_path_POD2MAN
8368 if test -n "$POD2MAN"; then
8369 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8370 echo "${ECHO_T}$POD2MAN" >&6; }
8372 { echo "$as_me:$LINENO: result: no" >&5
8373 echo "${ECHO_T}no" >&6; }
8377 # Extract the first word of "pdfroff", so it can be a program name with args.
8378 set dummy pdfroff; ac_word=$2
8379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8381 if test "${ac_cv_path_PDFROFF+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 PDFROFF=$ac_cv_path_PDFROFF
8408 if test -n "$PDFROFF"; then
8409 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8410 echo "${ECHO_T}$PDFROFF" >&6; }
8412 { echo "$as_me:$LINENO: result: no" >&5
8413 echo "${ECHO_T}no" >&6; }
8417 # Extract the first word of "runtest", so it can be a program name with args.
8418 set dummy runtest; ac_word=$2
8419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8421 if test "${ac_cv_path_RUNTEST+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 test -z "$as_dir" && as_dir=.
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8436 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 RUNTEST=$ac_cv_path_RUNTEST
8448 if test -n "$RUNTEST"; then
8449 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8450 echo "${ECHO_T}$RUNTEST" >&6; }
8452 { echo "$as_me:$LINENO: result: no" >&5
8453 echo "${ECHO_T}no" >&6; }
8459 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8460 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8462 # Check whether --with-tclinclude was given.
8463 if test "${with_tclinclude+set}" = set; then
8464 withval=$with_tclinclude; with_tclinclude=${withval}
8469 if test "${ac_cv_path_tclsh+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 if test x"${with_tclinclude}" != x ; then
8474 if test -f ${with_tclinclude}/tclsh ; then
8475 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8476 elif test -f ${with_tclinclude}/src/tclsh ; then
8477 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8479 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8480 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8481 { (exit 1); exit 1; }; }
8487 if test x"${ac_cv_path_tclsh}" = x ; then
8488 { echo "$as_me:$LINENO: result: none" >&5
8489 echo "${ECHO_T}none" >&6; }
8490 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
8492 # Extract the first word of "$ac_prog", so it can be a program name with args.
8493 set dummy $ac_prog; ac_word=$2
8494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8496 if test "${ac_cv_path_TCLSH+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8511 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 TCLSH=$ac_cv_path_TCLSH
8523 if test -n "$TCLSH"; then
8524 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8525 echo "${ECHO_T}$TCLSH" >&6; }
8527 { echo "$as_me:$LINENO: result: no" >&5
8528 echo "${ECHO_T}no" >&6; }
8532 test -n "$TCLSH" && break
8535 if test x"${TCLSH}" = x ; then
8536 ac_cv_path_tclsh='';
8538 ac_cv_path_tclsh="${TCLSH}";
8541 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8542 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8543 TCLSH="${ac_cv_path_tclsh}"
8547 # Extract the first word of "zip", so it can be a program name with args.
8548 set dummy zip; ac_word=$2
8549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8551 if test "${ac_cv_path_ZIP+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 test -z "$as_dir" && as_dir=.
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8566 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 if test -n "$ZIP"; then
8579 { echo "$as_me:$LINENO: result: $ZIP" >&5
8580 echo "${ECHO_T}$ZIP" >&6; }
8582 { echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6; }
8587 for ac_prog in ocamlc
8589 # Extract the first word of "$ac_prog", so it can be a program name with args.
8590 set dummy $ac_prog; ac_word=$2
8591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8593 if test "${ac_cv_path_OCAMLC+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8608 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 OCAMLC=$ac_cv_path_OCAMLC
8620 if test -n "$OCAMLC"; then
8621 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8622 echo "${ECHO_T}$OCAMLC" >&6; }
8624 { echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6; }
8629 test -n "$OCAMLC" && break
8632 for ac_prog in ocamlopt
8634 # Extract the first word of "$ac_prog", so it can be a program name with args.
8635 set dummy $ac_prog; ac_word=$2
8636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8638 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 OCAMLOPT=$ac_cv_path_OCAMLOPT
8665 if test -n "$OCAMLOPT"; then
8666 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8667 echo "${ECHO_T}$OCAMLOPT" >&6; }
8669 { echo "$as_me:$LINENO: result: no" >&5
8670 echo "${ECHO_T}no" >&6; }
8674 test -n "$OCAMLOPT" && break
8677 for ac_prog in ocamldep
8679 # Extract the first word of "$ac_prog", so it can be a program name with args.
8680 set dummy $ac_prog; ac_word=$2
8681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8683 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8698 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 OCAMLDEP=$ac_cv_path_OCAMLDEP
8710 if test -n "$OCAMLDEP"; then
8711 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8712 echo "${ECHO_T}$OCAMLDEP" >&6; }
8714 { echo "$as_me:$LINENO: result: no" >&5
8715 echo "${ECHO_T}no" >&6; }
8719 test -n "$OCAMLDEP" && break
8722 for ac_prog in ocamldoc
8724 # Extract the first word of "$ac_prog", so it can be a program name with args.
8725 set dummy $ac_prog; ac_word=$2
8726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8728 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8743 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 OCAMLDOC=$ac_cv_path_OCAMLDOC
8755 if test -n "$OCAMLDOC"; then
8756 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8757 echo "${ECHO_T}$OCAMLDOC" >&6; }
8759 { echo "$as_me:$LINENO: result: no" >&5
8760 echo "${ECHO_T}no" >&6; }
8764 test -n "$OCAMLDOC" && break
8767 for ac_prog in gas as
8769 # Extract the first word of "$ac_prog", so it can be a program name with args.
8770 set dummy $ac_prog; ac_word=$2
8771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8773 if test "${ac_cv_path_GAS+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 test -z "$as_dir" && as_dir=.
8786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8788 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8800 if test -n "$GAS"; then
8801 { echo "$as_me:$LINENO: result: $GAS" >&5
8802 echo "${ECHO_T}$GAS" >&6; }
8804 { echo "$as_me:$LINENO: result: no" >&5
8805 echo "${ECHO_T}no" >&6; }
8809 test -n "$GAS" && break
8813 { echo "$as_me:$LINENO: checking for linker version" >&5
8814 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8815 if test "${llvm_cv_link_version+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 version_string="$(ld -v 2>&1 | head -1)"
8822 if (echo "$version_string" | grep -q "ld64"); then
8823 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8825 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8829 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8830 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8832 cat >>confdefs.h <<_ACEOF
8833 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8838 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8839 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8840 if test "${llvm_cv_link_use_r+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 ac_cpp='$CPP $CPPFLAGS'
8845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8850 CFLAGS="$CFLAGS -Wl,-R."
8851 cat >conftest.$ac_ext <<_ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (ac_try="$ac_link"
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873 (eval "$ac_link") 2>conftest.er1
8875 grep -v '^ *+' conftest.er1 >conftest.err
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8881 { (case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_try") 2>&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; } &&
8890 { ac_try='test -s conftest$ac_exeext'
8891 { (case "(($ac_try" in
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896 (eval "$ac_try") 2>&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 llvm_cv_link_use_r=yes
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8905 llvm_cv_link_use_r=no
8908 rm -f core conftest.err conftest.$ac_objext \
8909 conftest$ac_exeext conftest.$ac_ext
8912 ac_cpp='$CPP $CPPFLAGS'
8913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8919 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8920 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8921 if test "$llvm_cv_link_use_r" = yes ; then
8923 cat >>confdefs.h <<\_ACEOF
8924 #define HAVE_LINK_R 1
8930 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8931 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8932 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 ac_cpp='$CPP $CPPFLAGS'
8937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8942 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8943 cat >conftest.$ac_ext <<_ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8958 rm -f conftest.$ac_objext conftest$ac_exeext
8959 if { (ac_try="$ac_link"
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_link") 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973 { (case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 llvm_cv_link_use_export_dynamic=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 llvm_cv_link_use_export_dynamic=no
9000 rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9004 ac_cpp='$CPP $CPPFLAGS'
9005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9011 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9012 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9013 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_LINK_EXPORT_DYNAMIC 1
9022 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9023 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9024 if test "${llvm_cv_link_use_version_script+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 ac_cpp='$CPP $CPPFLAGS'
9029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9035 # The following code is from the autoconf manual,
9036 # "11.13: Limitations of Usual Tools".
9037 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9038 # Use mktemp if possible; otherwise fall back on mkdir,
9039 # with $RANDOM to make collisions less likely.
9043 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9045 test -n "$tmp" && test -d "$tmp"
9047 tmp=$TMPDIR/foo$$-$RANDOM
9048 (umask 077 && mkdir "$tmp")
9051 echo "{" > "$tmp/export.map"
9052 echo " global: main;" >> "$tmp/export.map"
9053 echo " local: *;" >> "$tmp/export.map"
9054 echo "};" >> "$tmp/export.map"
9056 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9057 cat >conftest.$ac_ext <<_ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (ac_try="$ac_link"
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_link") 2>conftest.er1
9081 grep -v '^ *+' conftest.er1 >conftest.err
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } &&
9086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9087 { (case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_try") 2>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest$ac_exeext'
9097 { (case "(($ac_try" in
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_try") 2>&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
9106 llvm_cv_link_use_version_script=yes
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9111 llvm_cv_link_use_version_script=no
9114 rm -f core conftest.err conftest.$ac_objext \
9115 conftest$ac_exeext conftest.$ac_ext
9116 rm "$tmp/export.map"
9120 ac_cpp='$CPP $CPPFLAGS'
9121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9127 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9128 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9129 if test "$llvm_cv_link_use_version_script" = yes ; then
9130 HAVE_LINK_VERSION_SCRIPT=1
9137 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9138 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9139 if test "${ac_cv_c_const+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 cat >conftest.$ac_ext <<_ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h. */
9152 /* FIXME: Include the comments suggested by Paul. */
9154 /* Ultrix mips cc rejects this. */
9155 typedef int charset[2];
9157 /* SunOS 4.1.1 cc rejects this. */
9158 char const *const *ccp;
9160 /* NEC SVR4.0.2 mips cc rejects this. */
9161 struct point {int x, y;};
9162 static struct point const zero = {0,0};
9163 /* AIX XL C 1.02.0.0 rejects this.
9164 It does not let you subtract one const X* pointer from another in
9165 an arm of an if-expression whose if-part is not a constant
9167 const char *g = "string";
9168 ccp = &g + (g ? g-g : 0);
9169 /* HPUX 7.0 cc rejects these. */
9172 ccp = (char const *const *) p;
9173 { /* SCO 3.2v4 cc rejects this. */
9175 char const *s = 0 ? (char *) 0 : (char const *) 0;
9180 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9182 const int *foo = &x[0];
9185 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9186 typedef const int *iptr;
9190 { /* AIX XL C 1.02.0.0 rejects this saying
9191 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9192 struct s { int j; const int *ap[3]; };
9193 struct s *b; b->j = 5;
9195 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9199 return !x[0] && !zero.x;
9206 rm -f conftest.$ac_objext
9207 if { (ac_try="$ac_compile"
9209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210 *) ac_try_echo=$ac_try;;
9212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 (eval "$ac_compile") 2>conftest.er1
9215 grep -v '^ *+' conftest.er1 >conftest.err
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221 { (case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_try") 2>&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest.$ac_objext'
9231 { (case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_try") 2>&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9250 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9251 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9252 if test $ac_cv_c_const = no; then
9254 cat >>confdefs.h <<\_ACEOF
9266 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9267 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9268 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9269 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 cat >conftest.$ac_ext <<_ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 #include <sys/types.h>
9291 rm -f conftest.$ac_objext
9292 if { (ac_try="$ac_compile"
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_compile") 2>conftest.er1
9300 grep -v '^ *+' conftest.er1 >conftest.err
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9306 { (case "(($ac_try" in
9307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308 *) ac_try_echo=$ac_try;;
9310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9311 (eval "$ac_try") 2>&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try='test -s conftest.$ac_objext'
9316 { (case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_try") 2>&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 eval "$as_ac_Header=yes"
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 eval "$as_ac_Header=no"
9333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9335 ac_res=`eval echo '${'$as_ac_Header'}'`
9336 { echo "$as_me:$LINENO: result: $ac_res" >&5
9337 echo "${ECHO_T}$ac_res" >&6; }
9338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9339 cat >>confdefs.h <<_ACEOF
9340 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9343 ac_header_dirent=$ac_hdr; break
9347 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9348 if test $ac_header_dirent = dirent.h; then
9349 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9350 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9351 if test "${ac_cv_search_opendir+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 ac_func_search_save_LIBS=$LIBS
9355 cat >conftest.$ac_ext <<_ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9362 /* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
9377 for ac_lib in '' dir; do
9378 if test -z "$ac_lib"; then
9379 ac_res="none required"
9382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9384 rm -f conftest.$ac_objext conftest$ac_exeext
9385 if { (ac_try="$ac_link"
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_link") 2>conftest.er1
9393 grep -v '^ *+' conftest.er1 >conftest.err
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9399 { (case "(($ac_try" in
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_try") 2>&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (case "(($ac_try" in
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 (eval "$ac_try") 2>&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_cv_search_opendir=$ac_res
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9426 rm -f core conftest.err conftest.$ac_objext \
9428 if test "${ac_cv_search_opendir+set}" = set; then
9432 if test "${ac_cv_search_opendir+set}" = set; then
9435 ac_cv_search_opendir=no
9438 LIBS=$ac_func_search_save_LIBS
9440 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9441 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9442 ac_res=$ac_cv_search_opendir
9443 if test "$ac_res" != no; then
9444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9449 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9450 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9451 if test "${ac_cv_search_opendir+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 ac_func_search_save_LIBS=$LIBS
9455 cat >conftest.$ac_ext <<_ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9462 /* Override any GCC internal prototype to avoid an error.
9463 Use char because int might match the return type of a GCC
9464 builtin and then its argument prototype would still apply. */
9477 for ac_lib in '' x; do
9478 if test -z "$ac_lib"; then
9479 ac_res="none required"
9482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9484 rm -f conftest.$ac_objext conftest$ac_exeext
9485 if { (ac_try="$ac_link"
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_link") 2>conftest.er1
9493 grep -v '^ *+' conftest.er1 >conftest.err
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9499 { (case "(($ac_try" in
9500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504 (eval "$ac_try") 2>&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_try") 2>&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_cv_search_opendir=$ac_res
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9526 rm -f core conftest.err conftest.$ac_objext \
9528 if test "${ac_cv_search_opendir+set}" = set; then
9532 if test "${ac_cv_search_opendir+set}" = set; then
9535 ac_cv_search_opendir=no
9538 LIBS=$ac_func_search_save_LIBS
9540 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9541 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9542 ac_res=$ac_cv_search_opendir
9543 if test "$ac_res" != no; then
9544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9551 for ac_header in dlfcn.h
9553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 ac_res=`eval echo '${'$as_ac_Header'}'`
9561 { echo "$as_me:$LINENO: result: $ac_res" >&5
9562 echo "${ECHO_T}$ac_res" >&6; }
9564 # Is the header compilable?
9565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 $ac_includes_default
9574 #include <$ac_header>
9576 rm -f conftest.$ac_objext
9577 if { (ac_try="$ac_compile"
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583 (eval "$ac_compile") 2>conftest.er1
9585 grep -v '^ *+' conftest.er1 >conftest.err
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9591 { (case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_try") 2>&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (case "(($ac_try" in
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_try") 2>&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 ac_header_compiler=yes
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 ac_header_compiler=no
9618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9620 echo "${ECHO_T}$ac_header_compiler" >&6; }
9622 # Is the header present?
9623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9625 cat >conftest.$ac_ext <<_ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9631 #include <$ac_header>
9633 if { (ac_try="$ac_cpp conftest.$ac_ext"
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9641 grep -v '^ *+' conftest.er1 >conftest.err
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } >/dev/null; then
9646 if test -s conftest.err; then
9647 ac_cpp_err=$ac_c_preproc_warn_flag
9648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9655 if test -z "$ac_cpp_err"; then
9656 ac_header_preproc=yes
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9661 ac_header_preproc=no
9664 rm -f conftest.err conftest.$ac_ext
9665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9666 echo "${ECHO_T}$ac_header_preproc" >&6; }
9668 # So? What about this header?
9669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9675 ac_header_preproc=yes
9678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9691 ## ----------------------------------- ##
9692 ## Report this to llvmbugs@cs.uiuc.edu ##
9693 ## ----------------------------------- ##
9695 ) | sed "s/^/$as_me: WARNING: /" >&2
9698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 eval "$as_ac_Header=\$ac_header_preproc"
9705 ac_res=`eval echo '${'$as_ac_Header'}'`
9706 { echo "$as_me:$LINENO: result: $ac_res" >&5
9707 echo "${ECHO_T}$ac_res" >&6; }
9710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9711 cat >>confdefs.h <<_ACEOF
9712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9719 # Check whether --enable-ltdl-install was given.
9720 if test "${enable_ltdl_install+set}" = set; then
9721 enableval=$enable_ltdl_install;
9727 if test x"${enable_ltdl_install-no}" != xno; then
9729 INSTALL_LTDL_FALSE='#'
9731 INSTALL_LTDL_TRUE='#'
9737 if test x"${enable_ltdl_convenience-no}" != xno; then
9738 CONVENIENCE_LTDL_TRUE=
9739 CONVENIENCE_LTDL_FALSE='#'
9741 CONVENIENCE_LTDL_TRUE='#'
9742 CONVENIENCE_LTDL_FALSE=
9746 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9747 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9749 libname_spec='lib$name'
9757 shlibpath_overrides_runpath=unknown
9759 dynamic_linker="$host_os ld.so"
9760 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9761 if test "$GCC" = yes; then
9762 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9763 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9764 # if the path contains ";" then we assume it to be the separator
9765 # otherwise default to the standard path separator (i.e. ":") - it is
9766 # assumed that no part of a normal pathname contains ";" but that should
9767 # okay in the real world where ";" in dirpaths is itself problematic.
9768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9773 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9775 need_lib_prefix=unknown
9776 hardcode_into_libs=no
9778 # when you set need_version to no, make sure it does not cause -set_version
9779 # flags to be left without arguments
9780 need_version=unknown
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9786 shlibpath_var=LIBPATH
9788 # AIX 3 has no versioning support, so we append a major version to the name.
9789 soname_spec='${libname}${release}${shared_ext}$major'
9796 hardcode_into_libs=yes
9797 if test "$host_cpu" = ia64; then
9798 # AIX 5 supports IA64
9799 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9800 shlibpath_var=LD_LIBRARY_PATH
9802 # With GCC up to 2.95.x, collect2 would create an import file
9803 # for dependence libraries. The import file would start with
9804 # the line `#! .'. This would cause the generated library to
9805 # depend on `.', always an invalid library. This was fixed in
9806 # development snapshots of GCC prior to 3.0.
9808 aix4 | aix4.[01] | aix4.[01].*)
9809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9811 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9819 # soname into executable. Probably we can add versioning support to
9820 # collect2, so additional links can be useful in future.
9821 if test "$aix_use_runtimelinking" = yes; then
9822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9823 # instead of lib<name>.a to let people know that these are not
9824 # typical AIX shared libraries.
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9827 # We preserve .a as extension for shared libraries through AIX4.2
9828 # and later when we are not doing run time linking.
9829 library_names_spec='${libname}${release}.a $libname.a'
9830 soname_spec='${libname}${release}${shared_ext}$major'
9832 shlibpath_var=LIBPATH
9837 library_names_spec='$libname.ixlibrary $libname.a'
9838 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9839 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'
9843 library_names_spec='${libname}${shared_ext}'
9844 dynamic_linker="$host_os ld.so"
9845 shlibpath_var=LIBRARY_PATH
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9857 # the default ld.so.conf also contains /usr/contrib/lib and
9858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9859 # libtool to hard-code these into programs
9862 cygwin* | mingw* | pw32*)
9863 version_type=windows
9868 case $GCC,$host_os in
9869 yes,cygwin* | yes,mingw* | yes,pw32*)
9870 library_names_spec='$libname.dll.a'
9871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9872 postinstall_cmds='base_file=`basename \${file}`~
9873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9874 dldir=$destdir/`dirname \$dlpath`~
9875 test -d \$dldir || mkdir -p \$dldir~
9876 $install_prog $dir/$dlname \$dldir/$dlname~
9877 chmod a+x \$dldir/$dlname'
9878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9879 dlpath=$dir/\$dldll~
9881 shlibpath_overrides_runpath=yes
9885 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9887 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9890 # MinGW DLLs use traditional 'lib' prefix
9891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9893 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9894 # It is most probably a Windows format PATH printed by
9895 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9896 # path with ; separators, and with drive letters. We can handle the
9897 # drive letters (cygwin fileutils understands them), so leave them,
9898 # especially as we might pass files found there to a mingw objdump,
9899 # which wouldn't understand a cygwinified path. Ahh.
9900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9906 # pw32 DLLs use 'pw' prefix rather than 'lib'
9907 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9916 dynamic_linker='Win32 ld.exe'
9917 # FIXME: first we should search . and the directory the executable is in
9921 darwin* | rhapsody*)
9922 dynamic_linker="$host_os dyld"
9926 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9927 soname_spec='${libname}${release}${major}$shared_ext'
9928 shlibpath_overrides_runpath=yes
9929 shlibpath_var=DYLD_LIBRARY_PATH
9930 shrext_cmds='.dylib'
9931 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9932 if test "$GCC" = yes; then
9933 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"`
9935 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 shlibpath_overrides_runpath=no
9961 hardcode_into_libs=yes
9962 dynamic_linker='GNU ld.so'
9965 freebsd* | dragonfly*)
9966 # DragonFly does not have aout. When/if they implement a new
9967 # versioning mechanism, adjust this.
9968 if test -x /usr/bin/objformat; then
9969 objformat=`/usr/bin/objformat`
9972 freebsd[123]*) objformat=aout ;;
9976 version_type=freebsd-$objformat
9977 case $version_type in
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9988 shlibpath_var=LD_LIBRARY_PATH
9991 shlibpath_overrides_runpath=yes
9993 freebsd3.[01]* | freebsdelf3.[01]*)
9994 shlibpath_overrides_runpath=yes
9995 hardcode_into_libs=yes
9997 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9998 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9999 shlibpath_overrides_runpath=no
10000 hardcode_into_libs=yes
10002 freebsd*) # from 4.6 on
10003 shlibpath_overrides_runpath=yes
10004 hardcode_into_libs=yes
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 shlibpath_var=LD_LIBRARY_PATH
10016 hardcode_into_libs=yes
10019 hpux9* | hpux10* | hpux11*)
10020 # Give a soname corresponding to the major version so that dld.sl refuses to
10021 # link against other versions.
10028 hardcode_into_libs=yes
10029 dynamic_linker="$host_os dld.so"
10030 shlibpath_var=LD_LIBRARY_PATH
10031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033 soname_spec='${libname}${release}${shared_ext}$major'
10034 if test "X$HPUX_IA64_MODE" = X32; then
10035 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10037 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10043 hardcode_into_libs=yes
10044 dynamic_linker="$host_os dld.sl"
10045 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10054 dynamic_linker="$host_os dld.sl"
10055 shlibpath_var=SHLIB_PATH
10056 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10061 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10062 postinstall_cmds='chmod 555 $lib'
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=no
10074 hardcode_into_libs=yes
10077 irix5* | irix6* | nonstopux*)
10079 nonstopux*) version_type=nonstopux ;;
10081 if test "$lt_cv_prog_gnu_ld" = yes; then
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10092 irix5* | nonstopux*)
10093 libsuff= shlibsuff=
10096 case $LD in # libtool.m4 will add one of these switches to LD
10097 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10098 libsuff= shlibsuff= libmagic=32-bit;;
10099 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10100 libsuff=32 shlibsuff=N32 libmagic=N32;;
10101 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10102 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10103 *) libsuff= shlibsuff= libmagic=never-match;;
10107 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10108 shlibpath_overrides_runpath=no
10109 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10110 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10111 hardcode_into_libs=yes
10114 # No shared lib support for Linux oldld, aout, or coff.
10115 linux*oldld* | linux*aout* | linux*coff*)
10119 # This must be Linux ELF.
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 shlibpath_overrides_runpath=no
10129 # This implies no fast_install, which is unacceptable.
10130 # Some rework will be needed to allow for fast_install
10131 # before this can be enabled.
10132 hardcode_into_libs=yes
10134 # Append ld.so.conf contents to the search path
10135 if test -f /etc/ld.so.conf; then
10136 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' ' '`
10137 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10140 # We used to test for /lib/ld.so.1 and disable shared libraries on
10141 # powerpc, because MkLinux only supported shared libraries with the
10142 # GNU dynamic linker. Since this was broken with cross compilers,
10143 # most powerpc-linux boxes support dynamic linking these days and
10144 # people can always --disable-shared, the test was removed, and we
10145 # assume the GNU/Linux dynamic linker is in use.
10146 dynamic_linker='GNU/Linux ld.so'
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=no
10157 hardcode_into_libs=yes
10158 dynamic_linker='GNU ld.so'
10165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10168 dynamic_linker='NetBSD (a.out) ld.so'
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 dynamic_linker='NetBSD ld.elf_so'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=yes
10176 hardcode_into_libs=yes
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=yes
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 shlibpath_overrides_runpath=yes
10198 sys_lib_dlsearch_path_spec="/usr/lib"
10200 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10202 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10203 *) need_version=no ;;
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10210 openbsd2.[89] | openbsd2.[89].*)
10211 shlibpath_overrides_runpath=no
10214 shlibpath_overrides_runpath=yes
10218 shlibpath_overrides_runpath=yes
10223 libname_spec='$name'
10226 library_names_spec='$libname${shared_ext} $libname.a'
10227 dynamic_linker='OS/2 ld.exe'
10228 shlibpath_var=LIBPATH
10231 osf3* | osf4* | osf5*)
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=yes
10250 hardcode_into_libs=yes
10251 # ldd complains unless libraries are executable
10252 postinstall_cmds='chmod +x $lib'
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes
10261 if test "$with_gnu_ld" = yes; then
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 case $host_vendor in
10274 shlibpath_overrides_runpath=no
10276 export_dynamic_flag_spec='${wl}-Blargedynsym'
10277 runpath_var=LD_RUN_PATH
10285 shlibpath_overrides_runpath=no
10286 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10292 if test -d /usr/nec ;then
10294 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10295 soname_spec='$libname${shared_ext}.$major'
10296 shlibpath_var=LD_LIBRARY_PATH
10300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10301 version_type=freebsd-elf
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 hardcode_into_libs=yes
10308 if test "$with_gnu_ld" = yes; then
10309 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10310 shlibpath_overrides_runpath=no
10312 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10313 shlibpath_overrides_runpath=yes
10316 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10320 sys_lib_dlsearch_path_spec='/usr/lib'
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 shlibpath_var=LD_LIBRARY_PATH
10334 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10335 echo "${ECHO_T}$dynamic_linker" >&6; }
10336 test "$dynamic_linker" = no && can_build_shared=no
10338 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10339 if test "$GCC" = yes; then
10340 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10344 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10345 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10346 if test "${libltdl_cv_shlibext+set}" = set; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 eval libltdl_cv_shlibext=$shrext_cmds
10354 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10355 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10356 if test -n "$libltdl_cv_shlibext"; then
10358 cat >>confdefs.h <<_ACEOF
10359 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10365 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10366 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10367 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 libltdl_cv_shlibpath_var="$shlibpath_var"
10372 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10373 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10374 if test -n "$libltdl_cv_shlibpath_var"; then
10376 cat >>confdefs.h <<_ACEOF
10377 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10383 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10384 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10385 if test "${libltdl_cv_sys_search_path+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10390 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10391 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10392 if test -n "$libltdl_cv_sys_search_path"; then
10394 for dir in $libltdl_cv_sys_search_path; do
10395 if test -z "$sys_search_path"; then
10396 sys_search_path="$dir"
10398 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10402 cat >>confdefs.h <<_ACEOF
10403 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10408 { echo "$as_me:$LINENO: checking for objdir" >&5
10409 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10410 if test "${libltdl_cv_objdir+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 libltdl_cv_objdir="$objdir"
10414 if test -n "$objdir"; then
10417 rm -f .libs 2>/dev/null
10418 mkdir .libs 2>/dev/null
10419 if test -d .libs; then
10420 libltdl_cv_objdir=.libs
10422 # MS-DOS does not allow filenames that begin with a dot.
10423 libltdl_cv_objdir=_libs
10425 rmdir .libs 2>/dev/null
10429 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10430 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10432 cat >>confdefs.h <<_ACEOF
10433 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10441 # Check for command to grab the raw symbol name followed by C symbol from nm.
10442 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10443 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10444 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 # These are sane defaults that work on at least a few old systems.
10449 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10451 # Character class describing NM global symbol codes.
10452 symcode='[BCDEGRST]'
10454 # Regexp to match symbols that can be accessed directly from C.
10455 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10457 # Transform an extracted symbol line into a proper C declaration
10458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10460 # Transform an extracted symbol line into symbol name and symbol address
10461 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'"
10463 # Define system-specific variables.
10468 cygwin* | mingw* | pw32*)
10469 symcode='[ABCDGISTW]'
10471 hpux*) # Its linker distinguishes data from code symbols
10472 if test "$host_cpu" = ia64; then
10473 symcode='[ABCDEGRST]'
10475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10476 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'"
10479 if test "$host_cpu" = ia64; then
10480 symcode='[ABCDGIRSTW]'
10481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10482 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'"
10485 irix* | nonstopux*)
10486 symcode='[BCDEGRST]'
10489 symcode='[BCDEGQRST]'
10500 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10508 # Handle CRLF in mingw tool chain
10512 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10516 # If we're using GNU nm, then use its standard symbol codes.
10517 case `$NM -V 2>&1` in
10518 *GNU* | *'with BFD'*)
10519 symcode='[ABCDGIRSTW]' ;;
10522 # Try without a prefix undercore, then with it.
10523 for ac_symprfx in "" "_"; do
10525 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10526 symxfrm="\\1 $ac_symprfx\\2 \\2"
10528 # Write the raw and C identifiers.
10529 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10531 # Check to see that the pipe works correctly.
10535 cat > conftest.$ac_ext <<EOF
10540 void nm_test_func(){}
10544 int main(){nm_test_var='a';nm_test_func();return(0);}
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548 (eval $ac_compile) 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; then
10552 # Now try to grab the symbols.
10554 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10555 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && test -s "$nlist"; then
10559 # Try sorting and uniquifying the output.
10560 if sort "$nlist" | uniq > "$nlist"T; then
10561 mv -f "$nlist"T "$nlist"
10566 # Make sure that we snagged all the symbols we need.
10567 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10568 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10569 cat <<EOF > conftest.$ac_ext
10575 # Now generate the symbol file.
10576 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10578 cat <<EOF >> conftest.$ac_ext
10579 #if defined (__STDC__) && __STDC__
10580 # define lt_ptr_t void *
10582 # define lt_ptr_t char *
10586 /* The mapping between symbol names and symbols. */
10591 lt_preloaded_symbols[] =
10594 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10595 cat <<\EOF >> conftest.$ac_ext
10603 # Now try linking the two files.
10604 mv conftest.$ac_objext conftstm.$ac_objext
10605 lt_save_LIBS="$LIBS"
10606 lt_save_CFLAGS="$CFLAGS"
10607 LIBS="conftstm.$ac_objext"
10608 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610 (eval $ac_link) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10616 LIBS="$lt_save_LIBS"
10617 CFLAGS="$lt_save_CFLAGS"
10619 echo "cannot find nm_test_func in $nlist" >&5
10622 echo "cannot find nm_test_var in $nlist" >&5
10625 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10628 echo "$progname: failed program was:" >&5
10629 cat conftest.$ac_ext >&5
10631 rm -f conftest* conftst*
10633 # Do not use the global_symbol_pipe unless it works.
10634 if test "$pipe_works" = yes; then
10637 lt_cv_sys_global_symbol_pipe=
10643 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10644 lt_cv_sys_global_symbol_to_cdecl=
10646 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10647 { echo "$as_me:$LINENO: result: failed" >&5
10648 echo "${ECHO_T}failed" >&6; }
10650 { echo "$as_me:$LINENO: result: ok" >&5
10651 echo "${ECHO_T}ok" >&6; }
10655 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10656 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10657 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10661 libltdl_cv_preloaded_symbols=yes
10663 libltdl_cv_preloaded_symbols=no
10667 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10668 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10669 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_PRELOADED_SYMBOLS 1
10680 ac_cpp='$CPP $CPPFLAGS'
10681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10686 { echo "$as_me:$LINENO: checking for shl_load" >&5
10687 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10688 if test "${ac_cv_func_shl_load+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10699 #define shl_load innocuous_shl_load
10701 /* System header to define __stub macros and hopefully few prototypes,
10702 which can conflict with char shl_load (); below.
10703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704 <limits.h> exists even on freestanding compilers. */
10707 # include <limits.h>
10709 # include <assert.h>
10714 /* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
10721 /* The GNU C library defines this for functions which it implements
10722 to always fail with ENOSYS. Some functions are actually named
10723 something starting with __ and the normal name is an alias. */
10724 #if defined __stub_shl_load || defined __stub___shl_load
10731 return shl_load ();
10736 rm -f conftest.$ac_objext conftest$ac_exeext
10737 if { (ac_try="$ac_link"
10738 case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_link") 2>conftest.er1
10745 grep -v '^ *+' conftest.er1 >conftest.err
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751 { (case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_try") 2>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; } &&
10760 { ac_try='test -s conftest$ac_exeext'
10761 { (case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_try") 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_cv_func_shl_load=yes
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_func_shl_load=no
10778 rm -f core conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10781 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10782 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10783 if test $ac_cv_func_shl_load = yes; then
10785 cat >>confdefs.h <<\_ACEOF
10786 #define HAVE_SHL_LOAD 1
10790 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10791 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10792 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 ac_check_lib_save_LIBS=$LIBS
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10804 /* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10814 return shl_load ();
10819 rm -f conftest.$ac_objext conftest$ac_exeext
10820 if { (ac_try="$ac_link"
10821 case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_link") 2>conftest.er1
10828 grep -v '^ *+' conftest.er1 >conftest.err
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
10833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10834 { (case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_try") 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; } &&
10843 { ac_try='test -s conftest$ac_exeext'
10844 { (case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_try") 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10853 ac_cv_lib_dld_shl_load=yes
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10858 ac_cv_lib_dld_shl_load=no
10861 rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10863 LIBS=$ac_check_lib_save_LIBS
10865 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10866 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10867 if test $ac_cv_lib_dld_shl_load = yes; then
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_SHL_LOAD 1
10873 LIBADD_DL="$LIBADD_DL -ldld"
10875 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10876 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10877 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 ac_check_lib_save_LIBS=$LIBS
10882 cat >conftest.$ac_ext <<_ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10889 /* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
10904 rm -f conftest.$ac_objext conftest$ac_exeext
10905 if { (ac_try="$ac_link"
10906 case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_link") 2>conftest.er1
10913 grep -v '^ *+' conftest.er1 >conftest.err
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10919 { (case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_try") 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 ac_cv_lib_dl_dlopen=yes
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 ac_cv_lib_dl_dlopen=no
10946 rm -f core conftest.err conftest.$ac_objext \
10947 conftest$ac_exeext conftest.$ac_ext
10948 LIBS=$ac_check_lib_save_LIBS
10950 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10951 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10952 if test $ac_cv_lib_dl_dlopen = yes; then
10954 cat >>confdefs.h <<\_ACEOF
10955 #define HAVE_LIBDL 1
10958 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10960 cat >conftest.$ac_ext <<_ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10967 # include <dlfcn.h>
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (ac_try="$ac_link"
10980 case "(($ac_try" in
10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985 (eval "$ac_link") 2>conftest.er1
10987 grep -v '^ *+' conftest.er1 >conftest.err
10989 cat conftest.err >&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10993 { (case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_try") 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; } &&
11002 { ac_try='test -s conftest$ac_exeext'
11003 { (case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_try") 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; }; then
11013 cat >>confdefs.h <<\_ACEOF
11014 #define HAVE_LIBDL 1
11016 libltdl_cv_func_dlopen="yes"
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11022 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11023 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-lsvld $LIBS"
11028 cat >conftest.$ac_ext <<_ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11035 /* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (ac_try="$ac_link"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_link") 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11065 { (case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_try") 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; } &&
11074 { ac_try='test -s conftest$ac_exeext'
11075 { (case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_try") 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; }; then
11084 ac_cv_lib_svld_dlopen=yes
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 ac_cv_lib_svld_dlopen=no
11092 rm -f core conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11096 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11097 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11098 if test $ac_cv_lib_svld_dlopen = yes; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define HAVE_LIBDL 1
11104 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11106 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11107 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11108 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 ac_check_lib_save_LIBS=$LIBS
11113 cat >conftest.$ac_ext <<_ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11120 /* Override any GCC internal prototype to avoid an error.
11121 Use char because int might match the return type of a GCC
11122 builtin and then its argument prototype would still apply. */
11130 return dld_link ();
11135 rm -f conftest.$ac_objext conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_link") 2>conftest.er1
11144 grep -v '^ *+' conftest.er1 >conftest.err
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest$ac_exeext'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 ac_cv_lib_dld_dld_link=yes
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ac_cv_lib_dld_dld_link=no
11177 rm -f core conftest.err conftest.$ac_objext \
11178 conftest$ac_exeext conftest.$ac_ext
11179 LIBS=$ac_check_lib_save_LIBS
11181 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11182 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11183 if test $ac_cv_lib_dld_dld_link = yes; then
11185 cat >>confdefs.h <<\_ACEOF
11189 LIBADD_DL="$LIBADD_DL -ldld"
11191 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11192 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11193 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 cat >conftest.$ac_ext <<_ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11204 #define _dyld_func_lookup innocuous__dyld_func_lookup
11206 /* System header to define __stub macros and hopefully few prototypes,
11207 which can conflict with char _dyld_func_lookup (); below.
11208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11209 <limits.h> exists even on freestanding compilers. */
11212 # include <limits.h>
11214 # include <assert.h>
11217 #undef _dyld_func_lookup
11219 /* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
11225 char _dyld_func_lookup ();
11226 /* The GNU C library defines this for functions which it implements
11227 to always fail with ENOSYS. Some functions are actually named
11228 something starting with __ and the normal name is an alias. */
11229 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11236 return _dyld_func_lookup ();
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (ac_try="$ac_link"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_link") 2>conftest.er1
11250 grep -v '^ *+' conftest.er1 >conftest.err
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } &&
11255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11256 { (case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_try") 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest$ac_exeext'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 ac_cv_func__dyld_func_lookup=yes
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ac_cv_func__dyld_func_lookup=no
11283 rm -f core conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11286 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11287 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11288 if test $ac_cv_func__dyld_func_lookup = yes; then
11290 cat >>confdefs.h <<\_ACEOF
11291 #define HAVE_DYLD 1
11305 rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11317 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11319 lt_save_LIBS="$LIBS"
11320 LIBS="$LIBS $LIBADD_DL"
11322 for ac_func in dlerror
11324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 cat >conftest.$ac_ext <<_ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11338 #define $ac_func innocuous_$ac_func
11340 /* System header to define __stub macros and hopefully few prototypes,
11341 which can conflict with char $ac_func (); below.
11342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11343 <limits.h> exists even on freestanding compilers. */
11346 # include <limits.h>
11348 # include <assert.h>
11353 /* Override any GCC internal prototype to avoid an error.
11354 Use char because int might match the return type of a GCC
11355 builtin and then its argument prototype would still apply. */
11360 /* The GNU C library defines this for functions which it implements
11361 to always fail with ENOSYS. Some functions are actually named
11362 something starting with __ and the normal name is an alias. */
11363 #if defined __stub_$ac_func || defined __stub___$ac_func
11370 return $ac_func ();
11375 rm -f conftest.$ac_objext conftest$ac_exeext
11376 if { (ac_try="$ac_link"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_link") 2>conftest.er1
11384 grep -v '^ *+' conftest.er1 >conftest.err
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390 { (case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_try") 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest$ac_exeext'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 eval "$as_ac_var=yes"
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 eval "$as_ac_var=no"
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11420 ac_res=`eval echo '${'$as_ac_var'}'`
11421 { echo "$as_me:$LINENO: result: $ac_res" >&5
11422 echo "${ECHO_T}$ac_res" >&6; }
11423 if test `eval echo '${'$as_ac_var'}'` = yes; then
11424 cat >>confdefs.h <<_ACEOF
11425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11431 LIBS="$lt_save_LIBS"
11434 ac_cpp='$CPP $CPPFLAGS'
11435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11441 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11442 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11443 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 ac_cv_sys_symbol_underscore=no
11447 cat > conftest.$ac_ext <<EOF
11448 void nm_test_func(){}
11449 int main(){nm_test_func;return 0;}
11451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452 (eval $ac_compile) 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; then
11456 # Now try to grab the symbols.
11457 ac_nlist=conftest.nm
11458 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11459 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && test -s "$ac_nlist"; then
11463 # See whether the symbols have a leading underscore.
11464 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11465 ac_cv_sys_symbol_underscore=yes
11467 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11470 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11474 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11477 echo "configure: failed program was:" >&5
11483 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11484 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11487 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11488 if test x"$libltdl_cv_func_dlopen" = xyes ||
11489 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11490 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11491 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11492 if test "${libltdl_cv_need_uscore+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 libltdl_cv_need_uscore=unknown
11497 LIBS="$LIBS $LIBADD_DL"
11498 if test "$cross_compiling" = yes; then :
11499 libltdl_cv_need_uscore=cross
11501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11502 lt_status=$lt_dlunknown
11503 cat > conftest.$ac_ext <<EOF
11504 #line 11504 "configure"
11505 #include "confdefs.h"
11514 # define LT_DLGLOBAL RTLD_GLOBAL
11517 # define LT_DLGLOBAL DL_GLOBAL
11519 # define LT_DLGLOBAL 0
11523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11524 find out it does not work in some platform. */
11525 #ifndef LT_DLLAZY_OR_NOW
11527 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11530 # define LT_DLLAZY_OR_NOW DL_LAZY
11533 # define LT_DLLAZY_OR_NOW RTLD_NOW
11536 # define LT_DLLAZY_OR_NOW DL_NOW
11538 # define LT_DLLAZY_OR_NOW 0
11546 extern "C" void exit (int);
11549 void fnord() { int i=42;}
11552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11553 int status = $lt_dlunknown;
11557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11559 /* dlclose (self); */
11567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11568 (eval $ac_link) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11572 (./conftest; exit; ) >&5 2>/dev/null
11574 case x$lt_status in
11575 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11576 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11577 x$lt_dlunknown|x*) ;;
11580 # compilation failed
11589 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11590 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11594 if test x"$libltdl_cv_need_uscore" = xyes; then
11596 cat >>confdefs.h <<\_ACEOF
11597 #define NEED_USCORE 1
11603 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11604 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11605 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 # PORTME does your system automatically load deplibs for dlopen?
11609 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11610 # For now, we just catch OSes we know something about -- in the
11611 # future, we'll try test this programmatically.
11612 libltdl_cv_sys_dlopen_deplibs=unknown
11614 aix3*|aix4.1.*|aix4.2.*)
11615 # Unknown whether this is true for these versions of AIX, but
11616 # we want this `case' here to explicitly catch those versions.
11617 libltdl_cv_sys_dlopen_deplibs=unknown
11620 libltdl_cv_sys_dlopen_deplibs=yes
11623 # Assuming the user has installed a libdl from somewhere, this is true
11624 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11625 libltdl_cv_sys_dlopen_deplibs=yes
11627 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11628 # GNU and its variants, using gnu ld.so (Glibc)
11629 libltdl_cv_sys_dlopen_deplibs=yes
11632 libltdl_cv_sys_dlopen_deplibs=yes
11635 libltdl_cv_sys_dlopen_deplibs=yes
11637 irix[12345]*|irix6.[01]*)
11638 # Catch all versions of IRIX before 6.2, and indicate that we don't
11639 # know how it worked for any of those versions.
11640 libltdl_cv_sys_dlopen_deplibs=unknown
11643 # The case above catches anything before 6.2, and it's known that
11644 # at 6.2 and later dlopen does load deplibs.
11645 libltdl_cv_sys_dlopen_deplibs=yes
11648 libltdl_cv_sys_dlopen_deplibs=yes
11651 libltdl_cv_sys_dlopen_deplibs=yes
11654 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11655 # it did *not* use an RPATH in a shared library to find objects the
11656 # library depends on, so we explictly say `no'.
11657 libltdl_cv_sys_dlopen_deplibs=no
11659 osf5.0|osf5.0a|osf5.1)
11660 # dlopen *does* load deplibs and with the right loader patch applied
11661 # it even uses RPATH in a shared library to search for shared objects
11662 # that the library depends on, but there's no easy way to know if that
11663 # patch is installed. Since this is the case, all we can really
11664 # say is unknown -- it depends on the patch being installed. If
11665 # it is, this changes to `yes'. Without it, it would be `no'.
11666 libltdl_cv_sys_dlopen_deplibs=unknown
11669 # the two cases above should catch all versions of osf <= 5.1. Read
11670 # the comments above for what we know about them.
11671 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11672 # is used to find them so we can finally say `yes'.
11673 libltdl_cv_sys_dlopen_deplibs=yes
11676 libltdl_cv_sys_dlopen_deplibs=yes
11678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11679 libltdl_cv_sys_dlopen_deplibs=yes
11684 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11685 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11686 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11688 cat >>confdefs.h <<\_ACEOF
11689 #define LTDL_DLOPEN_DEPLIBS 1
11695 for ac_header in argz.h
11697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 ac_res=`eval echo '${'$as_ac_Header'}'`
11705 { echo "$as_me:$LINENO: result: $ac_res" >&5
11706 echo "${ECHO_T}$ac_res" >&6; }
11708 # Is the header compilable?
11709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 $ac_includes_default
11718 #include <$ac_header>
11720 rm -f conftest.$ac_objext
11721 if { (ac_try="$ac_compile"
11722 case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_compile") 2>conftest.er1
11729 grep -v '^ *+' conftest.er1 >conftest.err
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735 { (case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_try") 2>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest.$ac_objext'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 ac_header_compiler=yes
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11759 ac_header_compiler=no
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11764 echo "${ECHO_T}$ac_header_compiler" >&6; }
11766 # Is the header present?
11767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11769 cat >conftest.$ac_ext <<_ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 #include <$ac_header>
11777 if { (ac_try="$ac_cpp conftest.$ac_ext"
11778 case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11785 grep -v '^ *+' conftest.er1 >conftest.err
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } >/dev/null; then
11790 if test -s conftest.err; then
11791 ac_cpp_err=$ac_c_preproc_warn_flag
11792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11799 if test -z "$ac_cpp_err"; then
11800 ac_header_preproc=yes
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_header_preproc=no
11808 rm -f conftest.err conftest.$ac_ext
11809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11810 echo "${ECHO_T}$ac_header_preproc" >&6; }
11812 # So? What about this header?
11813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11819 ac_header_preproc=yes
11822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11835 ## ----------------------------------- ##
11836 ## Report this to llvmbugs@cs.uiuc.edu ##
11837 ## ----------------------------------- ##
11839 ) | sed "s/^/$as_me: WARNING: /" >&2
11842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 eval "$as_ac_Header=\$ac_header_preproc"
11849 ac_res=`eval echo '${'$as_ac_Header'}'`
11850 { echo "$as_me:$LINENO: result: $ac_res" >&5
11851 echo "${ECHO_T}$ac_res" >&6; }
11854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11864 { echo "$as_me:$LINENO: checking for error_t" >&5
11865 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11866 if test "${ac_cv_type_error_t+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 cat >conftest.$ac_ext <<_ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11879 typedef error_t ac__type_new_;
11883 if ((ac__type_new_ *) 0)
11885 if (sizeof (ac__type_new_))
11891 rm -f conftest.$ac_objext
11892 if { (ac_try="$ac_compile"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_compile") 2>conftest.er1
11900 grep -v '^ *+' conftest.er1 >conftest.err
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11906 { (case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_try") 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try='test -s conftest.$ac_objext'
11916 { (case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_try") 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 ac_cv_type_error_t=yes
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11930 ac_cv_type_error_t=no
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11936 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11937 if test $ac_cv_type_error_t = yes; then
11939 cat >>confdefs.h <<_ACEOF
11940 #define HAVE_ERROR_T 1
11946 cat >>confdefs.h <<\_ACEOF
11947 #define error_t int
11958 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 cat >conftest.$ac_ext <<_ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11974 #define $ac_func innocuous_$ac_func
11976 /* System header to define __stub macros and hopefully few prototypes,
11977 which can conflict with char $ac_func (); below.
11978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979 <limits.h> exists even on freestanding compilers. */
11982 # include <limits.h>
11984 # include <assert.h>
11989 /* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
11996 /* The GNU C library defines this for functions which it implements
11997 to always fail with ENOSYS. Some functions are actually named
11998 something starting with __ and the normal name is an alias. */
11999 #if defined __stub_$ac_func || defined __stub___$ac_func
12006 return $ac_func ();
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (ac_try="$ac_link"
12013 case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_link") 2>conftest.er1
12020 grep -v '^ *+' conftest.er1 >conftest.err
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 eval "$as_ac_var=yes"
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 eval "$as_ac_var=no"
12053 rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12056 ac_res=`eval echo '${'$as_ac_var'}'`
12057 { echo "$as_me:$LINENO: result: $ac_res" >&5
12058 echo "${ECHO_T}$ac_res" >&6; }
12059 if test `eval echo '${'$as_ac_var'}'` = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12094 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 ac_res=`eval echo '${'$as_ac_Header'}'`
12105 { echo "$as_me:$LINENO: result: $ac_res" >&5
12106 echo "${ECHO_T}$ac_res" >&6; }
12108 # Is the header compilable?
12109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12111 cat >conftest.$ac_ext <<_ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 $ac_includes_default
12118 #include <$ac_header>
12120 rm -f conftest.$ac_objext
12121 if { (ac_try="$ac_compile"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_compile") 2>conftest.er1
12129 grep -v '^ *+' conftest.er1 >conftest.err
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
12134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12135 { (case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_try") 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (case "(($ac_try" in
12146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_try") 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
12154 ac_header_compiler=yes
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 ac_header_compiler=no
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12164 echo "${ECHO_T}$ac_header_compiler" >&6; }
12166 # Is the header present?
12167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <$ac_header>
12177 if { (ac_try="$ac_cpp conftest.$ac_ext"
12178 case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12185 grep -v '^ *+' conftest.er1 >conftest.err
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } >/dev/null; then
12190 if test -s conftest.err; then
12191 ac_cpp_err=$ac_c_preproc_warn_flag
12192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12199 if test -z "$ac_cpp_err"; then
12200 ac_header_preproc=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 ac_header_preproc=no
12208 rm -f conftest.err conftest.$ac_ext
12209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12210 echo "${ECHO_T}$ac_header_preproc" >&6; }
12212 # So? What about this header?
12213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12219 ac_header_preproc=yes
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12235 ## ----------------------------------- ##
12236 ## Report this to llvmbugs@cs.uiuc.edu ##
12237 ## ----------------------------------- ##
12239 ) | sed "s/^/$as_me: WARNING: /" >&2
12242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 eval "$as_ac_Header=\$ac_header_preproc"
12249 ac_res=`eval echo '${'$as_ac_Header'}'`
12250 { echo "$as_me:$LINENO: result: $ac_res" >&5
12251 echo "${ECHO_T}$ac_res" >&6; }
12254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12255 cat >>confdefs.h <<_ACEOF
12256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12267 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 ac_res=`eval echo '${'$as_ac_Header'}'`
12277 { echo "$as_me:$LINENO: result: $ac_res" >&5
12278 echo "${ECHO_T}$ac_res" >&6; }
12280 # Is the header compilable?
12281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 $ac_includes_default
12290 #include <$ac_header>
12292 rm -f conftest.$ac_objext
12293 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12301 grep -v '^ *+' conftest.er1 >conftest.err
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12307 { (case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_try") 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; } &&
12316 { ac_try='test -s conftest.$ac_objext'
12317 { (case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_try") 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 ac_header_compiler=yes
12328 echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12331 ac_header_compiler=no
12334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12336 echo "${ECHO_T}$ac_header_compiler" >&6; }
12338 # Is the header present?
12339 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 #include <$ac_header>
12349 if { (ac_try="$ac_cpp conftest.$ac_ext"
12350 case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } >/dev/null; then
12362 if test -s conftest.err; then
12363 ac_cpp_err=$ac_c_preproc_warn_flag
12364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12371 if test -z "$ac_cpp_err"; then
12372 ac_header_preproc=yes
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ac_header_preproc=no
12380 rm -f conftest.err conftest.$ac_ext
12381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12382 echo "${ECHO_T}$ac_header_preproc" >&6; }
12384 # So? What about this header?
12385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12391 ac_header_preproc=yes
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12407 ## ----------------------------------- ##
12408 ## Report this to llvmbugs@cs.uiuc.edu ##
12409 ## ----------------------------------- ##
12411 ) | sed "s/^/$as_me: WARNING: /" >&2
12414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 eval "$as_ac_Header=\$ac_header_preproc"
12421 ac_res=`eval echo '${'$as_ac_Header'}'`
12422 { echo "$as_me:$LINENO: result: $ac_res" >&5
12423 echo "${ECHO_T}$ac_res" >&6; }
12426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12427 cat >>confdefs.h <<_ACEOF
12428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12437 for ac_header in string.h strings.h
12439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 ac_res=`eval echo '${'$as_ac_Header'}'`
12447 { echo "$as_me:$LINENO: result: $ac_res" >&5
12448 echo "${ECHO_T}$ac_res" >&6; }
12450 # Is the header compilable?
12451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12453 cat >conftest.$ac_ext <<_ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h. */
12459 $ac_includes_default
12460 #include <$ac_header>
12462 rm -f conftest.$ac_objext
12463 if { (ac_try="$ac_compile"
12464 case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_compile") 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12477 { (case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_try") 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try='test -s conftest.$ac_objext'
12487 { (case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_try") 2>&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12496 ac_header_compiler=yes
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12501 ac_header_compiler=no
12504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12506 echo "${ECHO_T}$ac_header_compiler" >&6; }
12508 # Is the header present?
12509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12511 cat >conftest.$ac_ext <<_ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 #include <$ac_header>
12519 if { (ac_try="$ac_cpp conftest.$ac_ext"
12520 case "(($ac_try" in
12521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522 *) ac_try_echo=$ac_try;;
12524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } >/dev/null; then
12532 if test -s conftest.err; then
12533 ac_cpp_err=$ac_c_preproc_warn_flag
12534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12541 if test -z "$ac_cpp_err"; then
12542 ac_header_preproc=yes
12544 echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12547 ac_header_preproc=no
12550 rm -f conftest.err conftest.$ac_ext
12551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12552 echo "${ECHO_T}$ac_header_preproc" >&6; }
12554 # So? What about this header?
12555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12561 ac_header_preproc=yes
12564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12577 ## ----------------------------------- ##
12578 ## Report this to llvmbugs@cs.uiuc.edu ##
12579 ## ----------------------------------- ##
12581 ) | sed "s/^/$as_me: WARNING: /" >&2
12584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 eval "$as_ac_Header=\$ac_header_preproc"
12591 ac_res=`eval echo '${'$as_ac_Header'}'`
12592 { echo "$as_me:$LINENO: result: $ac_res" >&5
12593 echo "${ECHO_T}$ac_res" >&6; }
12596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12597 cat >>confdefs.h <<_ACEOF
12598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12608 for ac_func in strchr index
12610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 cat >conftest.$ac_ext <<_ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12624 #define $ac_func innocuous_$ac_func
12626 /* System header to define __stub macros and hopefully few prototypes,
12627 which can conflict with char $ac_func (); below.
12628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12629 <limits.h> exists even on freestanding compilers. */
12632 # include <limits.h>
12634 # include <assert.h>
12639 /* Override any GCC internal prototype to avoid an error.
12640 Use char because int might match the return type of a GCC
12641 builtin and then its argument prototype would still apply. */
12646 /* The GNU C library defines this for functions which it implements
12647 to always fail with ENOSYS. Some functions are actually named
12648 something starting with __ and the normal name is an alias. */
12649 #if defined __stub_$ac_func || defined __stub___$ac_func
12656 return $ac_func ();
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_link") 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12676 { (case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_try") 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 eval "$as_ac_var=yes"
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12700 eval "$as_ac_var=no"
12703 rm -f core conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12706 ac_res=`eval echo '${'$as_ac_var'}'`
12707 { echo "$as_me:$LINENO: result: $ac_res" >&5
12708 echo "${ECHO_T}$ac_res" >&6; }
12709 if test `eval echo '${'$as_ac_var'}'` = yes; then
12710 cat >>confdefs.h <<_ACEOF
12711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12719 for ac_func in strrchr rindex
12721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12735 #define $ac_func innocuous_$ac_func
12737 /* System header to define __stub macros and hopefully few prototypes,
12738 which can conflict with char $ac_func (); below.
12739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12740 <limits.h> exists even on freestanding compilers. */
12743 # include <limits.h>
12745 # include <assert.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. */
12757 /* The GNU C library defines this for functions which it implements
12758 to always fail with ENOSYS. Some functions are actually named
12759 something starting with __ and the normal name is an alias. */
12760 #if defined __stub_$ac_func || defined __stub___$ac_func
12767 return $ac_func ();
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 eval "$as_ac_var=yes"
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12811 eval "$as_ac_var=no"
12814 rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12817 ac_res=`eval echo '${'$as_ac_var'}'`
12818 { echo "$as_me:$LINENO: result: $ac_res" >&5
12819 echo "${ECHO_T}$ac_res" >&6; }
12820 if test `eval echo '${'$as_ac_var'}'` = yes; then
12821 cat >>confdefs.h <<_ACEOF
12822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12830 for ac_func in memcpy bcopy
12832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12846 #define $ac_func innocuous_$ac_func
12848 /* System header to define __stub macros and hopefully few prototypes,
12849 which can conflict with char $ac_func (); below.
12850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12851 <limits.h> exists even on freestanding compilers. */
12854 # include <limits.h>
12856 # include <assert.h>
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12868 /* The GNU C library defines this for functions which it implements
12869 to always fail with ENOSYS. Some functions are actually named
12870 something starting with __ and the normal name is an alias. */
12871 #if defined __stub_$ac_func || defined __stub___$ac_func
12878 return $ac_func ();
12883 rm -f conftest.$ac_objext conftest$ac_exeext
12884 if { (ac_try="$ac_link"
12885 case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_link") 2>conftest.er1
12892 grep -v '^ *+' conftest.er1 >conftest.err
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12898 { (case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_try") 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest$ac_exeext'
12908 { (case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_try") 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 eval "$as_ac_var=yes"
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 eval "$as_ac_var=no"
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12928 ac_res=`eval echo '${'$as_ac_var'}'`
12929 { echo "$as_me:$LINENO: result: $ac_res" >&5
12930 echo "${ECHO_T}$ac_res" >&6; }
12931 if test `eval echo '${'$as_ac_var'}'` = yes; then
12932 cat >>confdefs.h <<_ACEOF
12933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12941 for ac_func in memmove strcmp
12943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 cat >conftest.$ac_ext <<_ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12957 #define $ac_func innocuous_$ac_func
12959 /* System header to define __stub macros and hopefully few prototypes,
12960 which can conflict with char $ac_func (); below.
12961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12962 <limits.h> exists even on freestanding compilers. */
12965 # include <limits.h>
12967 # include <assert.h>
12972 /* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12979 /* The GNU C library defines this for functions which it implements
12980 to always fail with ENOSYS. Some functions are actually named
12981 something starting with __ and the normal name is an alias. */
12982 #if defined __stub_$ac_func || defined __stub___$ac_func
12989 return $ac_func ();
12994 rm -f conftest.$ac_objext conftest$ac_exeext
12995 if { (ac_try="$ac_link"
12996 case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_link") 2>conftest.er1
13003 grep -v '^ *+' conftest.er1 >conftest.err
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_try") 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 eval "$as_ac_var=yes"
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13033 eval "$as_ac_var=no"
13036 rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13039 ac_res=`eval echo '${'$as_ac_var'}'`
13040 { echo "$as_me:$LINENO: result: $ac_res" >&5
13041 echo "${ECHO_T}$ac_res" >&6; }
13042 if test `eval echo '${'$as_ac_var'}'` = yes; then
13043 cat >>confdefs.h <<_ACEOF
13044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13053 for ac_func in closedir opendir readdir
13055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 cat >conftest.$ac_ext <<_ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h. */
13067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13069 #define $ac_func innocuous_$ac_func
13071 /* System header to define __stub macros and hopefully few prototypes,
13072 which can conflict with char $ac_func (); below.
13073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13074 <limits.h> exists even on freestanding compilers. */
13077 # include <limits.h>
13079 # include <assert.h>
13084 /* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13091 /* The GNU C library defines this for functions which it implements
13092 to always fail with ENOSYS. Some functions are actually named
13093 something starting with __ and the normal name is an alias. */
13094 #if defined __stub_$ac_func || defined __stub___$ac_func
13101 return $ac_func ();
13106 rm -f conftest.$ac_objext conftest$ac_exeext
13107 if { (ac_try="$ac_link"
13108 case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_link") 2>conftest.er1
13115 grep -v '^ *+' conftest.er1 >conftest.err
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13121 { (case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_try") 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest$ac_exeext'
13131 { (case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_try") 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13140 eval "$as_ac_var=yes"
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13145 eval "$as_ac_var=no"
13148 rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13151 ac_res=`eval echo '${'$as_ac_var'}'`
13152 { echo "$as_me:$LINENO: result: $ac_res" >&5
13153 echo "${ECHO_T}$ac_res" >&6; }
13154 if test `eval echo '${'$as_ac_var'}'` = yes; then
13155 cat >>confdefs.h <<_ACEOF
13156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13164 if test "$WITH_LLVMGCCDIR" = "default" ; then
13165 LLVMGCC="llvm-gcc${EXEEXT}"
13166 LLVMGXX="llvm-g++${EXEEXT}"
13167 LLVMGCCCOMMAND="$LLVMGCC"
13168 LLVMGXXCOMMAND="$LLVMGXX"
13169 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13171 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13173 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13174 set dummy $LLVMGCC; ac_word=$2
13175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13177 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13189 test -z "$as_dir" && as_dir=.
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13192 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 LLVMGCC=$ac_cv_path_LLVMGCC
13204 if test -n "$LLVMGCC"; then
13205 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13206 echo "${ECHO_T}$LLVMGCC" >&6; }
13208 { echo "$as_me:$LINENO: result: no" >&5
13209 echo "${ECHO_T}no" >&6; }
13213 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13214 set dummy $LLVMGXX; ac_word=$2
13215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13217 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13232 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 LLVMGXX=$ac_cv_path_LLVMGXX
13244 if test -n "$LLVMGXX"; then
13245 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13246 echo "${ECHO_T}$LLVMGXX" >&6; }
13248 { echo "$as_me:$LINENO: result: no" >&5
13249 echo "${ECHO_T}no" >&6; }
13254 if test -z "$LLVMGCC"; then
13255 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13256 LLVMGCCCOMMAND="$LLVMGCC"
13258 if test -z "$LLVMGXX"; then
13259 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13260 LLVMGXXCOMMAND="$LLVMGXX"
13267 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13269 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13274 # Check whether --with-llvmcc was given.
13275 if test "${with_llvmcc+set}" = set; then
13276 withval=$with_llvmcc;
13281 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13282 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13283 if test "$with_llvmcc" != "check"; then
13284 if (test "$with_llvmcc" != "llvm-gcc" &&
13285 test "$with_llvmcc" != "clang" &&
13286 test "$with_llvmcc" != "none"); then
13287 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13288 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13289 { (exit 1); exit 1; }; }
13291 WITH_LLVMCC="$with_llvmcc"
13292 elif test -n "$LLVMGCC"; then
13293 WITH_LLVMCC=llvm-gcc
13294 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13299 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13300 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13301 LLVMCC_OPTION=$WITH_LLVMCC
13304 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13305 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13318 if test "$GCC" != "yes" && test "$ICC" != "yes"
13320 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13321 echo "$as_me: error: gcc|icc required but not found" >&2;}
13322 { (exit 1); exit 1; }; }
13325 if test "$GXX" != "yes" && test "$IXX" != "yes"
13327 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13328 echo "$as_me: error: g++|icc required but not found" >&2;}
13329 { (exit 1); exit 1; }; }
13332 if test "$GCC" = "yes"
13334 cat >conftest.$ac_ext <<_ACEOF
13335 #if !defined(__GNUC__) || __GNUC__ < 3
13336 #error Unsupported GCC version
13340 rm -f conftest.$ac_objext
13341 if { (ac_try="$ac_compile"
13342 case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_compile") 2>conftest.er1
13349 grep -v '^ *+' conftest.er1 >conftest.err
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } &&
13354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13355 { (case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_try") 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try='test -s conftest.$ac_objext'
13365 { (case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_try") 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13380 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13381 { (exit 1); exit 1; }; }
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 if test -z "$llvm_cv_gnu_make_command"
13389 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13390 echo "$as_me: error: GNU Make required but not found" >&2;}
13391 { (exit 1); exit 1; }; }
13394 { echo "$as_me:$LINENO: result: ok" >&5
13395 echo "${ECHO_T}ok" >&6; }
13397 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13398 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13399 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13401 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13403 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13404 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13408 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13409 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13410 if test "${ac_cv_lib_m_sin+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 ac_check_lib_save_LIBS=$LIBS
13415 cat >conftest.$ac_ext <<_ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13422 /* Override any GCC internal prototype to avoid an error.
13423 Use char because int might match the return type of a GCC
13424 builtin and then its argument prototype would still apply. */
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (ac_try="$ac_link"
13439 case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_link") 2>conftest.er1
13446 grep -v '^ *+' conftest.er1 >conftest.err
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest$ac_exeext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 ac_cv_lib_m_sin=yes
13473 echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13479 rm -f core conftest.err conftest.$ac_objext \
13480 conftest$ac_exeext conftest.$ac_ext
13481 LIBS=$ac_check_lib_save_LIBS
13483 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13484 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13485 if test $ac_cv_lib_m_sin = yes; then
13486 cat >>confdefs.h <<_ACEOF
13487 #define HAVE_LIBM 1
13494 if test "$llvm_cv_os_type" = "MingW" ; then
13496 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13497 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13498 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 ac_check_lib_save_LIBS=$LIBS
13502 LIBS="-limagehlp $LIBS"
13503 cat >conftest.$ac_ext <<_ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13519 rm -f conftest.$ac_objext conftest$ac_exeext
13520 if { (ac_try="$ac_link"
13521 case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_link") 2>conftest.er1
13528 grep -v '^ *+' conftest.er1 >conftest.err
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13534 { (case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_try") 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest$ac_exeext'
13544 { (case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_try") 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; }; then
13553 ac_cv_lib_imagehlp_main=yes
13555 echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13558 ac_cv_lib_imagehlp_main=no
13561 rm -f core conftest.err conftest.$ac_objext \
13562 conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13565 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13566 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13567 if test $ac_cv_lib_imagehlp_main = yes; then
13568 cat >>confdefs.h <<_ACEOF
13569 #define HAVE_LIBIMAGEHLP 1
13572 LIBS="-limagehlp $LIBS"
13577 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13578 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13579 if test "${ac_cv_lib_psapi_main+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 ac_check_lib_save_LIBS=$LIBS
13583 LIBS="-lpsapi $LIBS"
13584 cat >conftest.$ac_ext <<_ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13600 rm -f conftest.$ac_objext conftest$ac_exeext
13601 if { (ac_try="$ac_link"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_link") 2>conftest.er1
13609 grep -v '^ *+' conftest.er1 >conftest.err
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
13614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13615 { (case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_try") 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest$ac_exeext'
13625 { (case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_try") 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13634 ac_cv_lib_psapi_main=yes
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13639 ac_cv_lib_psapi_main=no
13642 rm -f core conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13646 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13647 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13648 if test $ac_cv_lib_psapi_main = yes; then
13649 cat >>confdefs.h <<_ACEOF
13650 #define HAVE_LIBPSAPI 1
13653 LIBS="-lpsapi $LIBS"
13659 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13660 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13661 if test "${ac_cv_search_dlopen+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 ac_func_search_save_LIBS=$LIBS
13665 cat >conftest.$ac_ext <<_ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13672 /* Override any GCC internal prototype to avoid an error.
13673 Use char because int might match the return type of a GCC
13674 builtin and then its argument prototype would still apply. */
13687 for ac_lib in '' dl; do
13688 if test -z "$ac_lib"; then
13689 ac_res="none required"
13692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13694 rm -f conftest.$ac_objext conftest$ac_exeext
13695 if { (ac_try="$ac_link"
13696 case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_link") 2>conftest.er1
13703 grep -v '^ *+' conftest.er1 >conftest.err
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; } &&
13718 { ac_try='test -s conftest$ac_exeext'
13719 { (case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_try") 2>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13728 ac_cv_search_dlopen=$ac_res
13730 echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13736 rm -f core conftest.err conftest.$ac_objext \
13738 if test "${ac_cv_search_dlopen+set}" = set; then
13742 if test "${ac_cv_search_dlopen+set}" = set; then
13745 ac_cv_search_dlopen=no
13747 rm conftest.$ac_ext
13748 LIBS=$ac_func_search_save_LIBS
13750 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13751 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13752 ac_res=$ac_cv_search_dlopen
13753 if test "$ac_res" != no; then
13754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13756 cat >>confdefs.h <<\_ACEOF
13757 #define HAVE_DLOPEN 1
13761 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13762 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13766 if test "$llvm_cv_enable_libffi" = "yes" ; then
13767 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13768 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13769 if test "${ac_cv_search_ffi_call+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 ac_func_search_save_LIBS=$LIBS
13773 cat >conftest.$ac_ext <<_ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13780 /* Override any GCC internal prototype to avoid an error.
13781 Use char because int might match the return type of a GCC
13782 builtin and then its argument prototype would still apply. */
13790 return ffi_call ();
13795 for ac_lib in '' ffi; do
13796 if test -z "$ac_lib"; then
13797 ac_res="none required"
13800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13802 rm -f conftest.$ac_objext conftest$ac_exeext
13803 if { (ac_try="$ac_link"
13804 case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_link") 2>conftest.er1
13811 grep -v '^ *+' conftest.er1 >conftest.err
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817 { (case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_try") 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest$ac_exeext'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_try") 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_search_ffi_call=$ac_res
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13844 rm -f core conftest.err conftest.$ac_objext \
13846 if test "${ac_cv_search_ffi_call+set}" = set; then
13850 if test "${ac_cv_search_ffi_call+set}" = set; then
13853 ac_cv_search_ffi_call=no
13855 rm conftest.$ac_ext
13856 LIBS=$ac_func_search_save_LIBS
13858 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13859 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13860 ac_res=$ac_cv_search_ffi_call
13861 if test "$ac_res" != no; then
13862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13864 cat >>confdefs.h <<\_ACEOF
13865 #define HAVE_FFI_CALL 1
13869 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13870 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13871 { (exit 1); exit 1; }; }
13876 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13877 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13878 if test "${ac_cv_search_mallinfo+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 ac_func_search_save_LIBS=$LIBS
13882 cat >conftest.$ac_ext <<_ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13889 /* Override any GCC internal prototype to avoid an error.
13890 Use char because int might match the return type of a GCC
13891 builtin and then its argument prototype would still apply. */
13899 return mallinfo ();
13904 for ac_lib in '' malloc; do
13905 if test -z "$ac_lib"; then
13906 ac_res="none required"
13909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13911 rm -f conftest.$ac_objext conftest$ac_exeext
13912 if { (ac_try="$ac_link"
13913 case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915 *) ac_try_echo=$ac_try;;
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918 (eval "$ac_link") 2>conftest.er1
13920 grep -v '^ *+' conftest.er1 >conftest.err
13922 cat conftest.err >&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } &&
13925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13926 { (case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_try") 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; } &&
13935 { ac_try='test -s conftest$ac_exeext'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 ac_cv_search_mallinfo=$ac_res
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13953 rm -f core conftest.err conftest.$ac_objext \
13955 if test "${ac_cv_search_mallinfo+set}" = set; then
13959 if test "${ac_cv_search_mallinfo+set}" = set; then
13962 ac_cv_search_mallinfo=no
13964 rm conftest.$ac_ext
13965 LIBS=$ac_func_search_save_LIBS
13967 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13968 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13969 ac_res=$ac_cv_search_mallinfo
13970 if test "$ac_res" != no; then
13971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13973 cat >>confdefs.h <<\_ACEOF
13974 #define HAVE_MALLINFO 1
13980 if test "$ENABLE_THREADS" -eq 1 ; then
13982 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13983 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13984 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 ac_check_lib_save_LIBS=$LIBS
13988 LIBS="-lpthread $LIBS"
13989 cat >conftest.$ac_ext <<_ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13996 /* Override any GCC internal prototype to avoid an error.
13997 Use char because int might match the return type of a GCC
13998 builtin and then its argument prototype would still apply. */
14002 char pthread_mutex_init ();
14006 return pthread_mutex_init ();
14011 rm -f conftest.$ac_objext conftest$ac_exeext
14012 if { (ac_try="$ac_link"
14013 case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_link") 2>conftest.er1
14020 grep -v '^ *+' conftest.er1 >conftest.err
14022 cat conftest.err >&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } &&
14025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14026 { (case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_try") 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest$ac_exeext'
14036 { (case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_try") 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_cv_lib_pthread_pthread_mutex_init=yes
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ac_cv_lib_pthread_pthread_mutex_init=no
14053 rm -f core conftest.err conftest.$ac_objext \
14054 conftest$ac_exeext conftest.$ac_ext
14055 LIBS=$ac_check_lib_save_LIBS
14057 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14058 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14059 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14060 cat >>confdefs.h <<_ACEOF
14061 #define HAVE_LIBPTHREAD 1
14064 LIBS="-lpthread $LIBS"
14068 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14069 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14070 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 ac_func_search_save_LIBS=$LIBS
14074 cat >conftest.$ac_ext <<_ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14081 /* Override any GCC internal prototype to avoid an error.
14082 Use char because int might match the return type of a GCC
14083 builtin and then its argument prototype would still apply. */
14087 char pthread_mutex_lock ();
14091 return pthread_mutex_lock ();
14096 for ac_lib in '' pthread; do
14097 if test -z "$ac_lib"; then
14098 ac_res="none required"
14101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14103 rm -f conftest.$ac_objext conftest$ac_exeext
14104 if { (ac_try="$ac_link"
14105 case "(($ac_try" in
14106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110 (eval "$ac_link") 2>conftest.er1
14112 grep -v '^ *+' conftest.er1 >conftest.err
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14118 { (case "(($ac_try" in
14119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14120 *) ac_try_echo=$ac_try;;
14122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14123 (eval "$ac_try") 2>&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; } &&
14127 { ac_try='test -s conftest$ac_exeext'
14128 { (case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_try") 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_cv_search_pthread_mutex_lock=$ac_res
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14145 rm -f core conftest.err conftest.$ac_objext \
14147 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14151 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14154 ac_cv_search_pthread_mutex_lock=no
14156 rm conftest.$ac_ext
14157 LIBS=$ac_func_search_save_LIBS
14159 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14160 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14161 ac_res=$ac_cv_search_pthread_mutex_lock
14162 if test "$ac_res" != no; then
14163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_PTHREAD_MUTEX_LOCK 1
14171 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14172 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14173 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 ac_func_search_save_LIBS=$LIBS
14177 cat >conftest.$ac_ext <<_ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14184 /* Override any GCC internal prototype to avoid an error.
14185 Use char because int might match the return type of a GCC
14186 builtin and then its argument prototype would still apply. */
14190 char pthread_rwlock_init ();
14194 return pthread_rwlock_init ();
14199 for ac_lib in '' pthread; do
14200 if test -z "$ac_lib"; then
14201 ac_res="none required"
14204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14206 rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (ac_try="$ac_link"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_search_pthread_rwlock_init=$ac_res
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14248 rm -f core conftest.err conftest.$ac_objext \
14250 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14254 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14257 ac_cv_search_pthread_rwlock_init=no
14259 rm conftest.$ac_ext
14260 LIBS=$ac_func_search_save_LIBS
14262 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14263 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14264 ac_res=$ac_cv_search_pthread_rwlock_init
14265 if test "$ac_res" != no; then
14266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14268 cat >>confdefs.h <<\_ACEOF
14269 #define HAVE_PTHREAD_RWLOCK_INIT 1
14274 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14275 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14276 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 ac_func_search_save_LIBS=$LIBS
14280 cat >conftest.$ac_ext <<_ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14287 /* Override any GCC internal prototype to avoid an error.
14288 Use char because int might match the return type of a GCC
14289 builtin and then its argument prototype would still apply. */
14293 char pthread_getspecific ();
14297 return pthread_getspecific ();
14302 for ac_lib in '' pthread; do
14303 if test -z "$ac_lib"; then
14304 ac_res="none required"
14307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14309 rm -f conftest.$ac_objext conftest$ac_exeext
14310 if { (ac_try="$ac_link"
14311 case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_link") 2>conftest.er1
14318 grep -v '^ *+' conftest.er1 >conftest.err
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14324 { (case "(($ac_try" in
14325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329 (eval "$ac_try") 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest$ac_exeext'
14334 { (case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_cv_search_pthread_getspecific=$ac_res
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14351 rm -f core conftest.err conftest.$ac_objext \
14353 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14357 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14360 ac_cv_search_pthread_getspecific=no
14362 rm conftest.$ac_ext
14363 LIBS=$ac_func_search_save_LIBS
14365 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14366 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14367 ac_res=$ac_cv_search_pthread_getspecific
14368 if test "$ac_res" != no; then
14369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14371 cat >>confdefs.h <<\_ACEOF
14372 #define HAVE_PTHREAD_GETSPECIFIC 1
14380 # Check whether --with-udis86 was given.
14381 if test "${with_udis86+set}" = set; then
14382 withval=$with_udis86;
14387 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14390 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14391 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14392 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 ac_check_lib_save_LIBS=$LIBS
14396 LIBS="-ludis86 $LIBS"
14397 cat >conftest.$ac_ext <<_ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14404 /* Override any GCC internal prototype to avoid an error.
14405 Use char because int might match the return type of a GCC
14406 builtin and then its argument prototype would still apply. */
14419 rm -f conftest.$ac_objext conftest$ac_exeext
14420 if { (ac_try="$ac_link"
14421 case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_link") 2>conftest.er1
14428 grep -v '^ *+' conftest.er1 >conftest.err
14430 cat conftest.err >&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } &&
14433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14434 { (case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_try") 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try='test -s conftest$ac_exeext'
14444 { (case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_try") 2>&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
14453 ac_cv_lib_udis86_ud_init=yes
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 ac_cv_lib_udis86_ud_init=no
14461 rm -f core conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
14463 LIBS=$ac_check_lib_save_LIBS
14465 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14466 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14467 if test $ac_cv_lib_udis86_ud_init = yes; then
14468 cat >>confdefs.h <<_ACEOF
14469 #define HAVE_LIBUDIS86 1
14472 LIBS="-ludis86 $LIBS"
14476 echo "Error! You need to have libudis86 around."
14488 cat >>confdefs.h <<_ACEOF
14489 #define USE_UDIS86 $USE_UDIS86
14494 # Check whether --with-oprofile was given.
14495 if test "${with_oprofile+set}" = set; then
14496 withval=$with_oprofile;
14500 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14501 no) llvm_cv_oppath=
14504 *) llvm_cv_oppath="${withval}/lib/oprofile"
14505 CPPFLAGS="-I${withval}/include";;
14507 if test -n "$llvm_cv_oppath" ; then
14508 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14509 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14510 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14511 if test "${ac_cv_search_bfd_init+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 ac_func_search_save_LIBS=$LIBS
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14522 /* Override any GCC internal prototype to avoid an error.
14523 Use char because int might match the return type of a GCC
14524 builtin and then its argument prototype would still apply. */
14532 return bfd_init ();
14537 for ac_lib in '' bfd; do
14538 if test -z "$ac_lib"; then
14539 ac_res="none required"
14542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14544 rm -f conftest.$ac_objext conftest$ac_exeext
14545 if { (ac_try="$ac_link"
14546 case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_link") 2>conftest.er1
14553 grep -v '^ *+' conftest.er1 >conftest.err
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
14558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14559 { (case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_try") 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest$ac_exeext'
14569 { (case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_try") 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_cv_search_bfd_init=$ac_res
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14586 rm -f core conftest.err conftest.$ac_objext \
14588 if test "${ac_cv_search_bfd_init+set}" = set; then
14592 if test "${ac_cv_search_bfd_init+set}" = set; then
14595 ac_cv_search_bfd_init=no
14597 rm conftest.$ac_ext
14598 LIBS=$ac_func_search_save_LIBS
14600 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14601 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14602 ac_res=$ac_cv_search_bfd_init
14603 if test "$ac_res" != no; then
14604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14608 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14609 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14610 if test "${ac_cv_search_op_open_agent+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 ac_func_search_save_LIBS=$LIBS
14614 cat >conftest.$ac_ext <<_ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14621 /* Override any GCC internal prototype to avoid an error.
14622 Use char because int might match the return type of a GCC
14623 builtin and then its argument prototype would still apply. */
14627 char op_open_agent ();
14631 return op_open_agent ();
14636 for ac_lib in '' opagent; do
14637 if test -z "$ac_lib"; then
14638 ac_res="none required"
14641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14643 rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (ac_try="$ac_link"
14645 case "(($ac_try" in
14646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647 *) ac_try_echo=$ac_try;;
14649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650 (eval "$ac_link") 2>conftest.er1
14652 grep -v '^ *+' conftest.er1 >conftest.err
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14658 { (case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_try") 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest$ac_exeext'
14668 { (case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_try") 2>&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_cv_search_op_open_agent=$ac_res
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14685 rm -f core conftest.err conftest.$ac_objext \
14687 if test "${ac_cv_search_op_open_agent+set}" = set; then
14691 if test "${ac_cv_search_op_open_agent+set}" = set; then
14694 ac_cv_search_op_open_agent=no
14696 rm conftest.$ac_ext
14697 LIBS=$ac_func_search_save_LIBS
14699 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14700 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14701 ac_res=$ac_cv_search_op_open_agent
14702 if test "$ac_res" != no; then
14703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14707 echo "Error! You need to have libopagent around."
14712 if test "${ac_cv_header_opagent_h+set}" = set; then
14713 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14714 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14715 if test "${ac_cv_header_opagent_h+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14719 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14721 # Is the header compilable?
14722 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14723 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14724 cat >conftest.$ac_ext <<_ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 $ac_includes_default
14731 #include <opagent.h>
14733 rm -f conftest.$ac_objext
14734 if { (ac_try="$ac_compile"
14735 case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_compile") 2>conftest.er1
14742 grep -v '^ *+' conftest.er1 >conftest.err
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_try") 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_header_compiler=yes
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_header_compiler=no
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777 echo "${ECHO_T}$ac_header_compiler" >&6; }
14779 # Is the header present?
14780 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14781 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14782 cat >conftest.$ac_ext <<_ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 #include <opagent.h>
14790 if { (ac_try="$ac_cpp conftest.$ac_ext"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14798 grep -v '^ *+' conftest.er1 >conftest.err
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } >/dev/null; then
14803 if test -s conftest.err; then
14804 ac_cpp_err=$ac_c_preproc_warn_flag
14805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14812 if test -z "$ac_cpp_err"; then
14813 ac_header_preproc=yes
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_header_preproc=no
14821 rm -f conftest.err conftest.$ac_ext
14822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 echo "${ECHO_T}$ac_header_preproc" >&6; }
14825 # So? What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14828 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14829 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14831 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
14835 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14836 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14838 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14840 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14842 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14844 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14846 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14848 ## ----------------------------------- ##
14849 ## Report this to llvmbugs@cs.uiuc.edu ##
14850 ## ----------------------------------- ##
14852 ) | sed "s/^/$as_me: WARNING: /" >&2
14855 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14856 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14857 if test "${ac_cv_header_opagent_h+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 ac_cv_header_opagent_h=$ac_header_preproc
14862 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14863 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14866 if test $ac_cv_header_opagent_h = yes; then
14870 echo "Error! You need to have opagent.h around."
14886 cat >>confdefs.h <<_ACEOF
14887 #define USE_OPROFILE $USE_OPROFILE
14897 ac_header_dirent=no
14898 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14899 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14900 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14901 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 #include <sys/types.h>
14923 rm -f conftest.$ac_objext
14924 if { (ac_try="$ac_compile"
14925 case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_compile") 2>conftest.er1
14932 grep -v '^ *+' conftest.er1 >conftest.err
14934 cat conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14938 { (case "(($ac_try" in
14939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940 *) ac_try_echo=$ac_try;;
14942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943 (eval "$ac_try") 2>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; } &&
14947 { ac_try='test -s conftest.$ac_objext'
14948 { (case "(($ac_try" in
14949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950 *) ac_try_echo=$ac_try;;
14952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14953 (eval "$ac_try") 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 eval "$as_ac_Header=yes"
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14962 eval "$as_ac_Header=no"
14965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14967 ac_res=`eval echo '${'$as_ac_Header'}'`
14968 { echo "$as_me:$LINENO: result: $ac_res" >&5
14969 echo "${ECHO_T}$ac_res" >&6; }
14970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14971 cat >>confdefs.h <<_ACEOF
14972 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14975 ac_header_dirent=$ac_hdr; break
14979 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14980 if test $ac_header_dirent = dirent.h; then
14981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14982 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14983 if test "${ac_cv_search_opendir+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 ac_func_search_save_LIBS=$LIBS
14987 cat >conftest.$ac_ext <<_ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h. */
14994 /* Override any GCC internal prototype to avoid an error.
14995 Use char because int might match the return type of a GCC
14996 builtin and then its argument prototype would still apply. */
15009 for ac_lib in '' dir; do
15010 if test -z "$ac_lib"; then
15011 ac_res="none required"
15014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (ac_try="$ac_link"
15018 case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_link") 2>conftest.er1
15025 grep -v '^ *+' conftest.er1 >conftest.err
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } &&
15030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15031 { (case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_try") 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; } &&
15040 { ac_try='test -s conftest$ac_exeext'
15041 { (case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_try") 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_cv_search_opendir=$ac_res
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15058 rm -f core conftest.err conftest.$ac_objext \
15060 if test "${ac_cv_search_opendir+set}" = set; then
15064 if test "${ac_cv_search_opendir+set}" = set; then
15067 ac_cv_search_opendir=no
15069 rm conftest.$ac_ext
15070 LIBS=$ac_func_search_save_LIBS
15072 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15073 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15074 ac_res=$ac_cv_search_opendir
15075 if test "$ac_res" != no; then
15076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15081 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15083 if test "${ac_cv_search_opendir+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 ac_func_search_save_LIBS=$LIBS
15087 cat >conftest.$ac_ext <<_ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15094 /* Override any GCC internal prototype to avoid an error.
15095 Use char because int might match the return type of a GCC
15096 builtin and then its argument prototype would still apply. */
15109 for ac_lib in '' x; do
15110 if test -z "$ac_lib"; then
15111 ac_res="none required"
15114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15116 rm -f conftest.$ac_objext conftest$ac_exeext
15117 if { (ac_try="$ac_link"
15118 case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_link") 2>conftest.er1
15125 grep -v '^ *+' conftest.er1 >conftest.err
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15131 { (case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_try") 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; } &&
15140 { ac_try='test -s conftest$ac_exeext'
15141 { (case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_try") 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 ac_cv_search_opendir=$ac_res
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15158 rm -f core conftest.err conftest.$ac_objext \
15160 if test "${ac_cv_search_opendir+set}" = set; then
15164 if test "${ac_cv_search_opendir+set}" = set; then
15167 ac_cv_search_opendir=no
15169 rm conftest.$ac_ext
15170 LIBS=$ac_func_search_save_LIBS
15172 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15173 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15174 ac_res=$ac_cv_search_opendir
15175 if test "$ac_res" != no; then
15176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15182 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15183 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15184 if test "${ac_cv_header_mmap_anon+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 ac_cpp='$CPP $CPPFLAGS'
15189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15193 cat >conftest.$ac_ext <<_ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 #include <sys/mman.h>
15200 #include <unistd.h>
15205 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15210 rm -f conftest.$ac_objext
15211 if { (ac_try="$ac_compile"
15212 case "(($ac_try" in
15213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214 *) ac_try_echo=$ac_try;;
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217 (eval "$ac_compile") 2>conftest.er1
15219 grep -v '^ *+' conftest.er1 >conftest.err
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_try") 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
15235 { (case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_try") 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15244 ac_cv_header_mmap_anon=yes
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 ac_cv_header_mmap_anon=no
15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15254 ac_cpp='$CPP $CPPFLAGS'
15255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15261 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15262 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15263 if test "$ac_cv_header_mmap_anon" = yes; then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_MMAP_ANONYMOUS 1
15271 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15272 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15273 if test "${ac_cv_header_stat_broken+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 cat >conftest.$ac_ext <<_ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 #include <sys/types.h>
15283 #include <sys/stat.h>
15285 #if defined S_ISBLK && defined S_IFDIR
15286 # if S_ISBLK (S_IFDIR)
15291 #if defined S_ISBLK && defined S_IFCHR
15292 # if S_ISBLK (S_IFCHR)
15297 #if defined S_ISLNK && defined S_IFREG
15298 # if S_ISLNK (S_IFREG)
15303 #if defined S_ISSOCK && defined S_IFREG
15304 # if S_ISSOCK (S_IFREG)
15310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15311 $EGREP "You lose" >/dev/null 2>&1; then
15312 ac_cv_header_stat_broken=yes
15314 ac_cv_header_stat_broken=no
15319 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15320 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15321 if test $ac_cv_header_stat_broken = yes; then
15323 cat >>confdefs.h <<\_ACEOF
15324 #define STAT_MACROS_BROKEN 1
15329 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15331 if test "${ac_cv_header_stdc+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 cat >conftest.$ac_ext <<_ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 #include <stdlib.h>
15341 #include <stdarg.h>
15342 #include <string.h>
15353 rm -f conftest.$ac_objext
15354 if { (ac_try="$ac_compile"
15355 case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_compile") 2>conftest.er1
15362 grep -v '^ *+' conftest.er1 >conftest.err
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } &&
15367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15368 { (case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_try") 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; } &&
15377 { ac_try='test -s conftest.$ac_objext'
15378 { (case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_try") 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_cv_header_stdc=yes
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_cv_header_stdc=no
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 if test $ac_cv_header_stdc = yes; then
15398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15399 cat >conftest.$ac_ext <<_ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 #include <string.h>
15408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15409 $EGREP "memchr" >/dev/null 2>&1; then
15412 ac_cv_header_stdc=no
15418 if test $ac_cv_header_stdc = yes; then
15419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 #include <stdlib.h>
15429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15430 $EGREP "free" >/dev/null 2>&1; then
15433 ac_cv_header_stdc=no
15439 if test $ac_cv_header_stdc = yes; then
15440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15441 if test "$cross_compiling" = yes; then
15444 cat >conftest.$ac_ext <<_ACEOF
15447 cat confdefs.h >>conftest.$ac_ext
15448 cat >>conftest.$ac_ext <<_ACEOF
15449 /* end confdefs.h. */
15451 #include <stdlib.h>
15452 #if ((' ' & 0x0FF) == 0x020)
15453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15456 # define ISLOWER(c) \
15457 (('a' <= (c) && (c) <= 'i') \
15458 || ('j' <= (c) && (c) <= 'r') \
15459 || ('s' <= (c) && (c) <= 'z'))
15460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15468 for (i = 0; i < 256; i++)
15469 if (XOR (islower (i), ISLOWER (i))
15470 || toupper (i) != TOUPPER (i))
15475 rm -f conftest$ac_exeext
15476 if { (ac_try="$ac_link"
15477 case "(($ac_try" in
15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479 *) ac_try_echo=$ac_try;;
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482 (eval "$ac_link") 2>&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15486 { (case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_try") 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15497 echo "$as_me: program exited with status $ac_status" >&5
15498 echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15501 ( exit $ac_status )
15502 ac_cv_header_stdc=no
15504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15510 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15511 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15512 if test $ac_cv_header_stdc = yes; then
15514 cat >>confdefs.h <<\_ACEOF
15515 #define STDC_HEADERS 1
15520 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15521 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15522 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 #include <sys/types.h>
15532 #include <sys/wait.h>
15533 #ifndef WEXITSTATUS
15534 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15537 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15545 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_compile") 2>conftest.er1
15559 grep -v '^ *+' conftest.er1 >conftest.err
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest.$ac_objext'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_cv_header_sys_wait_h=yes
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_cv_header_sys_wait_h=no
15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15594 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15595 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15596 if test $ac_cv_header_sys_wait_h = yes; then
15598 cat >>confdefs.h <<\_ACEOF
15599 #define HAVE_SYS_WAIT_H 1
15604 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15605 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15606 if test "${ac_cv_header_time+set}" = set; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 cat >conftest.$ac_ext <<_ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615 #include <sys/types.h>
15616 #include <sys/time.h>
15622 if ((struct tm *) 0)
15628 rm -f conftest.$ac_objext
15629 if { (ac_try="$ac_compile"
15630 case "(($ac_try" in
15631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632 *) ac_try_echo=$ac_try;;
15634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15635 (eval "$ac_compile") 2>conftest.er1
15637 grep -v '^ *+' conftest.er1 >conftest.err
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } &&
15642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15643 { (case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_try") 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; } &&
15652 { ac_try='test -s conftest.$ac_objext'
15653 { (case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_try") 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
15662 ac_cv_header_time=yes
15664 echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15667 ac_cv_header_time=no
15670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15672 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15673 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15674 if test $ac_cv_header_time = yes; then
15676 cat >>confdefs.h <<\_ACEOF
15677 #define TIME_WITH_SYS_TIME 1
15689 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 ac_res=`eval echo '${'$as_ac_Header'}'`
15699 { echo "$as_me:$LINENO: result: $ac_res" >&5
15700 echo "${ECHO_T}$ac_res" >&6; }
15702 # Is the header compilable?
15703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15705 cat >conftest.$ac_ext <<_ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 $ac_includes_default
15712 #include <$ac_header>
15714 rm -f conftest.$ac_objext
15715 if { (ac_try="$ac_compile"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_compile") 2>conftest.er1
15723 grep -v '^ *+' conftest.er1 >conftest.err
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15729 { (case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_try") 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (case "(($ac_try" in
15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744 (eval "$ac_try") 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_header_compiler=yes
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_header_compiler=no
15756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15758 echo "${ECHO_T}$ac_header_compiler" >&6; }
15760 # Is the header present?
15761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15763 cat >conftest.$ac_ext <<_ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 #include <$ac_header>
15771 if { (ac_try="$ac_cpp conftest.$ac_ext"
15772 case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15779 grep -v '^ *+' conftest.er1 >conftest.err
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } >/dev/null; then
15784 if test -s conftest.err; then
15785 ac_cpp_err=$ac_c_preproc_warn_flag
15786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15793 if test -z "$ac_cpp_err"; then
15794 ac_header_preproc=yes
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15799 ac_header_preproc=no
15802 rm -f conftest.err conftest.$ac_ext
15803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15804 echo "${ECHO_T}$ac_header_preproc" >&6; }
15806 # So? What about this header?
15807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15813 ac_header_preproc=yes
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15829 ## ----------------------------------- ##
15830 ## Report this to llvmbugs@cs.uiuc.edu ##
15831 ## ----------------------------------- ##
15833 ) | sed "s/^/$as_me: WARNING: /" >&2
15836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 eval "$as_ac_Header=\$ac_header_preproc"
15843 ac_res=`eval echo '${'$as_ac_Header'}'`
15844 { echo "$as_me:$LINENO: result: $ac_res" >&5
15845 echo "${ECHO_T}$ac_res" >&6; }
15848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15849 cat >>confdefs.h <<_ACEOF
15850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15863 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 ac_res=`eval echo '${'$as_ac_Header'}'`
15873 { echo "$as_me:$LINENO: result: $ac_res" >&5
15874 echo "${ECHO_T}$ac_res" >&6; }
15876 # Is the header compilable?
15877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15879 cat >conftest.$ac_ext <<_ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 $ac_includes_default
15886 #include <$ac_header>
15888 rm -f conftest.$ac_objext
15889 if { (ac_try="$ac_compile"
15890 case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_compile") 2>conftest.er1
15897 grep -v '^ *+' conftest.er1 >conftest.err
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15903 { (case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_try") 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; } &&
15912 { ac_try='test -s conftest.$ac_objext'
15913 { (case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918 (eval "$ac_try") 2>&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; }; then
15922 ac_header_compiler=yes
15924 echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15927 ac_header_compiler=no
15930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15932 echo "${ECHO_T}$ac_header_compiler" >&6; }
15934 # Is the header present?
15935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15937 cat >conftest.$ac_ext <<_ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15943 #include <$ac_header>
15945 if { (ac_try="$ac_cpp conftest.$ac_ext"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } >/dev/null; then
15958 if test -s conftest.err; then
15959 ac_cpp_err=$ac_c_preproc_warn_flag
15960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15967 if test -z "$ac_cpp_err"; then
15968 ac_header_preproc=yes
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 ac_header_preproc=no
15976 rm -f conftest.err conftest.$ac_ext
15977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15978 echo "${ECHO_T}$ac_header_preproc" >&6; }
15980 # So? What about this header?
15981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15987 ac_header_preproc=yes
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16003 ## ----------------------------------- ##
16004 ## Report this to llvmbugs@cs.uiuc.edu ##
16005 ## ----------------------------------- ##
16007 ) | sed "s/^/$as_me: WARNING: /" >&2
16010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 eval "$as_ac_Header=\$ac_header_preproc"
16017 ac_res=`eval echo '${'$as_ac_Header'}'`
16018 { echo "$as_me:$LINENO: result: $ac_res" >&5
16019 echo "${ECHO_T}$ac_res" >&6; }
16022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16023 cat >>confdefs.h <<_ACEOF
16024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16033 for ac_header in utime.h windows.h
16035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 ac_res=`eval echo '${'$as_ac_Header'}'`
16043 { echo "$as_me:$LINENO: result: $ac_res" >&5
16044 echo "${ECHO_T}$ac_res" >&6; }
16046 # Is the header compilable?
16047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16049 cat >conftest.$ac_ext <<_ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16055 $ac_includes_default
16056 #include <$ac_header>
16058 rm -f conftest.$ac_objext
16059 if { (ac_try="$ac_compile"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_compile") 2>conftest.er1
16067 grep -v '^ *+' conftest.er1 >conftest.err
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
16072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16073 { (case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_try") 2>&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest.$ac_objext'
16083 { (case "(($ac_try" in
16084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085 *) ac_try_echo=$ac_try;;
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088 (eval "$ac_try") 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_header_compiler=yes
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_header_compiler=no
16100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16102 echo "${ECHO_T}$ac_header_compiler" >&6; }
16104 # Is the header present?
16105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16107 cat >conftest.$ac_ext <<_ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 #include <$ac_header>
16115 if { (ac_try="$ac_cpp conftest.$ac_ext"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16123 grep -v '^ *+' conftest.er1 >conftest.err
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } >/dev/null; then
16128 if test -s conftest.err; then
16129 ac_cpp_err=$ac_c_preproc_warn_flag
16130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16137 if test -z "$ac_cpp_err"; then
16138 ac_header_preproc=yes
16140 echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16143 ac_header_preproc=no
16146 rm -f conftest.err conftest.$ac_ext
16147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16148 echo "${ECHO_T}$ac_header_preproc" >&6; }
16150 # So? What about this header?
16151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16157 ac_header_preproc=yes
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16173 ## ----------------------------------- ##
16174 ## Report this to llvmbugs@cs.uiuc.edu ##
16175 ## ----------------------------------- ##
16177 ) | sed "s/^/$as_me: WARNING: /" >&2
16180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 eval "$as_ac_Header=\$ac_header_preproc"
16187 ac_res=`eval echo '${'$as_ac_Header'}'`
16188 { echo "$as_me:$LINENO: result: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16193 cat >>confdefs.h <<_ACEOF
16194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16205 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 ac_res=`eval echo '${'$as_ac_Header'}'`
16215 { echo "$as_me:$LINENO: result: $ac_res" >&5
16216 echo "${ECHO_T}$ac_res" >&6; }
16218 # Is the header compilable?
16219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16221 cat >conftest.$ac_ext <<_ACEOF
16224 cat confdefs.h >>conftest.$ac_ext
16225 cat >>conftest.$ac_ext <<_ACEOF
16226 /* end confdefs.h. */
16227 $ac_includes_default
16228 #include <$ac_header>
16230 rm -f conftest.$ac_objext
16231 if { (ac_try="$ac_compile"
16232 case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_compile") 2>conftest.er1
16239 grep -v '^ *+' conftest.er1 >conftest.err
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
16244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16245 { (case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250 (eval "$ac_try") 2>&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try='test -s conftest.$ac_objext'
16255 { (case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_try") 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 ac_header_compiler=yes
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16269 ac_header_compiler=no
16272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16274 echo "${ECHO_T}$ac_header_compiler" >&6; }
16276 # Is the header present?
16277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 #include <$ac_header>
16287 if { (ac_try="$ac_cpp conftest.$ac_ext"
16288 case "(($ac_try" in
16289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16290 *) ac_try_echo=$ac_try;;
16292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16295 grep -v '^ *+' conftest.er1 >conftest.err
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } >/dev/null; then
16300 if test -s conftest.err; then
16301 ac_cpp_err=$ac_c_preproc_warn_flag
16302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16309 if test -z "$ac_cpp_err"; then
16310 ac_header_preproc=yes
16312 echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 ac_header_preproc=no
16318 rm -f conftest.err conftest.$ac_ext
16319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16320 echo "${ECHO_T}$ac_header_preproc" >&6; }
16322 # So? What about this header?
16323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16329 ac_header_preproc=yes
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16345 ## ----------------------------------- ##
16346 ## Report this to llvmbugs@cs.uiuc.edu ##
16347 ## ----------------------------------- ##
16349 ) | sed "s/^/$as_me: WARNING: /" >&2
16352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 eval "$as_ac_Header=\$ac_header_preproc"
16359 ac_res=`eval echo '${'$as_ac_Header'}'`
16360 { echo "$as_me:$LINENO: result: $ac_res" >&5
16361 echo "${ECHO_T}$ac_res" >&6; }
16364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16365 cat >>confdefs.h <<_ACEOF
16366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16377 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16384 echo $ECHO_N "(cached) $ECHO_C" >&6
16386 ac_res=`eval echo '${'$as_ac_Header'}'`
16387 { echo "$as_me:$LINENO: result: $ac_res" >&5
16388 echo "${ECHO_T}$ac_res" >&6; }
16390 # Is the header compilable?
16391 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 $ac_includes_default
16400 #include <$ac_header>
16402 rm -f conftest.$ac_objext
16403 if { (ac_try="$ac_compile"
16404 case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_compile") 2>conftest.er1
16411 grep -v '^ *+' conftest.er1 >conftest.err
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } &&
16416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16417 { (case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_try") 2>&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest.$ac_objext'
16427 { (case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_try") 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_header_compiler=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_header_compiler=no
16444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16446 echo "${ECHO_T}$ac_header_compiler" >&6; }
16448 # Is the header present?
16449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16451 cat >conftest.$ac_ext <<_ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16457 #include <$ac_header>
16459 if { (ac_try="$ac_cpp conftest.$ac_ext"
16460 case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16467 grep -v '^ *+' conftest.er1 >conftest.err
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } >/dev/null; then
16472 if test -s conftest.err; then
16473 ac_cpp_err=$ac_c_preproc_warn_flag
16474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16481 if test -z "$ac_cpp_err"; then
16482 ac_header_preproc=yes
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 ac_header_preproc=no
16490 rm -f conftest.err conftest.$ac_ext
16491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16492 echo "${ECHO_T}$ac_header_preproc" >&6; }
16494 # So? What about this header?
16495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16501 ac_header_preproc=yes
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16517 ## ----------------------------------- ##
16518 ## Report this to llvmbugs@cs.uiuc.edu ##
16519 ## ----------------------------------- ##
16521 ) | sed "s/^/$as_me: WARNING: /" >&2
16524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 eval "$as_ac_Header=\$ac_header_preproc"
16531 ac_res=`eval echo '${'$as_ac_Header'}'`
16532 { echo "$as_me:$LINENO: result: $ac_res" >&5
16533 echo "${ECHO_T}$ac_res" >&6; }
16536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16537 cat >>confdefs.h <<_ACEOF
16538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16546 for ac_header in valgrind/valgrind.h
16548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 ac_res=`eval echo '${'$as_ac_Header'}'`
16556 { echo "$as_me:$LINENO: result: $ac_res" >&5
16557 echo "${ECHO_T}$ac_res" >&6; }
16559 # Is the header compilable?
16560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16562 cat >conftest.$ac_ext <<_ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h. */
16568 $ac_includes_default
16569 #include <$ac_header>
16571 rm -f conftest.$ac_objext
16572 if { (ac_try="$ac_compile"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_compile") 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try='test -s conftest.$ac_objext'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_header_compiler=yes
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ac_header_compiler=no
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16615 echo "${ECHO_T}$ac_header_compiler" >&6; }
16617 # Is the header present?
16618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16620 cat >conftest.$ac_ext <<_ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16626 #include <$ac_header>
16628 if { (ac_try="$ac_cpp conftest.$ac_ext"
16629 case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16636 grep -v '^ *+' conftest.er1 >conftest.err
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } >/dev/null; then
16641 if test -s conftest.err; then
16642 ac_cpp_err=$ac_c_preproc_warn_flag
16643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16650 if test -z "$ac_cpp_err"; then
16651 ac_header_preproc=yes
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_header_preproc=no
16659 rm -f conftest.err conftest.$ac_ext
16660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16661 echo "${ECHO_T}$ac_header_preproc" >&6; }
16663 # So? What about this header?
16664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16670 ac_header_preproc=yes
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16686 ## ----------------------------------- ##
16687 ## Report this to llvmbugs@cs.uiuc.edu ##
16688 ## ----------------------------------- ##
16690 ) | sed "s/^/$as_me: WARNING: /" >&2
16693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 eval "$as_ac_Header=\$ac_header_preproc"
16700 ac_res=`eval echo '${'$as_ac_Header'}'`
16701 { echo "$as_me:$LINENO: result: $ac_res" >&5
16702 echo "${ECHO_T}$ac_res" >&6; }
16705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16706 cat >>confdefs.h <<_ACEOF
16707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16715 for ac_header in fenv.h
16717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 ac_res=`eval echo '${'$as_ac_Header'}'`
16725 { echo "$as_me:$LINENO: result: $ac_res" >&5
16726 echo "${ECHO_T}$ac_res" >&6; }
16728 # Is the header compilable?
16729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16731 cat >conftest.$ac_ext <<_ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16737 $ac_includes_default
16738 #include <$ac_header>
16740 rm -f conftest.$ac_objext
16741 if { (ac_try="$ac_compile"
16742 case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_compile") 2>conftest.er1
16749 grep -v '^ *+' conftest.er1 >conftest.err
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16755 { (case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_try") 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } &&
16764 { ac_try='test -s conftest.$ac_objext'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 ac_header_compiler=yes
16776 echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16779 ac_header_compiler=no
16782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16784 echo "${ECHO_T}$ac_header_compiler" >&6; }
16786 # Is the header present?
16787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 #include <$ac_header>
16797 if { (ac_try="$ac_cpp conftest.$ac_ext"
16798 case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16805 grep -v '^ *+' conftest.er1 >conftest.err
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } >/dev/null; then
16810 if test -s conftest.err; then
16811 ac_cpp_err=$ac_c_preproc_warn_flag
16812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16819 if test -z "$ac_cpp_err"; then
16820 ac_header_preproc=yes
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 ac_header_preproc=no
16828 rm -f conftest.err conftest.$ac_ext
16829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16830 echo "${ECHO_T}$ac_header_preproc" >&6; }
16832 # So? What about this header?
16833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16839 ac_header_preproc=yes
16842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16855 ## ----------------------------------- ##
16856 ## Report this to llvmbugs@cs.uiuc.edu ##
16857 ## ----------------------------------- ##
16859 ) | sed "s/^/$as_me: WARNING: /" >&2
16862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 eval "$as_ac_Header=\$ac_header_preproc"
16869 ac_res=`eval echo '${'$as_ac_Header'}'`
16870 { echo "$as_me:$LINENO: result: $ac_res" >&5
16871 echo "${ECHO_T}$ac_res" >&6; }
16874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16875 cat >>confdefs.h <<_ACEOF
16876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16883 if test "$ENABLE_THREADS" -eq 1 ; then
16885 for ac_header in pthread.h
16887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 ac_res=`eval echo '${'$as_ac_Header'}'`
16895 { echo "$as_me:$LINENO: result: $ac_res" >&5
16896 echo "${ECHO_T}$ac_res" >&6; }
16898 # Is the header compilable?
16899 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16901 cat >conftest.$ac_ext <<_ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 $ac_includes_default
16908 #include <$ac_header>
16910 rm -f conftest.$ac_objext
16911 if { (ac_try="$ac_compile"
16912 case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_compile") 2>conftest.er1
16919 grep -v '^ *+' conftest.er1 >conftest.err
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
16924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16925 { (case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_try") 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; } &&
16934 { ac_try='test -s conftest.$ac_objext'
16935 { (case "(($ac_try" in
16936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937 *) ac_try_echo=$ac_try;;
16939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940 (eval "$ac_try") 2>&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; }; then
16944 ac_header_compiler=yes
16946 echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16949 ac_header_compiler=no
16952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16954 echo "${ECHO_T}$ac_header_compiler" >&6; }
16956 # Is the header present?
16957 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16959 cat >conftest.$ac_ext <<_ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16965 #include <$ac_header>
16967 if { (ac_try="$ac_cpp conftest.$ac_ext"
16968 case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16975 grep -v '^ *+' conftest.er1 >conftest.err
16977 cat conftest.err >&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } >/dev/null; then
16980 if test -s conftest.err; then
16981 ac_cpp_err=$ac_c_preproc_warn_flag
16982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16989 if test -z "$ac_cpp_err"; then
16990 ac_header_preproc=yes
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 ac_header_preproc=no
16998 rm -f conftest.err conftest.$ac_ext
16999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17000 echo "${ECHO_T}$ac_header_preproc" >&6; }
17002 # So? What about this header?
17003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17009 ac_header_preproc=yes
17012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17025 ## ----------------------------------- ##
17026 ## Report this to llvmbugs@cs.uiuc.edu ##
17027 ## ----------------------------------- ##
17029 ) | sed "s/^/$as_me: WARNING: /" >&2
17032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 eval "$as_ac_Header=\$ac_header_preproc"
17039 ac_res=`eval echo '${'$as_ac_Header'}'`
17040 { echo "$as_me:$LINENO: result: $ac_res" >&5
17041 echo "${ECHO_T}$ac_res" >&6; }
17044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17045 cat >>confdefs.h <<_ACEOF
17046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17062 if test "$llvm_cv_enable_libffi" = "yes" ; then
17065 for ac_header in ffi.h ffi/ffi.h
17067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17074 ac_res=`eval echo '${'$as_ac_Header'}'`
17075 { echo "$as_me:$LINENO: result: $ac_res" >&5
17076 echo "${ECHO_T}$ac_res" >&6; }
17078 # Is the header compilable?
17079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17081 cat >conftest.$ac_ext <<_ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 $ac_includes_default
17088 #include <$ac_header>
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_compile") 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; } &&
17114 { ac_try='test -s conftest.$ac_objext'
17115 { (case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_try") 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_header_compiler=yes
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ac_header_compiler=no
17132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17134 echo "${ECHO_T}$ac_header_compiler" >&6; }
17136 # Is the header present?
17137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17139 cat >conftest.$ac_ext <<_ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145 #include <$ac_header>
17147 if { (ac_try="$ac_cpp conftest.$ac_ext"
17148 case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17155 grep -v '^ *+' conftest.er1 >conftest.err
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } >/dev/null; then
17160 if test -s conftest.err; then
17161 ac_cpp_err=$ac_c_preproc_warn_flag
17162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17169 if test -z "$ac_cpp_err"; then
17170 ac_header_preproc=yes
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 ac_header_preproc=no
17178 rm -f conftest.err conftest.$ac_ext
17179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17180 echo "${ECHO_T}$ac_header_preproc" >&6; }
17182 # So? What about this header?
17183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17189 ac_header_preproc=yes
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17205 ## ----------------------------------- ##
17206 ## Report this to llvmbugs@cs.uiuc.edu ##
17207 ## ----------------------------------- ##
17209 ) | sed "s/^/$as_me: WARNING: /" >&2
17212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 eval "$as_ac_Header=\$ac_header_preproc"
17219 ac_res=`eval echo '${'$as_ac_Header'}'`
17220 { echo "$as_me:$LINENO: result: $ac_res" >&5
17221 echo "${ECHO_T}$ac_res" >&6; }
17224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17225 cat >>confdefs.h <<_ACEOF
17226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17236 for ac_header in CrashReporterClient.h
17238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17245 ac_res=`eval echo '${'$as_ac_Header'}'`
17246 { echo "$as_me:$LINENO: result: $ac_res" >&5
17247 echo "${ECHO_T}$ac_res" >&6; }
17249 # Is the header compilable?
17250 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17252 cat >conftest.$ac_ext <<_ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 $ac_includes_default
17259 #include <$ac_header>
17261 rm -f conftest.$ac_objext
17262 if { (ac_try="$ac_compile"
17263 case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_compile") 2>conftest.er1
17270 grep -v '^ *+' conftest.er1 >conftest.err
17272 cat conftest.err >&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17276 { (case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_try") 2>&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; } &&
17285 { ac_try='test -s conftest.$ac_objext'
17286 { (case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_try") 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; }; then
17295 ac_header_compiler=yes
17297 echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17300 ac_header_compiler=no
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17305 echo "${ECHO_T}$ac_header_compiler" >&6; }
17307 # Is the header present?
17308 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17310 cat >conftest.$ac_ext <<_ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 #include <$ac_header>
17318 if { (ac_try="$ac_cpp conftest.$ac_ext"
17319 case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } >/dev/null; then
17331 if test -s conftest.err; then
17332 ac_cpp_err=$ac_c_preproc_warn_flag
17333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17340 if test -z "$ac_cpp_err"; then
17341 ac_header_preproc=yes
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17346 ac_header_preproc=no
17349 rm -f conftest.err conftest.$ac_ext
17350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17351 echo "${ECHO_T}$ac_header_preproc" >&6; }
17353 # So? What about this header?
17354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17360 ac_header_preproc=yes
17363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17376 ## ----------------------------------- ##
17377 ## Report this to llvmbugs@cs.uiuc.edu ##
17378 ## ----------------------------------- ##
17380 ) | sed "s/^/$as_me: WARNING: /" >&2
17383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17388 eval "$as_ac_Header=\$ac_header_preproc"
17390 ac_res=`eval echo '${'$as_ac_Header'}'`
17391 { echo "$as_me:$LINENO: result: $ac_res" >&5
17392 echo "${ECHO_T}$ac_res" >&6; }
17395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17408 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17409 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17410 if test "${ac_cv_huge_val_sanity+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 ac_cpp='$CXXCPP $CPPFLAGS'
17416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17420 ac_save_CXXFLAGS=$CXXFLAGS
17422 if test "$cross_compiling" = yes; then
17423 ac_cv_huge_val_sanity=yes
17425 cat >conftest.$ac_ext <<_ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17435 double x = HUGE_VAL; return x != x;
17440 rm -f conftest$ac_exeext
17441 if { (ac_try="$ac_link"
17442 case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_link") 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17451 { (case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_try") 2>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; }; then
17460 ac_cv_huge_val_sanity=yes
17462 echo "$as_me: program exited with status $ac_status" >&5
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 ( exit $ac_status )
17467 ac_cv_huge_val_sanity=no
17469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17473 CXXFLAGS=$ac_save_CXXFLAGS
17475 ac_cpp='$CPP $CPPFLAGS'
17476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17482 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17483 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17484 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17487 { echo "$as_me:$LINENO: checking for pid_t" >&5
17488 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17489 if test "${ac_cv_type_pid_t+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >conftest.$ac_ext <<_ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 $ac_includes_default
17499 typedef pid_t ac__type_new_;
17503 if ((ac__type_new_ *) 0)
17505 if (sizeof (ac__type_new_))
17511 rm -f conftest.$ac_objext
17512 if { (ac_try="$ac_compile"
17513 case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17520 grep -v '^ *+' conftest.er1 >conftest.err
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
17525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17526 { (case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_try") 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest.$ac_objext'
17536 { (case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_try") 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_type_pid_t=yes
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 ac_cv_type_pid_t=no
17553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17555 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17556 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17557 if test $ac_cv_type_pid_t = yes; then
17561 cat >>confdefs.h <<_ACEOF
17567 { echo "$as_me:$LINENO: checking for size_t" >&5
17568 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17569 if test "${ac_cv_type_size_t+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 cat >conftest.$ac_ext <<_ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 $ac_includes_default
17579 typedef size_t ac__type_new_;
17583 if ((ac__type_new_ *) 0)
17585 if (sizeof (ac__type_new_))
17591 rm -f conftest.$ac_objext
17592 if { (ac_try="$ac_compile"
17593 case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_compile") 2>conftest.er1
17600 grep -v '^ *+' conftest.er1 >conftest.err
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } &&
17605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17606 { (case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_try") 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; } &&
17615 { ac_try='test -s conftest.$ac_objext'
17616 { (case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_try") 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 ac_cv_type_size_t=yes
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 ac_cv_type_size_t=no
17633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17635 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17636 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17637 if test $ac_cv_type_size_t = yes; then
17641 cat >>confdefs.h <<_ACEOF
17642 #define size_t unsigned int
17648 cat >>confdefs.h <<_ACEOF
17649 #define RETSIGTYPE void
17652 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17653 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17654 if test "${ac_cv_struct_tm+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 cat >conftest.$ac_ext <<_ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h. */
17663 #include <sys/types.h>
17669 struct tm *tp; tp->tm_sec;
17674 rm -f conftest.$ac_objext
17675 if { (ac_try="$ac_compile"
17676 case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_compile") 2>conftest.er1
17683 grep -v '^ *+' conftest.er1 >conftest.err
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17689 { (case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694 (eval "$ac_try") 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; } &&
17698 { ac_try='test -s conftest.$ac_objext'
17699 { (case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_try") 2>&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ac_cv_struct_tm=time.h
17710 echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17713 ac_cv_struct_tm=sys/time.h
17716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17718 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17719 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17720 if test $ac_cv_struct_tm = sys/time.h; then
17722 cat >>confdefs.h <<\_ACEOF
17723 #define TM_IN_SYS_TIME 1
17728 { echo "$as_me:$LINENO: checking for int64_t" >&5
17729 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17730 if test "${ac_cv_type_int64_t+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 cat >conftest.$ac_ext <<_ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 $ac_includes_default
17740 typedef int64_t ac__type_new_;
17744 if ((ac__type_new_ *) 0)
17746 if (sizeof (ac__type_new_))
17752 rm -f conftest.$ac_objext
17753 if { (ac_try="$ac_compile"
17754 case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_compile") 2>conftest.er1
17761 grep -v '^ *+' conftest.er1 >conftest.err
17763 cat conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } &&
17766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17767 { (case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_try") 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest.$ac_objext'
17777 { (case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_try") 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_cv_type_int64_t=yes
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 ac_cv_type_int64_t=no
17794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17796 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17797 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17798 if test $ac_cv_type_int64_t = yes; then
17800 cat >>confdefs.h <<_ACEOF
17801 #define HAVE_INT64_T 1
17806 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17807 echo "$as_me: error: Type int64_t required but not found" >&2;}
17808 { (exit 1); exit 1; }; }
17811 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17812 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17813 if test "${ac_cv_type_uint64_t+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 cat >conftest.$ac_ext <<_ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17822 $ac_includes_default
17823 typedef uint64_t ac__type_new_;
17827 if ((ac__type_new_ *) 0)
17829 if (sizeof (ac__type_new_))
17835 rm -f conftest.$ac_objext
17836 if { (ac_try="$ac_compile"
17837 case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_compile") 2>conftest.er1
17844 grep -v '^ *+' conftest.er1 >conftest.err
17846 cat conftest.err >&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
17849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17850 { (case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_try") 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest.$ac_objext'
17860 { (case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_try") 2>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869 ac_cv_type_uint64_t=yes
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 ac_cv_type_uint64_t=no
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17880 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17881 if test $ac_cv_type_uint64_t = yes; then
17883 cat >>confdefs.h <<_ACEOF
17884 #define HAVE_UINT64_T 1
17889 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17890 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17891 if test "${ac_cv_type_u_int64_t+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 cat >conftest.$ac_ext <<_ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 $ac_includes_default
17901 typedef u_int64_t ac__type_new_;
17905 if ((ac__type_new_ *) 0)
17907 if (sizeof (ac__type_new_))
17913 rm -f conftest.$ac_objext
17914 if { (ac_try="$ac_compile"
17915 case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_compile") 2>conftest.er1
17922 grep -v '^ *+' conftest.er1 >conftest.err
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
17927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17928 { (case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_try") 2>&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; } &&
17937 { ac_try='test -s conftest.$ac_objext'
17938 { (case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_try") 2>&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 ac_cv_type_u_int64_t=yes
17949 echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17952 ac_cv_type_u_int64_t=no
17955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17957 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17958 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17959 if test $ac_cv_type_u_int64_t = yes; then
17961 cat >>confdefs.h <<_ACEOF
17962 #define HAVE_U_INT64_T 1
17967 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17968 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17969 { (exit 1); exit 1; }; }
17983 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 cat >conftest.$ac_ext <<_ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17999 #define $ac_func innocuous_$ac_func
18001 /* System header to define __stub macros and hopefully few prototypes,
18002 which can conflict with char $ac_func (); below.
18003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18004 <limits.h> exists even on freestanding compilers. */
18007 # include <limits.h>
18009 # include <assert.h>
18014 /* Override any GCC internal prototype to avoid an error.
18015 Use char because int might match the return type of a GCC
18016 builtin and then its argument prototype would still apply. */
18021 /* The GNU C library defines this for functions which it implements
18022 to always fail with ENOSYS. Some functions are actually named
18023 something starting with __ and the normal name is an alias. */
18024 #if defined __stub_$ac_func || defined __stub___$ac_func
18031 return $ac_func ();
18036 rm -f conftest.$ac_objext conftest$ac_exeext
18037 if { (ac_try="$ac_link"
18038 case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_link") 2>conftest.er1
18045 grep -v '^ *+' conftest.er1 >conftest.err
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest$ac_exeext'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 eval "$as_ac_var=yes"
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18075 eval "$as_ac_var=no"
18078 rm -f core conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18081 ac_res=`eval echo '${'$as_ac_var'}'`
18082 { echo "$as_me:$LINENO: result: $ac_res" >&5
18083 echo "${ECHO_T}$ac_res" >&6; }
18084 if test `eval echo '${'$as_ac_var'}'` = yes; then
18085 cat >>confdefs.h <<_ACEOF
18086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18096 for ac_func in powf fmodf strtof round
18098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 cat >conftest.$ac_ext <<_ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18112 #define $ac_func innocuous_$ac_func
18114 /* System header to define __stub macros and hopefully few prototypes,
18115 which can conflict with char $ac_func (); below.
18116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18117 <limits.h> exists even on freestanding compilers. */
18120 # include <limits.h>
18122 # include <assert.h>
18127 /* Override any GCC internal prototype to avoid an error.
18128 Use char because int might match the return type of a GCC
18129 builtin and then its argument prototype would still apply. */
18134 /* The GNU C library defines this for functions which it implements
18135 to always fail with ENOSYS. Some functions are actually named
18136 something starting with __ and the normal name is an alias. */
18137 #if defined __stub_$ac_func || defined __stub___$ac_func
18144 return $ac_func ();
18149 rm -f conftest.$ac_objext conftest$ac_exeext
18150 if { (ac_try="$ac_link"
18151 case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_link") 2>conftest.er1
18158 grep -v '^ *+' conftest.er1 >conftest.err
18160 cat conftest.err >&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
18163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; } &&
18173 { ac_try='test -s conftest$ac_exeext'
18174 { (case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_try") 2>&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
18183 eval "$as_ac_var=yes"
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18188 eval "$as_ac_var=no"
18191 rm -f core conftest.err conftest.$ac_objext \
18192 conftest$ac_exeext conftest.$ac_ext
18194 ac_res=`eval echo '${'$as_ac_var'}'`
18195 { echo "$as_me:$LINENO: result: $ac_res" >&5
18196 echo "${ECHO_T}$ac_res" >&6; }
18197 if test `eval echo '${'$as_ac_var'}'` = yes; then
18198 cat >>confdefs.h <<_ACEOF
18199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18210 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18218 cat >conftest.$ac_ext <<_ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h. */
18224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18226 #define $ac_func innocuous_$ac_func
18228 /* System header to define __stub macros and hopefully few prototypes,
18229 which can conflict with char $ac_func (); below.
18230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18231 <limits.h> exists even on freestanding compilers. */
18234 # include <limits.h>
18236 # include <assert.h>
18241 /* Override any GCC internal prototype to avoid an error.
18242 Use char because int might match the return type of a GCC
18243 builtin and then its argument prototype would still apply. */
18248 /* The GNU C library defines this for functions which it implements
18249 to always fail with ENOSYS. Some functions are actually named
18250 something starting with __ and the normal name is an alias. */
18251 #if defined __stub_$ac_func || defined __stub___$ac_func
18258 return $ac_func ();
18263 rm -f conftest.$ac_objext conftest$ac_exeext
18264 if { (ac_try="$ac_link"
18265 case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_link") 2>conftest.er1
18272 grep -v '^ *+' conftest.er1 >conftest.err
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_try") 2>&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 eval "$as_ac_var=yes"
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 eval "$as_ac_var=no"
18305 rm -f core conftest.err conftest.$ac_objext \
18306 conftest$ac_exeext conftest.$ac_ext
18308 ac_res=`eval echo '${'$as_ac_var'}'`
18309 { echo "$as_me:$LINENO: result: $ac_res" >&5
18310 echo "${ECHO_T}$ac_res" >&6; }
18311 if test `eval echo '${'$as_ac_var'}'` = yes; then
18312 cat >>confdefs.h <<_ACEOF
18313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18322 for ac_func in isatty mkdtemp mkstemp
18324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 cat >conftest.$ac_ext <<_ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18338 #define $ac_func innocuous_$ac_func
18340 /* System header to define __stub macros and hopefully few prototypes,
18341 which can conflict with char $ac_func (); below.
18342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18343 <limits.h> exists even on freestanding compilers. */
18346 # include <limits.h>
18348 # include <assert.h>
18353 /* Override any GCC internal prototype to avoid an error.
18354 Use char because int might match the return type of a GCC
18355 builtin and then its argument prototype would still apply. */
18360 /* The GNU C library defines this for functions which it implements
18361 to always fail with ENOSYS. Some functions are actually named
18362 something starting with __ and the normal name is an alias. */
18363 #if defined __stub_$ac_func || defined __stub___$ac_func
18370 return $ac_func ();
18375 rm -f conftest.$ac_objext conftest$ac_exeext
18376 if { (ac_try="$ac_link"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_link") 2>conftest.er1
18384 grep -v '^ *+' conftest.er1 >conftest.err
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } &&
18389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18390 { (case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_try") 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest$ac_exeext'
18400 { (case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_try") 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 eval "$as_ac_var=yes"
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 eval "$as_ac_var=no"
18417 rm -f core conftest.err conftest.$ac_objext \
18418 conftest$ac_exeext conftest.$ac_ext
18420 ac_res=`eval echo '${'$as_ac_var'}'`
18421 { echo "$as_me:$LINENO: result: $ac_res" >&5
18422 echo "${ECHO_T}$ac_res" >&6; }
18423 if test `eval echo '${'$as_ac_var'}'` = yes; then
18424 cat >>confdefs.h <<_ACEOF
18425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18437 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 cat >conftest.$ac_ext <<_ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18453 #define $ac_func innocuous_$ac_func
18455 /* System header to define __stub macros and hopefully few prototypes,
18456 which can conflict with char $ac_func (); below.
18457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18458 <limits.h> exists even on freestanding compilers. */
18461 # include <limits.h>
18463 # include <assert.h>
18468 /* Override any GCC internal prototype to avoid an error.
18469 Use char because int might match the return type of a GCC
18470 builtin and then its argument prototype would still apply. */
18475 /* The GNU C library defines this for functions which it implements
18476 to always fail with ENOSYS. Some functions are actually named
18477 something starting with __ and the normal name is an alias. */
18478 #if defined __stub_$ac_func || defined __stub___$ac_func
18485 return $ac_func ();
18490 rm -f conftest.$ac_objext conftest$ac_exeext
18491 if { (ac_try="$ac_link"
18492 case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497 (eval "$ac_link") 2>conftest.er1
18499 grep -v '^ *+' conftest.er1 >conftest.err
18501 cat conftest.err >&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } &&
18504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18505 { (case "(($ac_try" in
18506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507 *) ac_try_echo=$ac_try;;
18509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510 (eval "$ac_try") 2>&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; } &&
18514 { ac_try='test -s conftest$ac_exeext'
18515 { (case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_try") 2>&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; }; then
18524 eval "$as_ac_var=yes"
18526 echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18529 eval "$as_ac_var=no"
18532 rm -f core conftest.err conftest.$ac_objext \
18533 conftest$ac_exeext conftest.$ac_ext
18535 ac_res=`eval echo '${'$as_ac_var'}'`
18536 { echo "$as_me:$LINENO: result: $ac_res" >&5
18537 echo "${ECHO_T}$ac_res" >&6; }
18538 if test `eval echo '${'$as_ac_var'}'` = yes; then
18539 cat >>confdefs.h <<_ACEOF
18540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18550 for ac_func in strerror strerror_r strerror_s setenv
18552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18556 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 cat >conftest.$ac_ext <<_ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h. */
18564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18566 #define $ac_func innocuous_$ac_func
18568 /* System header to define __stub macros and hopefully few prototypes,
18569 which can conflict with char $ac_func (); below.
18570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18571 <limits.h> exists even on freestanding compilers. */
18574 # include <limits.h>
18576 # include <assert.h>
18581 /* Override any GCC internal prototype to avoid an error.
18582 Use char because int might match the return type of a GCC
18583 builtin and then its argument prototype would still apply. */
18588 /* The GNU C library defines this for functions which it implements
18589 to always fail with ENOSYS. Some functions are actually named
18590 something starting with __ and the normal name is an alias. */
18591 #if defined __stub_$ac_func || defined __stub___$ac_func
18598 return $ac_func ();
18603 rm -f conftest.$ac_objext conftest$ac_exeext
18604 if { (ac_try="$ac_link"
18605 case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_link") 2>conftest.er1
18612 grep -v '^ *+' conftest.er1 >conftest.err
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
18617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18618 { (case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_try") 2>&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try='test -s conftest$ac_exeext'
18628 { (case "(($ac_try" in
18629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630 *) ac_try_echo=$ac_try;;
18632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633 (eval "$ac_try") 2>&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
18637 eval "$as_ac_var=yes"
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18642 eval "$as_ac_var=no"
18645 rm -f core conftest.err conftest.$ac_objext \
18646 conftest$ac_exeext conftest.$ac_ext
18648 ac_res=`eval echo '${'$as_ac_var'}'`
18649 { echo "$as_me:$LINENO: result: $ac_res" >&5
18650 echo "${ECHO_T}$ac_res" >&6; }
18651 if test `eval echo '${'$as_ac_var'}'` = yes; then
18652 cat >>confdefs.h <<_ACEOF
18653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18663 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 cat >conftest.$ac_ext <<_ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18679 #define $ac_func innocuous_$ac_func
18681 /* System header to define __stub macros and hopefully few prototypes,
18682 which can conflict with char $ac_func (); below.
18683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18684 <limits.h> exists even on freestanding compilers. */
18687 # include <limits.h>
18689 # include <assert.h>
18694 /* Override any GCC internal prototype to avoid an error.
18695 Use char because int might match the return type of a GCC
18696 builtin and then its argument prototype would still apply. */
18701 /* The GNU C library defines this for functions which it implements
18702 to always fail with ENOSYS. Some functions are actually named
18703 something starting with __ and the normal name is an alias. */
18704 #if defined __stub_$ac_func || defined __stub___$ac_func
18711 return $ac_func ();
18716 rm -f conftest.$ac_objext conftest$ac_exeext
18717 if { (ac_try="$ac_link"
18718 case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_link") 2>conftest.er1
18725 grep -v '^ *+' conftest.er1 >conftest.err
18727 cat conftest.err >&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } &&
18730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18731 { (case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_try") 2>&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try='test -s conftest$ac_exeext'
18741 { (case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_try") 2>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; }; then
18750 eval "$as_ac_var=yes"
18752 echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18755 eval "$as_ac_var=no"
18758 rm -f core conftest.err conftest.$ac_objext \
18759 conftest$ac_exeext conftest.$ac_ext
18761 ac_res=`eval echo '${'$as_ac_var'}'`
18762 { echo "$as_me:$LINENO: result: $ac_res" >&5
18763 echo "${ECHO_T}$ac_res" >&6; }
18764 if test `eval echo '${'$as_ac_var'}'` = yes; then
18765 cat >>confdefs.h <<_ACEOF
18766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18776 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 cat >conftest.$ac_ext <<_ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18792 #define $ac_func innocuous_$ac_func
18794 /* System header to define __stub macros and hopefully few prototypes,
18795 which can conflict with char $ac_func (); below.
18796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18797 <limits.h> exists even on freestanding compilers. */
18800 # include <limits.h>
18802 # include <assert.h>
18807 /* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18814 /* The GNU C library defines this for functions which it implements
18815 to always fail with ENOSYS. Some functions are actually named
18816 something starting with __ and the normal name is an alias. */
18817 #if defined __stub_$ac_func || defined __stub___$ac_func
18824 return $ac_func ();
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (ac_try="$ac_link"
18831 case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_link") 2>conftest.er1
18838 grep -v '^ *+' conftest.er1 >conftest.err
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
18843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; } &&
18853 { ac_try='test -s conftest$ac_exeext'
18854 { (case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_try") 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18863 eval "$as_ac_var=yes"
18865 echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18868 eval "$as_ac_var=no"
18871 rm -f core conftest.err conftest.$ac_objext \
18872 conftest$ac_exeext conftest.$ac_ext
18874 ac_res=`eval echo '${'$as_ac_var'}'`
18875 { echo "$as_me:$LINENO: result: $ac_res" >&5
18876 echo "${ECHO_T}$ac_res" >&6; }
18877 if test `eval echo '${'$as_ac_var'}'` = yes; then
18878 cat >>confdefs.h <<_ACEOF
18879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18885 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18886 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18887 if test "${llvm_cv_c_printf_a+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 ac_cpp='$CPP $CPPFLAGS'
18892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18896 if test "$cross_compiling" = yes; then
18897 llvmac_cv_c_printf_a=no
18899 cat >conftest.$ac_ext <<_ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18908 #include <stdlib.h>
18914 volatile double A, B;
18918 sprintf(Buffer, "%a", A);
18922 if (A != 0x1.999999999999ap-4)
18929 rm -f conftest$ac_exeext
18930 if { (ac_try="$ac_link"
18931 case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 (eval "$ac_link") 2>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18940 { (case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_try") 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 llvm_cv_c_printf_a=yes
18951 echo "$as_me: program exited with status $ac_status" >&5
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 ( exit $ac_status )
18956 llvmac_cv_c_printf_a=no
18958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18963 ac_cpp='$CPP $CPPFLAGS'
18964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18969 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18970 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18971 if test "$llvm_cv_c_printf_a" = "yes"; then
18973 cat >>confdefs.h <<\_ACEOF
18974 #define HAVE_PRINTF_A 1
18980 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18981 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18982 if test "${ac_cv_func_rand48+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
18986 ac_cpp='$CXXCPP $CPPFLAGS'
18987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18991 cat >conftest.$ac_ext <<_ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18997 #include <stdlib.h>
19001 srand48(0);lrand48();drand48();
19006 rm -f conftest.$ac_objext
19007 if { (ac_try="$ac_compile"
19008 case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_compile") 2>conftest.er1
19015 grep -v '^ *+' conftest.er1 >conftest.err
19017 cat conftest.err >&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } &&
19020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19021 { (case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_try") 2>&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; } &&
19030 { ac_try='test -s conftest.$ac_objext'
19031 { (case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_try") 2>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 ac_cv_func_rand48=yes
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19045 ac_cv_func_rand48=no
19048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19050 ac_cpp='$CPP $CPPFLAGS'
19051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19056 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19057 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19059 if test "$ac_cv_func_rand48" = "yes" ; then
19061 cat >>confdefs.h <<\_ACEOF
19062 #define HAVE_RAND48 1
19069 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19070 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19071 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 ac_cpp='$CXXCPP $CPPFLAGS'
19076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19080 cat >conftest.$ac_ext <<_ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19095 rm -f conftest.$ac_objext
19096 if { (ac_try="$ac_compile"
19097 case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_compile") 2>conftest.er1
19104 grep -v '^ *+' conftest.er1 >conftest.err
19106 cat conftest.err >&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19110 { (case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_try") 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest.$ac_objext'
19120 { (case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_try") 2>&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_cv_func_isnan_in_math_h=yes
19131 echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19134 ac_cv_func_isnan_in_math_h=no
19137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19139 ac_cpp='$CPP $CPPFLAGS'
19140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19145 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19146 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19149 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19151 cat >>confdefs.h <<\_ACEOF
19152 #define HAVE_ISNAN_IN_MATH_H 1
19157 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19158 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19159 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19160 echo $ECHO_N "(cached) $ECHO_C" >&6
19163 ac_cpp='$CXXCPP $CPPFLAGS'
19164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19168 cat >conftest.$ac_ext <<_ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h. */
19183 rm -f conftest.$ac_objext
19184 if { (ac_try="$ac_compile"
19185 case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_compile") 2>conftest.er1
19192 grep -v '^ *+' conftest.er1 >conftest.err
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19198 { (case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_try") 2>&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; } &&
19207 { ac_try='test -s conftest.$ac_objext'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
19217 ac_cv_func_isnan_in_cmath=yes
19219 echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19222 ac_cv_func_isnan_in_cmath=no
19225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19227 ac_cpp='$CPP $CPPFLAGS'
19228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19233 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19234 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19236 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19238 cat >>confdefs.h <<\_ACEOF
19239 #define HAVE_ISNAN_IN_CMATH 1
19244 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19245 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19246 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 ac_cpp='$CXXCPP $CPPFLAGS'
19251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19255 cat >conftest.$ac_ext <<_ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19265 float f; std::isnan(f);
19270 rm -f conftest.$ac_objext
19271 if { (ac_try="$ac_compile"
19272 case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_compile") 2>conftest.er1
19279 grep -v '^ *+' conftest.er1 >conftest.err
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } &&
19284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest.$ac_objext'
19295 { (case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_try") 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_func_std_isnan_in_cmath=yes
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19309 ac_cv_func_std_isnan_in_cmath=no
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 ac_cpp='$CPP $CPPFLAGS'
19315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19320 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19321 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19323 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19325 cat >>confdefs.h <<\_ACEOF
19326 #define HAVE_STD_ISNAN_IN_CMATH 1
19332 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19333 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19334 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 ac_cpp='$CXXCPP $CPPFLAGS'
19339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19343 cat >conftest.$ac_ext <<_ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19358 rm -f conftest.$ac_objext
19359 if { (ac_try="$ac_compile"
19360 case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_compile") 2>conftest.er1
19367 grep -v '^ *+' conftest.er1 >conftest.err
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19373 { (case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_try") 2>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
19383 { (case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388 (eval "$ac_try") 2>&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 ac_cv_func_isinf_in_math_h=yes
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 ac_cv_func_isinf_in_math_h=no
19400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402 ac_cpp='$CPP $CPPFLAGS'
19403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19408 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19409 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19411 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19413 cat >>confdefs.h <<\_ACEOF
19414 #define HAVE_ISINF_IN_MATH_H 1
19419 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19420 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19421 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19425 ac_cpp='$CXXCPP $CPPFLAGS'
19426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19430 cat >conftest.$ac_ext <<_ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19445 rm -f conftest.$ac_objext
19446 if { (ac_try="$ac_compile"
19447 case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452 (eval "$ac_compile") 2>conftest.er1
19454 grep -v '^ *+' conftest.er1 >conftest.err
19456 cat conftest.err >&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
19459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19460 { (case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_try") 2>&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; } &&
19469 { ac_try='test -s conftest.$ac_objext'
19470 { (case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475 (eval "$ac_try") 2>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; }; then
19479 ac_cv_func_isinf_in_cmath=yes
19481 echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19484 ac_cv_func_isinf_in_cmath=no
19487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489 ac_cpp='$CPP $CPPFLAGS'
19490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19495 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19496 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19498 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19500 cat >>confdefs.h <<\_ACEOF
19501 #define HAVE_ISINF_IN_CMATH 1
19506 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19507 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19508 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 ac_cpp='$CXXCPP $CPPFLAGS'
19513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19517 cat >conftest.$ac_ext <<_ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19527 float f; std::isinf(f)}
19532 rm -f conftest.$ac_objext
19533 if { (ac_try="$ac_compile"
19534 case "(($ac_try" in
19535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536 *) ac_try_echo=$ac_try;;
19538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539 (eval "$ac_compile") 2>conftest.er1
19541 grep -v '^ *+' conftest.er1 >conftest.err
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19547 { (case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_try") 2>&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } &&
19556 { ac_try='test -s conftest.$ac_objext'
19557 { (case "(($ac_try" in
19558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562 (eval "$ac_try") 2>&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; }; then
19566 ac_cv_func_std_isinf_in_cmath=yes
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 ac_cv_func_std_isinf_in_cmath=no
19574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576 ac_cpp='$CPP $CPPFLAGS'
19577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19582 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19583 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19585 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19587 cat >>confdefs.h <<\_ACEOF
19588 #define HAVE_STD_ISINF_IN_CMATH 1
19593 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19594 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19595 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 ac_cpp='$CXXCPP $CPPFLAGS'
19600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 #include <ieeefp.h>
19614 float f; finite(f);
19619 rm -f conftest.$ac_objext
19620 if { (ac_try="$ac_compile"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_compile") 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest.$ac_objext'
19644 { (case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_try") 2>&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 ac_cv_func_finite_in_ieeefp_h=yes
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_cv_func_finite_in_ieeefp_h=no
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663 ac_cpp='$CPP $CPPFLAGS'
19664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19670 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19672 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19674 cat >>confdefs.h <<\_ACEOF
19675 #define HAVE_FINITE_IN_IEEEFP_H 1
19682 if test "$llvm_cv_platform_type" = "Unix" ; then
19685 for ac_header in stdlib.h unistd.h
19687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 ac_res=`eval echo '${'$as_ac_Header'}'`
19695 { echo "$as_me:$LINENO: result: $ac_res" >&5
19696 echo "${ECHO_T}$ac_res" >&6; }
19698 # Is the header compilable?
19699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19701 cat >conftest.$ac_ext <<_ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19707 $ac_includes_default
19708 #include <$ac_header>
19710 rm -f conftest.$ac_objext
19711 if { (ac_try="$ac_compile"
19712 case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_compile") 2>conftest.er1
19719 grep -v '^ *+' conftest.er1 >conftest.err
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725 { (case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_try") 2>&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; } &&
19734 { ac_try='test -s conftest.$ac_objext'
19735 { (case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_try") 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_header_compiler=yes
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_header_compiler=no
19752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19754 echo "${ECHO_T}$ac_header_compiler" >&6; }
19756 # Is the header present?
19757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19759 cat >conftest.$ac_ext <<_ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19765 #include <$ac_header>
19767 if { (ac_try="$ac_cpp conftest.$ac_ext"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19775 grep -v '^ *+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } >/dev/null; then
19780 if test -s conftest.err; then
19781 ac_cpp_err=$ac_c_preproc_warn_flag
19782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19789 if test -z "$ac_cpp_err"; then
19790 ac_header_preproc=yes
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_header_preproc=no
19798 rm -f conftest.err conftest.$ac_ext
19799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19800 echo "${ECHO_T}$ac_header_preproc" >&6; }
19802 # So? What about this header?
19803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19809 ac_header_preproc=yes
19812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19825 ## ----------------------------------- ##
19826 ## Report this to llvmbugs@cs.uiuc.edu ##
19827 ## ----------------------------------- ##
19829 ) | sed "s/^/$as_me: WARNING: /" >&2
19832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 eval "$as_ac_Header=\$ac_header_preproc"
19839 ac_res=`eval echo '${'$as_ac_Header'}'`
19840 { echo "$as_me:$LINENO: result: $ac_res" >&5
19841 echo "${ECHO_T}$ac_res" >&6; }
19844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19845 cat >>confdefs.h <<_ACEOF
19846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19854 for ac_func in getpagesize
19856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 cat >conftest.$ac_ext <<_ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h. */
19868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19870 #define $ac_func innocuous_$ac_func
19872 /* System header to define __stub macros and hopefully few prototypes,
19873 which can conflict with char $ac_func (); below.
19874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19875 <limits.h> exists even on freestanding compilers. */
19878 # include <limits.h>
19880 # include <assert.h>
19885 /* Override any GCC internal prototype to avoid an error.
19886 Use char because int might match the return type of a GCC
19887 builtin and then its argument prototype would still apply. */
19892 /* The GNU C library defines this for functions which it implements
19893 to always fail with ENOSYS. Some functions are actually named
19894 something starting with __ and the normal name is an alias. */
19895 #if defined __stub_$ac_func || defined __stub___$ac_func
19902 return $ac_func ();
19907 rm -f conftest.$ac_objext conftest$ac_exeext
19908 if { (ac_try="$ac_link"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_link") 2>conftest.er1
19916 grep -v '^ *+' conftest.er1 >conftest.err
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
19921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19922 { (case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_try") 2>&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest$ac_exeext'
19932 { (case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_try") 2>&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 eval "$as_ac_var=yes"
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 eval "$as_ac_var=no"
19949 rm -f core conftest.err conftest.$ac_objext \
19950 conftest$ac_exeext conftest.$ac_ext
19952 ac_res=`eval echo '${'$as_ac_var'}'`
19953 { echo "$as_me:$LINENO: result: $ac_res" >&5
19954 echo "${ECHO_T}$ac_res" >&6; }
19955 if test `eval echo '${'$as_ac_var'}'` = yes; then
19956 cat >>confdefs.h <<_ACEOF
19957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19963 { echo "$as_me:$LINENO: checking for working mmap" >&5
19964 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19965 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 if test "$cross_compiling" = yes; then
19969 ac_cv_func_mmap_fixed_mapped=no
19971 cat >conftest.$ac_ext <<_ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19977 $ac_includes_default
19978 /* malloc might have been renamed as rpl_malloc. */
19981 /* Thanks to Mike Haertel and Jim Avera for this test.
19982 Here is a matrix of mmap possibilities:
19983 mmap private not fixed
19984 mmap private fixed at somewhere currently unmapped
19985 mmap private fixed at somewhere already mapped
19986 mmap shared not fixed
19987 mmap shared fixed at somewhere currently unmapped
19988 mmap shared fixed at somewhere already mapped
19989 For private mappings, we should verify that changes cannot be read()
19990 back from the file, nor mmap's back from the file at a different
19991 address. (There have been systems where private was not correctly
19992 implemented like the infamous i386 svr4.0, and systems where the
19993 VM page cache was not coherent with the file system buffer cache
19994 like early versions of FreeBSD and possibly contemporary NetBSD.)
19995 For shared mappings, we should conversely verify that changes get
19996 propagated back to all the places they're supposed to be.
19998 Grep wants private fixed already mapped.
19999 The main things grep needs to know about mmap are:
20000 * does it exist and is it safe to write into the mmap'd area
20001 * how to use it (BSD variants) */
20004 #include <sys/mman.h>
20006 #if !STDC_HEADERS && !HAVE_STDLIB_H
20010 /* This mess was copied from the GNU getpagesize.h. */
20011 #if !HAVE_GETPAGESIZE
20012 /* Assume that all systems that can run configure have sys/param.h. */
20013 # if !HAVE_SYS_PARAM_H
20014 # define HAVE_SYS_PARAM_H 1
20017 # ifdef _SC_PAGESIZE
20018 # define getpagesize() sysconf(_SC_PAGESIZE)
20019 # else /* no _SC_PAGESIZE */
20020 # if HAVE_SYS_PARAM_H
20021 # include <sys/param.h>
20022 # ifdef EXEC_PAGESIZE
20023 # define getpagesize() EXEC_PAGESIZE
20024 # else /* no EXEC_PAGESIZE */
20026 # define getpagesize() NBPG * CLSIZE
20029 # endif /* no CLSIZE */
20030 # else /* no NBPG */
20032 # define getpagesize() NBPC
20033 # else /* no NBPC */
20035 # define getpagesize() PAGESIZE
20036 # endif /* PAGESIZE */
20037 # endif /* no NBPC */
20038 # endif /* no NBPG */
20039 # endif /* no EXEC_PAGESIZE */
20040 # else /* no HAVE_SYS_PARAM_H */
20041 # define getpagesize() 8192 /* punt totally */
20042 # endif /* no HAVE_SYS_PARAM_H */
20043 # endif /* no _SC_PAGESIZE */
20045 #endif /* no HAVE_GETPAGESIZE */
20050 char *data, *data2, *data3;
20054 pagesize = getpagesize ();
20056 /* First, make a file with some known garbage in it. */
20057 data = (char *) malloc (pagesize);
20060 for (i = 0; i < pagesize; ++i)
20061 *(data + i) = rand ();
20063 fd = creat ("conftest.mmap", 0600);
20066 if (write (fd, data, pagesize) != pagesize)
20070 /* Next, try to mmap the file at a fixed address which already has
20071 something else allocated at it. If we can, also make sure that
20072 we see the same garbage. */
20073 fd = open ("conftest.mmap", O_RDWR);
20076 data2 = (char *) malloc (2 * pagesize);
20079 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20080 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20081 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20083 for (i = 0; i < pagesize; ++i)
20084 if (*(data + i) != *(data2 + i))
20087 /* Finally, make sure that changes to the mapped area do not
20088 percolate back to the file as seen by read(). (This is a bug on
20089 some variants of i386 svr4.0.) */
20090 for (i = 0; i < pagesize; ++i)
20091 *(data2 + i) = *(data2 + i) + 1;
20092 data3 = (char *) malloc (pagesize);
20095 if (read (fd, data3, pagesize) != pagesize)
20097 for (i = 0; i < pagesize; ++i)
20098 if (*(data + i) != *(data3 + i))
20104 rm -f conftest$ac_exeext
20105 if { (ac_try="$ac_link"
20106 case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_link") 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20115 { (case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_try") 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_cv_func_mmap_fixed_mapped=yes
20126 echo "$as_me: program exited with status $ac_status" >&5
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 ( exit $ac_status )
20131 ac_cv_func_mmap_fixed_mapped=no
20133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20138 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20139 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20140 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20142 cat >>confdefs.h <<\_ACEOF
20143 #define HAVE_MMAP 1
20147 rm -f conftest.mmap
20149 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20150 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20151 if test "${ac_cv_func_mmap_file+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 ac_cpp='$CPP $CPPFLAGS'
20156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20160 if test "$cross_compiling" = yes; then
20161 ac_cv_func_mmap_file=no
20163 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20171 #include <sys/types.h>
20172 #include <sys/mman.h>
20180 fd = creat ("foo",0777);
20181 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20183 return (fd != (int) MAP_FAILED);
20188 rm -f conftest$ac_exeext
20189 if { (ac_try="$ac_link"
20190 case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_link") 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20199 { (case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_try") 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 ac_cv_func_mmap_file=yes
20210 echo "$as_me: program exited with status $ac_status" >&5
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 ( exit $ac_status )
20215 ac_cv_func_mmap_file=no
20217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20222 ac_cpp='$CPP $CPPFLAGS'
20223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20229 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20230 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20231 if test "$ac_cv_func_mmap_file" = yes; then
20233 cat >>confdefs.h <<\_ACEOF
20234 #define HAVE_MMAP_FILE
20241 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20242 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20243 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20246 if test "$llvm_cv_os_type" = "Interix" ; then
20247 ac_cv_need_dev_zero_for_mmap=yes
20249 ac_cv_need_dev_zero_for_mmap=no
20253 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20254 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20255 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20257 cat >>confdefs.h <<\_ACEOF
20258 #define NEED_DEV_ZERO_FOR_MMAP 1
20263 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20265 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20266 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20268 if test "$ac_cv_func_mmap_file" = "no"
20270 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20271 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20275 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20276 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20278 ac_cpp='$CXXCPP $CPPFLAGS'
20279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20283 cat >conftest.$ac_ext <<_ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20290 volatile unsigned long val = 1;
20291 __sync_synchronize();
20292 __sync_val_compare_and_swap(&val, 1, 0);
20293 __sync_add_and_fetch(&val, 1);
20294 __sync_sub_and_fetch(&val, 1);
20299 rm -f conftest.$ac_objext conftest$ac_exeext
20300 if { (ac_try="$ac_link"
20301 case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306 (eval "$ac_link") 2>conftest.er1
20308 grep -v '^ *+' conftest.er1 >conftest.err
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
20313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20314 { (case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_try") 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest$ac_exeext'
20324 { (case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_try") 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20334 ac_cpp='$CPP $CPPFLAGS'
20335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20339 { echo "$as_me:$LINENO: result: yes" >&5
20340 echo "${ECHO_T}yes" >&6; }
20342 cat >>confdefs.h <<\_ACEOF
20343 #define LLVM_MULTITHREADED 1
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 { echo "$as_me:$LINENO: result: no" >&5
20351 echo "${ECHO_T}no" >&6; }
20353 cat >>confdefs.h <<\_ACEOF
20354 #define LLVM_MULTITHREADED 0
20357 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20358 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20361 rm -f core conftest.err conftest.$ac_objext \
20362 conftest$ac_exeext conftest.$ac_ext
20365 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20366 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20367 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20368 if test "${llvm_cv_linux_mixed+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20372 ac_cpp='$CPP $CPPFLAGS'
20373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20377 cat >conftest.$ac_ext <<_ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20384 error: Not x86-64 even if uname says so!
20395 rm -f conftest.$ac_objext
20396 if { (ac_try="$ac_compile"
20397 case "(($ac_try" in
20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_compile") 2>conftest.er1
20404 grep -v '^ *+' conftest.er1 >conftest.err
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } &&
20409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20410 { (case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_try") 2>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; } &&
20419 { ac_try='test -s conftest.$ac_objext'
20420 { (case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_try") 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 llvm_cv_linux_mixed=no
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 llvm_cv_linux_mixed=yes
20437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 ac_cpp='$CPP $CPPFLAGS'
20440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20446 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20447 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20449 if test "$llvm_cv_linux_mixed" = "yes"; then
20450 llvm_cv_target_arch="x86"
20456 for ac_func in __dso_handle
20458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 cat >conftest.$ac_ext <<_ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20472 #define $ac_func innocuous_$ac_func
20474 /* System header to define __stub macros and hopefully few prototypes,
20475 which can conflict with char $ac_func (); below.
20476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20477 <limits.h> exists even on freestanding compilers. */
20480 # include <limits.h>
20482 # include <assert.h>
20487 /* Override any GCC internal prototype to avoid an error.
20488 Use char because int might match the return type of a GCC
20489 builtin and then its argument prototype would still apply. */
20494 /* The GNU C library defines this for functions which it implements
20495 to always fail with ENOSYS. Some functions are actually named
20496 something starting with __ and the normal name is an alias. */
20497 #if defined __stub_$ac_func || defined __stub___$ac_func
20504 return $ac_func ();
20509 rm -f conftest.$ac_objext conftest$ac_exeext
20510 if { (ac_try="$ac_link"
20511 case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_link") 2>conftest.er1
20518 grep -v '^ *+' conftest.er1 >conftest.err
20520 cat conftest.err >&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } &&
20523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20524 { (case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_try") 2>&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; } &&
20533 { ac_try='test -s conftest$ac_exeext'
20534 { (case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_try") 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 eval "$as_ac_var=yes"
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20548 eval "$as_ac_var=no"
20551 rm -f core conftest.err conftest.$ac_objext \
20552 conftest$ac_exeext conftest.$ac_ext
20554 ac_res=`eval echo '${'$as_ac_var'}'`
20555 { echo "$as_me:$LINENO: result: $ac_res" >&5
20556 echo "${ECHO_T}$ac_res" >&6; }
20557 if test `eval echo '${'$as_ac_var'}'` = yes; then
20558 cat >>confdefs.h <<_ACEOF
20559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20566 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20567 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20568 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20571 llvm_cv_llvmgcc_dragonegg="no"
20572 if test -x "$LLVMGCC" ; then
20573 cp /dev/null conftest.c
20574 "$LLVMGCC" -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c | \
20575 grep 'target datalayout =' > /dev/null 2>&1
20576 if test $? -eq 0 ; then
20577 llvm_cv_llvmgcc_dragonegg="yes"
20582 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20583 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20585 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20586 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
20587 LLVMGCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
20589 LLVMCC_EMITIR_FLAG="-emit-llvm"
20590 LLVMGCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
20595 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20596 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20597 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 llvm_cv_llvmgcc_sanity="no"
20601 if test -x "$LLVMGCC" ; then
20602 cp /dev/null conftest.c
20603 "$LLVMGCC" "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
20604 grep 'target datalayout =' > /dev/null 2>&1
20605 if test $? -eq 0 ; then
20606 llvm_cv_llvmgcc_sanity="yes"
20611 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20612 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20614 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20615 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20616 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20617 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20618 LLVMCC1=$llvmcc1path
20620 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20621 LLVMCC1PLUS=$llvmcc1pluspath
20623 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20624 LLVMGCCDIR=$llvmgccdir
20626 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20627 LLVMGCC_LANGS=$llvmgcclangs
20629 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20632 { echo "$as_me:$LINENO: result: ok" >&5
20633 echo "${ECHO_T}ok" >&6; }
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_HOSTTRIPLE "$host"
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 -fvisibility-inlines-hidden"
20799 cat >conftest.$ac_ext <<_ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h. */
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"
20892 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20899 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20901 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20903 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20905 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20907 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20910 ac_config_files="$ac_config_files Makefile.config"
20913 ac_config_files="$ac_config_files llvm.spec"
20916 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20919 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20922 ac_config_commands="$ac_config_commands setup"
20924 ac_config_commands="$ac_config_commands Makefile"
20927 ac_config_commands="$ac_config_commands Makefile.common"
20930 ac_config_commands="$ac_config_commands examples/Makefile"
20933 ac_config_commands="$ac_config_commands lib/Makefile"
20936 ac_config_commands="$ac_config_commands runtime/Makefile"
20939 ac_config_commands="$ac_config_commands test/Makefile"
20942 ac_config_commands="$ac_config_commands test/Makefile.tests"
20945 ac_config_commands="$ac_config_commands unittests/Makefile"
20948 ac_config_commands="$ac_config_commands tools/Makefile"
20951 ac_config_commands="$ac_config_commands utils/Makefile"
20954 ac_config_commands="$ac_config_commands projects/Makefile"
20957 ac_config_commands="$ac_config_commands bindings/Makefile"
20960 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20964 cat >confcache <<\_ACEOF
20965 # This file is a shell script that caches the results of configure
20966 # tests run on this system so they can be shared between configure
20967 # scripts and configure runs, see configure's option --config-cache.
20968 # It is not useful on other systems. If it contains results you don't
20969 # want to keep, you may remove or edit it.
20971 # config.status only pays attention to the cache file if you give it
20972 # the --recheck option to rerun configure.
20974 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20975 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20976 # following values.
20980 # The following way of writing the cache mishandles newlines in values,
20981 # but we know of no workaround that is simple, portable, and efficient.
20982 # So, we kill variables containing newlines.
20983 # Ultrix sh set writes to stderr and can't be redirected directly,
20984 # and sets the high bit in the cache file unless we assign to the vars.
20986 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20987 eval ac_val=\$$ac_var
20991 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20992 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20995 _ | IFS | as_nl) ;; #(
20996 *) $as_unset $ac_var ;;
21002 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21003 *${as_nl}ac_space=\ *)
21004 # `set' does not quote correctly, so add quotes (double-quote
21005 # substitution turns \\\\ into \\, and sed turns \\ into \).
21008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21011 # `set' quotes correctly as required by POSIX, so do not add quotes.
21012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21023 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21025 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21026 if test -w "$cache_file"; then
21027 test "x$cache_file" != "x/dev/null" &&
21028 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21029 echo "$as_me: updating cache $cache_file" >&6;}
21030 cat confcache >$cache_file
21032 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21033 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21039 # Let make expand exec_prefix.
21040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21042 DEFS=-DHAVE_CONFIG_H
21046 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21047 # 1. Remove the extension, and $U if already installed.
21048 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21049 ac_i=`echo "$ac_i" | sed "$ac_script"`
21050 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21051 # will be set to the directory where LIBOBJS objects are built.
21052 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21053 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21055 LIBOBJS=$ac_libobjs
21057 LTLIBOBJS=$ac_ltlibobjs
21060 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21061 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21062 Usually this means the macro was only invoked conditionally." >&5
21063 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21064 Usually this means the macro was only invoked conditionally." >&2;}
21065 { (exit 1); exit 1; }; }
21067 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21068 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21069 Usually this means the macro was only invoked conditionally." >&5
21070 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21071 Usually this means the macro was only invoked conditionally." >&2;}
21072 { (exit 1); exit 1; }; }
21075 : ${CONFIG_STATUS=./config.status}
21076 ac_clean_files_save=$ac_clean_files
21077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21078 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21079 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21080 cat >$CONFIG_STATUS <<_ACEOF
21082 # Generated by $as_me.
21083 # Run this file to recreate the current configuration.
21084 # Compiler output produced by configure, useful for debugging
21085 # configure, is in config.log if it exists.
21088 ac_cs_recheck=false
21090 SHELL=\${CONFIG_SHELL-$SHELL}
21093 cat >>$CONFIG_STATUS <<\_ACEOF
21094 ## --------------------- ##
21095 ## M4sh Initialization. ##
21096 ## --------------------- ##
21098 # Be Bourne compatible
21099 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21102 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21103 # is contrary to our usage. Disable this feature.
21104 alias -g '${1+"$@"}'='"$@"'
21105 setopt NO_GLOB_SUBST
21107 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21109 BIN_SH=xpg4; export BIN_SH # for Tru64
21110 DUALCASE=1; export DUALCASE # for MKS sh
21114 # Avoid depending upon Character Ranges.
21115 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21116 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21117 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21118 as_cr_digits='0123456789'
21119 as_cr_alnum=$as_cr_Letters$as_cr_digits
21121 # The user is always right.
21122 if test "${PATH_SEPARATOR+set}" != set; then
21123 echo "#! /bin/sh" >conf$$.sh
21124 echo "exit 0" >>conf$$.sh
21126 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21134 # Support unset when possible.
21135 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21143 # We need space, tab and new line, in precisely that order. Quoting is
21144 # there to prevent editors from complaining about space-tab.
21145 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21146 # splitting by setting IFS to empty value.)
21151 # Find who we are. Look in the path if we contain no directory separator.
21153 *[\\/]* ) as_myself=$0 ;;
21154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21155 for as_dir in $PATH
21158 test -z "$as_dir" && as_dir=.
21159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21165 # We did not find ourselves, most probably we were run as `sh COMMAND'
21166 # in which case we are not to be found in the path.
21167 if test "x$as_myself" = x; then
21170 if test ! -f "$as_myself"; then
21171 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21172 { (exit 1); exit 1; }
21175 # Work around bugs in pre-3.0 UWIN ksh.
21176 for as_var in ENV MAIL MAILPATH
21177 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21185 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21186 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21187 LC_TELEPHONE LC_TIME
21189 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21190 eval $as_var=C; export $as_var
21192 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21196 # Required to use basename.
21197 if expr a : '\(a\)' >/dev/null 2>&1 &&
21198 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21205 as_basename=basename
21211 # Name of the executable.
21212 as_me=`$as_basename -- "$0" ||
21213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21214 X"$0" : 'X\(//\)$' \| \
21215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21217 sed '/^.*\/\([^/][^/]*\)\/*$/{
21236 as_lineno_1=$LINENO
21237 as_lineno_2=$LINENO
21238 test "x$as_lineno_1" != "x$as_lineno_2" &&
21239 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21241 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21242 # uniformly replaced by the line number. The first 'sed' inserts a
21243 # line-number line after each line using $LINENO; the second 'sed'
21244 # does the real work. The second script uses 'N' to pair each
21245 # line-number line with the line containing $LINENO, and appends
21246 # trailing '-' during substitution so that $LINENO is not a special
21247 # case at line end.
21248 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21249 # scripts with optimization help from Paolo Bonzini. Blame Lee
21250 # E. McMahon (1931-1989) for sed's syntax. :-)
21262 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21265 ' >$as_me.lineno &&
21266 chmod +x "$as_me.lineno" ||
21267 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21268 { (exit 1); exit 1; }; }
21270 # Don't try to exec as it changes $[0], causing all sort of problems
21271 # (the dirname of $[0] is not the place where we might find the
21272 # original and so on. Autoconf is especially sensitive to this).
21273 . "./$as_me.lineno"
21274 # Exit status is that of the last command.
21279 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21285 ECHO_C= ECHO_N= ECHO_T=
21286 case `echo -n x` in
21288 case `echo 'x\c'` in
21289 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21296 if expr a : '\(a\)' >/dev/null 2>&1 &&
21297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21303 rm -f conf$$ conf$$.exe conf$$.file
21304 if test -d conf$$.dir; then
21305 rm -f conf$$.dir/conf$$.file
21311 if ln -s conf$$.file conf$$ 2>/dev/null; then
21313 # ... but there are two gotchas:
21314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21316 # In both cases, we have to default to `cp -p'.
21317 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21319 elif ln conf$$.file conf$$ 2>/dev/null; then
21324 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21325 rmdir conf$$.dir 2>/dev/null
21327 if mkdir -p . 2>/dev/null; then
21330 test -d ./-p && rmdir ./-p
21334 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21335 # systems may use methods other than mode bits to determine executability.
21336 cat >conf$$.file <<_ASEOF
21340 chmod +x conf$$.file
21341 if test -x conf$$.file >/dev/null 2>&1; then
21342 as_executable_p="test -x"
21348 # Sed expression to map a string onto a valid CPP name.
21349 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21351 # Sed expression to map a string onto a valid variable name.
21352 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21357 # Save the log message, to keep $[0] and so on meaningful, and to
21358 # report actual input values of CONFIG_FILES etc. instead of their
21359 # values after options handling.
21361 This file was extended by llvm $as_me 2.9svn, which was
21362 generated by GNU Autoconf 2.60. Invocation command line was
21364 CONFIG_FILES = $CONFIG_FILES
21365 CONFIG_HEADERS = $CONFIG_HEADERS
21366 CONFIG_LINKS = $CONFIG_LINKS
21367 CONFIG_COMMANDS = $CONFIG_COMMANDS
21370 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21375 cat >>$CONFIG_STATUS <<_ACEOF
21376 # Files that config.status was made for.
21377 config_files="$ac_config_files"
21378 config_headers="$ac_config_headers"
21379 config_commands="$ac_config_commands"
21383 cat >>$CONFIG_STATUS <<\_ACEOF
21385 \`$as_me' instantiates files from templates according to the
21386 current configuration.
21388 Usage: $0 [OPTIONS] [FILE]...
21390 -h, --help print this help, then exit
21391 -V, --version print version number, then exit
21392 -q, --quiet do not print progress messages
21393 -d, --debug don't remove temporary files
21394 --recheck update $as_me by reconfiguring in the same conditions
21395 --file=FILE[:TEMPLATE]
21396 instantiate the configuration file FILE
21397 --header=FILE[:TEMPLATE]
21398 instantiate the configuration header FILE
21400 Configuration files:
21403 Configuration headers:
21406 Configuration commands:
21409 Report bugs to <bug-autoconf@gnu.org>."
21412 cat >>$CONFIG_STATUS <<_ACEOF
21414 llvm config.status 2.9svn
21415 configured by $0, generated by GNU Autoconf 2.60,
21416 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21418 Copyright (C) 2006 Free Software Foundation, Inc.
21419 This config.status script is free software; the Free Software Foundation
21420 gives unlimited permission to copy, distribute and modify it."
21427 cat >>$CONFIG_STATUS <<\_ACEOF
21428 # If no file are specified by the user, then we need to provide default
21429 # value. By we need to know if files were specified by the user.
21435 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21436 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21447 # Handling of the options.
21448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21450 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21451 echo "$ac_cs_version"; exit ;;
21452 --debug | --debu | --deb | --de | --d | -d )
21454 --file | --fil | --fi | --f )
21456 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21457 ac_need_defaults=false;;
21458 --header | --heade | --head | --hea )
21460 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21461 ac_need_defaults=false;;
21463 # Conflict between --help and --header
21464 { echo "$as_me: error: ambiguous option: $1
21465 Try \`$0 --help' for more information." >&2
21466 { (exit 1); exit 1; }; };;
21467 --help | --hel | -h )
21468 echo "$ac_cs_usage"; exit ;;
21469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21470 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21473 # This is an error.
21474 -*) { echo "$as_me: error: unrecognized option: $1
21475 Try \`$0 --help' for more information." >&2
21476 { (exit 1); exit 1; }; } ;;
21478 *) ac_config_targets="$ac_config_targets $1"
21479 ac_need_defaults=false ;;
21485 ac_configure_extra_args=
21487 if $ac_cs_silent; then
21489 ac_configure_extra_args="$ac_configure_extra_args --silent"
21493 cat >>$CONFIG_STATUS <<_ACEOF
21494 if \$ac_cs_recheck; then
21495 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21496 CONFIG_SHELL=$SHELL
21497 export CONFIG_SHELL
21498 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21502 cat >>$CONFIG_STATUS <<\_ACEOF
21506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21507 ## Running $as_me. ##
21513 cat >>$CONFIG_STATUS <<_ACEOF
21517 llvm_src="${srcdir}"
21521 cat >>$CONFIG_STATUS <<\_ACEOF
21523 # Handling of arguments.
21524 for ac_config_target in $ac_config_targets
21526 case $ac_config_target in
21527 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21528 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21529 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21530 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21531 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21532 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21533 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21534 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21535 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21536 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21537 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21538 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21539 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21540 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21541 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21542 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21543 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21544 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21545 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21546 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21547 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21548 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21549 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21550 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21551 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21553 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21554 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21555 { (exit 1); exit 1; }; };;
21560 # If the user did not use the arguments to specify the items to instantiate,
21561 # then the envvar interface is used. Set only those that are not.
21562 # We use the long form for the default assignment because of an extremely
21563 # bizarre bug on SunOS 4.1.3.
21564 if $ac_need_defaults; then
21565 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21566 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21567 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21570 # Have a temporary directory for convenience. Make it in the build tree
21571 # simply because there is no reason against having it here, and in addition,
21572 # creating and moving files from /tmp can sometimes cause problems.
21573 # Hook for its removal unless debugging.
21574 # Note that there is a small window in which the directory will not be cleaned:
21575 # after its creation but before its name has been assigned to `$tmp'.
21579 trap 'exit_status=$?
21580 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21582 trap '{ (exit 1); exit 1; }' 1 2 13 15
21584 # Create a (secure) tmp directory for tmp files.
21587 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21588 test -n "$tmp" && test -d "$tmp"
21591 tmp=./conf$$-$RANDOM
21592 (umask 077 && mkdir "$tmp")
21595 echo "$me: cannot create a temporary directory in ." >&2
21596 { (exit 1); exit 1; }
21600 # Set up the sed scripts for CONFIG_FILES section.
21603 # No need to generate the scripts if there are no CONFIG_FILES.
21604 # This happens for instance when ./config.status config.h
21605 if test -n "$CONFIG_FILES"; then
21612 for ac_last_try in false false false false false :; do
21613 cat >conf$$subs.sed <<_ACEOF
21614 SHELL!$SHELL$ac_delim
21615 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21616 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21617 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21618 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21619 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21620 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21621 exec_prefix!$exec_prefix$ac_delim
21622 prefix!$prefix$ac_delim
21623 program_transform_name!$program_transform_name$ac_delim
21624 bindir!$bindir$ac_delim
21625 sbindir!$sbindir$ac_delim
21626 libexecdir!$libexecdir$ac_delim
21627 datarootdir!$datarootdir$ac_delim
21628 datadir!$datadir$ac_delim
21629 sysconfdir!$sysconfdir$ac_delim
21630 sharedstatedir!$sharedstatedir$ac_delim
21631 localstatedir!$localstatedir$ac_delim
21632 includedir!$includedir$ac_delim
21633 oldincludedir!$oldincludedir$ac_delim
21634 docdir!$docdir$ac_delim
21635 infodir!$infodir$ac_delim
21636 htmldir!$htmldir$ac_delim
21637 dvidir!$dvidir$ac_delim
21638 pdfdir!$pdfdir$ac_delim
21639 psdir!$psdir$ac_delim
21640 libdir!$libdir$ac_delim
21641 localedir!$localedir$ac_delim
21642 mandir!$mandir$ac_delim
21643 DEFS!$DEFS$ac_delim
21644 ECHO_C!$ECHO_C$ac_delim
21645 ECHO_N!$ECHO_N$ac_delim
21646 ECHO_T!$ECHO_T$ac_delim
21647 LIBS!$LIBS$ac_delim
21648 build_alias!$build_alias$ac_delim
21649 host_alias!$host_alias$ac_delim
21650 target_alias!$target_alias$ac_delim
21651 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21652 subdirs!$subdirs$ac_delim
21653 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21654 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21655 build!$build$ac_delim
21656 build_cpu!$build_cpu$ac_delim
21657 build_vendor!$build_vendor$ac_delim
21658 build_os!$build_os$ac_delim
21659 host!$host$ac_delim
21660 host_cpu!$host_cpu$ac_delim
21661 host_vendor!$host_vendor$ac_delim
21662 host_os!$host_os$ac_delim
21663 target!$target$ac_delim
21664 target_cpu!$target_cpu$ac_delim
21665 target_vendor!$target_vendor$ac_delim
21666 target_os!$target_os$ac_delim
21668 HOST_OS!$HOST_OS$ac_delim
21669 TARGET_OS!$TARGET_OS$ac_delim
21670 LINKALL!$LINKALL$ac_delim
21671 NOLINKALL!$NOLINKALL$ac_delim
21672 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21673 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21674 ARCH!$ARCH$ac_delim
21675 ENDIAN!$ENDIAN$ac_delim
21677 CFLAGS!$CFLAGS$ac_delim
21678 LDFLAGS!$LDFLAGS$ac_delim
21679 CPPFLAGS!$CPPFLAGS$ac_delim
21680 ac_ct_CC!$ac_ct_CC$ac_delim
21681 EXEEXT!$EXEEXT$ac_delim
21682 OBJEXT!$OBJEXT$ac_delim
21684 GREP!$GREP$ac_delim
21685 EGREP!$EGREP$ac_delim
21686 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21687 BUILD_CC!$BUILD_CC$ac_delim
21688 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21689 BUILD_CXX!$BUILD_CXX$ac_delim
21690 CVSBUILD!$CVSBUILD$ac_delim
21691 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21692 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21693 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21694 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21695 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21696 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21697 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21699 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21700 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21701 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21702 ENABLE_PIC!$ENABLE_PIC$ac_delim
21703 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21704 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21705 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21706 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21707 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21708 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21709 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21710 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21713 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21715 elif $ac_last_try; then
21716 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21717 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21718 { (exit 1); exit 1; }; }
21720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21724 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21725 if test -n "$ac_eof"; then
21726 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21727 ac_eof=`expr $ac_eof + 1`
21730 cat >>$CONFIG_STATUS <<_ACEOF
21731 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21732 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21735 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21736 s/^/s,@/; s/!/@,|#_!!_#|/
21739 s/'"$ac_delim"'$/,g/; t
21741 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21742 ' >>$CONFIG_STATUS <conf$$subs.sed
21743 rm -f conf$$subs.sed
21744 cat >>$CONFIG_STATUS <<_ACEOF
21750 for ac_last_try in false false false false false :; do
21751 cat >conf$$subs.sed <<_ACEOF
21752 CLANGPATH!$CLANGPATH$ac_delim
21753 CLANGXXPATH!$CLANGXXPATH$ac_delim
21754 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21755 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21756 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21757 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21759 CXXFLAGS!$CXXFLAGS$ac_delim
21760 ac_ct_CXX!$ac_ct_CXX$ac_delim
21762 ifGNUmake!$ifGNUmake$ac_delim
21763 LN_S!$LN_S$ac_delim
21766 DATE!$DATE$ac_delim
21767 FIND!$FIND$ac_delim
21768 MKDIR!$MKDIR$ac_delim
21770 RANLIB!$RANLIB$ac_delim
21775 BINPWD!$BINPWD$ac_delim
21776 GRAPHVIZ!$GRAPHVIZ$ac_delim
21779 NEATO!$NEATO$ac_delim
21780 TWOPI!$TWOPI$ac_delim
21781 CIRCO!$CIRCO$ac_delim
21783 DOTTY!$DOTTY$ac_delim
21784 XDOT_PY!$XDOT_PY$ac_delim
21785 PERL!$PERL$ac_delim
21786 HAVE_PERL!$HAVE_PERL$ac_delim
21787 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21788 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21789 INSTALL_DATA!$INSTALL_DATA$ac_delim
21790 BZIP2!$BZIP2$ac_delim
21792 DOXYGEN!$DOXYGEN$ac_delim
21793 GROFF!$GROFF$ac_delim
21794 GZIP!$GZIP$ac_delim
21795 POD2HTML!$POD2HTML$ac_delim
21796 POD2MAN!$POD2MAN$ac_delim
21797 PDFROFF!$PDFROFF$ac_delim
21798 RUNTEST!$RUNTEST$ac_delim
21799 TCLSH!$TCLSH$ac_delim
21801 OCAMLC!$OCAMLC$ac_delim
21802 OCAMLOPT!$OCAMLOPT$ac_delim
21803 OCAMLDEP!$OCAMLDEP$ac_delim
21804 OCAMLDOC!$OCAMLDOC$ac_delim
21806 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21807 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21808 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21809 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21810 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21811 LIBADD_DL!$LIBADD_DL$ac_delim
21812 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21813 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21814 LLVMGCC!$LLVMGCC$ac_delim
21815 LLVMGXX!$LLVMGXX$ac_delim
21816 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21817 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21818 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21819 USE_UDIS86!$USE_UDIS86$ac_delim
21820 USE_OPROFILE!$USE_OPROFILE$ac_delim
21821 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21822 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21823 MMAP_FILE!$MMAP_FILE$ac_delim
21824 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
21825 LLVMCC1!$LLVMCC1$ac_delim
21826 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21827 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21828 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21829 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
21830 LLVMGCC_DISABLEOPT_FLAGS!$LLVMGCC_DISABLEOPT_FLAGS$ac_delim
21831 SHLIBEXT!$SHLIBEXT$ac_delim
21832 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21833 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21834 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21835 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21836 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21837 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21838 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21839 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21840 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21841 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21842 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21843 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21844 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21845 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21846 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21847 RPATH!$RPATH$ac_delim
21848 RDYNAMIC!$RDYNAMIC$ac_delim
21851 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21853 elif $ac_last_try; then
21854 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21855 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21856 { (exit 1); exit 1; }; }
21858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21862 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21863 if test -n "$ac_eof"; then
21864 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21865 ac_eof=`expr $ac_eof + 1`
21868 cat >>$CONFIG_STATUS <<_ACEOF
21869 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21873 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21874 s/^/s,@/; s/!/@,|#_!!_#|/
21877 s/'"$ac_delim"'$/,g/; t
21879 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21880 ' >>$CONFIG_STATUS <conf$$subs.sed
21881 rm -f conf$$subs.sed
21882 cat >>$CONFIG_STATUS <<_ACEOF
21888 for ac_last_try in false false false false false :; do
21889 cat >conf$$subs.sed <<_ACEOF
21890 LIBOBJS!$LIBOBJS$ac_delim
21891 LTLIBOBJS!$LTLIBOBJS$ac_delim
21894 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
21896 elif $ac_last_try; then
21897 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21898 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21899 { (exit 1); exit 1; }; }
21901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21905 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21906 if test -n "$ac_eof"; then
21907 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21908 ac_eof=`expr $ac_eof + 1`
21911 cat >>$CONFIG_STATUS <<_ACEOF
21912 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
21913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21916 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21917 s/^/s,@/; s/!/@,|#_!!_#|/
21920 s/'"$ac_delim"'$/,g/; t
21922 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21923 ' >>$CONFIG_STATUS <conf$$subs.sed
21924 rm -f conf$$subs.sed
21925 cat >>$CONFIG_STATUS <<_ACEOF
21932 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21933 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21934 # trailing colons and then remove the whole line if VPATH becomes empty
21935 # (actually we leave an empty line to preserve line numbers).
21936 if test "x$srcdir" = x.; then
21937 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21938 s/:*\$(srcdir):*/:/
21939 s/:*\${srcdir}:*/:/
21941 s/^\([^=]*=[ ]*\):*/\1/
21947 cat >>$CONFIG_STATUS <<\_ACEOF
21948 fi # test -n "$CONFIG_FILES"
21951 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21954 :[FHLC]) ac_mode=$ac_tag; continue;;
21956 case $ac_mode$ac_tag in
21958 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21959 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21960 { (exit 1); exit 1; }; };;
21961 :[FH]-) ac_tag=-:-;;
21962 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21979 -) ac_f="$tmp/stdin";;
21980 *) # Look for the file first in the build tree, then in the source tree
21981 # (if the path is not absolute). The absolute path cannot be DOS-style,
21982 # because $ac_f cannot contain `:'.
21986 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21988 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21989 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21990 { (exit 1); exit 1; }; };;
21992 ac_file_inputs="$ac_file_inputs $ac_f"
21995 # Let's still pretend it is `configure' which instantiates (i.e., don't
21996 # use $as_me), people would be surprised to read:
21997 # /* config.h. Generated by config.status. */
21998 configure_input="Generated from "`IFS=:
21999 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22000 if test x"$ac_file" != x-; then
22001 configure_input="$ac_file. $configure_input"
22002 { echo "$as_me:$LINENO: creating $ac_file" >&5
22003 echo "$as_me: creating $ac_file" >&6;}
22007 *:-:* | *:-) cat >"$tmp/stdin";;
22012 ac_dir=`$as_dirname -- "$ac_file" ||
22013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22014 X"$ac_file" : 'X\(//\)[^/]' \| \
22015 X"$ac_file" : 'X\(//\)$' \| \
22016 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22022 /^X\(\/\/\)[^/].*/{
22037 -*) as_dir=./$as_dir;;
22039 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22043 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22044 *) as_qdir=$as_dir;;
22046 as_dirs="'$as_qdir' $as_dirs"
22047 as_dir=`$as_dirname -- "$as_dir" ||
22048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22049 X"$as_dir" : 'X\(//\)[^/]' \| \
22050 X"$as_dir" : 'X\(//\)$' \| \
22051 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22057 /^X\(\/\/\)[^/].*/{
22070 test -d "$as_dir" && break
22072 test -z "$as_dirs" || eval "mkdir $as_dirs"
22073 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22074 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22075 { (exit 1); exit 1; }; }; }
22079 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22082 # A ".." for each directory in $ac_dir_suffix.
22083 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22084 case $ac_top_builddir_sub in
22085 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22086 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22089 ac_abs_top_builddir=$ac_pwd
22090 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22091 # for backward compatibility:
22092 ac_top_builddir=$ac_top_build_prefix
22095 .) # We are building in place.
22097 ac_top_srcdir=$ac_top_builddir_sub
22098 ac_abs_top_srcdir=$ac_pwd ;;
22099 [\\/]* | ?:[\\/]* ) # Absolute name.
22100 ac_srcdir=$srcdir$ac_dir_suffix;
22101 ac_top_srcdir=$srcdir
22102 ac_abs_top_srcdir=$srcdir ;;
22103 *) # Relative name.
22104 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22105 ac_top_srcdir=$ac_top_build_prefix$srcdir
22106 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22118 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22119 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22123 cat >>$CONFIG_STATUS <<\_ACEOF
22124 # If the template does not know about datarootdir, expand it.
22125 # FIXME: This hack should be removed a few years after 2.60.
22126 ac_datarootdir_hack=; ac_datarootdir_seen=
22128 case `sed -n '/datarootdir/ {
22137 ' $ac_file_inputs` in
22138 *datarootdir*) ac_datarootdir_seen=yes;;
22139 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22140 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22141 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22143 cat >>$CONFIG_STATUS <<_ACEOF
22144 ac_datarootdir_hack='
22145 s&@datadir@&$datadir&g
22146 s&@docdir@&$docdir&g
22147 s&@infodir@&$infodir&g
22148 s&@localedir@&$localedir&g
22149 s&@mandir@&$mandir&g
22150 s&\\\${datarootdir}&$datarootdir&g' ;;
22154 # Neutralize VPATH when `$srcdir' = `.'.
22155 # Shell code in configure.ac might set extrasub.
22156 # FIXME: do we really want to maintain this feature?
22157 cat >>$CONFIG_STATUS <<_ACEOF
22161 cat >>$CONFIG_STATUS <<\_ACEOF
22163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22164 s&@configure_input@&$configure_input&;t t
22165 s&@top_builddir@&$ac_top_builddir_sub&;t t
22166 s&@srcdir@&$ac_srcdir&;t t
22167 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22168 s&@top_srcdir@&$ac_top_srcdir&;t t
22169 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22170 s&@builddir@&$ac_builddir&;t t
22171 s&@abs_builddir@&$ac_abs_builddir&;t t
22172 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22173 s&@INSTALL@&$ac_INSTALL&;t t
22174 $ac_datarootdir_hack
22175 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22177 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22178 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22179 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22180 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22181 which seems to be undefined. Please make sure it is defined." >&5
22182 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22183 which seems to be undefined. Please make sure it is defined." >&2;}
22187 -) cat "$tmp/out"; rm -f "$tmp/out";;
22188 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22197 # Transform confdefs.h into a sed script `conftest.defines', that
22198 # substitutes the proper values into config.h.in to produce config.h.
22199 rm -f conftest.defines conftest.tail
22200 # First, append a space to every undef/define line, to ease matching.
22201 echo 's/$/ /' >conftest.defines
22202 # Then, protect against being on the right side of a sed subst, or in
22203 # an unquoted here document, in config.status. If some macros were
22204 # called several times there might be several #defines for the same
22205 # symbol, which is useless. But do not sort them, since the last
22206 # AC_DEFINE must be honored.
22207 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22208 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22209 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22210 # PARAMS is the parameter list in the macro definition--in most cases, it's
22211 # just an empty string.
22212 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22213 ac_dB='\\)[ (].*,\\1define\\2'
22221 s/^[ ]*#[ ]*define[ ][ ]*//
22226 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22227 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22228 ' >>conftest.defines
22230 # Remove the space that was appended to ease matching.
22231 # Then replace #undef with comments. This is necessary, for
22232 # example, in the case of _POSIX_SOURCE, which is predefined and required
22233 # on some systems where configure will not decide to define it.
22234 # (The regexp can be short, since the line contains either #define or #undef.)
22236 s,^[ #]*u.*,/* & */,' >>conftest.defines
22238 # Break up conftest.defines:
22239 ac_max_sed_lines=50
22241 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22242 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22243 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22245 ac_in='$ac_file_inputs'
22246 ac_out='"$tmp/out1"'
22247 ac_nxt='"$tmp/out2"'
22251 # Write a here document:
22252 cat >>$CONFIG_STATUS <<_ACEOF
22253 # First, check the format of the line:
22254 cat >"\$tmp/defines.sed" <<\\CEOF
22255 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22256 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22260 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22262 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22263 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22264 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22265 grep . conftest.tail >/dev/null || break
22266 rm -f conftest.defines
22267 mv conftest.tail conftest.defines
22269 rm -f conftest.defines conftest.tail
22271 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22273 if test x"$ac_file" != x-; then
22274 echo "/* $configure_input */" >"$tmp/config.h"
22275 cat "$ac_result" >>"$tmp/config.h"
22276 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22277 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22278 echo "$as_me: $ac_file is unchanged" >&6;}
22281 mv "$tmp/config.h" $ac_file
22284 echo "/* $configure_input */"
22290 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22291 echo "$as_me: executing $ac_file commands" >&6;}
22296 case $ac_file$ac_mode in
22297 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22298 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22299 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22300 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22301 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22302 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22303 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22304 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22305 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22306 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22307 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22308 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22309 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22310 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22311 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22312 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22313 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22314 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22315 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22316 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22317 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22318 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22319 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22320 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22321 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22322 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22328 { (exit 0); exit 0; }
22330 chmod +x $CONFIG_STATUS
22331 ac_clean_files=$ac_clean_files_save
22334 # configure is writing to config.log, and then calls config.status.
22335 # config.status does its own redirection, appending to config.log.
22336 # Unfortunately, on DOS this fails, as config.log is still kept open
22337 # by configure, so config.status won't be able to write to it; its
22338 # output is simply discarded. So we exec the FD to /dev/null,
22339 # effectively closing config.log, so it can be properly (re)opened and
22340 # appended to by config.status. When coming back to configure, we
22341 # need to make the FD available again.
22342 if test "$no_create" != yes; then
22344 ac_config_status_args=
22345 test "$silent" = yes &&
22346 ac_config_status_args="$ac_config_status_args --quiet"
22348 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22350 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22351 # would make configure fail if this is the last instruction.
22352 $ac_cs_success || { (exit 1); exit 1; }
22356 # CONFIG_SUBDIRS section.
22358 if test "$no_recursion" != yes; then
22360 # Remove --cache-file and --srcdir arguments so they do not pile up.
22361 ac_sub_configure_args=
22363 eval "set x $ac_configure_args"
22367 if test -n "$ac_prev"; then
22372 -cache-file | --cache-file | --cache-fil | --cache-fi \
22373 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22374 ac_prev=cache_file ;;
22375 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22376 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22379 --config-cache | -C)
22381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22385 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22387 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22391 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22393 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22397 # Always prepend --prefix to ensure using the same prefix
22398 # in subdir configurations.
22399 ac_arg="--prefix=$prefix"
22401 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22403 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22406 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22408 # Do not complain, so a configure script can configure whichever
22409 # parts of a large source tree are present.
22410 test -d "$srcdir/$ac_dir" || continue
22412 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22413 echo "$as_me:$LINENO: $ac_msg" >&5
22417 -*) as_dir=./$as_dir;;
22419 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22423 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22424 *) as_qdir=$as_dir;;
22426 as_dirs="'$as_qdir' $as_dirs"
22427 as_dir=`$as_dirname -- "$as_dir" ||
22428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22429 X"$as_dir" : 'X\(//\)[^/]' \| \
22430 X"$as_dir" : 'X\(//\)$' \| \
22431 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22437 /^X\(\/\/\)[^/].*/{
22450 test -d "$as_dir" && break
22452 test -z "$as_dirs" || eval "mkdir $as_dirs"
22453 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22454 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22455 { (exit 1); exit 1; }; }; }
22459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22461 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22462 # A ".." for each directory in $ac_dir_suffix.
22463 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22464 case $ac_top_builddir_sub in
22465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22469 ac_abs_top_builddir=$ac_pwd
22470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22471 # for backward compatibility:
22472 ac_top_builddir=$ac_top_build_prefix
22475 .) # We are building in place.
22477 ac_top_srcdir=$ac_top_builddir_sub
22478 ac_abs_top_srcdir=$ac_pwd ;;
22479 [\\/]* | ?:[\\/]* ) # Absolute name.
22480 ac_srcdir=$srcdir$ac_dir_suffix;
22481 ac_top_srcdir=$srcdir
22482 ac_abs_top_srcdir=$srcdir ;;
22483 *) # Relative name.
22484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22485 ac_top_srcdir=$ac_top_build_prefix$srcdir
22486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22493 # Check for guested configure; otherwise get Cygnus style configure.
22494 if test -f "$ac_srcdir/configure.gnu"; then
22495 ac_sub_configure=$ac_srcdir/configure.gnu
22496 elif test -f "$ac_srcdir/configure"; then
22497 ac_sub_configure=$ac_srcdir/configure
22498 elif test -f "$ac_srcdir/configure.in"; then
22499 # This should be Cygnus configure.
22500 ac_sub_configure=$ac_aux_dir/configure
22502 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22503 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22507 # The recursion is here.
22508 if test -n "$ac_sub_configure"; then
22509 # Make the cache file name correct relative to the subdirectory.
22510 case $cache_file in
22511 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22512 *) # Relative name.
22513 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22516 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22517 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22518 # The eval makes quoting arguments work.
22519 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22520 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22521 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22522 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22523 { (exit 1); exit 1; }; }