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
700 LLVM_ENUM_ASM_PRINTERS
701 LLVM_ENUM_ASM_PARSERS
702 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
770 NO_MISSING_FIELD_INITIALIZERS
782 LLVMCC_DISABLEOPT_FLAGS
798 ENABLE_VISIBILITY_INLINES_HIDDEN
804 ac_precious_vars='build_alias
815 ac_subdirs_all='projects/llvm-gcc
819 projects/llvm-poolalloc
822 projects/llvm-stacker
830 # Initialize some variables set by options.
832 ac_init_version=false
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
842 program_transform_name=s,x,x,
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 # Accept the important Cygnus configure options, so we can diagnose typos.
894 case $ac_dashdash$ac_option in
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
916 cache_file=config.cache ;;
918 -datadir | --datadir | --datadi | --datad)
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
930 -disable-* | --disable-*)
931 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935 { (exit 1); exit 1; }; }
936 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937 eval enable_$ac_feature=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 -enable-* | --enable-*)
950 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
953 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954 { (exit 1); exit 1; }; }
955 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
956 eval enable_$ac_feature=\$ac_optarg ;;
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
971 -help | --help | --hel | --he | -h)
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 htmldir=$ac_optarg ;;
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1001 -libdir | --libdir | --libdi | --libd)
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1092 -psdir | --psdir | --psdi | --psd | --ps)
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 sbindir=$ac_optarg ;;
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 sharedstatedir=$ac_optarg ;;
1118 -site | --site | --sit)
1120 -site=* | --site=* | --sit=*)
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1147 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package| sed 's/-/_/g'`
1153 eval with_$ac_package=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1159 { echo "$as_me: error: invalid package name: $ac_package" >&2
1160 { (exit 1); exit 1; }; }
1161 ac_package=`echo $ac_package | sed 's/-/_/g'`
1162 eval with_$ac_package=no ;;
1165 # Obsolete; use --with-x.
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) { echo "$as_me: error: unrecognized option: $ac_option
1183 Try \`$0 --help' for more information." >&2
1184 { (exit 1); exit 1; }; }
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1192 { (exit 1); exit 1; }; }
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 { echo "$as_me: error: missing argument to $ac_option" >&2
1210 { (exit 1); exit 1; }; }
1213 # Be sure to have absolute directory names.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1225 { (exit 1); exit 1; }; }
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1233 target=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 { echo "$as_me: error: Working directory cannot be determined" >&2
1256 { (exit 1); exit 1; }; }
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 { echo "$as_me: error: pwd does not report name of working directory" >&2
1259 { (exit 1); exit 1; }; }
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$0" ||
1267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$0" : 'X\(//\)[^/]' \| \
1269 X"$0" : 'X\(//\)$' \| \
1270 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1299 { (exit 1); exit 1; }; }
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1304 { (exit 1); exit 1; }; }
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1330 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of llvm 2.9svn:";;
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-polly Use polly if available (default is YES)
1404 --enable-optimized Compile with optimizations enabled (default is NO)
1405 --enable-profiling Compile with profiling enabled (default is NO)
1406 --enable-assertions Compile with assertion checks enabled (default is
1408 --enable-expensive-checks
1409 Compile with expensive debug checks enabled (default
1411 --enable-debug-runtime Build runtime libs with debug symbols (default is
1413 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1414 optimization is on and YES if it's off)
1415 --enable-jit Enable Just In Time Compiling (default is YES)
1416 --enable-docs Build documents (default is YES)
1417 --enable-doxygen Build doxygen documentation (default is NO)
1418 --enable-threads Use threads if available (default is YES)
1419 --enable-pthreads Use pthreads if available (default is YES)
1420 --enable-pic Build LLVM with Position Independent Code (default
1422 --enable-shared Build a shared library and link tools against it
1424 --enable-timestamps Enable embedding timestamp information in build
1426 --enable-targets Build specific host targets: all or
1427 target1,target2,... Valid targets are: host, x86,
1428 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1429 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1431 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1433 --enable-bindings Build specific language bindings:
1434 all,auto,none,{binding-name} (default=auto)
1435 --enable-libffi Check for the presence of libffi (default is NO)
1436 --enable-ltdl-install install libltdl
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1443 --with-llvmgcc Specify location of llvm-gcc driver (default
1445 --with-llvmgxx Specify location of llvm-g++ driver (default
1447 --with-clang Specify location of clang compiler (default is
1449 --with-built-clang Use the compiled Clang as the LLVM compiler
1451 --with-optimize-option Select the compiler options to use for optimized
1453 --with-extra-options Specify additional options to compile LLVM with
1454 --with-ocaml-libdir Specify install location for ocaml bindings (default
1456 --with-clang-resource-dir
1457 Relative directory from the Clang binary for
1459 --with-c-include-dirs Colon separated list of directories clang will
1461 --with-cxx-include-root Directory with the libstdc++ headers.
1462 --with-cxx-include-arch Architecture of the libstdc++ headers.
1463 --with-cxx-include-32bit-dir
1464 32 bit multilib dir.
1465 --with-cxx-include-64bit-dir
1466 64 bit multilib directory.
1467 --with-binutils-include Specify path to binutils/include/ containing
1468 plugin-api.h file for gold plugin.
1469 --with-tclinclude directory where tcl headers are
1470 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1471 clang, or none; default=check)
1472 --with-udis86=<path> Use udis86 external x86 disassembler library
1473 --with-oprofile=<prefix>
1474 Tell OProfile >= 0.9.4 how to symbolize JIT output
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1484 CXX C++ compiler command
1485 CXXFLAGS C++ compiler flags
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1490 Report bugs to <llvmbugs@cs.uiuc.edu>.
1495 if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" || continue
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1518 .) # We are building in place.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1542 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1551 llvm configure 2.9svn
1552 generated by GNU Autoconf 2.60
1554 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1555 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1559 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1563 cat >config.log <<_ACEOF
1564 This file contains any messages produced by compilers while
1565 running configure, to aid debugging if configure makes a mistake.
1567 It was created by llvm $as_me 2.9svn, which was
1568 generated by GNU Autoconf 2.60. Invocation command line was
1580 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1581 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1582 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1583 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1584 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1586 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1587 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1589 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1590 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1591 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1592 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1593 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1594 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1595 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 echo "PATH: $as_dir"
1620 # Keep a trace of the command line.
1621 # Strip out --no-create and --no-recursion so they do not pile up.
1622 # Strip out --silent because we don't want to record it for future runs.
1623 # Also quote any args containing shell meta-characters.
1624 # Make two passes to allow for proper duplicate-argument suppression.
1628 ac_must_keep_next=false
1634 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636 | -silent | --silent | --silen | --sile | --sil)
1639 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1644 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1645 if test $ac_must_keep_next = true; then
1646 ac_must_keep_next=false # Got value, back to normal.
1649 *=* | --config-cache | -C | -disable-* | --disable-* \
1650 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1651 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1652 | -with-* | --with-* | -without-* | --without-* | --x)
1653 case "$ac_configure_args0 " in
1654 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657 -* ) ac_must_keep_next=true ;;
1660 ac_configure_args="$ac_configure_args '$ac_arg'"
1665 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1666 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1668 # When interrupted or exit'd, cleanup temporary files, and complete
1669 # config.log. We remove comments because anyway the quotes in there
1670 # would cause problems or look ugly.
1671 # WARNING: Use '\'' to represent an apostrophe within the trap.
1672 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1673 trap 'exit_status=$?
1674 # Save into config.log some information that might help in debugging.
1679 ## ---------------- ##
1680 ## Cache variables. ##
1681 ## ---------------- ##
1684 # The following way of writing the cache mishandles newlines in values,
1686 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1687 eval ac_val=\$$ac_var
1691 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1692 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695 _ | IFS | as_nl) ;; #(
1696 *) $as_unset $ac_var ;;
1701 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1702 *${as_nl}ac_space=\ *)
1704 "s/'\''/'\''\\\\'\'''\''/g;
1705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716 ## ----------------- ##
1717 ## Output variables. ##
1718 ## ----------------- ##
1721 for ac_var in $ac_subst_vars
1723 eval ac_val=\$$ac_var
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 echo "$ac_var='\''$ac_val'\''"
1731 if test -n "$ac_subst_files"; then
1733 ## ------------------- ##
1734 ## File substitutions. ##
1735 ## ------------------- ##
1738 for ac_var in $ac_subst_files
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 echo "$ac_var='\''$ac_val'\''"
1749 if test -s confdefs.h; then
1759 test "$ac_signal" != 0 &&
1760 echo "$as_me: caught signal $ac_signal"
1761 echo "$as_me: exit $exit_status"
1763 rm -f core *.core core.conftest.* &&
1764 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767 for ac_signal in 1 2 13 15; do
1768 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1772 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1773 rm -f -r conftest* confdefs.h
1775 # Predefined preprocessor variables.
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_NAME "$PACKAGE_NAME"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_STRING "$PACKAGE_STRING"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802 # Let the site file select an alternate cache file if it wants to.
1803 # Prefer explicitly selected file to automatically selected ones.
1804 if test -n "$CONFIG_SITE"; then
1805 set x "$CONFIG_SITE"
1806 elif test "x$prefix" != xNONE; then
1807 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1809 set x "$ac_default_prefix/share/config.site" \
1810 "$ac_default_prefix/etc/config.site"
1815 if test -r "$ac_site_file"; then
1816 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1817 echo "$as_me: loading site script $ac_site_file" >&6;}
1818 sed 's/^/| /' "$ac_site_file" >&5
1823 if test -r "$cache_file"; then
1824 # Some versions of bash will fail to source /dev/null (special
1825 # files actually), so we avoid doing that.
1826 if test -f "$cache_file"; then
1827 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1828 echo "$as_me: loading cache $cache_file" >&6;}
1830 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1831 *) . "./$cache_file";;
1835 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1836 echo "$as_me: creating cache $cache_file" >&6;}
1840 # Check that the precious variables saved in the cache have kept the same
1842 ac_cache_corrupted=false
1843 for ac_var in $ac_precious_vars; do
1844 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1845 eval ac_new_set=\$ac_env_${ac_var}_set
1846 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1847 eval ac_new_val=\$ac_env_${ac_var}_value
1848 case $ac_old_set,$ac_new_set in
1850 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1851 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1852 ac_cache_corrupted=: ;;
1854 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1856 ac_cache_corrupted=: ;;
1859 if test "x$ac_old_val" != "x$ac_new_val"; then
1860 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1861 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1862 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1863 echo "$as_me: former value: $ac_old_val" >&2;}
1864 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1865 echo "$as_me: current value: $ac_new_val" >&2;}
1866 ac_cache_corrupted=:
1869 # Pass precious variables to config.status.
1870 if test "$ac_new_set" = set; then
1872 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1873 *) ac_arg=$ac_var=$ac_new_val ;;
1875 case " $ac_configure_args " in
1876 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1877 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1881 if $ac_cache_corrupted; then
1882 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886 { (exit 1); exit 1; }; }
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1930 for ac_dir in autoconf "$srcdir"/autoconf; do
1931 if test -f "$ac_dir/install-sh"; then
1933 ac_install_sh="$ac_aux_dir/install-sh -c"
1935 elif test -f "$ac_dir/install.sh"; then
1937 ac_install_sh="$ac_aux_dir/install.sh -c"
1939 elif test -f "$ac_dir/shtool"; then
1941 ac_install_sh="$ac_aux_dir/shtool install -c"
1945 if test -z "$ac_aux_dir"; then
1946 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1947 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1948 { (exit 1); exit 1; }; }
1951 # These three variables are undocumented and unsupported,
1952 # and are intended to be withdrawn in a future Autoconf release.
1953 # They can cause serious problems if a builder's source tree is in a directory
1954 # whose full name contains unusual characters.
1955 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1956 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1957 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1961 if test ${srcdir} != "." ; then
1962 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1963 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1964 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1965 { (exit 1); exit 1; }; }
1971 if test -d ${srcdir}/projects/llvm-gcc ; then
1972 subdirs="$subdirs projects/llvm-gcc"
1976 if test -d ${srcdir}/projects/test-suite ; then
1977 subdirs="$subdirs projects/test-suite"
1981 if test -d ${srcdir}/projects/llvm-test ; then
1982 subdirs="$subdirs projects/llvm-test"
1986 if test -d ${srcdir}/projects/poolalloc ; then
1987 subdirs="$subdirs projects/poolalloc"
1991 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1992 subdirs="$subdirs projects/llvm-poolalloc"
1996 for i in `ls ${srcdir}/projects`
1998 if test -d ${srcdir}/projects/${i} ; then
2000 sample) subdirs="$subdirs projects/sample"
2002 privbracket) subdirs="$subdirs projects/privbracket"
2004 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2006 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2008 llvm-java) subdirs="$subdirs projects/llvm-java"
2010 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2012 safecode) subdirs="$subdirs projects/safecode"
2014 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2022 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2023 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2029 # Check whether --enable-polly was given.
2030 if test "${enable_polly+set}" = set; then
2031 enableval=$enable_polly;
2036 case "$enableval" in
2041 default) ENABLE_POLLY=1
2043 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2044 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2045 { (exit 1); exit 1; }; } ;;
2049 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2052 subdirs="$subdirs tools/polly"
2057 # Make sure we can run config.sub.
2058 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2059 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2060 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2061 { (exit 1); exit 1; }; }
2063 { echo "$as_me:$LINENO: checking build system type" >&5
2064 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2065 if test "${ac_cv_build+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 ac_build_alias=$build_alias
2069 test "x$ac_build_alias" = x &&
2070 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2071 test "x$ac_build_alias" = x &&
2072 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2073 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2074 { (exit 1); exit 1; }; }
2075 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2076 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2077 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2078 { (exit 1); exit 1; }; }
2081 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2082 echo "${ECHO_T}$ac_cv_build" >&6; }
2083 case $ac_cv_build in
2085 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2086 echo "$as_me: error: invalid value of canonical build" >&2;}
2087 { (exit 1); exit 1; }; };;
2090 ac_save_IFS=$IFS; IFS='-'
2096 # Remember, the first character of IFS is used to create $*,
2097 # except with old shells:
2100 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2103 { echo "$as_me:$LINENO: checking host system type" >&5
2104 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2105 if test "${ac_cv_host+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 if test "x$host_alias" = x; then
2109 ac_cv_host=$ac_cv_build
2111 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2112 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2113 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2114 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2119 echo "${ECHO_T}$ac_cv_host" >&6; }
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2123 echo "$as_me: error: invalid value of canonical host" >&2;}
2124 { (exit 1); exit 1; }; };;
2127 ac_save_IFS=$IFS; IFS='-'
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2137 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2140 { echo "$as_me:$LINENO: checking target system type" >&5
2141 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2142 if test "${ac_cv_target+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 if test "x$target_alias" = x; then
2146 ac_cv_target=$ac_cv_host
2148 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2149 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2150 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2151 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2156 echo "${ECHO_T}$ac_cv_target" >&6; }
2157 case $ac_cv_target in
2159 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2160 echo "$as_me: error: invalid value of canonical target" >&2;}
2161 { (exit 1); exit 1; }; };;
2163 target=$ac_cv_target
2164 ac_save_IFS=$IFS; IFS='-'
2170 # Remember, the first character of IFS is used to create $*,
2171 # except with old shells:
2174 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2177 # The aliases save the names the user supplied, while $host etc.
2178 # will get canonicalized.
2179 test -n "$target_alias" &&
2180 test "$program_prefix$program_suffix$program_transform_name" = \
2182 program_prefix=${target_alias}-
2184 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2185 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2186 if test "${llvm_cv_os_type+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="AIX"
2194 llvm_cv_platform_type="Unix" ;;
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="IRIX"
2199 llvm_cv_platform_type="Unix" ;;
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="Cygwin"
2204 llvm_cv_platform_type="Unix" ;;
2206 llvm_cv_link_all_option="-Wl,-all_load"
2207 llvm_cv_no_link_all_option="-Wl,-noall_load"
2208 llvm_cv_os_type="Darwin"
2209 llvm_cv_platform_type="Unix" ;;
2211 llvm_cv_link_all_option="-Wl,-all_load"
2212 llvm_cv_no_link_all_option="-Wl,-noall_load"
2213 llvm_cv_os_type="Minix"
2214 llvm_cv_platform_type="Unix" ;;
2216 llvm_cv_link_all_option="-Wl,--whole-archive"
2217 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2218 llvm_cv_os_type="FreeBSD"
2219 llvm_cv_platform_type="Unix" ;;
2221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223 llvm_cv_os_type="OpenBSD"
2224 llvm_cv_platform_type="Unix" ;;
2226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228 llvm_cv_os_type="NetBSD"
2229 llvm_cv_platform_type="Unix" ;;
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="DragonFly"
2234 llvm_cv_platform_type="Unix" ;;
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="HP-UX"
2239 llvm_cv_platform_type="Unix" ;;
2241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243 llvm_cv_os_type="Interix"
2244 llvm_cv_platform_type="Unix" ;;
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="Linux"
2249 llvm_cv_platform_type="Unix" ;;
2251 llvm_cv_link_all_option="-Wl,-z,allextract"
2252 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2253 llvm_cv_os_type="SunOS"
2254 llvm_cv_platform_type="Unix" ;;
2256 llvm_cv_link_all_option="-Wl,-z,allextract"
2257 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2258 llvm_cv_os_type="AuroraUX"
2259 llvm_cv_platform_type="Unix" ;;
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="Win32"
2264 llvm_cv_platform_type="Win32" ;;
2266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268 llvm_cv_os_type="MingW"
2269 llvm_cv_platform_type="Win32" ;;
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="Haiku"
2274 llvm_cv_platform_type="Unix" ;;
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Freestanding"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="Freestanding"
2284 llvm_cv_platform_type="Unix" ;;
2286 llvm_cv_link_all_option=""
2287 llvm_cv_no_link_all_option=""
2288 llvm_cv_os_type="Unknown"
2289 llvm_cv_platform_type="Unknown" ;;
2292 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2293 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2295 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2296 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2297 if test "${llvm_cv_target_os_type+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 llvm_cv_target_os_type="AIX" ;;
2304 llvm_cv_target_os_type="IRIX" ;;
2306 llvm_cv_target_os_type="Cygwin" ;;
2308 llvm_cv_target_os_type="Darwin" ;;
2310 llvm_cv_target_os_type="Minix" ;;
2312 llvm_cv_target_os_type="FreeBSD" ;;
2314 llvm_cv_target_os_type="OpenBSD" ;;
2316 llvm_cv_target_os_type="NetBSD" ;;
2318 llvm_cv_target_os_type="DragonFly" ;;
2320 llvm_cv_target_os_type="HP-UX" ;;
2322 llvm_cv_target_os_type="Interix" ;;
2324 llvm_cv_target_os_type="Linux" ;;
2326 llvm_cv_target_os_type="SunOS" ;;
2328 llvm_cv_target_os_type="AuroraUX" ;;
2330 llvm_cv_target_os_type="Win32" ;;
2332 llvm_cv_target_os_type="MingW" ;;
2334 llvm_cv_target_os_type="Haiku" ;;
2336 llvm_cv_target_os_type="Freestanding" ;;
2338 llvm_cv_target_os_type="Unknown" ;;
2341 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2342 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2344 if test "$llvm_cv_os_type" = "Unknown" ; then
2345 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2346 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2347 { (exit 1); exit 1; }; }
2352 HOST_OS=$llvm_cv_os_type
2354 TARGET_OS=$llvm_cv_target_os_type
2357 LINKALL=$llvm_cv_link_all_option
2359 NOLINKALL=$llvm_cv_no_link_all_option
2362 case $llvm_cv_platform_type in
2365 cat >>confdefs.h <<\_ACEOF
2366 #define LLVM_ON_UNIX 1
2376 cat >>confdefs.h <<\_ACEOF
2377 #define LLVM_ON_WIN32 1
2387 { echo "$as_me:$LINENO: checking target architecture" >&5
2388 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2389 if test "${llvm_cv_target_arch+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 i?86-*) llvm_cv_target_arch="x86" ;;
2394 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2395 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2396 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2397 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2398 arm*-*) llvm_cv_target_arch="ARM" ;;
2399 mips-*) llvm_cv_target_arch="Mips" ;;
2400 xcore-*) llvm_cv_target_arch="XCore" ;;
2401 msp430-*) llvm_cv_target_arch="MSP430" ;;
2402 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2403 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2404 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2405 ptx-*) llvm_cv_target_arch="PTX" ;;
2406 *) llvm_cv_target_arch="Unknown" ;;
2409 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2410 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2412 if test "$llvm_cv_target_arch" = "Unknown" ; then
2413 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2414 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2417 # Determine the LLVM native architecture for the target
2418 case "$llvm_cv_target_arch" in
2419 x86) LLVM_NATIVE_ARCH="X86" ;;
2420 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2421 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2424 ARCH=$llvm_cv_target_arch
2428 ac_cpp='$CPP $CPPFLAGS'
2429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432 if test -n "$ac_tool_prefix"; then
2433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 if test -n "$CC"; then
2441 ac_cv_prog_CC="$CC" # Let the user override the test.
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 if test -n "$CC"; then
2462 { echo "$as_me:$LINENO: result: $CC" >&5
2463 echo "${ECHO_T}$CC" >&6; }
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2471 if test -z "$ac_cv_prog_CC"; then
2473 # Extract the first word of "gcc", so it can be a program name with args.
2474 set dummy gcc; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 if test -n "$ac_ct_CC"; then
2481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_ac_ct_CC="gcc"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501 if test -n "$ac_ct_CC"; then
2502 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503 echo "${ECHO_T}$ac_ct_CC" >&6; }
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2509 if test "x$ac_ct_CC" = x; then
2512 case $cross_compiling:$ac_tool_warned in
2514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet. If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&5
2517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2520 ac_tool_warned=yes ;;
2528 if test -z "$CC"; then
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_CC="${ac_tool_prefix}cc"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 if test -n "$CC"; then
2559 { echo "$as_me:$LINENO: result: $CC" >&5
2560 echo "${ECHO_T}$CC" >&6; }
2562 { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2569 if test -z "$CC"; then
2570 # Extract the first word of "cc", so it can be a program name with args.
2571 set dummy cc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2589 ac_prog_rejected=yes
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 if test $ac_prog_rejected = yes; then
2601 # We found a bogon in the path, so make sure we never use it.
2602 set dummy $ac_cv_prog_CC
2604 if test $# != 0; then
2605 # We chose a different compiler from the bogus one.
2606 # However, it has the same basename, so the bogon will be chosen
2607 # first if we set CC to just the basename; use the full file name.
2609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2625 if test -z "$CC"; then
2626 if test -n "$ac_tool_prefix"; then
2627 for ac_prog in cl.exe
2629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633 if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 if test -n "$CC"; then
2658 { echo "$as_me:$LINENO: result: $CC" >&5
2659 echo "${ECHO_T}$CC" >&6; }
2661 { echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6; }
2666 test -n "$CC" && break
2669 if test -z "$CC"; then
2671 for ac_prog in cl.exe
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 if test -n "$ac_ct_CC"; then
2681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_ac_ct_CC="$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2703 echo "${ECHO_T}$ac_ct_CC" >&6; }
2705 { echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6; }
2710 test -n "$ac_ct_CC" && break
2713 if test "x$ac_ct_CC" = x; then
2716 case $cross_compiling:$ac_tool_warned in
2718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&5
2721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2724 ac_tool_warned=yes ;;
2733 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2734 See \`config.log' for more details." >&5
2735 echo "$as_me: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&2;}
2737 { (exit 1); exit 1; }; }
2739 # Provide some information about the compiler.
2740 echo "$as_me:$LINENO: checking for C compiler version" >&5
2741 ac_compiler=`set X $ac_compile; echo $2`
2742 { (ac_try="$ac_compiler --version >&5"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler --version >&5") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752 { (ac_try="$ac_compiler -v >&5"
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -v >&5") 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2762 { (ac_try="$ac_compiler -V >&5"
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compiler -V >&5") 2>&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }
2773 cat >conftest.$ac_ext <<_ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2788 ac_clean_files_save=$ac_clean_files
2789 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2790 # Try to create an executable without -o first, disregard a.out.
2791 # It will help us diagnose broken compilers, and finding out an intuition
2793 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2794 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2795 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2797 # List of possible output files, starting from the most likely.
2798 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2799 # only as a last resort. b.out is created by i960 compilers.
2800 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2802 # The IRIX 6 linker writes into existing files which may not be
2803 # executable, retaining their permissions. Remove them first so a
2804 # subsequent execution test works.
2806 for ac_file in $ac_files
2809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2810 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2815 if { (ac_try="$ac_link_default"
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_link_default") 2>&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; then
2825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2828 # so that the user can short-circuit this test for compilers unknown to
2830 for ac_file in $ac_files
2832 test -f "$ac_file" || continue
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2837 # We found the default executable, but exeext='' is most
2841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2845 # We set ac_cv_exeext here because the later test for it is not
2846 # safe: cross compilers may not add the suffix if given an `-o'
2847 # argument, so we may need to know it at that point already.
2848 # Even if this section looks crufty: it has the advantage of
2855 test "$ac_cv_exeext" = no && ac_cv_exeext=
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2861 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: C compiler cannot create executables
2864 See \`config.log' for more details." >&2;}
2865 { (exit 77); exit 77; }; }
2868 ac_exeext=$ac_cv_exeext
2869 { echo "$as_me:$LINENO: result: $ac_file" >&5
2870 echo "${ECHO_T}$ac_file" >&6; }
2872 # Check that the compiler produces executables we can run. If not, either
2873 # the compiler is broken, or we cross compile.
2874 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2875 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2876 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2877 # If not cross compiling, check that we can run a simple program.
2878 if test "$cross_compiling" != yes; then
2879 if { ac_try='./$ac_file'
2880 { (case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_try") 2>&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2891 if test "$cross_compiling" = maybe; then
2894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2895 If you meant to cross compile, use \`--host'.
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&2;}
2900 { (exit 1); exit 1; }; }
2904 { echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6; }
2907 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2908 ac_clean_files=$ac_clean_files_save
2909 # Check that the compiler produces executables we can run. If not, either
2910 # the compiler is broken, or we cross compile.
2911 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2912 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2913 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2914 echo "${ECHO_T}$cross_compiling" >&6; }
2916 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2917 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2918 if { (ac_try="$ac_link"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_link") 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
2928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2929 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2930 # work properly (i.e., refer to `conftest.exe'), while it won't with
2932 for ac_file in conftest.exe conftest conftest.*; do
2933 test -f "$ac_file" || continue
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2943 See \`config.log' for more details." >&5
2944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2945 See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }
2949 rm -f conftest$ac_cv_exeext
2950 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2953 rm -f conftest.$ac_ext
2954 EXEEXT=$ac_cv_exeext
2956 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2958 if test "${ac_cv_objext+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2976 rm -f conftest.o conftest.obj
2977 if { (ac_try="$ac_compile"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 for ac_file in conftest.o conftest.obj conftest.*; do
2988 test -f "$ac_file" || continue;
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2991 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3000 See \`config.log' for more details." >&5
3001 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }
3006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3008 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3009 echo "${ECHO_T}$ac_cv_objext" >&6; }
3010 OBJEXT=$ac_cv_objext
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3081 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3082 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3083 GCC=`test $ac_compiler_gnu = yes && echo yes`
3084 ac_test_CFLAGS=${CFLAGS+set}
3085 ac_save_CFLAGS=$CFLAGS
3086 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3087 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_cc_g+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 ac_save_c_werror_flag=$ac_c_werror_flag
3092 ac_c_werror_flag=yes
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_compile") 2>conftest.er1
3119 grep -v '^ *+' conftest.er1 >conftest.err
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3236 { (case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_try") 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_c_werror_flag=$ac_save_c_werror_flag
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3274 if test "$ac_test_CFLAGS" = set; then
3275 CFLAGS=$ac_save_CFLAGS
3276 elif test $ac_cv_prog_cc_g = yes; then
3277 if test "$GCC" = yes; then
3283 if test "$GCC" = yes; then
3289 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3290 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3291 if test "${ac_cv_prog_cc_c89+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 ac_cv_prog_cc_c89=no
3296 cat >conftest.$ac_ext <<_ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3304 #include <sys/types.h>
3305 #include <sys/stat.h>
3306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3307 struct buf { int x; };
3308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3309 static char *e (p, i)
3315 static char *f (char * (*g) (char **, int), char **p, ...)
3320 s = g (p, va_arg (v,int));
3325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3326 function prototypes and stuff, but not '\xHH' hex character constants.
3327 These don't provoke an error unfortunately, instead are silently treated
3328 as 'x'. The following induces an error, until -std is added to get
3329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3330 array size at least. It's necessary to write '\x00'==0 to get something
3331 that's true only with -std. */
3332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3334 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3335 inside strings and character constants. */
3337 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3339 int test (int i, double x);
3340 struct s1 {int (*f) (int a);};
3341 struct s2 {int (*f) (double a);};
3342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3353 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3354 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3356 CC="$ac_save_CC $ac_arg"
3357 rm -f conftest.$ac_objext
3358 if { (ac_try="$ac_compile"
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_compile") 2>conftest.er1
3366 grep -v '^ *+' conftest.er1 >conftest.err
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3372 { (case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_try") 2>&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_try") 2>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_prog_cc_c89=$ac_arg
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3399 rm -f core conftest.err conftest.$ac_objext
3400 test "x$ac_cv_prog_cc_c89" != "xno" && break
3402 rm -f conftest.$ac_ext
3407 case "x$ac_cv_prog_cc_c89" in
3409 { echo "$as_me:$LINENO: result: none needed" >&5
3410 echo "${ECHO_T}none needed" >&6; } ;;
3412 { echo "$as_me:$LINENO: result: unsupported" >&5
3413 echo "${ECHO_T}unsupported" >&6; } ;;
3415 CC="$CC $ac_cv_prog_cc_c89"
3416 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3417 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3435 # On Suns, sometimes $CPP names a directory.
3436 if test -n "$CPP" && test -d "$CPP"; then
3439 if test -z "$CPP"; then
3440 if test "${ac_cv_prog_CPP+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 # Double quotes because CPP needs to be expanded
3444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3447 for ac_c_preproc_warn_flag in '' yes
3449 # Use a header file that comes with gcc, so configuring glibc
3450 # with a fresh cross-compiler works.
3451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3452 # <limits.h> exists even on freestanding compilers.
3453 # On the NeXT, cc -E runs the code through the compiler's parser,
3454 # not just through cpp. "Syntax error" is here to catch this case.
3455 cat >conftest.$ac_ext <<_ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3462 # include <limits.h>
3464 # include <assert.h>
3468 if { (ac_try="$ac_cpp conftest.$ac_ext"
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3476 grep -v '^ *+' conftest.er1 >conftest.err
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } >/dev/null; then
3481 if test -s conftest.err; then
3482 ac_cpp_err=$ac_c_preproc_warn_flag
3483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3490 if test -z "$ac_cpp_err"; then
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3496 # Broken: fails on valid input.
3500 rm -f conftest.err conftest.$ac_ext
3502 # OK, works on sane cases. Now check whether nonexistent headers
3503 # can be detected and how.
3504 cat >conftest.$ac_ext <<_ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #include <ac_nonexistent.h>
3512 if { (ac_try="$ac_cpp conftest.$ac_ext"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null; then
3525 if test -s conftest.err; then
3526 ac_cpp_err=$ac_c_preproc_warn_flag
3527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3534 if test -z "$ac_cpp_err"; then
3535 # Broken: success on invalid input.
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 # Passes both tests.
3546 rm -f conftest.err conftest.$ac_ext
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.err conftest.$ac_ext
3551 if $ac_preproc_ok; then
3563 { echo "$as_me:$LINENO: result: $CPP" >&5
3564 echo "${ECHO_T}$CPP" >&6; }
3566 for ac_c_preproc_warn_flag in '' yes
3568 # Use a header file that comes with gcc, so configuring glibc
3569 # with a fresh cross-compiler works.
3570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571 # <limits.h> exists even on freestanding compilers.
3572 # On the NeXT, cc -E runs the code through the compiler's parser,
3573 # not just through cpp. "Syntax error" is here to catch this case.
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3581 # include <limits.h>
3583 # include <assert.h>
3587 if { (ac_try="$ac_cpp conftest.$ac_ext"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3595 grep -v '^ *+' conftest.er1 >conftest.err
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } >/dev/null; then
3600 if test -s conftest.err; then
3601 ac_cpp_err=$ac_c_preproc_warn_flag
3602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3609 if test -z "$ac_cpp_err"; then
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3615 # Broken: fails on valid input.
3619 rm -f conftest.err conftest.$ac_ext
3621 # OK, works on sane cases. Now check whether nonexistent headers
3622 # can be detected and how.
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 #include <ac_nonexistent.h>
3631 if { (ac_try="$ac_cpp conftest.$ac_ext"
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3639 grep -v '^ *+' conftest.er1 >conftest.err
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } >/dev/null; then
3644 if test -s conftest.err; then
3645 ac_cpp_err=$ac_c_preproc_warn_flag
3646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3653 if test -z "$ac_cpp_err"; then
3654 # Broken: success on invalid input.
3657 echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 # Passes both tests.
3665 rm -f conftest.err conftest.$ac_ext
3668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3669 rm -f conftest.err conftest.$ac_ext
3670 if $ac_preproc_ok; then
3673 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3674 See \`config.log' for more details." >&5
3675 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3676 See \`config.log' for more details." >&2;}
3677 { (exit 1); exit 1; }; }
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3688 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3689 if test "${ac_cv_path_GREP+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 # Extract the first word of "grep ggrep" to use in msg output
3693 if test -z "$GREP"; then
3694 set dummy grep ggrep; ac_prog_name=$2
3695 if test "${ac_cv_path_GREP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 ac_path_GREP_found=false
3699 # Loop through the user's path and test for each of PROGNAME-LIST
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3704 test -z "$as_dir" && as_dir=.
3705 for ac_prog in grep ggrep; do
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3708 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3709 # Check for GNU ac_path_GREP and select it if it is found.
3710 # Check for GNU $ac_path_GREP
3711 case `"$ac_path_GREP" --version 2>&1` in
3713 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3716 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3719 cat "conftest.in" "conftest.in" >"conftest.tmp"
3720 mv "conftest.tmp" "conftest.in"
3721 cp "conftest.in" "conftest.nl"
3722 echo 'GREP' >> "conftest.nl"
3723 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3725 ac_count=`expr $ac_count + 1`
3726 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3727 # Best one so far, save it but keep looking for a better one
3728 ac_cv_path_GREP="$ac_path_GREP"
3729 ac_path_GREP_max=$ac_count
3731 # 10*(2^10) chars as input seems more than enough
3732 test $ac_count -gt 10 && break
3734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738 $ac_path_GREP_found && break 3
3748 GREP="$ac_cv_path_GREP"
3749 if test -z "$GREP"; then
3750 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3751 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3752 { (exit 1); exit 1; }; }
3756 ac_cv_path_GREP=$GREP
3761 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3762 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3763 GREP="$ac_cv_path_GREP"
3766 { echo "$as_me:$LINENO: checking for egrep" >&5
3767 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3768 if test "${ac_cv_path_EGREP+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3772 then ac_cv_path_EGREP="$GREP -E"
3774 # Extract the first word of "egrep" to use in msg output
3775 if test -z "$EGREP"; then
3776 set dummy egrep; ac_prog_name=$2
3777 if test "${ac_cv_path_EGREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 ac_path_EGREP_found=false
3781 # Loop through the user's path and test for each of PROGNAME-LIST
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3786 test -z "$as_dir" && as_dir=.
3787 for ac_prog in egrep; do
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3790 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3791 # Check for GNU ac_path_EGREP and select it if it is found.
3792 # Check for GNU $ac_path_EGREP
3793 case `"$ac_path_EGREP" --version 2>&1` in
3795 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3798 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3801 cat "conftest.in" "conftest.in" >"conftest.tmp"
3802 mv "conftest.tmp" "conftest.in"
3803 cp "conftest.in" "conftest.nl"
3804 echo 'EGREP' >> "conftest.nl"
3805 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3807 ac_count=`expr $ac_count + 1`
3808 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3809 # Best one so far, save it but keep looking for a better one
3810 ac_cv_path_EGREP="$ac_path_EGREP"
3811 ac_path_EGREP_max=$ac_count
3813 # 10*(2^10) chars as input seems more than enough
3814 test $ac_count -gt 10 && break
3816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820 $ac_path_EGREP_found && break 3
3830 EGREP="$ac_cv_path_EGREP"
3831 if test -z "$EGREP"; then
3832 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3833 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3834 { (exit 1); exit 1; }; }
3838 ac_cv_path_EGREP=$EGREP
3844 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3845 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3846 EGREP="$ac_cv_path_EGREP"
3849 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3850 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3851 if test "${ac_cv_header_stdc+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3873 rm -f conftest.$ac_objext
3874 if { (ac_try="$ac_compile"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_compile") 2>conftest.er1
3882 grep -v '^ *+' conftest.er1 >conftest.err
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3888 { (case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_try") 2>&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; } &&
3897 { ac_try='test -s conftest.$ac_objext'
3898 { (case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903 (eval "$ac_try") 2>&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; }; then
3907 ac_cv_header_stdc=yes
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3912 ac_cv_header_stdc=no
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 if test $ac_cv_header_stdc = yes; then
3918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3929 $EGREP "memchr" >/dev/null 2>&1; then
3932 ac_cv_header_stdc=no
3938 if test $ac_cv_header_stdc = yes; then
3939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3950 $EGREP "free" >/dev/null 2>&1; then
3953 ac_cv_header_stdc=no
3959 if test $ac_cv_header_stdc = yes; then
3960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3961 if test "$cross_compiling" = yes; then
3964 cat >conftest.$ac_ext <<_ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3972 #if ((' ' & 0x0FF) == 0x020)
3973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3976 # define ISLOWER(c) \
3977 (('a' <= (c) && (c) <= 'i') \
3978 || ('j' <= (c) && (c) <= 'r') \
3979 || ('s' <= (c) && (c) <= 'z'))
3980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3988 for (i = 0; i < 256; i++)
3989 if (XOR (islower (i), ISLOWER (i))
3990 || toupper (i) != TOUPPER (i))
3995 rm -f conftest$ac_exeext
3996 if { (ac_try="$ac_link"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_link") 2>&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4006 { (case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011 (eval "$ac_try") 2>&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4017 echo "$as_me: program exited with status $ac_status" >&5
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4022 ac_cv_header_stdc=no
4024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4030 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4031 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4032 if test $ac_cv_header_stdc = yes; then
4034 cat >>confdefs.h <<\_ACEOF
4035 #define STDC_HEADERS 1
4040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4050 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4051 inttypes.h stdint.h unistd.h
4053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 cat >conftest.$ac_ext <<_ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 $ac_includes_default
4067 #include <$ac_header>
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4084 { (case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_try") 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 eval "$as_ac_Header=yes"
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 eval "$as_ac_Header=no"
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 ac_res=`eval echo '${'$as_ac_Header'}'`
4114 { echo "$as_me:$LINENO: result: $ac_res" >&5
4115 echo "${ECHO_T}$ac_res" >&6; }
4116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4117 cat >>confdefs.h <<_ACEOF
4118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4126 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4127 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4128 if test "${ac_cv_c_bigendian+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 # See if sys/param.h defines the BYTE_ORDER macro.
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <sys/types.h>
4139 #include <sys/param.h>
4144 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_try") 2>&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; } &&
4176 { ac_try='test -s conftest.$ac_objext'
4177 { (case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182 (eval "$ac_try") 2>&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 # It does; now see whether it defined to BIG_ENDIAN or not.
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #include <sys/types.h>
4194 #include <sys/param.h>
4199 #if BYTE_ORDER != BIG_ENDIAN
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4222 { (case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_try") 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_try") 2>&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 ac_cv_c_bigendian=yes
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4246 ac_cv_c_bigendian=no
4249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 # It does not; compile a test program.
4255 if test "$cross_compiling" = yes; then
4256 # try to guess the endianness by grepping values into an object file
4257 ac_cv_c_bigendian=unknown
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4265 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4266 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4267 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4268 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4269 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4273 _ascii (); _ebcdic ();
4278 rm -f conftest.$ac_objext
4279 if { (ac_try="$ac_compile"
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_compile") 2>conftest.er1
4287 grep -v '^ *+' conftest.er1 >conftest.err
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4293 { (case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_try") 2>&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try='test -s conftest.$ac_objext'
4303 { (case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_try") 2>&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4313 ac_cv_c_bigendian=yes
4315 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4316 if test "$ac_cv_c_bigendian" = unknown; then
4317 ac_cv_c_bigendian=no
4319 # finding both strings is unlikely to happen, but who knows?
4320 ac_cv_c_bigendian=unknown
4324 echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 $ac_includes_default
4343 /* Are we little or big endian? From Harbison&Steele. */
4347 char c[sizeof (long int)];
4350 return u.c[sizeof (long int) - 1] == 1;
4356 rm -f conftest$ac_exeext
4357 if { (ac_try="$ac_link"
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_link") 2>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4367 { (case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_try") 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_cv_c_bigendian=no
4378 echo "$as_me: program exited with status $ac_status" >&5
4379 echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4383 ac_cv_c_bigendian=yes
4385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4394 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4395 case $ac_cv_c_bigendian in
4403 { { echo "$as_me:$LINENO: error: unknown endianness
4404 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4405 echo "$as_me: error: unknown endianness
4406 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4407 { (exit 1); exit 1; }; } ;;
4411 if test "$cross_compiling" = yes; then
4412 LLVM_CROSS_COMPILING=1
4415 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4416 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4417 if test "${ac_cv_build_exeext+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4421 ac_cv_build_exeext=.exe
4423 ac_build_prefix=${build_alias}-
4425 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4426 set dummy ${ac_build_prefix}gcc; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$BUILD_CC"; then
4433 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 BUILD_CC=$ac_cv_prog_BUILD_CC
4453 if test -n "$BUILD_CC"; then
4454 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4455 echo "${ECHO_T}$BUILD_CC" >&6; }
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4462 if test -z "$BUILD_CC"; then
4463 # Extract the first word of "gcc", so it can be a program name with args.
4464 set dummy gcc; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 if test -n "$BUILD_CC"; then
4471 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 ac_cv_prog_BUILD_CC="gcc"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 BUILD_CC=$ac_cv_prog_BUILD_CC
4491 if test -n "$BUILD_CC"; then
4492 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4493 echo "${ECHO_T}$BUILD_CC" >&6; }
4495 { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4500 if test -z "$BUILD_CC"; then
4501 # Extract the first word of "cc", so it can be a program name with args.
4502 set dummy cc; ac_word=$2
4503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if test -n "$BUILD_CC"; then
4509 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4520 ac_prog_rejected=yes
4523 ac_cv_prog_BUILD_CC="cc"
4524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 if test $ac_prog_rejected = yes; then
4532 # We found a bogon in the path, so make sure we never use it.
4533 set dummy $ac_cv_prog_BUILD_CC
4535 if test $# != 0; then
4536 # We chose a different compiler from the bogus one.
4537 # However, it has the same basename, so the bogon will be chosen
4538 # first if we set BUILD_CC to just the basename; use the full file name.
4540 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4545 BUILD_CC=$ac_cv_prog_BUILD_CC
4546 if test -n "$BUILD_CC"; then
4547 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4548 echo "${ECHO_T}$BUILD_CC" >&6; }
4550 { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4557 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4558 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4559 { (exit 1); exit 1; }; }
4560 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4562 echo 'int main () { return 0; }' > conftest.$ac_ext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4565 (eval $ac_build_link) 2>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; then
4569 for file in conftest.*; do
4571 *.c | *.o | *.obj | *.dSYM) ;;
4572 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4576 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4577 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4578 { (exit 1); exit 1; }; }
4581 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4586 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4587 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4588 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4589 ac_build_exeext=$BUILD_EXEEXT
4591 ac_build_prefix=${build_alias}-
4592 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4593 set dummy ${ac_build_prefix}g++; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 if test -n "$BUILD_CXX"; then
4600 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4620 if test -n "$BUILD_CXX"; then
4621 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4622 echo "${ECHO_T}$BUILD_CXX" >&6; }
4624 { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4629 if test -z "$BUILD_CXX"; then
4630 # Extract the first word of "g++", so it can be a program name with args.
4631 set dummy g++; ac_word=$2
4632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 if test -n "$BUILD_CXX"; then
4638 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_BUILD_CXX="g++"
4648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4658 if test -n "$BUILD_CXX"; then
4659 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4660 echo "${ECHO_T}$BUILD_CXX" >&6; }
4662 { echo "$as_me:$LINENO: result: no" >&5
4663 echo "${ECHO_T}no" >&6; }
4667 if test -z "$BUILD_CXX"; then
4668 # Extract the first word of "c++", so it can be a program name with args.
4669 set dummy c++; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 if test -n "$BUILD_CXX"; then
4676 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4687 ac_prog_rejected=yes
4690 ac_cv_prog_BUILD_CXX="c++"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 if test $ac_prog_rejected = yes; then
4699 # We found a bogon in the path, so make sure we never use it.
4700 set dummy $ac_cv_prog_BUILD_CXX
4702 if test $# != 0; then
4703 # We chose a different compiler from the bogus one.
4704 # However, it has the same basename, so the bogon will be chosen
4705 # first if we set BUILD_CXX to just the basename; use the full file name.
4707 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4712 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4713 if test -n "$BUILD_CXX"; then
4714 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4715 echo "${ECHO_T}$BUILD_CXX" >&6; }
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4725 LLVM_CROSS_COMPILING=0
4729 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4740 # Check whether --enable-optimized was given.
4741 if test "${enable_optimized+set}" = set; then
4742 enableval=$enable_optimized;
4747 if test ${enableval} = "no" ; then
4751 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4755 # Check whether --enable-profiling was given.
4756 if test "${enable_profiling+set}" = set; then
4757 enableval=$enable_profiling;
4762 if test ${enableval} = "no" ; then
4766 ENABLE_PROFILING=ENABLE_PROFILING=1
4770 # Check whether --enable-assertions was given.
4771 if test "${enable_assertions+set}" = set; then
4772 enableval=$enable_assertions;
4777 if test ${enableval} = "yes" ; then
4781 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4785 # Check whether --enable-expensive-checks was given.
4786 if test "${enable_expensive_checks+set}" = set; then
4787 enableval=$enable_expensive_checks;
4792 if test ${enableval} = "yes" ; then
4793 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4795 EXPENSIVE_CHECKS=yes
4798 ENABLE_EXPENSIVE_CHECKS=
4804 # Check whether --enable-debug-runtime was given.
4805 if test "${enable_debug_runtime+set}" = set; then
4806 enableval=$enable_debug_runtime;
4811 if test ${enableval} = "no" ; then
4815 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4819 # Check whether --enable-debug-symbols was given.
4820 if test "${enable_debug_symbols+set}" = set; then
4821 enableval=$enable_debug_symbols;
4826 if test ${enableval} = "no" ; then
4830 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4834 # Check whether --enable-jit was given.
4835 if test "${enable_jit+set}" = set; then
4836 enableval=$enable_jit;
4841 if test ${enableval} = "no"
4846 case "$llvm_cv_target_arch" in
4847 x86) TARGET_HAS_JIT=1
4849 Sparc) TARGET_HAS_JIT=0
4851 PowerPC) TARGET_HAS_JIT=1
4853 x86_64) TARGET_HAS_JIT=1
4855 Alpha) TARGET_HAS_JIT=0
4857 ARM) TARGET_HAS_JIT=1
4859 Mips) TARGET_HAS_JIT=0
4861 XCore) TARGET_HAS_JIT=0
4863 MSP430) TARGET_HAS_JIT=0
4865 SystemZ) TARGET_HAS_JIT=0
4867 Blackfin) TARGET_HAS_JIT=0
4869 MBlaze) TARGET_HAS_JIT=0
4871 PTX) TARGET_HAS_JIT=0
4878 # Check whether --enable-docs was given.
4879 if test "${enable_docs+set}" = set; then
4880 enableval=$enable_docs;
4885 case "$enableval" in
4890 default) ENABLE_DOCS=1
4892 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4893 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4894 { (exit 1); exit 1; }; } ;;
4897 # Check whether --enable-doxygen was given.
4898 if test "${enable_doxygen+set}" = set; then
4899 enableval=$enable_doxygen;
4904 case "$enableval" in
4905 yes) ENABLE_DOXYGEN=1
4907 no) ENABLE_DOXYGEN=0
4909 default) ENABLE_DOXYGEN=0
4911 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4912 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4913 { (exit 1); exit 1; }; } ;;
4916 # Check whether --enable-threads was given.
4917 if test "${enable_threads+set}" = set; then
4918 enableval=$enable_threads;
4923 case "$enableval" in
4924 yes) ENABLE_THREADS=1
4926 no) ENABLE_THREADS=0
4928 default) ENABLE_THREADS=1
4930 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4931 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4932 { (exit 1); exit 1; }; } ;;
4935 cat >>confdefs.h <<_ACEOF
4936 #define ENABLE_THREADS $ENABLE_THREADS
4940 # Check whether --enable-pthreads was given.
4941 if test "${enable_pthreads+set}" = set; then
4942 enableval=$enable_pthreads;
4947 case "$enableval" in
4948 yes) ENABLE_PTHREADS=1
4950 no) ENABLE_PTHREADS=0
4952 default) ENABLE_PTHREADS=1
4954 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4955 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4956 { (exit 1); exit 1; }; } ;;
4959 # Check whether --enable-pic was given.
4960 if test "${enable_pic+set}" = set; then
4961 enableval=$enable_pic;
4966 case "$enableval" in
4971 default) ENABLE_PIC=1
4973 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4974 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4975 { (exit 1); exit 1; }; } ;;
4978 cat >>confdefs.h <<_ACEOF
4979 #define ENABLE_PIC $ENABLE_PIC
4983 # Check whether --enable-shared was given.
4984 if test "${enable_shared+set}" = set; then
4985 enableval=$enable_shared;
4990 case "$enableval" in
4991 yes) ENABLE_SHARED=1
4995 default) ENABLE_SHARED=0
4997 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4998 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5002 # Check whether --enable-timestamps was given.
5003 if test "${enable_timestamps+set}" = set; then
5004 enableval=$enable_timestamps;
5009 case "$enableval" in
5010 yes) ENABLE_TIMESTAMPS=1
5012 no) ENABLE_TIMESTAMPS=0
5014 default) ENABLE_TIMESTAMPS=1
5016 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5017 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5018 { (exit 1); exit 1; }; } ;;
5021 cat >>confdefs.h <<_ACEOF
5022 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5027 # Check whether --enable-targets was given.
5028 if test "${enable_targets+set}" = set; then
5029 enableval=$enable_targets;
5034 if test "$enableval" = host-only ; then
5037 case "$enableval" in
5038 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5039 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5041 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5042 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5043 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5044 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5045 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5046 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5047 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5048 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5049 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5050 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5051 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5052 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5053 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5054 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5055 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5056 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5057 host) case "$llvm_cv_target_arch" in
5058 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5059 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5060 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5061 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5062 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5063 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5064 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5065 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5066 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5067 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5068 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5069 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5070 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5071 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5072 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5073 echo "$as_me: error: Can not set target to build" >&2;}
5074 { (exit 1); exit 1; }; } ;;
5076 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5077 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5078 { (exit 1); exit 1; }; } ;;
5083 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5086 # Determine whether we are building LLVM support for the native architecture.
5087 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5088 for a_target in $TARGETS_TO_BUILD; do
5089 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5091 cat >>confdefs.h <<_ACEOF
5092 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5095 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5096 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5097 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5099 cat >>confdefs.h <<_ACEOF
5100 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5104 cat >>confdefs.h <<_ACEOF
5105 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5109 cat >>confdefs.h <<_ACEOF
5110 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5116 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5117 # target feature def files.
5118 LLVM_ENUM_TARGETS=""
5119 LLVM_ENUM_ASM_PRINTERS=""
5120 LLVM_ENUM_ASM_PARSERS=""
5121 LLVM_ENUM_DISASSEMBLERS=""
5122 for target_to_build in $TARGETS_TO_BUILD; do
5123 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5124 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5125 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5127 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5128 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5130 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5131 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5139 # Check whether --enable-cbe-printf-a was given.
5140 if test "${enable_cbe_printf_a+set}" = set; then
5141 enableval=$enable_cbe_printf_a;
5146 case "$enableval" in
5147 yes) ENABLE_CBE_PRINTF_A=1
5149 no) ENABLE_CBE_PRINTF_A=0
5151 default) ENABLE_CBE_PRINTF_A=1
5153 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5155 { (exit 1); exit 1; }; } ;;
5158 cat >>confdefs.h <<_ACEOF
5159 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5164 # Check whether --with-llvmgccdir was given.
5165 if test "${with_llvmgccdir+set}" = set; then
5166 withval=$with_llvmgccdir;
5172 default) WITH_LLVMGCCDIR=default ;;
5173 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5174 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5175 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5180 # Check whether --with-llvmgcc was given.
5181 if test "${with_llvmgcc+set}" = set; then
5182 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5188 # Check whether --with-llvmgxx was given.
5189 if test "${with_llvmgxx+set}" = set; then
5190 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5195 if test -n "$LLVMGCC"; then
5196 LLVMGCCCOMMAND="$LLVMGCC"
5199 if test -n "$LLVMGXX"; then
5200 LLVMGXXCOMMAND="$LLVMGXX"
5203 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5204 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5205 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5206 { (exit 1); exit 1; }; };
5209 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5210 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5211 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5212 { (exit 1); exit 1; }; };
5216 # Check whether --with-clang was given.
5217 if test "${with_clang+set}" = set; then
5218 withval=$with_clang;
5225 # Check whether --with-built-clang was given.
5226 if test "${with_built_clang+set}" = set; then
5227 withval=$with_built_clang;
5229 with_built_clang=check
5233 { echo "$as_me:$LINENO: checking clang compiler" >&5
5234 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5237 if test "$with_clang" != "default"; then
5238 WITH_CLANGPATH="$with_clang"
5239 if ! test -x "$WITH_CLANGPATH"; then
5240 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5241 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5242 { (exit 1); exit 1; }; }
5244 elif test "$with_built_clang" = "yes"; then
5246 elif test "$with_built_clang" = "no"; then
5249 if test "$with_built_clang" != "check"; then
5250 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5251 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5252 { (exit 1); exit 1; }; }
5255 if test -f ${srcdir}/tools/clang/README.txt; then
5260 if ! test -z "$WITH_CLANGPATH"; then
5261 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5262 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5263 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5264 elif test "$WITH_BUILT_CLANG" = "1"; then
5265 { echo "$as_me:$LINENO: result: built" >&5
5266 echo "${ECHO_T}built" >&6; }
5268 { echo "$as_me:$LINENO: result: none" >&5
5269 echo "${ECHO_T}none" >&6; }
5271 CLANGPATH=$WITH_CLANGPATH
5273 CLANGXXPATH=$WITH_CLANGXXPATH
5275 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5279 # Check whether --with-optimize-option was given.
5280 if test "${with_optimize_option+set}" = set; then
5281 withval=$with_optimize_option;
5286 { echo "$as_me:$LINENO: checking optimization flags" >&5
5287 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5290 case "$llvm_cv_os_type" in
5291 FreeBSD) optimize_option=-O2 ;;
5292 MingW) optimize_option=-O2 ;;
5293 *) optimize_option=-O3 ;;
5295 *) optimize_option="$withval" ;;
5297 OPTIMIZE_OPTION=$optimize_option
5299 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5300 echo "${ECHO_T}$optimize_option" >&6; }
5303 # Check whether --with-extra-options was given.
5304 if test "${with_extra_options+set}" = set; then
5305 withval=$with_extra_options;
5311 default) EXTRA_OPTIONS= ;;
5312 *) EXTRA_OPTIONS=$withval ;;
5314 EXTRA_OPTIONS=$EXTRA_OPTIONS
5317 # Check whether --enable-bindings was given.
5318 if test "${enable_bindings+set}" = set; then
5319 enableval=$enable_bindings;
5324 BINDINGS_TO_BUILD=""
5325 case "$enableval" in
5326 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5327 all ) BINDINGS_TO_BUILD="ocaml" ;;
5328 none | no) BINDINGS_TO_BUILD="" ;;
5329 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5330 case "$a_binding" in
5331 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5332 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5333 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5334 { (exit 1); exit 1; }; } ;;
5341 # Check whether --with-ocaml-libdir was given.
5342 if test "${with_ocaml_libdir+set}" = set; then
5343 withval=$with_ocaml_libdir;
5349 auto) with_ocaml_libdir="$withval" ;;
5350 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5351 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5352 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5353 { (exit 1); exit 1; }; } ;;
5357 # Check whether --with-clang-resource-dir was given.
5358 if test "${with_clang_resource_dir+set}" = set; then
5359 withval=$with_clang_resource_dir;
5365 cat >>confdefs.h <<_ACEOF
5366 #define CLANG_RESOURCE_DIR "$withval"
5371 # Check whether --with-c-include-dirs was given.
5372 if test "${with_c_include_dirs+set}" = set; then
5373 withval=$with_c_include_dirs;
5379 cat >>confdefs.h <<_ACEOF
5380 #define C_INCLUDE_DIRS "$withval"
5385 # Check whether --with-cxx-include-root was given.
5386 if test "${with_cxx_include_root+set}" = set; then
5387 withval=$with_cxx_include_root;
5393 cat >>confdefs.h <<_ACEOF
5394 #define CXX_INCLUDE_ROOT "$withval"
5399 # Check whether --with-cxx-include-arch was given.
5400 if test "${with_cxx_include_arch+set}" = set; then
5401 withval=$with_cxx_include_arch;
5407 cat >>confdefs.h <<_ACEOF
5408 #define CXX_INCLUDE_ARCH "$withval"
5413 # Check whether --with-cxx-include-32bit-dir was given.
5414 if test "${with_cxx_include_32bit_dir+set}" = set; then
5415 withval=$with_cxx_include_32bit_dir;
5421 cat >>confdefs.h <<_ACEOF
5422 #define CXX_INCLUDE_32BIT_DIR "$withval"
5427 # Check whether --with-cxx-include-64bit-dir was given.
5428 if test "${with_cxx_include_64bit_dir+set}" = set; then
5429 withval=$with_cxx_include_64bit_dir;
5435 cat >>confdefs.h <<_ACEOF
5436 #define CXX_INCLUDE_64BIT_DIR "$withval"
5441 # Check whether --with-binutils-include was given.
5442 if test "${with_binutils_include+set}" = set; then
5443 withval=$with_binutils_include;
5449 default) WITH_BINUTILS_INCDIR=default ;;
5450 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5451 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5452 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5453 { (exit 1); exit 1; }; } ;;
5455 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5456 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5458 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5459 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5460 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5461 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5462 { (exit 1); exit 1; }; };
5466 # Check whether --enable-libffi was given.
5467 if test "${enable_libffi+set}" = set; then
5468 enableval=$enable_libffi; case "$enableval" in
5469 yes) llvm_cv_enable_libffi="yes" ;;
5470 no) llvm_cv_enable_libffi="no" ;;
5471 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5472 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5473 { (exit 1); exit 1; }; } ;;
5476 llvm_cv_enable_libffi=no
5482 ac_cpp='$CPP $CPPFLAGS'
5483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5487 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5488 # On Suns, sometimes $CPP names a directory.
5489 if test -n "$CPP" && test -d "$CPP"; then
5492 if test -z "$CPP"; then
5493 if test "${ac_cv_prog_CPP+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 # Double quotes because CPP needs to be expanded
5497 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5500 for ac_c_preproc_warn_flag in '' yes
5502 # Use a header file that comes with gcc, so configuring glibc
5503 # with a fresh cross-compiler works.
5504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5505 # <limits.h> exists even on freestanding compilers.
5506 # On the NeXT, cc -E runs the code through the compiler's parser,
5507 # not just through cpp. "Syntax error" is here to catch this case.
5508 cat >conftest.$ac_ext <<_ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5515 # include <limits.h>
5517 # include <assert.h>
5521 if { (ac_try="$ac_cpp conftest.$ac_ext"
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5529 grep -v '^ *+' conftest.er1 >conftest.err
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } >/dev/null; then
5534 if test -s conftest.err; then
5535 ac_cpp_err=$ac_c_preproc_warn_flag
5536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5543 if test -z "$ac_cpp_err"; then
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 # Broken: fails on valid input.
5553 rm -f conftest.err conftest.$ac_ext
5555 # OK, works on sane cases. Now check whether nonexistent headers
5556 # can be detected and how.
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #include <ac_nonexistent.h>
5565 if { (ac_try="$ac_cpp conftest.$ac_ext"
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5573 grep -v '^ *+' conftest.er1 >conftest.err
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } >/dev/null; then
5578 if test -s conftest.err; then
5579 ac_cpp_err=$ac_c_preproc_warn_flag
5580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5587 if test -z "$ac_cpp_err"; then
5588 # Broken: success on invalid input.
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 # Passes both tests.
5599 rm -f conftest.err conftest.$ac_ext
5602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5603 rm -f conftest.err conftest.$ac_ext
5604 if $ac_preproc_ok; then
5616 { echo "$as_me:$LINENO: result: $CPP" >&5
5617 echo "${ECHO_T}$CPP" >&6; }
5619 for ac_c_preproc_warn_flag in '' yes
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624 # <limits.h> exists even on freestanding compilers.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
5627 cat >conftest.$ac_ext <<_ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5634 # include <limits.h>
5636 # include <assert.h>
5640 if { (ac_try="$ac_cpp conftest.$ac_ext"
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } >/dev/null; then
5653 if test -s conftest.err; then
5654 ac_cpp_err=$ac_c_preproc_warn_flag
5655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5662 if test -z "$ac_cpp_err"; then
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 # Broken: fails on valid input.
5672 rm -f conftest.err conftest.$ac_ext
5674 # OK, works on sane cases. Now check whether nonexistent headers
5675 # can be detected and how.
5676 cat >conftest.$ac_ext <<_ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 #include <ac_nonexistent.h>
5684 if { (ac_try="$ac_cpp conftest.$ac_ext"
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } >/dev/null; then
5697 if test -s conftest.err; then
5698 ac_cpp_err=$ac_c_preproc_warn_flag
5699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5706 if test -z "$ac_cpp_err"; then
5707 # Broken: success on invalid input.
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 # Passes both tests.
5718 rm -f conftest.err conftest.$ac_ext
5721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5722 rm -f conftest.err conftest.$ac_ext
5723 if $ac_preproc_ok; then
5726 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5727 See \`config.log' for more details." >&5
5728 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5729 See \`config.log' for more details." >&2;}
5730 { (exit 1); exit 1; }; }
5734 ac_cpp='$CPP $CPPFLAGS'
5735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5740 ac_cpp='$CPP $CPPFLAGS'
5741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5744 if test -n "$ac_tool_prefix"; then
5747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5751 if test "${ac_cv_prog_CC+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 if test -n "$CC"; then
5755 ac_cv_prog_CC="$CC" # Let the user override the test.
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 if test -n "$CC"; then
5776 { echo "$as_me:$LINENO: result: $CC" >&5
5777 echo "${ECHO_T}$CC" >&6; }
5779 { echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6; }
5784 test -n "$CC" && break
5787 if test -z "$CC"; then
5791 # Extract the first word of "$ac_prog", so it can be a program name with args.
5792 set dummy $ac_prog; ac_word=$2
5793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 if test -n "$ac_ct_CC"; then
5799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5808 ac_cv_prog_ac_ct_CC="$ac_prog"
5809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5819 if test -n "$ac_ct_CC"; then
5820 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5821 echo "${ECHO_T}$ac_ct_CC" >&6; }
5823 { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5828 test -n "$ac_ct_CC" && break
5831 if test "x$ac_ct_CC" = x; then
5834 case $cross_compiling:$ac_tool_warned in
5836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5837 whose name does not start with the host triplet. If you think this
5838 configuration is useful to you, please write to autoconf@gnu.org." >&5
5839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5840 whose name does not start with the host triplet. If you think this
5841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5842 ac_tool_warned=yes ;;
5849 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5850 See \`config.log' for more details." >&5
5851 echo "$as_me: error: no acceptable C compiler found in \$PATH
5852 See \`config.log' for more details." >&2;}
5853 { (exit 1); exit 1; }; }
5855 # Provide some information about the compiler.
5856 echo "$as_me:$LINENO: checking for C compiler version" >&5
5857 ac_compiler=`set X $ac_compile; echo $2`
5858 { (ac_try="$ac_compiler --version >&5"
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_compiler --version >&5") 2>&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }
5868 { (ac_try="$ac_compiler -v >&5"
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_compiler -v >&5") 2>&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }
5878 { (ac_try="$ac_compiler -V >&5"
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_compiler -V >&5") 2>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }
5889 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5890 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5891 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 cat >conftest.$ac_ext <<_ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5912 rm -f conftest.$ac_objext
5913 if { (ac_try="$ac_compile"
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_compile") 2>conftest.er1
5921 grep -v '^ *+' conftest.er1 >conftest.err
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5927 { (case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_try") 2>&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try='test -s conftest.$ac_objext'
5937 { (case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_try") 2>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5958 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5960 GCC=`test $ac_compiler_gnu = yes && echo yes`
5961 ac_test_CFLAGS=${CFLAGS+set}
5962 ac_save_CFLAGS=$CFLAGS
5963 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5964 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5965 if test "${ac_cv_prog_cc_g+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 ac_save_c_werror_flag=$ac_c_werror_flag
5969 ac_c_werror_flag=yes
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5987 rm -f conftest.$ac_objext
5988 if { (ac_try="$ac_compile"
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_compile") 2>conftest.er1
5996 grep -v '^ *+' conftest.er1 >conftest.err
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6002 { (case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_try") 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; } &&
6011 { ac_try='test -s conftest.$ac_objext'
6012 { (case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_try") 2>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6027 cat >conftest.$ac_ext <<_ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6042 rm -f conftest.$ac_objext
6043 if { (ac_try="$ac_compile"
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_compile") 2>conftest.er1
6051 grep -v '^ *+' conftest.er1 >conftest.err
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6057 { (case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_try") 2>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; } &&
6066 { ac_try='test -s conftest.$ac_objext'
6067 { (case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_try") 2>&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6081 ac_c_werror_flag=$ac_save_c_werror_flag
6083 cat >conftest.$ac_ext <<_ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6098 rm -f conftest.$ac_objext
6099 if { (ac_try="$ac_compile"
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_compile") 2>conftest.er1
6107 grep -v '^ *+' conftest.er1 >conftest.err
6109 cat conftest.err >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6113 { (case "(($ac_try" in
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_try") 2>&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; } &&
6122 { ac_try='test -s conftest.$ac_objext'
6123 { (case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_try") 2>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 ac_c_werror_flag=$ac_save_c_werror_flag
6149 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6150 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6151 if test "$ac_test_CFLAGS" = set; then
6152 CFLAGS=$ac_save_CFLAGS
6153 elif test $ac_cv_prog_cc_g = yes; then
6154 if test "$GCC" = yes; then
6160 if test "$GCC" = yes; then
6166 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6167 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_cc_c89+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 ac_cv_prog_cc_c89=no
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6181 #include <sys/types.h>
6182 #include <sys/stat.h>
6183 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6184 struct buf { int x; };
6185 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6186 static char *e (p, i)
6192 static char *f (char * (*g) (char **, int), char **p, ...)
6197 s = g (p, va_arg (v,int));
6202 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6203 function prototypes and stuff, but not '\xHH' hex character constants.
6204 These don't provoke an error unfortunately, instead are silently treated
6205 as 'x'. The following induces an error, until -std is added to get
6206 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6207 array size at least. It's necessary to write '\x00'==0 to get something
6208 that's true only with -std. */
6209 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6211 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6212 inside strings and character constants. */
6214 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6216 int test (int i, double x);
6217 struct s1 {int (*f) (int a);};
6218 struct s2 {int (*f) (double a);};
6219 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6225 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6230 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6231 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6233 CC="$ac_save_CC $ac_arg"
6234 rm -f conftest.$ac_objext
6235 if { (ac_try="$ac_compile"
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249 { (case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_try") 2>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_try") 2>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_cv_prog_cc_c89=$ac_arg
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6276 rm -f core conftest.err conftest.$ac_objext
6277 test "x$ac_cv_prog_cc_c89" != "xno" && break
6279 rm -f conftest.$ac_ext
6284 case "x$ac_cv_prog_cc_c89" in
6286 { echo "$as_me:$LINENO: result: none needed" >&5
6287 echo "${ECHO_T}none needed" >&6; } ;;
6289 { echo "$as_me:$LINENO: result: unsupported" >&5
6290 echo "${ECHO_T}unsupported" >&6; } ;;
6292 CC="$CC $ac_cv_prog_cc_c89"
6293 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6294 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6299 ac_cpp='$CPP $CPPFLAGS'
6300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6305 ac_cpp='$CXXCPP $CPPFLAGS'
6306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6309 if test -z "$CXX"; then
6310 if test -n "$CCC"; then
6313 if test -n "$ac_tool_prefix"; then
6316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6320 if test "${ac_cv_prog_CXX+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 if test -n "$CXX"; then
6324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 if test -n "$CXX"; then
6345 { echo "$as_me:$LINENO: result: $CXX" >&5
6346 echo "${ECHO_T}$CXX" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6353 test -n "$CXX" && break
6356 if test -z "$CXX"; then
6360 # Extract the first word of "$ac_prog", so it can be a program name with args.
6361 set dummy $ac_prog; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 if test -n "$ac_ct_CXX"; then
6368 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6377 ac_cv_prog_ac_ct_CXX="$ac_prog"
6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6388 if test -n "$ac_ct_CXX"; then
6389 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6390 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6392 { echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6; }
6397 test -n "$ac_ct_CXX" && break
6400 if test "x$ac_ct_CXX" = x; then
6403 case $cross_compiling:$ac_tool_warned in
6405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6406 whose name does not start with the host triplet. If you think this
6407 configuration is useful to you, please write to autoconf@gnu.org." >&5
6408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6409 whose name does not start with the host triplet. If you think this
6410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6411 ac_tool_warned=yes ;;
6419 # Provide some information about the compiler.
6420 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6421 ac_compiler=`set X $ac_compile; echo $2`
6422 { (ac_try="$ac_compiler --version >&5"
6424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425 *) ac_try_echo=$ac_try;;
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428 (eval "$ac_compiler --version >&5") 2>&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }
6432 { (ac_try="$ac_compiler -v >&5"
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_compiler -v >&5") 2>&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }
6442 { (ac_try="$ac_compiler -V >&5"
6444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6445 *) ac_try_echo=$ac_try;;
6447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448 (eval "$ac_compiler -V >&5") 2>&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }
6453 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6485 grep -v '^ *+' conftest.er1 >conftest.err
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6491 { (case "(($ac_try" in
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_try") 2>&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try='test -s conftest.$ac_objext'
6501 { (case "(($ac_try" in
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506 (eval "$ac_try") 2>&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6522 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6523 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6524 GXX=`test $ac_compiler_gnu = yes && echo yes`
6525 ac_test_CXXFLAGS=${CXXFLAGS+set}
6526 ac_save_CXXFLAGS=$CXXFLAGS
6527 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6528 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6529 if test "${ac_cv_prog_cxx_g+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6533 ac_cxx_werror_flag=yes
6536 cat >conftest.$ac_ext <<_ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6560 grep -v '^ *+' conftest.er1 >conftest.err
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6566 { (case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_try") 2>&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest.$ac_objext'
6576 { (case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_try") 2>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_cv_prog_cxx_g=yes
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6591 cat >conftest.$ac_ext <<_ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6606 rm -f conftest.$ac_objext
6607 if { (ac_try="$ac_compile"
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_compile") 2>conftest.er1
6615 grep -v '^ *+' conftest.er1 >conftest.err
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6621 { (case "(($ac_try" in
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_try") 2>&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; } &&
6630 { ac_try='test -s conftest.$ac_objext'
6631 { (case "(($ac_try" in
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636 (eval "$ac_try") 2>&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6647 cat >conftest.$ac_ext <<_ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6662 rm -f conftest.$ac_objext
6663 if { (ac_try="$ac_compile"
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_compile") 2>conftest.er1
6671 grep -v '^ *+' conftest.er1 >conftest.err
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6677 { (case "(($ac_try" in
6678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679 *) ac_try_echo=$ac_try;;
6681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6682 (eval "$ac_try") 2>&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try='test -s conftest.$ac_objext'
6687 { (case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692 (eval "$ac_try") 2>&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 ac_cv_prog_cxx_g=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6713 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6714 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6715 if test "$ac_test_CXXFLAGS" = set; then
6716 CXXFLAGS=$ac_save_CXXFLAGS
6717 elif test $ac_cv_prog_cxx_g = yes; then
6718 if test "$GXX" = yes; then
6724 if test "$GXX" = yes; then
6731 ac_cpp='$CPP $CPPFLAGS'
6732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6737 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6738 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6739 if test "${lt_cv_path_NM+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 if test -n "$NM"; then
6743 # Let the user override the test.
6746 lt_nm_to_check="${ac_tool_prefix}nm"
6747 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6748 lt_nm_to_check="$lt_nm_to_check nm"
6750 for lt_tmp_nm in $lt_nm_to_check; do
6751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6752 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6754 test -z "$ac_dir" && ac_dir=.
6755 tmp_nm="$ac_dir/$lt_tmp_nm"
6756 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6757 # Check to see if the nm accepts a BSD-compat flag.
6758 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6759 # nm: unknown option "B" ignored
6760 # Tru64's nm complains that /dev/null is an invalid object file
6761 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6762 */dev/null* | *'Invalid file or object type'*)
6763 lt_cv_path_NM="$tmp_nm -B"
6767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6769 lt_cv_path_NM="$tmp_nm -p"
6773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6774 continue # so that we can try to find one that supports BSD flags
6783 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6786 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6787 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6792 { echo "$as_me:$LINENO: checking for GNU make" >&5
6793 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6794 if test "${llvm_cv_gnu_make_command+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 llvm_cv_gnu_make_command=''
6798 for a in "$MAKE" make gmake gnumake ; do
6799 if test -z "$a" ; then continue ; fi ;
6800 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6802 llvm_cv_gnu_make_command=$a ;
6807 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6808 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6809 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6813 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6814 echo "${ECHO_T}\"Not found\"" >&6; };
6818 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6819 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6821 if test "$LN_S" = "ln -s"; then
6822 { echo "$as_me:$LINENO: result: yes" >&5
6823 echo "${ECHO_T}yes" >&6; }
6825 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6826 echo "${ECHO_T}no, using $LN_S" >&6; }
6829 # Extract the first word of "cmp", so it can be a program name with args.
6830 set dummy cmp; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_CMP+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6861 if test -n "$CMP"; then
6862 { echo "$as_me:$LINENO: result: $CMP" >&5
6863 echo "${ECHO_T}$CMP" >&6; }
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6870 # Extract the first word of "cp", so it can be a program name with args.
6871 set dummy cp; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_path_CP+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6902 if test -n "$CP"; then
6903 { echo "$as_me:$LINENO: result: $CP" >&5
6904 echo "${ECHO_T}$CP" >&6; }
6906 { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6911 # Extract the first word of "date", so it can be a program name with args.
6912 set dummy date; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_path_DATE+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6942 DATE=$ac_cv_path_DATE
6943 if test -n "$DATE"; then
6944 { echo "$as_me:$LINENO: result: $DATE" >&5
6945 echo "${ECHO_T}$DATE" >&6; }
6947 { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6952 # Extract the first word of "find", so it can be a program name with args.
6953 set dummy find; ac_word=$2
6954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956 if test "${ac_cv_path_FIND+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6983 FIND=$ac_cv_path_FIND
6984 if test -n "$FIND"; then
6985 { echo "$as_me:$LINENO: result: $FIND" >&5
6986 echo "${ECHO_T}$FIND" >&6; }
6988 { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6993 # Extract the first word of "grep", so it can be a program name with args.
6994 set dummy grep; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_GREP+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7024 GREP=$ac_cv_path_GREP
7025 if test -n "$GREP"; then
7026 { echo "$as_me:$LINENO: result: $GREP" >&5
7027 echo "${ECHO_T}$GREP" >&6; }
7029 { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7034 # Extract the first word of "mkdir", so it can be a program name with args.
7035 set dummy mkdir; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_MKDIR+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7065 MKDIR=$ac_cv_path_MKDIR
7066 if test -n "$MKDIR"; then
7067 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7068 echo "${ECHO_T}$MKDIR" >&6; }
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7075 # Extract the first word of "mv", so it can be a program name with args.
7076 set dummy mv; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_path_MV+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7107 if test -n "$MV"; then
7108 { echo "$as_me:$LINENO: result: $MV" >&5
7109 echo "${ECHO_T}$MV" >&6; }
7111 { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_prog_RANLIB+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 if test -n "$RANLIB"; then
7125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 RANLIB=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7147 echo "${ECHO_T}$RANLIB" >&6; }
7149 { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7155 if test -z "$ac_cv_prog_RANLIB"; then
7156 ac_ct_RANLIB=$RANLIB
7157 # Extract the first word of "ranlib", so it can be a program name with args.
7158 set dummy ranlib; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 if test -n "$ac_ct_RANLIB"; then
7165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_ac_ct_RANLIB="ranlib"
7175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7185 if test -n "$ac_ct_RANLIB"; then
7186 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7187 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7193 if test "x$ac_ct_RANLIB" = x; then
7196 case $cross_compiling:$ac_tool_warned in
7198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7199 whose name does not start with the host triplet. If you think this
7200 configuration is useful to you, please write to autoconf@gnu.org." >&5
7201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7202 whose name does not start with the host triplet. If you think this
7203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7204 ac_tool_warned=yes ;;
7206 RANLIB=$ac_ct_RANLIB
7209 RANLIB="$ac_cv_prog_RANLIB"
7212 if test -n "$ac_tool_prefix"; then
7213 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7214 set dummy ${ac_tool_prefix}ar; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_prog_AR+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 if test -n "$AR"; then
7221 ac_cv_prog_AR="$AR" # Let the user override the test.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_prog_AR="${ac_tool_prefix}ar"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 if test -n "$AR"; then
7242 { echo "$as_me:$LINENO: result: $AR" >&5
7243 echo "${ECHO_T}$AR" >&6; }
7245 { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7251 if test -z "$ac_cv_prog_AR"; then
7253 # Extract the first word of "ar", so it can be a program name with args.
7254 set dummy ar; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 if test -n "$ac_ct_AR"; then
7261 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7270 ac_cv_prog_ac_ct_AR="ar"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7281 if test -n "$ac_ct_AR"; then
7282 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7283 echo "${ECHO_T}$ac_ct_AR" >&6; }
7285 { echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6; }
7289 if test "x$ac_ct_AR" = x; then
7292 case $cross_compiling:$ac_tool_warned in
7294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7295 whose name does not start with the host triplet. If you think this
7296 configuration is useful to you, please write to autoconf@gnu.org." >&5
7297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7298 whose name does not start with the host triplet. If you think this
7299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7300 ac_tool_warned=yes ;;
7308 # Extract the first word of "rm", so it can be a program name with args.
7309 set dummy rm; ac_word=$2
7310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7312 if test "${ac_cv_path_RM+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7340 if test -n "$RM"; then
7341 { echo "$as_me:$LINENO: result: $RM" >&5
7342 echo "${ECHO_T}$RM" >&6; }
7344 { echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6; }
7349 # Extract the first word of "sed", so it can be a program name with args.
7350 set dummy sed; ac_word=$2
7351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353 if test "${ac_cv_path_SED+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7381 if test -n "$SED"; then
7382 { echo "$as_me:$LINENO: result: $SED" >&5
7383 echo "${ECHO_T}$SED" >&6; }
7385 { echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6; }
7390 # Extract the first word of "tar", so it can be a program name with args.
7391 set dummy tar; ac_word=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_path_TAR+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7422 if test -n "$TAR"; then
7423 { echo "$as_me:$LINENO: result: $TAR" >&5
7424 echo "${ECHO_T}$TAR" >&6; }
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7431 # Extract the first word of "pwd", so it can be a program name with args.
7432 set dummy pwd; ac_word=$2
7433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435 if test "${ac_cv_path_BINPWD+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7462 BINPWD=$ac_cv_path_BINPWD
7463 if test -n "$BINPWD"; then
7464 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7465 echo "${ECHO_T}$BINPWD" >&6; }
7467 { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7473 # Extract the first word of "Graphviz", so it can be a program name with args.
7474 set dummy Graphviz; ac_word=$2
7475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7477 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7492 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7504 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7505 if test -n "$GRAPHVIZ"; then
7506 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7507 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7509 { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7514 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7516 cat >>confdefs.h <<\_ACEOF
7517 #define HAVE_GRAPHVIZ 1
7520 if test "$llvm_cv_os_type" = "MingW" ; then
7521 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7524 cat >>confdefs.h <<_ACEOF
7525 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7529 # Extract the first word of "dot", so it can be a program name with args.
7530 set dummy dot; ac_word=$2
7531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7533 if test "${ac_cv_path_DOT+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7561 if test -n "$DOT"; then
7562 { echo "$as_me:$LINENO: result: $DOT" >&5
7563 echo "${ECHO_T}$DOT" >&6; }
7565 { echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6; }
7570 if test "$DOT" != "echo dot" ; then
7572 cat >>confdefs.h <<\_ACEOF
7576 if test "$llvm_cv_os_type" = "MingW" ; then
7577 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7580 cat >>confdefs.h <<_ACEOF
7581 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7585 # Extract the first word of "fdp", so it can be a program name with args.
7586 set dummy fdp; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_FDP+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7617 if test -n "$FDP"; then
7618 { echo "$as_me:$LINENO: result: $FDP" >&5
7619 echo "${ECHO_T}$FDP" >&6; }
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 if test "$FDP" != "echo fdp" ; then
7628 cat >>confdefs.h <<\_ACEOF
7632 if test "$llvm_cv_os_type" = "MingW" ; then
7633 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7636 cat >>confdefs.h <<_ACEOF
7637 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7641 # Extract the first word of "neato", so it can be a program name with args.
7642 set dummy neato; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_path_NEATO+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7672 NEATO=$ac_cv_path_NEATO
7673 if test -n "$NEATO"; then
7674 { echo "$as_me:$LINENO: result: $NEATO" >&5
7675 echo "${ECHO_T}$NEATO" >&6; }
7677 { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7682 if test "$NEATO" != "echo neato" ; then
7684 cat >>confdefs.h <<\_ACEOF
7685 #define HAVE_NEATO 1
7688 if test "$llvm_cv_os_type" = "MingW" ; then
7689 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7692 cat >>confdefs.h <<_ACEOF
7693 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7697 # Extract the first word of "twopi", so it can be a program name with args.
7698 set dummy twopi; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_path_TWOPI+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7716 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7728 TWOPI=$ac_cv_path_TWOPI
7729 if test -n "$TWOPI"; then
7730 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7731 echo "${ECHO_T}$TWOPI" >&6; }
7733 { echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6; }
7738 if test "$TWOPI" != "echo twopi" ; then
7740 cat >>confdefs.h <<\_ACEOF
7741 #define HAVE_TWOPI 1
7744 if test "$llvm_cv_os_type" = "MingW" ; then
7745 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7748 cat >>confdefs.h <<_ACEOF
7749 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7753 # Extract the first word of "circo", so it can be a program name with args.
7754 set dummy circo; ac_word=$2
7755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757 if test "${ac_cv_path_CIRCO+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7784 CIRCO=$ac_cv_path_CIRCO
7785 if test -n "$CIRCO"; then
7786 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7787 echo "${ECHO_T}$CIRCO" >&6; }
7789 { echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6; }
7794 if test "$CIRCO" != "echo circo" ; then
7796 cat >>confdefs.h <<\_ACEOF
7797 #define HAVE_CIRCO 1
7800 if test "$llvm_cv_os_type" = "MingW" ; then
7801 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7804 cat >>confdefs.h <<_ACEOF
7805 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7809 for ac_prog in gv gsview32
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7815 if test "${ac_cv_path_GV+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7830 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 if test -n "$GV"; then
7843 { echo "$as_me:$LINENO: result: $GV" >&5
7844 echo "${ECHO_T}$GV" >&6; }
7846 { echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6; }
7851 test -n "$GV" && break
7853 test -n "$GV" || GV="echo gv"
7855 if test "$GV" != "echo gv" ; then
7857 cat >>confdefs.h <<\_ACEOF
7861 if test "$llvm_cv_os_type" = "MingW" ; then
7862 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7865 cat >>confdefs.h <<_ACEOF
7866 #define LLVM_PATH_GV "$GV${EXEEXT}"
7870 # Extract the first word of "dotty", so it can be a program name with args.
7871 set dummy dotty; ac_word=$2
7872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7874 if test "${ac_cv_path_DOTTY+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7889 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7901 DOTTY=$ac_cv_path_DOTTY
7902 if test -n "$DOTTY"; then
7903 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7904 echo "${ECHO_T}$DOTTY" >&6; }
7906 { echo "$as_me:$LINENO: result: no" >&5
7907 echo "${ECHO_T}no" >&6; }
7911 if test "$DOTTY" != "echo dotty" ; then
7913 cat >>confdefs.h <<\_ACEOF
7914 #define HAVE_DOTTY 1
7917 if test "$llvm_cv_os_type" = "MingW" ; then
7918 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7921 cat >>confdefs.h <<_ACEOF
7922 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7926 # Extract the first word of "xdot.py", so it can be a program name with args.
7927 set dummy xdot.py; ac_word=$2
7928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7957 XDOT_PY=$ac_cv_path_XDOT_PY
7958 if test -n "$XDOT_PY"; then
7959 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7960 echo "${ECHO_T}$XDOT_PY" >&6; }
7962 { echo "$as_me:$LINENO: result: no" >&5
7963 echo "${ECHO_T}no" >&6; }
7967 if test "$XDOT_PY" != "echo xdot.py" ; then
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_XDOT_PY 1
7973 if test "$llvm_cv_os_type" = "MingW" ; then
7974 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7977 cat >>confdefs.h <<_ACEOF
7978 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7984 # Extract the first word of "perl", so it can be a program name with args.
7985 set dummy perl; ac_word=$2
7986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7988 if test "${ac_cv_path_PERL+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8015 PERL=$ac_cv_path_PERL
8016 if test -n "$PERL"; then
8017 { echo "$as_me:$LINENO: result: $PERL" >&5
8018 echo "${ECHO_T}$PERL" >&6; }
8020 { echo "$as_me:$LINENO: result: no" >&5
8021 echo "${ECHO_T}no" >&6; }
8025 if test "$PERL" != "none"; then
8026 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8027 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8028 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8029 { echo "$as_me:$LINENO: result: yes" >&5
8030 echo "${ECHO_T}yes" >&6; }
8033 { echo "$as_me:$LINENO: result: not found" >&5
8034 echo "${ECHO_T}not found" >&6; }
8039 if test x"$PERL" = xnone; then
8042 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8043 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8044 { (exit 1); exit 1; }; }
8050 # Find a good install program. We prefer a C program (faster),
8051 # so one script is as good as another. But avoid the broken or
8052 # incompatible versions:
8053 # SysV /etc/install, /usr/sbin/install
8054 # SunOS /usr/etc/install
8055 # IRIX /sbin/install
8057 # AmigaOS /C/install, which installs bootblocks on floppy discs
8058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8061 # OS/2's system install, which has a completely different semantic
8062 # ./install, which can be erroneously created by make from ./install.sh.
8063 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8064 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8065 if test -z "$INSTALL"; then
8066 if test "${ac_cv_path_install+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 test -z "$as_dir" && as_dir=.
8074 # Account for people who put trailing slashes in PATH elements.
8076 ./ | .// | /cC/* | \
8077 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8078 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8081 # OSF1 and SCO ODT 3.0 have their own names for install.
8082 # Don't use installbsd from OSF since it installs stuff as root
8084 for ac_prog in ginstall scoinst install; do
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8087 if test $ac_prog = install &&
8088 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8089 # AIX install. It has an incompatible calling convention.
8091 elif test $ac_prog = install &&
8092 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8093 # program-specific install script used by HP pwplus--don't use.
8096 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8109 if test "${ac_cv_path_install+set}" = set; then
8110 INSTALL=$ac_cv_path_install
8112 # As a last resort, use the slow shell script. Don't cache a
8113 # value for INSTALL within a source directory, because that will
8114 # break other packages using the cache if that directory is
8115 # removed, or if the value is a relative name.
8116 INSTALL=$ac_install_sh
8119 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8120 echo "${ECHO_T}$INSTALL" >&6; }
8122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8123 # It thinks the first close brace ends the variable substitution.
8124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8131 [\\/$]* | ?:[\\/]* ) ;;
8132 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8135 # Extract the first word of "bzip2", so it can be a program name with args.
8136 set dummy bzip2; ac_word=$2
8137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8139 if test "${ac_cv_path_BZIP2+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8154 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 BZIP2=$ac_cv_path_BZIP2
8166 if test -n "$BZIP2"; then
8167 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8168 echo "${ECHO_T}$BZIP2" >&6; }
8170 { echo "$as_me:$LINENO: result: no" >&5
8171 echo "${ECHO_T}no" >&6; }
8175 # Extract the first word of "cat", so it can be a program name with args.
8176 set dummy cat; ac_word=$2
8177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8179 if test "${ac_cv_path_CAT+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8194 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 if test -n "$CAT"; then
8207 { echo "$as_me:$LINENO: result: $CAT" >&5
8208 echo "${ECHO_T}$CAT" >&6; }
8210 { echo "$as_me:$LINENO: result: no" >&5
8211 echo "${ECHO_T}no" >&6; }
8215 # Extract the first word of "doxygen", so it can be a program name with args.
8216 set dummy doxygen; ac_word=$2
8217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8219 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 DOXYGEN=$ac_cv_path_DOXYGEN
8246 if test -n "$DOXYGEN"; then
8247 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8248 echo "${ECHO_T}$DOXYGEN" >&6; }
8250 { echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6; }
8255 # Extract the first word of "groff", so it can be a program name with args.
8256 set dummy groff; ac_word=$2
8257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8259 if test "${ac_cv_path_GROFF+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8274 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 GROFF=$ac_cv_path_GROFF
8286 if test -n "$GROFF"; then
8287 { echo "$as_me:$LINENO: result: $GROFF" >&5
8288 echo "${ECHO_T}$GROFF" >&6; }
8290 { echo "$as_me:$LINENO: result: no" >&5
8291 echo "${ECHO_T}no" >&6; }
8295 # Extract the first word of "gzip", so it can be a program name with args.
8296 set dummy gzip; ac_word=$2
8297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8299 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8314 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 GZIPBIN=$ac_cv_path_GZIPBIN
8326 if test -n "$GZIPBIN"; then
8327 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8328 echo "${ECHO_T}$GZIPBIN" >&6; }
8330 { echo "$as_me:$LINENO: result: no" >&5
8331 echo "${ECHO_T}no" >&6; }
8335 # Extract the first word of "pod2html", so it can be a program name with args.
8336 set dummy pod2html; ac_word=$2
8337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8339 if test "${ac_cv_path_POD2HTML+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 POD2HTML=$ac_cv_path_POD2HTML
8366 if test -n "$POD2HTML"; then
8367 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8368 echo "${ECHO_T}$POD2HTML" >&6; }
8370 { echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6; }
8375 # Extract the first word of "pod2man", so it can be a program name with args.
8376 set dummy pod2man; ac_word=$2
8377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8379 if test "${ac_cv_path_POD2MAN+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 POD2MAN=$ac_cv_path_POD2MAN
8406 if test -n "$POD2MAN"; then
8407 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8408 echo "${ECHO_T}$POD2MAN" >&6; }
8410 { echo "$as_me:$LINENO: result: no" >&5
8411 echo "${ECHO_T}no" >&6; }
8415 # Extract the first word of "pdfroff", so it can be a program name with args.
8416 set dummy pdfroff; ac_word=$2
8417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8419 if test "${ac_cv_path_PDFROFF+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8434 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 PDFROFF=$ac_cv_path_PDFROFF
8446 if test -n "$PDFROFF"; then
8447 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8448 echo "${ECHO_T}$PDFROFF" >&6; }
8450 { echo "$as_me:$LINENO: result: no" >&5
8451 echo "${ECHO_T}no" >&6; }
8455 # Extract the first word of "runtest", so it can be a program name with args.
8456 set dummy runtest; ac_word=$2
8457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8459 if test "${ac_cv_path_RUNTEST+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 test -z "$as_dir" && as_dir=.
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8474 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 RUNTEST=$ac_cv_path_RUNTEST
8486 if test -n "$RUNTEST"; then
8487 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8488 echo "${ECHO_T}$RUNTEST" >&6; }
8490 { echo "$as_me:$LINENO: result: no" >&5
8491 echo "${ECHO_T}no" >&6; }
8497 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8498 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8500 # Check whether --with-tclinclude was given.
8501 if test "${with_tclinclude+set}" = set; then
8502 withval=$with_tclinclude; with_tclinclude=${withval}
8507 if test "${ac_cv_path_tclsh+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 if test x"${with_tclinclude}" != x ; then
8512 if test -f ${with_tclinclude}/tclsh ; then
8513 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8514 elif test -f ${with_tclinclude}/src/tclsh ; then
8515 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8517 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8518 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8519 { (exit 1); exit 1; }; }
8525 if test x"${ac_cv_path_tclsh}" = x ; then
8526 { echo "$as_me:$LINENO: result: none" >&5
8527 echo "${ECHO_T}none" >&6; }
8528 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
8530 # Extract the first word of "$ac_prog", so it can be a program name with args.
8531 set dummy $ac_prog; ac_word=$2
8532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8534 if test "${ac_cv_path_TCLSH+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 TCLSH=$ac_cv_path_TCLSH
8561 if test -n "$TCLSH"; then
8562 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8563 echo "${ECHO_T}$TCLSH" >&6; }
8565 { echo "$as_me:$LINENO: result: no" >&5
8566 echo "${ECHO_T}no" >&6; }
8570 test -n "$TCLSH" && break
8573 if test x"${TCLSH}" = x ; then
8574 ac_cv_path_tclsh='';
8576 ac_cv_path_tclsh="${TCLSH}";
8579 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8580 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8581 TCLSH="${ac_cv_path_tclsh}"
8585 # Extract the first word of "zip", so it can be a program name with args.
8586 set dummy zip; ac_word=$2
8587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8589 if test "${ac_cv_path_ZIP+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8604 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8616 if test -n "$ZIP"; then
8617 { echo "$as_me:$LINENO: result: $ZIP" >&5
8618 echo "${ECHO_T}$ZIP" >&6; }
8620 { echo "$as_me:$LINENO: result: no" >&5
8621 echo "${ECHO_T}no" >&6; }
8625 for ac_prog in ocamlc
8627 # Extract the first word of "$ac_prog", so it can be a program name with args.
8628 set dummy $ac_prog; ac_word=$2
8629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8631 if test "${ac_cv_path_OCAMLC+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8646 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 OCAMLC=$ac_cv_path_OCAMLC
8658 if test -n "$OCAMLC"; then
8659 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8660 echo "${ECHO_T}$OCAMLC" >&6; }
8662 { echo "$as_me:$LINENO: result: no" >&5
8663 echo "${ECHO_T}no" >&6; }
8667 test -n "$OCAMLC" && break
8670 for ac_prog in ocamlopt
8672 # Extract the first word of "$ac_prog", so it can be a program name with args.
8673 set dummy $ac_prog; ac_word=$2
8674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8676 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 test -z "$as_dir" && as_dir=.
8689 for ac_exec_ext in '' $ac_executable_extensions; do
8690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8691 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 OCAMLOPT=$ac_cv_path_OCAMLOPT
8703 if test -n "$OCAMLOPT"; then
8704 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8705 echo "${ECHO_T}$OCAMLOPT" >&6; }
8707 { echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6; }
8712 test -n "$OCAMLOPT" && break
8715 for ac_prog in ocamldep
8717 # Extract the first word of "$ac_prog", so it can be a program name with args.
8718 set dummy $ac_prog; ac_word=$2
8719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8721 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8736 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 OCAMLDEP=$ac_cv_path_OCAMLDEP
8748 if test -n "$OCAMLDEP"; then
8749 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8750 echo "${ECHO_T}$OCAMLDEP" >&6; }
8752 { echo "$as_me:$LINENO: result: no" >&5
8753 echo "${ECHO_T}no" >&6; }
8757 test -n "$OCAMLDEP" && break
8760 for ac_prog in ocamldoc
8762 # Extract the first word of "$ac_prog", so it can be a program name with args.
8763 set dummy $ac_prog; ac_word=$2
8764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8766 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8781 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 OCAMLDOC=$ac_cv_path_OCAMLDOC
8793 if test -n "$OCAMLDOC"; then
8794 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8795 echo "${ECHO_T}$OCAMLDOC" >&6; }
8797 { echo "$as_me:$LINENO: result: no" >&5
8798 echo "${ECHO_T}no" >&6; }
8802 test -n "$OCAMLDOC" && break
8805 for ac_prog in gas as
8807 # Extract the first word of "$ac_prog", so it can be a program name with args.
8808 set dummy $ac_prog; ac_word=$2
8809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8811 if test "${ac_cv_path_GAS+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8826 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 if test -n "$GAS"; then
8839 { echo "$as_me:$LINENO: result: $GAS" >&5
8840 echo "${ECHO_T}$GAS" >&6; }
8842 { echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6; }
8847 test -n "$GAS" && break
8851 { echo "$as_me:$LINENO: checking for linker version" >&5
8852 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8853 if test "${llvm_cv_link_version+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 version_string="$(ld -v 2>&1 | head -1)"
8860 if (echo "$version_string" | grep -q "ld64"); then
8861 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8863 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8867 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8868 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8870 cat >>confdefs.h <<_ACEOF
8871 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8876 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8877 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8878 if test "${llvm_cv_link_use_r+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 ac_cpp='$CPP $CPPFLAGS'
8883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8888 CFLAGS="$CFLAGS -Wl,-R."
8889 cat >conftest.$ac_ext <<_ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8904 rm -f conftest.$ac_objext conftest$ac_exeext
8905 if { (ac_try="$ac_link"
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_link") 2>conftest.er1
8913 grep -v '^ *+' conftest.er1 >conftest.err
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8919 { (case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_try") 2>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest$ac_exeext'
8929 { (case "(($ac_try" in
8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934 (eval "$ac_try") 2>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 llvm_cv_link_use_r=yes
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 llvm_cv_link_use_r=no
8946 rm -f core conftest.err conftest.$ac_objext \
8947 conftest$ac_exeext conftest.$ac_ext
8950 ac_cpp='$CPP $CPPFLAGS'
8951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8957 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8958 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8959 if test "$llvm_cv_link_use_r" = yes ; then
8961 cat >>confdefs.h <<\_ACEOF
8962 #define HAVE_LINK_R 1
8968 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8969 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8970 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 ac_cpp='$CPP $CPPFLAGS'
8975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8980 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (ac_try="$ac_link"
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9003 (eval "$ac_link") 2>conftest.er1
9005 grep -v '^ *+' conftest.er1 >conftest.err
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9011 { (case "(($ac_try" in
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_try") 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; } &&
9020 { ac_try='test -s conftest$ac_exeext'
9021 { (case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_try") 2>&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 llvm_cv_link_use_export_dynamic=yes
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 llvm_cv_link_use_export_dynamic=no
9038 rm -f core conftest.err conftest.$ac_objext \
9039 conftest$ac_exeext conftest.$ac_ext
9042 ac_cpp='$CPP $CPPFLAGS'
9043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9049 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9050 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9051 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9053 cat >>confdefs.h <<\_ACEOF
9054 #define HAVE_LINK_EXPORT_DYNAMIC 1
9060 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9061 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9062 if test "${llvm_cv_link_use_version_script+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 ac_cpp='$CPP $CPPFLAGS'
9067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9073 # The following code is from the autoconf manual,
9074 # "11.13: Limitations of Usual Tools".
9075 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9076 # Use mktemp if possible; otherwise fall back on mkdir,
9077 # with $RANDOM to make collisions less likely.
9081 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9083 test -n "$tmp" && test -d "$tmp"
9085 tmp=$TMPDIR/foo$$-$RANDOM
9086 (umask 077 && mkdir "$tmp")
9089 echo "{" > "$tmp/export.map"
9090 echo " global: main;" >> "$tmp/export.map"
9091 echo " local: *;" >> "$tmp/export.map"
9092 echo "};" >> "$tmp/export.map"
9094 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9095 cat >conftest.$ac_ext <<_ACEOF
9098 cat confdefs.h >>conftest.$ac_ext
9099 cat >>conftest.$ac_ext <<_ACEOF
9100 /* end confdefs.h. */
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (ac_try="$ac_link"
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_link") 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9125 { (case "(($ac_try" in
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130 (eval "$ac_try") 2>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; } &&
9134 { ac_try='test -s conftest$ac_exeext'
9135 { (case "(($ac_try" in
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_try") 2>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
9144 llvm_cv_link_use_version_script=yes
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 llvm_cv_link_use_version_script=no
9152 rm -f core conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 rm "$tmp/export.map"
9158 ac_cpp='$CPP $CPPFLAGS'
9159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9165 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9166 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9167 if test "$llvm_cv_link_use_version_script" = yes ; then
9168 HAVE_LINK_VERSION_SCRIPT=1
9175 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9176 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9177 if test "${ac_cv_c_const+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 cat >conftest.$ac_ext <<_ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9190 /* FIXME: Include the comments suggested by Paul. */
9192 /* Ultrix mips cc rejects this. */
9193 typedef int charset[2];
9195 /* SunOS 4.1.1 cc rejects this. */
9196 char const *const *ccp;
9198 /* NEC SVR4.0.2 mips cc rejects this. */
9199 struct point {int x, y;};
9200 static struct point const zero = {0,0};
9201 /* AIX XL C 1.02.0.0 rejects this.
9202 It does not let you subtract one const X* pointer from another in
9203 an arm of an if-expression whose if-part is not a constant
9205 const char *g = "string";
9206 ccp = &g + (g ? g-g : 0);
9207 /* HPUX 7.0 cc rejects these. */
9210 ccp = (char const *const *) p;
9211 { /* SCO 3.2v4 cc rejects this. */
9213 char const *s = 0 ? (char *) 0 : (char const *) 0;
9218 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9220 const int *foo = &x[0];
9223 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9224 typedef const int *iptr;
9228 { /* AIX XL C 1.02.0.0 rejects this saying
9229 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9230 struct s { int j; const int *ap[3]; };
9231 struct s *b; b->j = 5;
9233 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9237 return !x[0] && !zero.x;
9244 rm -f conftest.$ac_objext
9245 if { (ac_try="$ac_compile"
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_compile") 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9259 { (case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_try") 2>&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; } &&
9268 { ac_try='test -s conftest.$ac_objext'
9269 { (case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_try") 2>&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9288 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9289 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9290 if test $ac_cv_c_const = no; then
9292 cat >>confdefs.h <<\_ACEOF
9304 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9305 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9306 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9307 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 cat >conftest.$ac_ext <<_ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9317 #include <sys/types.h>
9329 rm -f conftest.$ac_objext
9330 if { (ac_try="$ac_compile"
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_compile") 2>conftest.er1
9338 grep -v '^ *+' conftest.er1 >conftest.err
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9344 { (case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_try") 2>&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; } &&
9353 { ac_try='test -s conftest.$ac_objext'
9354 { (case "(($ac_try" in
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359 (eval "$ac_try") 2>&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 eval "$as_ac_Header=yes"
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9368 eval "$as_ac_Header=no"
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373 ac_res=`eval echo '${'$as_ac_Header'}'`
9374 { echo "$as_me:$LINENO: result: $ac_res" >&5
9375 echo "${ECHO_T}$ac_res" >&6; }
9376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9377 cat >>confdefs.h <<_ACEOF
9378 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9381 ac_header_dirent=$ac_hdr; break
9385 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9386 if test $ac_header_dirent = dirent.h; then
9387 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9388 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9389 if test "${ac_cv_search_opendir+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 ac_func_search_save_LIBS=$LIBS
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9415 for ac_lib in '' dir; do
9416 if test -z "$ac_lib"; then
9417 ac_res="none required"
9420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (ac_try="$ac_link"
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_link") 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9437 { (case "(($ac_try" in
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442 (eval "$ac_try") 2>&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; } &&
9446 { ac_try='test -s conftest$ac_exeext'
9447 { (case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_try") 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9456 ac_cv_search_opendir=$ac_res
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9464 rm -f core conftest.err conftest.$ac_objext \
9466 if test "${ac_cv_search_opendir+set}" = set; then
9470 if test "${ac_cv_search_opendir+set}" = set; then
9473 ac_cv_search_opendir=no
9476 LIBS=$ac_func_search_save_LIBS
9478 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9479 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9480 ac_res=$ac_cv_search_opendir
9481 if test "$ac_res" != no; then
9482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9487 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9488 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9489 if test "${ac_cv_search_opendir+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 ac_func_search_save_LIBS=$LIBS
9493 cat >conftest.$ac_ext <<_ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9500 /* Override any GCC internal prototype to avoid an error.
9501 Use char because int might match the return type of a GCC
9502 builtin and then its argument prototype would still apply. */
9515 for ac_lib in '' x; do
9516 if test -z "$ac_lib"; then
9517 ac_res="none required"
9520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9522 rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (ac_try="$ac_link"
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529 (eval "$ac_link") 2>conftest.er1
9531 grep -v '^ *+' conftest.er1 >conftest.err
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9537 { (case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_try") 2>&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } &&
9546 { ac_try='test -s conftest$ac_exeext'
9547 { (case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_try") 2>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 ac_cv_search_opendir=$ac_res
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9564 rm -f core conftest.err conftest.$ac_objext \
9566 if test "${ac_cv_search_opendir+set}" = set; then
9570 if test "${ac_cv_search_opendir+set}" = set; then
9573 ac_cv_search_opendir=no
9576 LIBS=$ac_func_search_save_LIBS
9578 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9579 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9580 ac_res=$ac_cv_search_opendir
9581 if test "$ac_res" != no; then
9582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9589 for ac_header in dlfcn.h
9591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 ac_res=`eval echo '${'$as_ac_Header'}'`
9599 { echo "$as_me:$LINENO: result: $ac_res" >&5
9600 echo "${ECHO_T}$ac_res" >&6; }
9602 # Is the header compilable?
9603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9605 cat >conftest.$ac_ext <<_ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 $ac_includes_default
9612 #include <$ac_header>
9614 rm -f conftest.$ac_objext
9615 if { (ac_try="$ac_compile"
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_compile") 2>conftest.er1
9623 grep -v '^ *+' conftest.er1 >conftest.err
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9629 { (case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_try") 2>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest.$ac_objext'
9639 { (case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_try") 2>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_header_compiler=yes
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 ac_header_compiler=no
9656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9658 echo "${ECHO_T}$ac_header_compiler" >&6; }
9660 # Is the header present?
9661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9663 cat >conftest.$ac_ext <<_ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 #include <$ac_header>
9671 if { (ac_try="$ac_cpp conftest.$ac_ext"
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9679 grep -v '^ *+' conftest.er1 >conftest.err
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } >/dev/null; then
9684 if test -s conftest.err; then
9685 ac_cpp_err=$ac_c_preproc_warn_flag
9686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9693 if test -z "$ac_cpp_err"; then
9694 ac_header_preproc=yes
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9699 ac_header_preproc=no
9702 rm -f conftest.err conftest.$ac_ext
9703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9704 echo "${ECHO_T}$ac_header_preproc" >&6; }
9706 # So? What about this header?
9707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9713 ac_header_preproc=yes
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9729 ## ----------------------------------- ##
9730 ## Report this to llvmbugs@cs.uiuc.edu ##
9731 ## ----------------------------------- ##
9733 ) | sed "s/^/$as_me: WARNING: /" >&2
9736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 eval "$as_ac_Header=\$ac_header_preproc"
9743 ac_res=`eval echo '${'$as_ac_Header'}'`
9744 { echo "$as_me:$LINENO: result: $ac_res" >&5
9745 echo "${ECHO_T}$ac_res" >&6; }
9748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9749 cat >>confdefs.h <<_ACEOF
9750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9757 # Check whether --enable-ltdl-install was given.
9758 if test "${enable_ltdl_install+set}" = set; then
9759 enableval=$enable_ltdl_install;
9765 if test x"${enable_ltdl_install-no}" != xno; then
9767 INSTALL_LTDL_FALSE='#'
9769 INSTALL_LTDL_TRUE='#'
9775 if test x"${enable_ltdl_convenience-no}" != xno; then
9776 CONVENIENCE_LTDL_TRUE=
9777 CONVENIENCE_LTDL_FALSE='#'
9779 CONVENIENCE_LTDL_TRUE='#'
9780 CONVENIENCE_LTDL_FALSE=
9784 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9785 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9787 libname_spec='lib$name'
9795 shlibpath_overrides_runpath=unknown
9797 dynamic_linker="$host_os ld.so"
9798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9799 if test "$GCC" = yes; then
9800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9801 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9802 # if the path contains ";" then we assume it to be the separator
9803 # otherwise default to the standard path separator (i.e. ":") - it is
9804 # assumed that no part of a normal pathname contains ";" but that should
9805 # okay in the real world where ";" in dirpaths is itself problematic.
9806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9813 need_lib_prefix=unknown
9814 hardcode_into_libs=no
9816 # when you set need_version to no, make sure it does not cause -set_version
9817 # flags to be left without arguments
9818 need_version=unknown
9823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9824 shlibpath_var=LIBPATH
9826 # AIX 3 has no versioning support, so we append a major version to the name.
9827 soname_spec='${libname}${release}${shared_ext}$major'
9834 hardcode_into_libs=yes
9835 if test "$host_cpu" = ia64; then
9836 # AIX 5 supports IA64
9837 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9838 shlibpath_var=LD_LIBRARY_PATH
9840 # With GCC up to 2.95.x, collect2 would create an import file
9841 # for dependence libraries. The import file would start with
9842 # the line `#! .'. This would cause the generated library to
9843 # depend on `.', always an invalid library. This was fixed in
9844 # development snapshots of GCC prior to 3.0.
9846 aix4 | aix4.[01] | aix4.[01].*)
9847 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9849 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9856 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9857 # soname into executable. Probably we can add versioning support to
9858 # collect2, so additional links can be useful in future.
9859 if test "$aix_use_runtimelinking" = yes; then
9860 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9861 # instead of lib<name>.a to let people know that these are not
9862 # typical AIX shared libraries.
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 # We preserve .a as extension for shared libraries through AIX4.2
9866 # and later when we are not doing run time linking.
9867 library_names_spec='${libname}${release}.a $libname.a'
9868 soname_spec='${libname}${release}${shared_ext}$major'
9870 shlibpath_var=LIBPATH
9875 library_names_spec='$libname.ixlibrary $libname.a'
9876 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9877 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'
9881 library_names_spec='${libname}${shared_ext}'
9882 dynamic_linker="$host_os ld.so"
9883 shlibpath_var=LIBRARY_PATH
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9894 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9895 # the default ld.so.conf also contains /usr/contrib/lib and
9896 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9897 # libtool to hard-code these into programs
9900 cygwin* | mingw* | pw32*)
9901 version_type=windows
9906 case $GCC,$host_os in
9907 yes,cygwin* | yes,mingw* | yes,pw32*)
9908 library_names_spec='$libname.dll.a'
9909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9910 postinstall_cmds='base_file=`basename \${file}`~
9911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9912 dldir=$destdir/`dirname \$dlpath`~
9913 test -d \$dldir || mkdir -p \$dldir~
9914 $install_prog $dir/$dlname \$dldir/$dlname~
9915 chmod a+x \$dldir/$dlname'
9916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9917 dlpath=$dir/\$dldll~
9919 shlibpath_overrides_runpath=yes
9923 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9924 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9925 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9928 # MinGW DLLs use traditional 'lib' prefix
9929 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9930 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9931 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9932 # It is most probably a Windows format PATH printed by
9933 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9934 # path with ; separators, and with drive letters. We can handle the
9935 # drive letters (cygwin fileutils understands them), so leave them,
9936 # especially as we might pass files found there to a mingw objdump,
9937 # which wouldn't understand a cygwinified path. Ahh.
9938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9944 # pw32 DLLs use 'pw' prefix rather than 'lib'
9945 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9951 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9954 dynamic_linker='Win32 ld.exe'
9955 # FIXME: first we should search . and the directory the executable is in
9959 darwin* | rhapsody*)
9960 dynamic_linker="$host_os dyld"
9964 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9965 soname_spec='${libname}${release}${major}$shared_ext'
9966 shlibpath_overrides_runpath=yes
9967 shlibpath_var=DYLD_LIBRARY_PATH
9968 shrext_cmds='.dylib'
9969 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9970 if test "$GCC" = yes; then
9971 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"`
9973 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9996 soname_spec='${libname}${release}${shared_ext}$major'
9997 shlibpath_var=LD_LIBRARY_PATH
9998 shlibpath_overrides_runpath=no
9999 hardcode_into_libs=yes
10000 dynamic_linker='GNU ld.so'
10003 freebsd* | dragonfly*)
10004 # DragonFly does not have aout. When/if they implement a new
10005 # versioning mechanism, adjust this.
10006 if test -x /usr/bin/objformat; then
10007 objformat=`/usr/bin/objformat`
10010 freebsd[123]*) objformat=aout ;;
10011 *) objformat=elf ;;
10014 version_type=freebsd-$objformat
10015 case $version_type in
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10026 shlibpath_var=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath=yes
10031 freebsd3.[01]* | freebsdelf3.[01]*)
10032 shlibpath_overrides_runpath=yes
10033 hardcode_into_libs=yes
10035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10037 shlibpath_overrides_runpath=no
10038 hardcode_into_libs=yes
10040 freebsd*) # from 4.6 on
10041 shlibpath_overrides_runpath=yes
10042 hardcode_into_libs=yes
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 shlibpath_var=LD_LIBRARY_PATH
10054 hardcode_into_libs=yes
10057 hpux9* | hpux10* | hpux11*)
10058 # Give a soname corresponding to the major version so that dld.sl refuses to
10059 # link against other versions.
10066 hardcode_into_libs=yes
10067 dynamic_linker="$host_os dld.so"
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 if test "X$HPUX_IA64_MODE" = X32; then
10073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10081 hardcode_into_libs=yes
10082 dynamic_linker="$host_os dld.sl"
10083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10092 dynamic_linker="$host_os dld.sl"
10093 shlibpath_var=SHLIB_PATH
10094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096 soname_spec='${libname}${release}${shared_ext}$major'
10099 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10100 postinstall_cmds='chmod 555 $lib'
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 shlibpath_overrides_runpath=no
10112 hardcode_into_libs=yes
10115 irix5* | irix6* | nonstopux*)
10117 nonstopux*) version_type=nonstopux ;;
10119 if test "$lt_cv_prog_gnu_ld" = yes; then
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10130 irix5* | nonstopux*)
10131 libsuff= shlibsuff=
10134 case $LD in # libtool.m4 will add one of these switches to LD
10135 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10136 libsuff= shlibsuff= libmagic=32-bit;;
10137 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10138 libsuff=32 shlibsuff=N32 libmagic=N32;;
10139 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10140 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10141 *) libsuff= shlibsuff= libmagic=never-match;;
10145 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10146 shlibpath_overrides_runpath=no
10147 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10148 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10149 hardcode_into_libs=yes
10152 # No shared lib support for Linux oldld, aout, or coff.
10153 linux*oldld* | linux*aout* | linux*coff*)
10157 # This must be Linux ELF.
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=no
10167 # This implies no fast_install, which is unacceptable.
10168 # Some rework will be needed to allow for fast_install
10169 # before this can be enabled.
10170 hardcode_into_libs=yes
10172 # Append ld.so.conf contents to the search path
10173 if test -f /etc/ld.so.conf; then
10174 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' ' '`
10175 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10178 # We used to test for /lib/ld.so.1 and disable shared libraries on
10179 # powerpc, because MkLinux only supported shared libraries with the
10180 # GNU dynamic linker. Since this was broken with cross compilers,
10181 # most powerpc-linux boxes support dynamic linking these days and
10182 # people can always --disable-shared, the test was removed, and we
10183 # assume the GNU/Linux dynamic linker is in use.
10184 dynamic_linker='GNU/Linux ld.so'
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=no
10195 hardcode_into_libs=yes
10196 dynamic_linker='GNU ld.so'
10203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10206 dynamic_linker='NetBSD (a.out) ld.so'
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 dynamic_linker='NetBSD ld.elf_so'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 shlibpath_overrides_runpath=yes
10214 hardcode_into_libs=yes
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 shlibpath_overrides_runpath=yes
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 shlibpath_overrides_runpath=yes
10236 sys_lib_dlsearch_path_spec="/usr/lib"
10238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10241 *) need_version=no ;;
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10248 openbsd2.[89] | openbsd2.[89].*)
10249 shlibpath_overrides_runpath=no
10252 shlibpath_overrides_runpath=yes
10256 shlibpath_overrides_runpath=yes
10261 libname_spec='$name'
10264 library_names_spec='$libname${shared_ext} $libname.a'
10265 dynamic_linker='OS/2 ld.exe'
10266 shlibpath_var=LIBPATH
10269 osf3* | osf4* | osf5*)
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=yes
10288 hardcode_into_libs=yes
10289 # ldd complains unless libraries are executable
10290 postinstall_cmds='chmod +x $lib'
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10296 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=yes
10299 if test "$with_gnu_ld" = yes; then
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 case $host_vendor in
10312 shlibpath_overrides_runpath=no
10314 export_dynamic_flag_spec='${wl}-Blargedynsym'
10315 runpath_var=LD_RUN_PATH
10323 shlibpath_overrides_runpath=no
10324 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10330 if test -d /usr/nec ;then
10332 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10333 soname_spec='$libname${shared_ext}.$major'
10334 shlibpath_var=LD_LIBRARY_PATH
10338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10339 version_type=freebsd-elf
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 hardcode_into_libs=yes
10346 if test "$with_gnu_ld" = yes; then
10347 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10348 shlibpath_overrides_runpath=no
10350 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10351 shlibpath_overrides_runpath=yes
10354 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10358 sys_lib_dlsearch_path_spec='/usr/lib'
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10372 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10373 echo "${ECHO_T}$dynamic_linker" >&6; }
10374 test "$dynamic_linker" = no && can_build_shared=no
10376 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10377 if test "$GCC" = yes; then
10378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10382 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10383 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10384 if test "${libltdl_cv_shlibext+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 eval libltdl_cv_shlibext=$shrext_cmds
10392 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10393 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10394 if test -n "$libltdl_cv_shlibext"; then
10396 cat >>confdefs.h <<_ACEOF
10397 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10403 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10404 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10405 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 libltdl_cv_shlibpath_var="$shlibpath_var"
10410 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10411 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10412 if test -n "$libltdl_cv_shlibpath_var"; then
10414 cat >>confdefs.h <<_ACEOF
10415 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10421 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10422 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10423 if test "${libltdl_cv_sys_search_path+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10428 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10429 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10430 if test -n "$libltdl_cv_sys_search_path"; then
10432 for dir in $libltdl_cv_sys_search_path; do
10433 if test -z "$sys_search_path"; then
10434 sys_search_path="$dir"
10436 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10440 cat >>confdefs.h <<_ACEOF
10441 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10446 { echo "$as_me:$LINENO: checking for objdir" >&5
10447 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10448 if test "${libltdl_cv_objdir+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 libltdl_cv_objdir="$objdir"
10452 if test -n "$objdir"; then
10455 rm -f .libs 2>/dev/null
10456 mkdir .libs 2>/dev/null
10457 if test -d .libs; then
10458 libltdl_cv_objdir=.libs
10460 # MS-DOS does not allow filenames that begin with a dot.
10461 libltdl_cv_objdir=_libs
10463 rmdir .libs 2>/dev/null
10467 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10468 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10470 cat >>confdefs.h <<_ACEOF
10471 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10479 # Check for command to grab the raw symbol name followed by C symbol from nm.
10480 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10481 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10482 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 # These are sane defaults that work on at least a few old systems.
10487 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10489 # Character class describing NM global symbol codes.
10490 symcode='[BCDEGRST]'
10492 # Regexp to match symbols that can be accessed directly from C.
10493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10495 # Transform an extracted symbol line into a proper C declaration
10496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10498 # Transform an extracted symbol line into symbol name and symbol address
10499 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'"
10501 # Define system-specific variables.
10506 cygwin* | mingw* | pw32*)
10507 symcode='[ABCDGISTW]'
10509 hpux*) # Its linker distinguishes data from code symbols
10510 if test "$host_cpu" = ia64; then
10511 symcode='[ABCDEGRST]'
10513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10514 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'"
10517 if test "$host_cpu" = ia64; then
10518 symcode='[ABCDGIRSTW]'
10519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10520 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'"
10523 irix* | nonstopux*)
10524 symcode='[BCDEGRST]'
10527 symcode='[BCDEGQRST]'
10538 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10546 # Handle CRLF in mingw tool chain
10550 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10554 # If we're using GNU nm, then use its standard symbol codes.
10555 case `$NM -V 2>&1` in
10556 *GNU* | *'with BFD'*)
10557 symcode='[ABCDGIRSTW]' ;;
10560 # Try without a prefix undercore, then with it.
10561 for ac_symprfx in "" "_"; do
10563 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10564 symxfrm="\\1 $ac_symprfx\\2 \\2"
10566 # Write the raw and C identifiers.
10567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10569 # Check to see that the pipe works correctly.
10573 cat > conftest.$ac_ext <<EOF
10578 void nm_test_func(){}
10582 int main(){nm_test_var='a';nm_test_func();return(0);}
10585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10586 (eval $ac_compile) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; then
10590 # Now try to grab the symbols.
10592 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10593 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && test -s "$nlist"; then
10597 # Try sorting and uniquifying the output.
10598 if sort "$nlist" | uniq > "$nlist"T; then
10599 mv -f "$nlist"T "$nlist"
10604 # Make sure that we snagged all the symbols we need.
10605 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10606 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10607 cat <<EOF > conftest.$ac_ext
10613 # Now generate the symbol file.
10614 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10616 cat <<EOF >> conftest.$ac_ext
10617 #if defined (__STDC__) && __STDC__
10618 # define lt_ptr_t void *
10620 # define lt_ptr_t char *
10624 /* The mapping between symbol names and symbols. */
10629 lt_preloaded_symbols[] =
10632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10633 cat <<\EOF >> conftest.$ac_ext
10641 # Now try linking the two files.
10642 mv conftest.$ac_objext conftstm.$ac_objext
10643 lt_save_LIBS="$LIBS"
10644 lt_save_CFLAGS="$CFLAGS"
10645 LIBS="conftstm.$ac_objext"
10646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10654 LIBS="$lt_save_LIBS"
10655 CFLAGS="$lt_save_CFLAGS"
10657 echo "cannot find nm_test_func in $nlist" >&5
10660 echo "cannot find nm_test_var in $nlist" >&5
10663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10666 echo "$progname: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10669 rm -f conftest* conftst*
10671 # Do not use the global_symbol_pipe unless it works.
10672 if test "$pipe_works" = yes; then
10675 lt_cv_sys_global_symbol_pipe=
10681 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10682 lt_cv_sys_global_symbol_to_cdecl=
10684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10685 { echo "$as_me:$LINENO: result: failed" >&5
10686 echo "${ECHO_T}failed" >&6; }
10688 { echo "$as_me:$LINENO: result: ok" >&5
10689 echo "${ECHO_T}ok" >&6; }
10693 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10694 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10695 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10699 libltdl_cv_preloaded_symbols=yes
10701 libltdl_cv_preloaded_symbols=no
10705 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10706 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10707 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10709 cat >>confdefs.h <<\_ACEOF
10710 #define HAVE_PRELOADED_SYMBOLS 1
10718 ac_cpp='$CPP $CPPFLAGS'
10719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10724 { echo "$as_me:$LINENO: checking for shl_load" >&5
10725 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10726 if test "${ac_cv_func_shl_load+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 cat >conftest.$ac_ext <<_ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10735 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10737 #define shl_load innocuous_shl_load
10739 /* System header to define __stub macros and hopefully few prototypes,
10740 which can conflict with char shl_load (); below.
10741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10742 <limits.h> exists even on freestanding compilers. */
10745 # include <limits.h>
10747 # include <assert.h>
10752 /* Override any GCC internal prototype to avoid an error.
10753 Use char because int might match the return type of a GCC
10754 builtin and then its argument prototype would still apply. */
10759 /* The GNU C library defines this for functions which it implements
10760 to always fail with ENOSYS. Some functions are actually named
10761 something starting with __ and the normal name is an alias. */
10762 #if defined __stub_shl_load || defined __stub___shl_load
10769 return shl_load ();
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_link") 2>conftest.er1
10783 grep -v '^ *+' conftest.er1 >conftest.err
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest$ac_exeext'
10799 { (case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_try") 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_cv_func_shl_load=yes
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_cv_func_shl_load=no
10816 rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10819 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10820 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10821 if test $ac_cv_func_shl_load = yes; then
10823 cat >>confdefs.h <<\_ACEOF
10824 #define HAVE_SHL_LOAD 1
10828 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10829 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10830 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 ac_check_lib_save_LIBS=$LIBS
10835 cat >conftest.$ac_ext <<_ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10842 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10852 return shl_load ();
10857 rm -f conftest.$ac_objext conftest$ac_exeext
10858 if { (ac_try="$ac_link"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_link") 2>conftest.er1
10866 grep -v '^ *+' conftest.er1 >conftest.err
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10872 { (case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_try") 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try='test -s conftest$ac_exeext'
10882 { (case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_try") 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_cv_lib_dld_shl_load=yes
10893 echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10896 ac_cv_lib_dld_shl_load=no
10899 rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10903 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10904 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10905 if test $ac_cv_lib_dld_shl_load = yes; then
10907 cat >>confdefs.h <<\_ACEOF
10908 #define HAVE_SHL_LOAD 1
10911 LIBADD_DL="$LIBADD_DL -ldld"
10913 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10914 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10915 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 ac_check_lib_save_LIBS=$LIBS
10920 cat >conftest.$ac_ext <<_ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10927 /* Override any GCC internal prototype to avoid an error.
10928 Use char because int might match the return type of a GCC
10929 builtin and then its argument prototype would still apply. */
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (ac_try="$ac_link"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_link") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10957 { (case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_try") 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; } &&
10966 { ac_try='test -s conftest$ac_exeext'
10967 { (case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_try") 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_cv_lib_dl_dlopen=yes
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 ac_cv_lib_dl_dlopen=no
10984 rm -f core conftest.err conftest.$ac_objext \
10985 conftest$ac_exeext conftest.$ac_ext
10986 LIBS=$ac_check_lib_save_LIBS
10988 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10989 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10990 if test $ac_cv_lib_dl_dlopen = yes; then
10992 cat >>confdefs.h <<\_ACEOF
10993 #define HAVE_LIBDL 1
10996 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10998 cat >conftest.$ac_ext <<_ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11005 # include <dlfcn.h>
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (ac_try="$ac_link"
11018 case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_link") 2>conftest.er1
11025 grep -v '^ *+' conftest.er1 >conftest.err
11027 cat conftest.err >&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11031 { (case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_try") 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try='test -s conftest$ac_exeext'
11041 { (case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_try") 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11051 cat >>confdefs.h <<\_ACEOF
11052 #define HAVE_LIBDL 1
11054 libltdl_cv_func_dlopen="yes"
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11060 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11061 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 ac_check_lib_save_LIBS=$LIBS
11065 LIBS="-lsvld $LIBS"
11066 cat >conftest.$ac_ext <<_ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11073 /* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (ac_try="$ac_link"
11090 case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_link") 2>conftest.er1
11097 grep -v '^ *+' conftest.er1 >conftest.err
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11103 { (case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_try") 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; } &&
11112 { ac_try='test -s conftest$ac_exeext'
11113 { (case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_try") 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 ac_cv_lib_svld_dlopen=yes
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 ac_cv_lib_svld_dlopen=no
11130 rm -f core conftest.err conftest.$ac_objext \
11131 conftest$ac_exeext conftest.$ac_ext
11132 LIBS=$ac_check_lib_save_LIBS
11134 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11135 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11136 if test $ac_cv_lib_svld_dlopen = yes; then
11138 cat >>confdefs.h <<\_ACEOF
11139 #define HAVE_LIBDL 1
11142 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11144 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11145 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11146 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 ac_check_lib_save_LIBS=$LIBS
11151 cat >conftest.$ac_ext <<_ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11168 return dld_link ();
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (ac_try="$ac_link"
11175 case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_link") 2>conftest.er1
11182 grep -v '^ *+' conftest.er1 >conftest.err
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; } &&
11197 { ac_try='test -s conftest$ac_exeext'
11198 { (case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_try") 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_lib_dld_dld_link=yes
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_cv_lib_dld_dld_link=no
11215 rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11217 LIBS=$ac_check_lib_save_LIBS
11219 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11220 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11221 if test $ac_cv_lib_dld_dld_link = yes; then
11223 cat >>confdefs.h <<\_ACEOF
11227 LIBADD_DL="$LIBADD_DL -ldld"
11229 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11230 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11231 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 cat >conftest.$ac_ext <<_ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11242 #define _dyld_func_lookup innocuous__dyld_func_lookup
11244 /* System header to define __stub macros and hopefully few prototypes,
11245 which can conflict with char _dyld_func_lookup (); below.
11246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247 <limits.h> exists even on freestanding compilers. */
11250 # include <limits.h>
11252 # include <assert.h>
11255 #undef _dyld_func_lookup
11257 /* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
11263 char _dyld_func_lookup ();
11264 /* The GNU C library defines this for functions which it implements
11265 to always fail with ENOSYS. Some functions are actually named
11266 something starting with __ and the normal name is an alias. */
11267 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11274 return _dyld_func_lookup ();
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_link") 2>conftest.er1
11288 grep -v '^ *+' conftest.er1 >conftest.err
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11294 { (case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_try") 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; } &&
11303 { ac_try='test -s conftest$ac_exeext'
11304 { (case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_try") 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_func__dyld_func_lookup=yes
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_cv_func__dyld_func_lookup=no
11321 rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext conftest.$ac_ext
11324 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11325 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11326 if test $ac_cv_func__dyld_func_lookup = yes; then
11328 cat >>confdefs.h <<\_ACEOF
11329 #define HAVE_DYLD 1
11343 rm -f core conftest.err conftest.$ac_objext \
11344 conftest$ac_exeext conftest.$ac_ext
11355 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11357 lt_save_LIBS="$LIBS"
11358 LIBS="$LIBS $LIBADD_DL"
11360 for ac_func in dlerror
11362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 cat >conftest.$ac_ext <<_ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11376 #define $ac_func innocuous_$ac_func
11378 /* System header to define __stub macros and hopefully few prototypes,
11379 which can conflict with char $ac_func (); below.
11380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11381 <limits.h> exists even on freestanding compilers. */
11384 # include <limits.h>
11386 # include <assert.h>
11391 /* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11398 /* The GNU C library defines this for functions which it implements
11399 to always fail with ENOSYS. Some functions are actually named
11400 something starting with __ and the normal name is an alias. */
11401 #if defined __stub_$ac_func || defined __stub___$ac_func
11408 return $ac_func ();
11413 rm -f conftest.$ac_objext conftest$ac_exeext
11414 if { (ac_try="$ac_link"
11415 case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_link") 2>conftest.er1
11422 grep -v '^ *+' conftest.er1 >conftest.err
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11428 { (case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_try") 2>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; } &&
11437 { ac_try='test -s conftest$ac_exeext'
11438 { (case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443 (eval "$ac_try") 2>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }; then
11447 eval "$as_ac_var=yes"
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 eval "$as_ac_var=no"
11455 rm -f core conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11458 ac_res=`eval echo '${'$as_ac_var'}'`
11459 { echo "$as_me:$LINENO: result: $ac_res" >&5
11460 echo "${ECHO_T}$ac_res" >&6; }
11461 if test `eval echo '${'$as_ac_var'}'` = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11469 LIBS="$lt_save_LIBS"
11472 ac_cpp='$CPP $CPPFLAGS'
11473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11479 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11480 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11481 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 ac_cv_sys_symbol_underscore=no
11485 cat > conftest.$ac_ext <<EOF
11486 void nm_test_func(){}
11487 int main(){nm_test_func;return 0;}
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; then
11494 # Now try to grab the symbols.
11495 ac_nlist=conftest.nm
11496 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11497 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && test -s "$ac_nlist"; then
11501 # See whether the symbols have a leading underscore.
11502 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11503 ac_cv_sys_symbol_underscore=yes
11505 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11508 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11512 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11515 echo "configure: failed program was:" >&5
11521 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11522 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11525 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11526 if test x"$libltdl_cv_func_dlopen" = xyes ||
11527 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11528 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11529 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11530 if test "${libltdl_cv_need_uscore+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 libltdl_cv_need_uscore=unknown
11535 LIBS="$LIBS $LIBADD_DL"
11536 if test "$cross_compiling" = yes; then :
11537 libltdl_cv_need_uscore=cross
11539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11540 lt_status=$lt_dlunknown
11541 cat > conftest.$ac_ext <<EOF
11542 #line 11542 "configure"
11543 #include "confdefs.h"
11552 # define LT_DLGLOBAL RTLD_GLOBAL
11555 # define LT_DLGLOBAL DL_GLOBAL
11557 # define LT_DLGLOBAL 0
11561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11562 find out it does not work in some platform. */
11563 #ifndef LT_DLLAZY_OR_NOW
11565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11568 # define LT_DLLAZY_OR_NOW DL_LAZY
11571 # define LT_DLLAZY_OR_NOW RTLD_NOW
11574 # define LT_DLLAZY_OR_NOW DL_NOW
11576 # define LT_DLLAZY_OR_NOW 0
11584 extern "C" void exit (int);
11587 void fnord() { int i=42;}
11590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11591 int status = $lt_dlunknown;
11595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11596 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11597 /* dlclose (self); */
11605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606 (eval $ac_link) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11610 (./conftest; exit; ) >&5 2>/dev/null
11612 case x$lt_status in
11613 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11614 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11615 x$lt_dlunknown|x*) ;;
11618 # compilation failed
11627 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11628 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11632 if test x"$libltdl_cv_need_uscore" = xyes; then
11634 cat >>confdefs.h <<\_ACEOF
11635 #define NEED_USCORE 1
11641 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11642 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11643 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 # PORTME does your system automatically load deplibs for dlopen?
11647 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11648 # For now, we just catch OSes we know something about -- in the
11649 # future, we'll try test this programmatically.
11650 libltdl_cv_sys_dlopen_deplibs=unknown
11652 aix3*|aix4.1.*|aix4.2.*)
11653 # Unknown whether this is true for these versions of AIX, but
11654 # we want this `case' here to explicitly catch those versions.
11655 libltdl_cv_sys_dlopen_deplibs=unknown
11658 libltdl_cv_sys_dlopen_deplibs=yes
11661 # Assuming the user has installed a libdl from somewhere, this is true
11662 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11663 libltdl_cv_sys_dlopen_deplibs=yes
11665 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11666 # GNU and its variants, using gnu ld.so (Glibc)
11667 libltdl_cv_sys_dlopen_deplibs=yes
11670 libltdl_cv_sys_dlopen_deplibs=yes
11673 libltdl_cv_sys_dlopen_deplibs=yes
11675 irix[12345]*|irix6.[01]*)
11676 # Catch all versions of IRIX before 6.2, and indicate that we don't
11677 # know how it worked for any of those versions.
11678 libltdl_cv_sys_dlopen_deplibs=unknown
11681 # The case above catches anything before 6.2, and it's known that
11682 # at 6.2 and later dlopen does load deplibs.
11683 libltdl_cv_sys_dlopen_deplibs=yes
11686 libltdl_cv_sys_dlopen_deplibs=yes
11689 libltdl_cv_sys_dlopen_deplibs=yes
11692 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11693 # it did *not* use an RPATH in a shared library to find objects the
11694 # library depends on, so we explictly say `no'.
11695 libltdl_cv_sys_dlopen_deplibs=no
11697 osf5.0|osf5.0a|osf5.1)
11698 # dlopen *does* load deplibs and with the right loader patch applied
11699 # it even uses RPATH in a shared library to search for shared objects
11700 # that the library depends on, but there's no easy way to know if that
11701 # patch is installed. Since this is the case, all we can really
11702 # say is unknown -- it depends on the patch being installed. If
11703 # it is, this changes to `yes'. Without it, it would be `no'.
11704 libltdl_cv_sys_dlopen_deplibs=unknown
11707 # the two cases above should catch all versions of osf <= 5.1. Read
11708 # the comments above for what we know about them.
11709 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11710 # is used to find them so we can finally say `yes'.
11711 libltdl_cv_sys_dlopen_deplibs=yes
11714 libltdl_cv_sys_dlopen_deplibs=yes
11716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11717 libltdl_cv_sys_dlopen_deplibs=yes
11722 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11723 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11724 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11726 cat >>confdefs.h <<\_ACEOF
11727 #define LTDL_DLOPEN_DEPLIBS 1
11733 for ac_header in argz.h
11735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 ac_res=`eval echo '${'$as_ac_Header'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11746 # Is the header compilable?
11747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11749 cat >conftest.$ac_ext <<_ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755 $ac_includes_default
11756 #include <$ac_header>
11758 rm -f conftest.$ac_objext
11759 if { (ac_try="$ac_compile"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_compile") 2>conftest.er1
11767 grep -v '^ *+' conftest.er1 >conftest.err
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11773 { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_try") 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest.$ac_objext'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 ac_header_compiler=yes
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 ac_header_compiler=no
11800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11802 echo "${ECHO_T}$ac_header_compiler" >&6; }
11804 # Is the header present?
11805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11807 cat >conftest.$ac_ext <<_ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 #include <$ac_header>
11815 if { (ac_try="$ac_cpp conftest.$ac_ext"
11816 case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11823 grep -v '^ *+' conftest.er1 >conftest.err
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } >/dev/null; then
11828 if test -s conftest.err; then
11829 ac_cpp_err=$ac_c_preproc_warn_flag
11830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11837 if test -z "$ac_cpp_err"; then
11838 ac_header_preproc=yes
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_header_preproc=no
11846 rm -f conftest.err conftest.$ac_ext
11847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11848 echo "${ECHO_T}$ac_header_preproc" >&6; }
11850 # So? What about this header?
11851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11857 ac_header_preproc=yes
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11873 ## ----------------------------------- ##
11874 ## Report this to llvmbugs@cs.uiuc.edu ##
11875 ## ----------------------------------- ##
11877 ) | sed "s/^/$as_me: WARNING: /" >&2
11880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 eval "$as_ac_Header=\$ac_header_preproc"
11887 ac_res=`eval echo '${'$as_ac_Header'}'`
11888 { echo "$as_me:$LINENO: result: $ac_res" >&5
11889 echo "${ECHO_T}$ac_res" >&6; }
11892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11893 cat >>confdefs.h <<_ACEOF
11894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11902 { echo "$as_me:$LINENO: checking for error_t" >&5
11903 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11904 if test "${ac_cv_type_error_t+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 cat >conftest.$ac_ext <<_ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11917 typedef error_t ac__type_new_;
11921 if ((ac__type_new_ *) 0)
11923 if (sizeof (ac__type_new_))
11929 rm -f conftest.$ac_objext
11930 if { (ac_try="$ac_compile"
11931 case "(($ac_try" in
11932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933 *) ac_try_echo=$ac_try;;
11935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936 (eval "$ac_compile") 2>conftest.er1
11938 grep -v '^ *+' conftest.er1 >conftest.err
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } &&
11943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11944 { (case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_try") 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_try") 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 ac_cv_type_error_t=yes
11965 echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11968 ac_cv_type_error_t=no
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11974 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11975 if test $ac_cv_type_error_t = yes; then
11977 cat >>confdefs.h <<_ACEOF
11978 #define HAVE_ERROR_T 1
11984 cat >>confdefs.h <<\_ACEOF
11985 #define error_t int
11996 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 cat >conftest.$ac_ext <<_ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12012 #define $ac_func innocuous_$ac_func
12014 /* System header to define __stub macros and hopefully few prototypes,
12015 which can conflict with char $ac_func (); below.
12016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12017 <limits.h> exists even on freestanding compilers. */
12020 # include <limits.h>
12022 # include <assert.h>
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12034 /* The GNU C library defines this for functions which it implements
12035 to always fail with ENOSYS. Some functions are actually named
12036 something starting with __ and the normal name is an alias. */
12037 #if defined __stub_$ac_func || defined __stub___$ac_func
12044 return $ac_func ();
12049 rm -f conftest.$ac_objext conftest$ac_exeext
12050 if { (ac_try="$ac_link"
12051 case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_link") 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12064 { (case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_try") 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; } &&
12073 { ac_try='test -s conftest$ac_exeext'
12074 { (case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079 (eval "$ac_try") 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 eval "$as_ac_var=yes"
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 eval "$as_ac_var=no"
12091 rm -f core conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12094 ac_res=`eval echo '${'$as_ac_var'}'`
12095 { echo "$as_me:$LINENO: result: $ac_res" >&5
12096 echo "${ECHO_T}$ac_res" >&6; }
12097 if test `eval echo '${'$as_ac_var'}'` = yes; then
12098 cat >>confdefs.h <<_ACEOF
12099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12132 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144 echo "${ECHO_T}$ac_res" >&6; }
12146 # Is the header compilable?
12147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12149 cat >conftest.$ac_ext <<_ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 $ac_includes_default
12156 #include <$ac_header>
12158 rm -f conftest.$ac_objext
12159 if { (ac_try="$ac_compile"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_compile") 2>conftest.er1
12167 grep -v '^ *+' conftest.er1 >conftest.err
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest.$ac_objext'
12183 { (case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_try") 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 ac_header_compiler=yes
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_header_compiler=no
12200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12202 echo "${ECHO_T}$ac_header_compiler" >&6; }
12204 # Is the header present?
12205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 #include <$ac_header>
12215 if { (ac_try="$ac_cpp conftest.$ac_ext"
12216 case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } >/dev/null; then
12228 if test -s conftest.err; then
12229 ac_cpp_err=$ac_c_preproc_warn_flag
12230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12237 if test -z "$ac_cpp_err"; then
12238 ac_header_preproc=yes
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 ac_header_preproc=no
12246 rm -f conftest.err conftest.$ac_ext
12247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12248 echo "${ECHO_T}$ac_header_preproc" >&6; }
12250 # So? What about this header?
12251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12257 ac_header_preproc=yes
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12273 ## ----------------------------------- ##
12274 ## Report this to llvmbugs@cs.uiuc.edu ##
12275 ## ----------------------------------- ##
12277 ) | sed "s/^/$as_me: WARNING: /" >&2
12280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 eval "$as_ac_Header=\$ac_header_preproc"
12287 ac_res=`eval echo '${'$as_ac_Header'}'`
12288 { echo "$as_me:$LINENO: result: $ac_res" >&5
12289 echo "${ECHO_T}$ac_res" >&6; }
12292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12293 cat >>confdefs.h <<_ACEOF
12294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12305 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 ac_res=`eval echo '${'$as_ac_Header'}'`
12315 { echo "$as_me:$LINENO: result: $ac_res" >&5
12316 echo "${ECHO_T}$ac_res" >&6; }
12318 # Is the header compilable?
12319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12321 cat >conftest.$ac_ext <<_ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 $ac_includes_default
12328 #include <$ac_header>
12330 rm -f conftest.$ac_objext
12331 if { (ac_try="$ac_compile"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_compile") 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12345 { (case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_try") 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } &&
12354 { ac_try='test -s conftest.$ac_objext'
12355 { (case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_try") 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_header_compiler=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_header_compiler=no
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12374 echo "${ECHO_T}$ac_header_compiler" >&6; }
12376 # Is the header present?
12377 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 #include <$ac_header>
12387 if { (ac_try="$ac_cpp conftest.$ac_ext"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12395 grep -v '^ *+' conftest.er1 >conftest.err
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } >/dev/null; then
12400 if test -s conftest.err; then
12401 ac_cpp_err=$ac_c_preproc_warn_flag
12402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12409 if test -z "$ac_cpp_err"; then
12410 ac_header_preproc=yes
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12415 ac_header_preproc=no
12418 rm -f conftest.err conftest.$ac_ext
12419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12420 echo "${ECHO_T}$ac_header_preproc" >&6; }
12422 # So? What about this header?
12423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12429 ac_header_preproc=yes
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12445 ## ----------------------------------- ##
12446 ## Report this to llvmbugs@cs.uiuc.edu ##
12447 ## ----------------------------------- ##
12449 ) | sed "s/^/$as_me: WARNING: /" >&2
12452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 eval "$as_ac_Header=\$ac_header_preproc"
12459 ac_res=`eval echo '${'$as_ac_Header'}'`
12460 { echo "$as_me:$LINENO: result: $ac_res" >&5
12461 echo "${ECHO_T}$ac_res" >&6; }
12464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12465 cat >>confdefs.h <<_ACEOF
12466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12475 for ac_header in string.h strings.h
12477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 ac_res=`eval echo '${'$as_ac_Header'}'`
12485 { echo "$as_me:$LINENO: result: $ac_res" >&5
12486 echo "${ECHO_T}$ac_res" >&6; }
12488 # Is the header compilable?
12489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12491 cat >conftest.$ac_ext <<_ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 $ac_includes_default
12498 #include <$ac_header>
12500 rm -f conftest.$ac_objext
12501 if { (ac_try="$ac_compile"
12502 case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_compile") 2>conftest.er1
12509 grep -v '^ *+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12515 { (case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_try") 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_try") 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_header_compiler=yes
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12539 ac_header_compiler=no
12542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12544 echo "${ECHO_T}$ac_header_compiler" >&6; }
12546 # Is the header present?
12547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12549 cat >conftest.$ac_ext <<_ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 #include <$ac_header>
12557 if { (ac_try="$ac_cpp conftest.$ac_ext"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12565 grep -v '^ *+' conftest.er1 >conftest.err
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } >/dev/null; then
12570 if test -s conftest.err; then
12571 ac_cpp_err=$ac_c_preproc_warn_flag
12572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12579 if test -z "$ac_cpp_err"; then
12580 ac_header_preproc=yes
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12585 ac_header_preproc=no
12588 rm -f conftest.err conftest.$ac_ext
12589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12590 echo "${ECHO_T}$ac_header_preproc" >&6; }
12592 # So? What about this header?
12593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12599 ac_header_preproc=yes
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12615 ## ----------------------------------- ##
12616 ## Report this to llvmbugs@cs.uiuc.edu ##
12617 ## ----------------------------------- ##
12619 ) | sed "s/^/$as_me: WARNING: /" >&2
12622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 eval "$as_ac_Header=\$ac_header_preproc"
12629 ac_res=`eval echo '${'$as_ac_Header'}'`
12630 { echo "$as_me:$LINENO: result: $ac_res" >&5
12631 echo "${ECHO_T}$ac_res" >&6; }
12634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12635 cat >>confdefs.h <<_ACEOF
12636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12646 for ac_func in strchr index
12648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 cat >conftest.$ac_ext <<_ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12662 #define $ac_func innocuous_$ac_func
12664 /* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char $ac_func (); below.
12666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667 <limits.h> exists even on freestanding compilers. */
12670 # include <limits.h>
12672 # include <assert.h>
12677 /* Override any GCC internal prototype to avoid an error.
12678 Use char because int might match the return type of a GCC
12679 builtin and then its argument prototype would still apply. */
12684 /* The GNU C library defines this for functions which it implements
12685 to always fail with ENOSYS. Some functions are actually named
12686 something starting with __ and the normal name is an alias. */
12687 #if defined __stub_$ac_func || defined __stub___$ac_func
12694 return $ac_func ();
12699 rm -f conftest.$ac_objext conftest$ac_exeext
12700 if { (ac_try="$ac_link"
12701 case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_link") 2>conftest.er1
12708 grep -v '^ *+' conftest.er1 >conftest.err
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12714 { (case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_try") 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } &&
12723 { ac_try='test -s conftest$ac_exeext'
12724 { (case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_try") 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 eval "$as_ac_var=yes"
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 eval "$as_ac_var=no"
12741 rm -f core conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
12744 ac_res=`eval echo '${'$as_ac_var'}'`
12745 { echo "$as_me:$LINENO: result: $ac_res" >&5
12746 echo "${ECHO_T}$ac_res" >&6; }
12747 if test `eval echo '${'$as_ac_var'}'` = yes; then
12748 cat >>confdefs.h <<_ACEOF
12749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12757 for ac_func in strrchr rindex
12759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 cat >conftest.$ac_ext <<_ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12773 #define $ac_func innocuous_$ac_func
12775 /* System header to define __stub macros and hopefully few prototypes,
12776 which can conflict with char $ac_func (); below.
12777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12778 <limits.h> exists even on freestanding compilers. */
12781 # include <limits.h>
12783 # include <assert.h>
12788 /* Override any GCC internal prototype to avoid an error.
12789 Use char because int might match the return type of a GCC
12790 builtin and then its argument prototype would still apply. */
12795 /* The GNU C library defines this for functions which it implements
12796 to always fail with ENOSYS. Some functions are actually named
12797 something starting with __ and the normal name is an alias. */
12798 #if defined __stub_$ac_func || defined __stub___$ac_func
12805 return $ac_func ();
12810 rm -f conftest.$ac_objext conftest$ac_exeext
12811 if { (ac_try="$ac_link"
12812 case "(($ac_try" in
12813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814 *) ac_try_echo=$ac_try;;
12816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817 (eval "$ac_link") 2>conftest.er1
12819 grep -v '^ *+' conftest.er1 >conftest.err
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12825 { (case "(($ac_try" in
12826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827 *) ac_try_echo=$ac_try;;
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830 (eval "$ac_try") 2>&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest$ac_exeext'
12835 { (case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_try") 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 eval "$as_ac_var=yes"
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12849 eval "$as_ac_var=no"
12852 rm -f core conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12855 ac_res=`eval echo '${'$as_ac_var'}'`
12856 { echo "$as_me:$LINENO: result: $ac_res" >&5
12857 echo "${ECHO_T}$ac_res" >&6; }
12858 if test `eval echo '${'$as_ac_var'}'` = yes; then
12859 cat >>confdefs.h <<_ACEOF
12860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12868 for ac_func in memcpy bcopy
12870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 cat >conftest.$ac_ext <<_ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12884 #define $ac_func innocuous_$ac_func
12886 /* System header to define __stub macros and hopefully few prototypes,
12887 which can conflict with char $ac_func (); below.
12888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12889 <limits.h> exists even on freestanding compilers. */
12892 # include <limits.h>
12894 # include <assert.h>
12899 /* Override any GCC internal prototype to avoid an error.
12900 Use char because int might match the return type of a GCC
12901 builtin and then its argument prototype would still apply. */
12906 /* The GNU C library defines this for functions which it implements
12907 to always fail with ENOSYS. Some functions are actually named
12908 something starting with __ and the normal name is an alias. */
12909 #if defined __stub_$ac_func || defined __stub___$ac_func
12916 return $ac_func ();
12921 rm -f conftest.$ac_objext conftest$ac_exeext
12922 if { (ac_try="$ac_link"
12923 case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_link") 2>conftest.er1
12930 grep -v '^ *+' conftest.er1 >conftest.err
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
12935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12936 { (case "(($ac_try" in
12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941 (eval "$ac_try") 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; } &&
12945 { ac_try='test -s conftest$ac_exeext'
12946 { (case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951 (eval "$ac_try") 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 eval "$as_ac_var=yes"
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12960 eval "$as_ac_var=no"
12963 rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12966 ac_res=`eval echo '${'$as_ac_var'}'`
12967 { echo "$as_me:$LINENO: result: $ac_res" >&5
12968 echo "${ECHO_T}$ac_res" >&6; }
12969 if test `eval echo '${'$as_ac_var'}'` = yes; then
12970 cat >>confdefs.h <<_ACEOF
12971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12979 for ac_func in memmove strcmp
12981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 cat >conftest.$ac_ext <<_ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12995 #define $ac_func innocuous_$ac_func
12997 /* System header to define __stub macros and hopefully few prototypes,
12998 which can conflict with char $ac_func (); below.
12999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13000 <limits.h> exists even on freestanding compilers. */
13003 # include <limits.h>
13005 # include <assert.h>
13010 /* Override any GCC internal prototype to avoid an error.
13011 Use char because int might match the return type of a GCC
13012 builtin and then its argument prototype would still apply. */
13017 /* The GNU C library defines this for functions which it implements
13018 to always fail with ENOSYS. Some functions are actually named
13019 something starting with __ and the normal name is an alias. */
13020 #if defined __stub_$ac_func || defined __stub___$ac_func
13027 return $ac_func ();
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (ac_try="$ac_link"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_link") 2>conftest.er1
13041 grep -v '^ *+' conftest.er1 >conftest.err
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13047 { (case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_try") 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try='test -s conftest$ac_exeext'
13057 { (case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_try") 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 eval "$as_ac_var=yes"
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13071 eval "$as_ac_var=no"
13074 rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13077 ac_res=`eval echo '${'$as_ac_var'}'`
13078 { echo "$as_me:$LINENO: result: $ac_res" >&5
13079 echo "${ECHO_T}$ac_res" >&6; }
13080 if test `eval echo '${'$as_ac_var'}'` = yes; then
13081 cat >>confdefs.h <<_ACEOF
13082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13091 for ac_func in closedir opendir readdir
13093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13096 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 cat >conftest.$ac_ext <<_ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13107 #define $ac_func innocuous_$ac_func
13109 /* System header to define __stub macros and hopefully few prototypes,
13110 which can conflict with char $ac_func (); below.
13111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13112 <limits.h> exists even on freestanding compilers. */
13115 # include <limits.h>
13117 # include <assert.h>
13122 /* Override any GCC internal prototype to avoid an error.
13123 Use char because int might match the return type of a GCC
13124 builtin and then its argument prototype would still apply. */
13129 /* The GNU C library defines this for functions which it implements
13130 to always fail with ENOSYS. Some functions are actually named
13131 something starting with __ and the normal name is an alias. */
13132 #if defined __stub_$ac_func || defined __stub___$ac_func
13139 return $ac_func ();
13144 rm -f conftest.$ac_objext conftest$ac_exeext
13145 if { (ac_try="$ac_link"
13146 case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_link") 2>conftest.er1
13153 grep -v '^ *+' conftest.er1 >conftest.err
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13159 { (case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_try") 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try='test -s conftest$ac_exeext'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
13178 eval "$as_ac_var=yes"
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 eval "$as_ac_var=no"
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13189 ac_res=`eval echo '${'$as_ac_var'}'`
13190 { echo "$as_me:$LINENO: result: $ac_res" >&5
13191 echo "${ECHO_T}$ac_res" >&6; }
13192 if test `eval echo '${'$as_ac_var'}'` = yes; then
13193 cat >>confdefs.h <<_ACEOF
13194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13202 if test "$WITH_LLVMGCCDIR" = "default" ; then
13203 LLVMGCC="llvm-gcc${EXEEXT}"
13204 LLVMGXX="llvm-g++${EXEEXT}"
13205 LLVMGCCCOMMAND="$LLVMGCC"
13206 LLVMGXXCOMMAND="$LLVMGXX"
13207 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13209 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13211 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13212 set dummy $LLVMGCC; ac_word=$2
13213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13215 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13230 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 LLVMGCC=$ac_cv_path_LLVMGCC
13242 if test -n "$LLVMGCC"; then
13243 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13244 echo "${ECHO_T}$LLVMGCC" >&6; }
13246 { echo "$as_me:$LINENO: result: no" >&5
13247 echo "${ECHO_T}no" >&6; }
13251 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13252 set dummy $LLVMGXX; ac_word=$2
13253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13255 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13267 test -z "$as_dir" && as_dir=.
13268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13270 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 LLVMGXX=$ac_cv_path_LLVMGXX
13282 if test -n "$LLVMGXX"; then
13283 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13284 echo "${ECHO_T}$LLVMGXX" >&6; }
13286 { echo "$as_me:$LINENO: result: no" >&5
13287 echo "${ECHO_T}no" >&6; }
13292 if test -z "$LLVMGCC"; then
13293 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13294 LLVMGCCCOMMAND="$LLVMGCC"
13296 if test -z "$LLVMGXX"; then
13297 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13298 LLVMGXXCOMMAND="$LLVMGXX"
13305 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13307 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13312 # Check whether --with-llvmcc was given.
13313 if test "${with_llvmcc+set}" = set; then
13314 withval=$with_llvmcc;
13319 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13320 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13321 if test "$with_llvmcc" != "check"; then
13322 if (test "$with_llvmcc" != "llvm-gcc" &&
13323 test "$with_llvmcc" != "clang" &&
13324 test "$with_llvmcc" != "none"); then
13325 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13326 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13327 { (exit 1); exit 1; }; }
13329 WITH_LLVMCC="$with_llvmcc"
13330 elif test -n "$LLVMGCC"; then
13331 WITH_LLVMCC=llvm-gcc
13332 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13337 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13338 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13339 LLVMCC_OPTION=$WITH_LLVMCC
13342 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13343 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13356 if test "$GCC" != "yes" && test "$ICC" != "yes"
13358 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13359 echo "$as_me: error: gcc|icc required but not found" >&2;}
13360 { (exit 1); exit 1; }; }
13363 if test "$GXX" != "yes" && test "$IXX" != "yes"
13365 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13366 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13367 { (exit 1); exit 1; }; }
13370 if test "$GCC" = "yes"
13372 cat >conftest.$ac_ext <<_ACEOF
13373 #if !defined(__GNUC__) || __GNUC__ < 3
13374 #error Unsupported GCC version
13378 rm -f conftest.$ac_objext
13379 if { (ac_try="$ac_compile"
13380 case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_compile") 2>conftest.er1
13387 grep -v '^ *+' conftest.er1 >conftest.err
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13393 { (case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_try") 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest.$ac_objext'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_try") 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13417 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13418 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13419 { (exit 1); exit 1; }; }
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13425 if test -z "$llvm_cv_gnu_make_command"
13427 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13428 echo "$as_me: error: GNU Make required but not found" >&2;}
13429 { (exit 1); exit 1; }; }
13432 { echo "$as_me:$LINENO: result: ok" >&5
13433 echo "${ECHO_T}ok" >&6; }
13435 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13436 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13437 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13439 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13441 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13442 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13446 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13447 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13448 if test "${ac_cv_lib_m_sin+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 ac_check_lib_save_LIBS=$LIBS
13453 cat >conftest.$ac_ext <<_ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13460 /* Override any GCC internal prototype to avoid an error.
13461 Use char because int might match the return type of a GCC
13462 builtin and then its argument prototype would still apply. */
13475 rm -f conftest.$ac_objext conftest$ac_exeext
13476 if { (ac_try="$ac_link"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_link") 2>conftest.er1
13484 grep -v '^ *+' conftest.er1 >conftest.err
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13490 { (case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_try") 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest$ac_exeext'
13500 { (case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_try") 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_lib_m_sin=yes
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13517 rm -f core conftest.err conftest.$ac_objext \
13518 conftest$ac_exeext conftest.$ac_ext
13519 LIBS=$ac_check_lib_save_LIBS
13521 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13522 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13523 if test $ac_cv_lib_m_sin = yes; then
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_LIBM 1
13532 if test "$llvm_cv_os_type" = "MingW" ; then
13534 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13535 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13536 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-limagehlp $LIBS"
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13557 rm -f conftest.$ac_objext conftest$ac_exeext
13558 if { (ac_try="$ac_link"
13559 case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_link") 2>conftest.er1
13566 grep -v '^ *+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13572 { (case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577 (eval "$ac_try") 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
13582 { (case "(($ac_try" in
13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587 (eval "$ac_try") 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
13591 ac_cv_lib_imagehlp_main=yes
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 ac_cv_lib_imagehlp_main=no
13599 rm -f core conftest.err conftest.$ac_objext \
13600 conftest$ac_exeext conftest.$ac_ext
13601 LIBS=$ac_check_lib_save_LIBS
13603 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13604 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13605 if test $ac_cv_lib_imagehlp_main = yes; then
13606 cat >>confdefs.h <<_ACEOF
13607 #define HAVE_LIBIMAGEHLP 1
13610 LIBS="-limagehlp $LIBS"
13615 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13616 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13617 if test "${ac_cv_lib_psapi_main+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 ac_check_lib_save_LIBS=$LIBS
13621 LIBS="-lpsapi $LIBS"
13622 cat >conftest.$ac_ext <<_ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (ac_try="$ac_link"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_link") 2>conftest.er1
13647 grep -v '^ *+' conftest.er1 >conftest.err
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13653 { (case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_try") 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; } &&
13662 { ac_try='test -s conftest$ac_exeext'
13663 { (case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_try") 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 ac_cv_lib_psapi_main=yes
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 ac_cv_lib_psapi_main=no
13680 rm -f core conftest.err conftest.$ac_objext \
13681 conftest$ac_exeext conftest.$ac_ext
13682 LIBS=$ac_check_lib_save_LIBS
13684 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13685 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13686 if test $ac_cv_lib_psapi_main = yes; then
13687 cat >>confdefs.h <<_ACEOF
13688 #define HAVE_LIBPSAPI 1
13691 LIBS="-lpsapi $LIBS"
13697 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13698 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13699 if test "${ac_cv_search_dlopen+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_func_search_save_LIBS=$LIBS
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13710 /* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply. */
13725 for ac_lib in '' dl; do
13726 if test -z "$ac_lib"; then
13727 ac_res="none required"
13730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13741 grep -v '^ *+' conftest.er1 >conftest.err
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; } &&
13756 { ac_try='test -s conftest$ac_exeext'
13757 { (case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_try") 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_search_dlopen=$ac_res
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13774 rm -f core conftest.err conftest.$ac_objext \
13776 if test "${ac_cv_search_dlopen+set}" = set; then
13780 if test "${ac_cv_search_dlopen+set}" = set; then
13783 ac_cv_search_dlopen=no
13785 rm conftest.$ac_ext
13786 LIBS=$ac_func_search_save_LIBS
13788 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13789 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13790 ac_res=$ac_cv_search_dlopen
13791 if test "$ac_res" != no; then
13792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13794 cat >>confdefs.h <<\_ACEOF
13795 #define HAVE_DLOPEN 1
13799 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13800 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13804 if test "$llvm_cv_enable_libffi" = "yes" ; then
13805 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13806 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13807 if test "${ac_cv_search_ffi_call+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 ac_func_search_save_LIBS=$LIBS
13811 cat >conftest.$ac_ext <<_ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13818 /* Override any GCC internal prototype to avoid an error.
13819 Use char because int might match the return type of a GCC
13820 builtin and then its argument prototype would still apply. */
13828 return ffi_call ();
13833 for ac_lib in '' ffi; do
13834 if test -z "$ac_lib"; then
13835 ac_res="none required"
13838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_link") 2>conftest.er1
13849 grep -v '^ *+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest$ac_exeext'
13865 { (case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_try") 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_search_ffi_call=$ac_res
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13882 rm -f core conftest.err conftest.$ac_objext \
13884 if test "${ac_cv_search_ffi_call+set}" = set; then
13888 if test "${ac_cv_search_ffi_call+set}" = set; then
13891 ac_cv_search_ffi_call=no
13893 rm conftest.$ac_ext
13894 LIBS=$ac_func_search_save_LIBS
13896 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13897 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13898 ac_res=$ac_cv_search_ffi_call
13899 if test "$ac_res" != no; then
13900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13902 cat >>confdefs.h <<\_ACEOF
13903 #define HAVE_FFI_CALL 1
13907 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13908 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13909 { (exit 1); exit 1; }; }
13914 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13915 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13916 if test "${ac_cv_search_mallinfo+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 ac_func_search_save_LIBS=$LIBS
13920 cat >conftest.$ac_ext <<_ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13927 /* Override any GCC internal prototype to avoid an error.
13928 Use char because int might match the return type of a GCC
13929 builtin and then its argument prototype would still apply. */
13937 return mallinfo ();
13942 for ac_lib in '' malloc; do
13943 if test -z "$ac_lib"; then
13944 ac_res="none required"
13947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13949 rm -f conftest.$ac_objext conftest$ac_exeext
13950 if { (ac_try="$ac_link"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_link") 2>conftest.er1
13958 grep -v '^ *+' conftest.er1 >conftest.err
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } &&
13963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13964 { (case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_try") 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; } &&
13973 { ac_try='test -s conftest$ac_exeext'
13974 { (case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_try") 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983 ac_cv_search_mallinfo=$ac_res
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13991 rm -f core conftest.err conftest.$ac_objext \
13993 if test "${ac_cv_search_mallinfo+set}" = set; then
13997 if test "${ac_cv_search_mallinfo+set}" = set; then
14000 ac_cv_search_mallinfo=no
14002 rm conftest.$ac_ext
14003 LIBS=$ac_func_search_save_LIBS
14005 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14006 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14007 ac_res=$ac_cv_search_mallinfo
14008 if test "$ac_res" != no; then
14009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14011 cat >>confdefs.h <<\_ACEOF
14012 #define HAVE_MALLINFO 1
14018 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14020 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14021 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14022 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 ac_check_lib_save_LIBS=$LIBS
14026 LIBS="-lpthread $LIBS"
14027 cat >conftest.$ac_ext <<_ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14034 /* Override any GCC internal prototype to avoid an error.
14035 Use char because int might match the return type of a GCC
14036 builtin and then its argument prototype would still apply. */
14040 char pthread_mutex_init ();
14044 return pthread_mutex_init ();
14049 rm -f conftest.$ac_objext conftest$ac_exeext
14050 if { (ac_try="$ac_link"
14051 case "(($ac_try" in
14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053 *) ac_try_echo=$ac_try;;
14055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056 (eval "$ac_link") 2>conftest.er1
14058 grep -v '^ *+' conftest.er1 >conftest.err
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } &&
14063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14064 { (case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_try") 2>&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; } &&
14073 { ac_try='test -s conftest$ac_exeext'
14074 { (case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_try") 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_cv_lib_pthread_pthread_mutex_init=yes
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14088 ac_cv_lib_pthread_pthread_mutex_init=no
14091 rm -f core conftest.err conftest.$ac_objext \
14092 conftest$ac_exeext conftest.$ac_ext
14093 LIBS=$ac_check_lib_save_LIBS
14095 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14096 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14097 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14098 cat >>confdefs.h <<_ACEOF
14099 #define HAVE_LIBPTHREAD 1
14102 LIBS="-lpthread $LIBS"
14106 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14107 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14108 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 ac_func_search_save_LIBS=$LIBS
14112 cat >conftest.$ac_ext <<_ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h. */
14119 /* Override any GCC internal prototype to avoid an error.
14120 Use char because int might match the return type of a GCC
14121 builtin and then its argument prototype would still apply. */
14125 char pthread_mutex_lock ();
14129 return pthread_mutex_lock ();
14134 for ac_lib in '' pthread; do
14135 if test -z "$ac_lib"; then
14136 ac_res="none required"
14139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (ac_try="$ac_link"
14143 case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_link") 2>conftest.er1
14150 grep -v '^ *+' conftest.er1 >conftest.err
14152 cat conftest.err >&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } &&
14155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14156 { (case "(($ac_try" in
14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161 (eval "$ac_try") 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; } &&
14165 { ac_try='test -s conftest$ac_exeext'
14166 { (case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_try") 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 ac_cv_search_pthread_mutex_lock=$ac_res
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14183 rm -f core conftest.err conftest.$ac_objext \
14185 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14189 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14192 ac_cv_search_pthread_mutex_lock=no
14194 rm conftest.$ac_ext
14195 LIBS=$ac_func_search_save_LIBS
14197 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14198 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14199 ac_res=$ac_cv_search_pthread_mutex_lock
14200 if test "$ac_res" != no; then
14201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14203 cat >>confdefs.h <<\_ACEOF
14204 #define HAVE_PTHREAD_MUTEX_LOCK 1
14209 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14210 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14211 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 ac_func_search_save_LIBS=$LIBS
14215 cat >conftest.$ac_ext <<_ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14222 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14228 char pthread_rwlock_init ();
14232 return pthread_rwlock_init ();
14237 for ac_lib in '' pthread; do
14238 if test -z "$ac_lib"; then
14239 ac_res="none required"
14242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (ac_try="$ac_link"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_link") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
14258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14259 { (case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_try") 2>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; } &&
14268 { ac_try='test -s conftest$ac_exeext'
14269 { (case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_try") 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 ac_cv_search_pthread_rwlock_init=$ac_res
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14286 rm -f core conftest.err conftest.$ac_objext \
14288 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14292 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14295 ac_cv_search_pthread_rwlock_init=no
14297 rm conftest.$ac_ext
14298 LIBS=$ac_func_search_save_LIBS
14300 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14301 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14302 ac_res=$ac_cv_search_pthread_rwlock_init
14303 if test "$ac_res" != no; then
14304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14306 cat >>confdefs.h <<\_ACEOF
14307 #define HAVE_PTHREAD_RWLOCK_INIT 1
14312 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14313 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14314 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 ac_func_search_save_LIBS=$LIBS
14318 cat >conftest.$ac_ext <<_ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14325 /* Override any GCC internal prototype to avoid an error.
14326 Use char because int might match the return type of a GCC
14327 builtin and then its argument prototype would still apply. */
14331 char pthread_getspecific ();
14335 return pthread_getspecific ();
14340 for ac_lib in '' pthread; do
14341 if test -z "$ac_lib"; then
14342 ac_res="none required"
14345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14347 rm -f conftest.$ac_objext conftest$ac_exeext
14348 if { (ac_try="$ac_link"
14349 case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_link") 2>conftest.er1
14356 grep -v '^ *+' conftest.er1 >conftest.err
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14362 { (case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_try") 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest$ac_exeext'
14372 { (case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_try") 2>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
14381 ac_cv_search_pthread_getspecific=$ac_res
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14389 rm -f core conftest.err conftest.$ac_objext \
14391 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14395 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14398 ac_cv_search_pthread_getspecific=no
14400 rm conftest.$ac_ext
14401 LIBS=$ac_func_search_save_LIBS
14403 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14404 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14405 ac_res=$ac_cv_search_pthread_getspecific
14406 if test "$ac_res" != no; then
14407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14409 cat >>confdefs.h <<\_ACEOF
14410 #define HAVE_PTHREAD_GETSPECIFIC 1
14418 # Check whether --with-udis86 was given.
14419 if test "${with_udis86+set}" = set; then
14420 withval=$with_udis86;
14425 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14428 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14429 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14430 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14433 ac_check_lib_save_LIBS=$LIBS
14434 LIBS="-ludis86 $LIBS"
14435 cat >conftest.$ac_ext <<_ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14442 /* Override any GCC internal prototype to avoid an error.
14443 Use char because int might match the return type of a GCC
14444 builtin and then its argument prototype would still apply. */
14457 rm -f conftest.$ac_objext conftest$ac_exeext
14458 if { (ac_try="$ac_link"
14459 case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_link") 2>conftest.er1
14466 grep -v '^ *+' conftest.er1 >conftest.err
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
14471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14472 { (case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_try") 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; } &&
14481 { ac_try='test -s conftest$ac_exeext'
14482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_try") 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14491 ac_cv_lib_udis86_ud_init=yes
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 ac_cv_lib_udis86_ud_init=no
14499 rm -f core conftest.err conftest.$ac_objext \
14500 conftest$ac_exeext conftest.$ac_ext
14501 LIBS=$ac_check_lib_save_LIBS
14503 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14504 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14505 if test $ac_cv_lib_udis86_ud_init = yes; then
14506 cat >>confdefs.h <<_ACEOF
14507 #define HAVE_LIBUDIS86 1
14510 LIBS="-ludis86 $LIBS"
14514 echo "Error! You need to have libudis86 around."
14526 cat >>confdefs.h <<_ACEOF
14527 #define USE_UDIS86 $USE_UDIS86
14532 # Check whether --with-oprofile was given.
14533 if test "${with_oprofile+set}" = set; then
14534 withval=$with_oprofile;
14538 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14539 no) llvm_cv_oppath=
14542 *) llvm_cv_oppath="${withval}/lib/oprofile"
14543 CPPFLAGS="-I${withval}/include";;
14545 if test -n "$llvm_cv_oppath" ; then
14546 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14547 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14548 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14549 if test "${ac_cv_search_bfd_init+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 ac_func_search_save_LIBS=$LIBS
14553 cat >conftest.$ac_ext <<_ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14570 return bfd_init ();
14575 for ac_lib in '' bfd; do
14576 if test -z "$ac_lib"; then
14577 ac_res="none required"
14580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14582 rm -f conftest.$ac_objext conftest$ac_exeext
14583 if { (ac_try="$ac_link"
14584 case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_link") 2>conftest.er1
14591 grep -v '^ *+' conftest.er1 >conftest.err
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14597 { (case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_try") 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } &&
14606 { ac_try='test -s conftest$ac_exeext'
14607 { (case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_try") 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 ac_cv_search_bfd_init=$ac_res
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14624 rm -f core conftest.err conftest.$ac_objext \
14626 if test "${ac_cv_search_bfd_init+set}" = set; then
14630 if test "${ac_cv_search_bfd_init+set}" = set; then
14633 ac_cv_search_bfd_init=no
14635 rm conftest.$ac_ext
14636 LIBS=$ac_func_search_save_LIBS
14638 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14639 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14640 ac_res=$ac_cv_search_bfd_init
14641 if test "$ac_res" != no; then
14642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14646 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14647 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14648 if test "${ac_cv_search_op_open_agent+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 ac_func_search_save_LIBS=$LIBS
14652 cat >conftest.$ac_ext <<_ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14659 /* Override any GCC internal prototype to avoid an error.
14660 Use char because int might match the return type of a GCC
14661 builtin and then its argument prototype would still apply. */
14665 char op_open_agent ();
14669 return op_open_agent ();
14674 for ac_lib in '' opagent; do
14675 if test -z "$ac_lib"; then
14676 ac_res="none required"
14679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14681 rm -f conftest.$ac_objext conftest$ac_exeext
14682 if { (ac_try="$ac_link"
14683 case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_link") 2>conftest.er1
14690 grep -v '^ *+' conftest.er1 >conftest.err
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14696 { (case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_try") 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest$ac_exeext'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_cv_search_op_open_agent=$ac_res
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14723 rm -f core conftest.err conftest.$ac_objext \
14725 if test "${ac_cv_search_op_open_agent+set}" = set; then
14729 if test "${ac_cv_search_op_open_agent+set}" = set; then
14732 ac_cv_search_op_open_agent=no
14734 rm conftest.$ac_ext
14735 LIBS=$ac_func_search_save_LIBS
14737 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14738 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14739 ac_res=$ac_cv_search_op_open_agent
14740 if test "$ac_res" != no; then
14741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14745 echo "Error! You need to have libopagent around."
14750 if test "${ac_cv_header_opagent_h+set}" = set; then
14751 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14752 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14753 if test "${ac_cv_header_opagent_h+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14757 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14759 # Is the header compilable?
14760 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14761 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14762 cat >conftest.$ac_ext <<_ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 $ac_includes_default
14769 #include <opagent.h>
14771 rm -f conftest.$ac_objext
14772 if { (ac_try="$ac_compile"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_compile") 2>conftest.er1
14780 grep -v '^ *+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786 { (case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_try") 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; } &&
14795 { ac_try='test -s conftest.$ac_objext'
14796 { (case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_try") 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_header_compiler=yes
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 ac_header_compiler=no
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14815 echo "${ECHO_T}$ac_header_compiler" >&6; }
14817 # Is the header present?
14818 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14819 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14820 cat >conftest.$ac_ext <<_ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14826 #include <opagent.h>
14828 if { (ac_try="$ac_cpp conftest.$ac_ext"
14829 case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14836 grep -v '^ *+' conftest.er1 >conftest.err
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } >/dev/null; then
14841 if test -s conftest.err; then
14842 ac_cpp_err=$ac_c_preproc_warn_flag
14843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14850 if test -z "$ac_cpp_err"; then
14851 ac_header_preproc=yes
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_header_preproc=no
14859 rm -f conftest.err conftest.$ac_ext
14860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14861 echo "${ECHO_T}$ac_header_preproc" >&6; }
14863 # So? What about this header?
14864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14866 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14867 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14869 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14870 ac_header_preproc=yes
14873 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14874 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14876 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14878 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14880 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14882 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14884 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14886 ## ----------------------------------- ##
14887 ## Report this to llvmbugs@cs.uiuc.edu ##
14888 ## ----------------------------------- ##
14890 ) | sed "s/^/$as_me: WARNING: /" >&2
14893 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14894 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14895 if test "${ac_cv_header_opagent_h+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 ac_cv_header_opagent_h=$ac_header_preproc
14900 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14901 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14904 if test $ac_cv_header_opagent_h = yes; then
14908 echo "Error! You need to have opagent.h around."
14924 cat >>confdefs.h <<_ACEOF
14925 #define USE_OPROFILE $USE_OPROFILE
14935 ac_header_dirent=no
14936 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14937 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14938 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14939 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 cat >conftest.$ac_ext <<_ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 #include <sys/types.h>
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_compile") 2>conftest.er1
14970 grep -v '^ *+' conftest.er1 >conftest.err
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
14975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14976 { (case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_try") 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; } &&
14985 { ac_try='test -s conftest.$ac_objext'
14986 { (case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_try") 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 eval "$as_ac_Header=yes"
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 eval "$as_ac_Header=no"
15003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15005 ac_res=`eval echo '${'$as_ac_Header'}'`
15006 { echo "$as_me:$LINENO: result: $ac_res" >&5
15007 echo "${ECHO_T}$ac_res" >&6; }
15008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15009 cat >>confdefs.h <<_ACEOF
15010 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15013 ac_header_dirent=$ac_hdr; break
15017 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15018 if test $ac_header_dirent = dirent.h; then
15019 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15020 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15021 if test "${ac_cv_search_opendir+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 ac_func_search_save_LIBS=$LIBS
15025 cat >conftest.$ac_ext <<_ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15032 /* Override any GCC internal prototype to avoid an error.
15033 Use char because int might match the return type of a GCC
15034 builtin and then its argument prototype would still apply. */
15047 for ac_lib in '' dir; do
15048 if test -z "$ac_lib"; then
15049 ac_res="none required"
15052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15054 rm -f conftest.$ac_objext conftest$ac_exeext
15055 if { (ac_try="$ac_link"
15056 case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_link") 2>conftest.er1
15063 grep -v '^ *+' conftest.er1 >conftest.err
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15069 { (case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_try") 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; } &&
15078 { ac_try='test -s conftest$ac_exeext'
15079 { (case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_try") 2>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 ac_cv_search_opendir=$ac_res
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15096 rm -f core conftest.err conftest.$ac_objext \
15098 if test "${ac_cv_search_opendir+set}" = set; then
15102 if test "${ac_cv_search_opendir+set}" = set; then
15105 ac_cv_search_opendir=no
15107 rm conftest.$ac_ext
15108 LIBS=$ac_func_search_save_LIBS
15110 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15111 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15112 ac_res=$ac_cv_search_opendir
15113 if test "$ac_res" != no; then
15114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15119 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15120 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15121 if test "${ac_cv_search_opendir+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 ac_func_search_save_LIBS=$LIBS
15125 cat >conftest.$ac_ext <<_ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15132 /* Override any GCC internal prototype to avoid an error.
15133 Use char because int might match the return type of a GCC
15134 builtin and then its argument prototype would still apply. */
15147 for ac_lib in '' x; do
15148 if test -z "$ac_lib"; then
15149 ac_res="none required"
15152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_link") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest$ac_exeext'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_cv_search_opendir=$ac_res
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15196 rm -f core conftest.err conftest.$ac_objext \
15198 if test "${ac_cv_search_opendir+set}" = set; then
15202 if test "${ac_cv_search_opendir+set}" = set; then
15205 ac_cv_search_opendir=no
15207 rm conftest.$ac_ext
15208 LIBS=$ac_func_search_save_LIBS
15210 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15211 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15212 ac_res=$ac_cv_search_opendir
15213 if test "$ac_res" != no; then
15214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15220 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15221 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15222 if test "${ac_cv_header_mmap_anon+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 ac_cpp='$CPP $CPPFLAGS'
15227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15231 cat >conftest.$ac_ext <<_ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 #include <sys/mman.h>
15238 #include <unistd.h>
15243 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15248 rm -f conftest.$ac_objext
15249 if { (ac_try="$ac_compile"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_compile") 2>conftest.er1
15257 grep -v '^ *+' conftest.er1 >conftest.err
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263 { (case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_try") 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest.$ac_objext'
15273 { (case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_try") 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_cv_header_mmap_anon=yes
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15287 ac_cv_header_mmap_anon=no
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292 ac_cpp='$CPP $CPPFLAGS'
15293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15299 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15300 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15301 if test "$ac_cv_header_mmap_anon" = yes; then
15303 cat >>confdefs.h <<\_ACEOF
15304 #define HAVE_MMAP_ANONYMOUS 1
15309 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15310 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15311 if test "${ac_cv_header_stat_broken+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 cat >conftest.$ac_ext <<_ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15320 #include <sys/types.h>
15321 #include <sys/stat.h>
15323 #if defined S_ISBLK && defined S_IFDIR
15324 # if S_ISBLK (S_IFDIR)
15329 #if defined S_ISBLK && defined S_IFCHR
15330 # if S_ISBLK (S_IFCHR)
15335 #if defined S_ISLNK && defined S_IFREG
15336 # if S_ISLNK (S_IFREG)
15341 #if defined S_ISSOCK && defined S_IFREG
15342 # if S_ISSOCK (S_IFREG)
15348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15349 $EGREP "You lose" >/dev/null 2>&1; then
15350 ac_cv_header_stat_broken=yes
15352 ac_cv_header_stat_broken=no
15357 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15358 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15359 if test $ac_cv_header_stat_broken = yes; then
15361 cat >>confdefs.h <<\_ACEOF
15362 #define STAT_MACROS_BROKEN 1
15367 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15368 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15369 if test "${ac_cv_header_stdc+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 cat >conftest.$ac_ext <<_ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 #include <stdlib.h>
15379 #include <stdarg.h>
15380 #include <string.h>
15391 rm -f conftest.$ac_objext
15392 if { (ac_try="$ac_compile"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_compile") 2>conftest.er1
15400 grep -v '^ *+' conftest.er1 >conftest.err
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } &&
15405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15406 { (case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_try") 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest.$ac_objext'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_cv_header_stdc=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 ac_cv_header_stdc=no
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 if test $ac_cv_header_stdc = yes; then
15436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15437 cat >conftest.$ac_ext <<_ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15443 #include <string.h>
15446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15447 $EGREP "memchr" >/dev/null 2>&1; then
15450 ac_cv_header_stdc=no
15456 if test $ac_cv_header_stdc = yes; then
15457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15458 cat >conftest.$ac_ext <<_ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #include <stdlib.h>
15467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15468 $EGREP "free" >/dev/null 2>&1; then
15471 ac_cv_header_stdc=no
15477 if test $ac_cv_header_stdc = yes; then
15478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15479 if test "$cross_compiling" = yes; then
15482 cat >conftest.$ac_ext <<_ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15489 #include <stdlib.h>
15490 #if ((' ' & 0x0FF) == 0x020)
15491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15494 # define ISLOWER(c) \
15495 (('a' <= (c) && (c) <= 'i') \
15496 || ('j' <= (c) && (c) <= 'r') \
15497 || ('s' <= (c) && (c) <= 'z'))
15498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15506 for (i = 0; i < 256; i++)
15507 if (XOR (islower (i), ISLOWER (i))
15508 || toupper (i) != TOUPPER (i))
15513 rm -f conftest$ac_exeext
15514 if { (ac_try="$ac_link"
15515 case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_link") 2>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_try") 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15535 echo "$as_me: program exited with status $ac_status" >&5
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ( exit $ac_status )
15540 ac_cv_header_stdc=no
15542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15548 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15549 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15550 if test $ac_cv_header_stdc = yes; then
15552 cat >>confdefs.h <<\_ACEOF
15553 #define STDC_HEADERS 1
15558 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15559 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15560 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 cat >conftest.$ac_ext <<_ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 #include <sys/types.h>
15570 #include <sys/wait.h>
15571 #ifndef WEXITSTATUS
15572 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15575 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15583 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15588 rm -f conftest.$ac_objext
15589 if { (ac_try="$ac_compile"
15590 case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_compile") 2>conftest.er1
15597 grep -v '^ *+' conftest.er1 >conftest.err
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; } &&
15612 { ac_try='test -s conftest.$ac_objext'
15613 { (case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_try") 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_cv_header_sys_wait_h=yes
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 ac_cv_header_sys_wait_h=no
15630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15632 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15633 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15634 if test $ac_cv_header_sys_wait_h = yes; then
15636 cat >>confdefs.h <<\_ACEOF
15637 #define HAVE_SYS_WAIT_H 1
15642 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15643 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15644 if test "${ac_cv_header_time+set}" = set; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 cat >conftest.$ac_ext <<_ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 #include <sys/types.h>
15654 #include <sys/time.h>
15660 if ((struct tm *) 0)
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_compile") 2>conftest.er1
15675 grep -v '^ *+' conftest.er1 >conftest.err
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15681 { (case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_try") 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } &&
15690 { ac_try='test -s conftest.$ac_objext'
15691 { (case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_try") 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_cv_header_time=yes
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 ac_cv_header_time=no
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15711 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15712 if test $ac_cv_header_time = yes; then
15714 cat >>confdefs.h <<\_ACEOF
15715 #define TIME_WITH_SYS_TIME 1
15727 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 ac_res=`eval echo '${'$as_ac_Header'}'`
15737 { echo "$as_me:$LINENO: result: $ac_res" >&5
15738 echo "${ECHO_T}$ac_res" >&6; }
15740 # Is the header compilable?
15741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15743 cat >conftest.$ac_ext <<_ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 $ac_includes_default
15750 #include <$ac_header>
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_compile") 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
15766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15767 { (case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_try") 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; } &&
15776 { ac_try='test -s conftest.$ac_objext'
15777 { (case "(($ac_try" in
15778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779 *) ac_try_echo=$ac_try;;
15781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15782 (eval "$ac_try") 2>&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; }; then
15786 ac_header_compiler=yes
15788 echo "$as_me: failed program was:" >&5
15789 sed 's/^/| /' conftest.$ac_ext >&5
15791 ac_header_compiler=no
15794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15796 echo "${ECHO_T}$ac_header_compiler" >&6; }
15798 # Is the header present?
15799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15801 cat >conftest.$ac_ext <<_ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h. */
15807 #include <$ac_header>
15809 if { (ac_try="$ac_cpp conftest.$ac_ext"
15810 case "(($ac_try" in
15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812 *) ac_try_echo=$ac_try;;
15814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15817 grep -v '^ *+' conftest.er1 >conftest.err
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } >/dev/null; then
15822 if test -s conftest.err; then
15823 ac_cpp_err=$ac_c_preproc_warn_flag
15824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15831 if test -z "$ac_cpp_err"; then
15832 ac_header_preproc=yes
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 ac_header_preproc=no
15840 rm -f conftest.err conftest.$ac_ext
15841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15842 echo "${ECHO_T}$ac_header_preproc" >&6; }
15844 # So? What about this header?
15845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15851 ac_header_preproc=yes
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15867 ## ----------------------------------- ##
15868 ## Report this to llvmbugs@cs.uiuc.edu ##
15869 ## ----------------------------------- ##
15871 ) | sed "s/^/$as_me: WARNING: /" >&2
15874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 eval "$as_ac_Header=\$ac_header_preproc"
15881 ac_res=`eval echo '${'$as_ac_Header'}'`
15882 { echo "$as_me:$LINENO: result: $ac_res" >&5
15883 echo "${ECHO_T}$ac_res" >&6; }
15886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15887 cat >>confdefs.h <<_ACEOF
15888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15901 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 ac_res=`eval echo '${'$as_ac_Header'}'`
15911 { echo "$as_me:$LINENO: result: $ac_res" >&5
15912 echo "${ECHO_T}$ac_res" >&6; }
15914 # Is the header compilable?
15915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15917 cat >conftest.$ac_ext <<_ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 $ac_includes_default
15924 #include <$ac_header>
15926 rm -f conftest.$ac_objext
15927 if { (ac_try="$ac_compile"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_compile") 2>conftest.er1
15935 grep -v '^ *+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15941 { (case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946 (eval "$ac_try") 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try='test -s conftest.$ac_objext'
15951 { (case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_try") 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_header_compiler=yes
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 ac_header_compiler=no
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15970 echo "${ECHO_T}$ac_header_compiler" >&6; }
15972 # Is the header present?
15973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 #include <$ac_header>
15983 if { (ac_try="$ac_cpp conftest.$ac_ext"
15984 case "(($ac_try" in
15985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15986 *) ac_try_echo=$ac_try;;
15988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15991 grep -v '^ *+' conftest.er1 >conftest.err
15993 cat conftest.err >&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } >/dev/null; then
15996 if test -s conftest.err; then
15997 ac_cpp_err=$ac_c_preproc_warn_flag
15998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16005 if test -z "$ac_cpp_err"; then
16006 ac_header_preproc=yes
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16011 ac_header_preproc=no
16014 rm -f conftest.err conftest.$ac_ext
16015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16016 echo "${ECHO_T}$ac_header_preproc" >&6; }
16018 # So? What about this header?
16019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16025 ac_header_preproc=yes
16028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16041 ## ----------------------------------- ##
16042 ## Report this to llvmbugs@cs.uiuc.edu ##
16043 ## ----------------------------------- ##
16045 ) | sed "s/^/$as_me: WARNING: /" >&2
16048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 eval "$as_ac_Header=\$ac_header_preproc"
16055 ac_res=`eval echo '${'$as_ac_Header'}'`
16056 { echo "$as_me:$LINENO: result: $ac_res" >&5
16057 echo "${ECHO_T}$ac_res" >&6; }
16060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16061 cat >>confdefs.h <<_ACEOF
16062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16071 for ac_header in utime.h windows.h
16073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16078 echo $ECHO_N "(cached) $ECHO_C" >&6
16080 ac_res=`eval echo '${'$as_ac_Header'}'`
16081 { echo "$as_me:$LINENO: result: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16084 # Is the header compilable?
16085 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16087 cat >conftest.$ac_ext <<_ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16093 $ac_includes_default
16094 #include <$ac_header>
16096 rm -f conftest.$ac_objext
16097 if { (ac_try="$ac_compile"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_compile") 2>conftest.er1
16105 grep -v '^ *+' conftest.er1 >conftest.err
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest.$ac_objext'
16121 { (case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_try") 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 ac_header_compiler=yes
16132 echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16135 ac_header_compiler=no
16138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16140 echo "${ECHO_T}$ac_header_compiler" >&6; }
16142 # Is the header present?
16143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 #include <$ac_header>
16153 if { (ac_try="$ac_cpp conftest.$ac_ext"
16154 case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16161 grep -v '^ *+' conftest.er1 >conftest.err
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } >/dev/null; then
16166 if test -s conftest.err; then
16167 ac_cpp_err=$ac_c_preproc_warn_flag
16168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16175 if test -z "$ac_cpp_err"; then
16176 ac_header_preproc=yes
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 ac_header_preproc=no
16184 rm -f conftest.err conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16186 echo "${ECHO_T}$ac_header_preproc" >&6; }
16188 # So? What about this header?
16189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16195 ac_header_preproc=yes
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16211 ## ----------------------------------- ##
16212 ## Report this to llvmbugs@cs.uiuc.edu ##
16213 ## ----------------------------------- ##
16215 ) | sed "s/^/$as_me: WARNING: /" >&2
16218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 eval "$as_ac_Header=\$ac_header_preproc"
16225 ac_res=`eval echo '${'$as_ac_Header'}'`
16226 { echo "$as_me:$LINENO: result: $ac_res" >&5
16227 echo "${ECHO_T}$ac_res" >&6; }
16230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16231 cat >>confdefs.h <<_ACEOF
16232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16243 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16250 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 ac_res=`eval echo '${'$as_ac_Header'}'`
16253 { echo "$as_me:$LINENO: result: $ac_res" >&5
16254 echo "${ECHO_T}$ac_res" >&6; }
16256 # Is the header compilable?
16257 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16259 cat >conftest.$ac_ext <<_ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h. */
16265 $ac_includes_default
16266 #include <$ac_header>
16268 rm -f conftest.$ac_objext
16269 if { (ac_try="$ac_compile"
16270 case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_compile") 2>conftest.er1
16277 grep -v '^ *+' conftest.er1 >conftest.err
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16283 { (case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288 (eval "$ac_try") 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; } &&
16292 { ac_try='test -s conftest.$ac_objext'
16293 { (case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_try") 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 ac_header_compiler=yes
16304 echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16307 ac_header_compiler=no
16310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16312 echo "${ECHO_T}$ac_header_compiler" >&6; }
16314 # Is the header present?
16315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 #include <$ac_header>
16325 if { (ac_try="$ac_cpp conftest.$ac_ext"
16326 case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16333 grep -v '^ *+' conftest.er1 >conftest.err
16335 cat conftest.err >&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } >/dev/null; then
16338 if test -s conftest.err; then
16339 ac_cpp_err=$ac_c_preproc_warn_flag
16340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16347 if test -z "$ac_cpp_err"; then
16348 ac_header_preproc=yes
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 ac_header_preproc=no
16356 rm -f conftest.err conftest.$ac_ext
16357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16358 echo "${ECHO_T}$ac_header_preproc" >&6; }
16360 # So? What about this header?
16361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16367 ac_header_preproc=yes
16370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16383 ## ----------------------------------- ##
16384 ## Report this to llvmbugs@cs.uiuc.edu ##
16385 ## ----------------------------------- ##
16387 ) | sed "s/^/$as_me: WARNING: /" >&2
16390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16393 echo $ECHO_N "(cached) $ECHO_C" >&6
16395 eval "$as_ac_Header=\$ac_header_preproc"
16397 ac_res=`eval echo '${'$as_ac_Header'}'`
16398 { echo "$as_me:$LINENO: result: $ac_res" >&5
16399 echo "${ECHO_T}$ac_res" >&6; }
16402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16403 cat >>confdefs.h <<_ACEOF
16404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16415 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 ac_res=`eval echo '${'$as_ac_Header'}'`
16425 { echo "$as_me:$LINENO: result: $ac_res" >&5
16426 echo "${ECHO_T}$ac_res" >&6; }
16428 # Is the header compilable?
16429 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16431 cat >conftest.$ac_ext <<_ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16437 $ac_includes_default
16438 #include <$ac_header>
16440 rm -f conftest.$ac_objext
16441 if { (ac_try="$ac_compile"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_compile") 2>conftest.er1
16449 grep -v '^ *+' conftest.er1 >conftest.err
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
16454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455 { (case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_try") 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest.$ac_objext'
16465 { (case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_try") 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_header_compiler=yes
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_header_compiler=no
16482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16484 echo "${ECHO_T}$ac_header_compiler" >&6; }
16486 # Is the header present?
16487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16489 cat >conftest.$ac_ext <<_ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16495 #include <$ac_header>
16497 if { (ac_try="$ac_cpp conftest.$ac_ext"
16498 case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16505 grep -v '^ *+' conftest.er1 >conftest.err
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } >/dev/null; then
16510 if test -s conftest.err; then
16511 ac_cpp_err=$ac_c_preproc_warn_flag
16512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16519 if test -z "$ac_cpp_err"; then
16520 ac_header_preproc=yes
16522 echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16525 ac_header_preproc=no
16528 rm -f conftest.err conftest.$ac_ext
16529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16530 echo "${ECHO_T}$ac_header_preproc" >&6; }
16532 # So? What about this header?
16533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16539 ac_header_preproc=yes
16542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16555 ## ----------------------------------- ##
16556 ## Report this to llvmbugs@cs.uiuc.edu ##
16557 ## ----------------------------------- ##
16559 ) | sed "s/^/$as_me: WARNING: /" >&2
16562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 eval "$as_ac_Header=\$ac_header_preproc"
16569 ac_res=`eval echo '${'$as_ac_Header'}'`
16570 { echo "$as_me:$LINENO: result: $ac_res" >&5
16571 echo "${ECHO_T}$ac_res" >&6; }
16574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16575 cat >>confdefs.h <<_ACEOF
16576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16584 for ac_header in valgrind/valgrind.h
16586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 ac_res=`eval echo '${'$as_ac_Header'}'`
16594 { echo "$as_me:$LINENO: result: $ac_res" >&5
16595 echo "${ECHO_T}$ac_res" >&6; }
16597 # Is the header compilable?
16598 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16600 cat >conftest.$ac_ext <<_ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16606 $ac_includes_default
16607 #include <$ac_header>
16609 rm -f conftest.$ac_objext
16610 if { (ac_try="$ac_compile"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_compile") 2>conftest.er1
16618 grep -v '^ *+' conftest.er1 >conftest.err
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } &&
16623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16624 { (case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_try") 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest.$ac_objext'
16634 { (case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_try") 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
16643 ac_header_compiler=yes
16645 echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16648 ac_header_compiler=no
16651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16653 echo "${ECHO_T}$ac_header_compiler" >&6; }
16655 # Is the header present?
16656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16658 cat >conftest.$ac_ext <<_ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 #include <$ac_header>
16666 if { (ac_try="$ac_cpp conftest.$ac_ext"
16667 case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16674 grep -v '^ *+' conftest.er1 >conftest.err
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } >/dev/null; then
16679 if test -s conftest.err; then
16680 ac_cpp_err=$ac_c_preproc_warn_flag
16681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16688 if test -z "$ac_cpp_err"; then
16689 ac_header_preproc=yes
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16694 ac_header_preproc=no
16697 rm -f conftest.err conftest.$ac_ext
16698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16699 echo "${ECHO_T}$ac_header_preproc" >&6; }
16701 # So? What about this header?
16702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16708 ac_header_preproc=yes
16711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16724 ## ----------------------------------- ##
16725 ## Report this to llvmbugs@cs.uiuc.edu ##
16726 ## ----------------------------------- ##
16728 ) | sed "s/^/$as_me: WARNING: /" >&2
16731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 eval "$as_ac_Header=\$ac_header_preproc"
16738 ac_res=`eval echo '${'$as_ac_Header'}'`
16739 { echo "$as_me:$LINENO: result: $ac_res" >&5
16740 echo "${ECHO_T}$ac_res" >&6; }
16743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16744 cat >>confdefs.h <<_ACEOF
16745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16753 for ac_header in fenv.h
16755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 ac_res=`eval echo '${'$as_ac_Header'}'`
16763 { echo "$as_me:$LINENO: result: $ac_res" >&5
16764 echo "${ECHO_T}$ac_res" >&6; }
16766 # Is the header compilable?
16767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16769 cat >conftest.$ac_ext <<_ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16775 $ac_includes_default
16776 #include <$ac_header>
16778 rm -f conftest.$ac_objext
16779 if { (ac_try="$ac_compile"
16780 case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_compile") 2>conftest.er1
16787 grep -v '^ *+' conftest.er1 >conftest.err
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16793 { (case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_try") 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } &&
16802 { ac_try='test -s conftest.$ac_objext'
16803 { (case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_try") 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_header_compiler=yes
16814 echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16817 ac_header_compiler=no
16820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16822 echo "${ECHO_T}$ac_header_compiler" >&6; }
16824 # Is the header present?
16825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 #include <$ac_header>
16835 if { (ac_try="$ac_cpp conftest.$ac_ext"
16836 case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16843 grep -v '^ *+' conftest.er1 >conftest.err
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } >/dev/null; then
16848 if test -s conftest.err; then
16849 ac_cpp_err=$ac_c_preproc_warn_flag
16850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16857 if test -z "$ac_cpp_err"; then
16858 ac_header_preproc=yes
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16863 ac_header_preproc=no
16866 rm -f conftest.err conftest.$ac_ext
16867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16868 echo "${ECHO_T}$ac_header_preproc" >&6; }
16870 # So? What about this header?
16871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16877 ac_header_preproc=yes
16880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16893 ## ----------------------------------- ##
16894 ## Report this to llvmbugs@cs.uiuc.edu ##
16895 ## ----------------------------------- ##
16897 ) | sed "s/^/$as_me: WARNING: /" >&2
16900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16903 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 eval "$as_ac_Header=\$ac_header_preproc"
16907 ac_res=`eval echo '${'$as_ac_Header'}'`
16908 { echo "$as_me:$LINENO: result: $ac_res" >&5
16909 echo "${ECHO_T}$ac_res" >&6; }
16912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16913 cat >>confdefs.h <<_ACEOF
16914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16921 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16923 for ac_header in pthread.h
16925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 ac_res=`eval echo '${'$as_ac_Header'}'`
16933 { echo "$as_me:$LINENO: result: $ac_res" >&5
16934 echo "${ECHO_T}$ac_res" >&6; }
16936 # Is the header compilable?
16937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 $ac_includes_default
16946 #include <$ac_header>
16948 rm -f conftest.$ac_objext
16949 if { (ac_try="$ac_compile"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_compile") 2>conftest.er1
16957 grep -v '^ *+' conftest.er1 >conftest.err
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16963 { (case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_try") 2>&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest.$ac_objext'
16973 { (case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_try") 2>&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 ac_header_compiler=yes
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16987 ac_header_compiler=no
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16992 echo "${ECHO_T}$ac_header_compiler" >&6; }
16994 # Is the header present?
16995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16997 cat >conftest.$ac_ext <<_ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17003 #include <$ac_header>
17005 if { (ac_try="$ac_cpp conftest.$ac_ext"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17013 grep -v '^ *+' conftest.er1 >conftest.err
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } >/dev/null; then
17018 if test -s conftest.err; then
17019 ac_cpp_err=$ac_c_preproc_warn_flag
17020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17027 if test -z "$ac_cpp_err"; then
17028 ac_header_preproc=yes
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 ac_header_preproc=no
17036 rm -f conftest.err conftest.$ac_ext
17037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17038 echo "${ECHO_T}$ac_header_preproc" >&6; }
17040 # So? What about this header?
17041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17047 ac_header_preproc=yes
17050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17063 ## ----------------------------------- ##
17064 ## Report this to llvmbugs@cs.uiuc.edu ##
17065 ## ----------------------------------- ##
17067 ) | sed "s/^/$as_me: WARNING: /" >&2
17070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 eval "$as_ac_Header=\$ac_header_preproc"
17077 ac_res=`eval echo '${'$as_ac_Header'}'`
17078 { echo "$as_me:$LINENO: result: $ac_res" >&5
17079 echo "${ECHO_T}$ac_res" >&6; }
17082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17083 cat >>confdefs.h <<_ACEOF
17084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17100 if test "$llvm_cv_enable_libffi" = "yes" ; then
17103 for ac_header in ffi.h ffi/ffi.h
17105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 ac_res=`eval echo '${'$as_ac_Header'}'`
17113 { echo "$as_me:$LINENO: result: $ac_res" >&5
17114 echo "${ECHO_T}$ac_res" >&6; }
17116 # Is the header compilable?
17117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17119 cat >conftest.$ac_ext <<_ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17125 $ac_includes_default
17126 #include <$ac_header>
17128 rm -f conftest.$ac_objext
17129 if { (ac_try="$ac_compile"
17130 case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135 (eval "$ac_compile") 2>conftest.er1
17137 grep -v '^ *+' conftest.er1 >conftest.err
17139 cat conftest.err >&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } &&
17142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17143 { (case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_try") 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest.$ac_objext'
17153 { (case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_try") 2>&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; }; then
17162 ac_header_compiler=yes
17164 echo "$as_me: failed program was:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17167 ac_header_compiler=no
17170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17172 echo "${ECHO_T}$ac_header_compiler" >&6; }
17174 # Is the header present?
17175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17177 cat >conftest.$ac_ext <<_ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17183 #include <$ac_header>
17185 if { (ac_try="$ac_cpp conftest.$ac_ext"
17186 case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17193 grep -v '^ *+' conftest.er1 >conftest.err
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } >/dev/null; then
17198 if test -s conftest.err; then
17199 ac_cpp_err=$ac_c_preproc_warn_flag
17200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17207 if test -z "$ac_cpp_err"; then
17208 ac_header_preproc=yes
17210 echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17213 ac_header_preproc=no
17216 rm -f conftest.err conftest.$ac_ext
17217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17218 echo "${ECHO_T}$ac_header_preproc" >&6; }
17220 # So? What about this header?
17221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17227 ac_header_preproc=yes
17230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17243 ## ----------------------------------- ##
17244 ## Report this to llvmbugs@cs.uiuc.edu ##
17245 ## ----------------------------------- ##
17247 ) | sed "s/^/$as_me: WARNING: /" >&2
17250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17255 eval "$as_ac_Header=\$ac_header_preproc"
17257 ac_res=`eval echo '${'$as_ac_Header'}'`
17258 { echo "$as_me:$LINENO: result: $ac_res" >&5
17259 echo "${ECHO_T}$ac_res" >&6; }
17262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17263 cat >>confdefs.h <<_ACEOF
17264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17274 for ac_header in CrashReporterClient.h
17276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 ac_res=`eval echo '${'$as_ac_Header'}'`
17284 { echo "$as_me:$LINENO: result: $ac_res" >&5
17285 echo "${ECHO_T}$ac_res" >&6; }
17287 # Is the header compilable?
17288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17290 cat >conftest.$ac_ext <<_ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17296 $ac_includes_default
17297 #include <$ac_header>
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_compile") 2>conftest.er1
17308 grep -v '^ *+' conftest.er1 >conftest.err
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17314 { (case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_try") 2>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try='test -s conftest.$ac_objext'
17324 { (case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_try") 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_header_compiler=yes
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 ac_header_compiler=no
17341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17343 echo "${ECHO_T}$ac_header_compiler" >&6; }
17345 # Is the header present?
17346 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17348 cat >conftest.$ac_ext <<_ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 #include <$ac_header>
17356 if { (ac_try="$ac_cpp conftest.$ac_ext"
17357 case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17364 grep -v '^ *+' conftest.er1 >conftest.err
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } >/dev/null; then
17369 if test -s conftest.err; then
17370 ac_cpp_err=$ac_c_preproc_warn_flag
17371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17378 if test -z "$ac_cpp_err"; then
17379 ac_header_preproc=yes
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 ac_header_preproc=no
17387 rm -f conftest.err conftest.$ac_ext
17388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17389 echo "${ECHO_T}$ac_header_preproc" >&6; }
17391 # So? What about this header?
17392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17398 ac_header_preproc=yes
17401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17414 ## ----------------------------------- ##
17415 ## Report this to llvmbugs@cs.uiuc.edu ##
17416 ## ----------------------------------- ##
17418 ) | sed "s/^/$as_me: WARNING: /" >&2
17421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17426 eval "$as_ac_Header=\$ac_header_preproc"
17428 ac_res=`eval echo '${'$as_ac_Header'}'`
17429 { echo "$as_me:$LINENO: result: $ac_res" >&5
17430 echo "${ECHO_T}$ac_res" >&6; }
17433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17434 cat >>confdefs.h <<_ACEOF
17435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17443 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17444 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17445 cat >conftest.$ac_ext <<_ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17451 extern const char *__crashreporter_info__;
17453 __crashreporter_info__ = "test";
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (ac_try="$ac_link"
17460 case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_link") 2>conftest.er1
17467 grep -v '^ *+' conftest.er1 >conftest.err
17469 cat conftest.err >&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } &&
17472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17473 { (case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_try") 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest$ac_exeext'
17483 { (case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_try") 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 { echo "$as_me:$LINENO: result: yes" >&5
17493 echo "${ECHO_T}yes" >&6; }
17495 cat >>confdefs.h <<\_ACEOF
17496 #define HAVE_CRASHREPORTER_INFO 1
17500 echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17503 { echo "$as_me:$LINENO: result: no" >&5
17504 echo "${ECHO_T}no" >&6; }
17506 cat >>confdefs.h <<\_ACEOF
17507 #define HAVE_CRASHREPORTER_INFO 0
17512 rm -f core conftest.err conftest.$ac_objext \
17513 conftest$ac_exeext conftest.$ac_ext
17518 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17519 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17520 if test "${ac_cv_huge_val_sanity+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 ac_cpp='$CXXCPP $CPPFLAGS'
17526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17530 ac_save_CXXFLAGS=$CXXFLAGS
17532 if test "$cross_compiling" = yes; then
17533 ac_cv_huge_val_sanity=yes
17535 cat >conftest.$ac_ext <<_ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17545 double x = HUGE_VAL; return x != x;
17550 rm -f conftest$ac_exeext
17551 if { (ac_try="$ac_link"
17552 case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_link") 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 ac_cv_huge_val_sanity=yes
17572 echo "$as_me: program exited with status $ac_status" >&5
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 ( exit $ac_status )
17577 ac_cv_huge_val_sanity=no
17579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17583 CXXFLAGS=$ac_save_CXXFLAGS
17585 ac_cpp='$CPP $CPPFLAGS'
17586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17592 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17593 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17594 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17597 { echo "$as_me:$LINENO: checking for pid_t" >&5
17598 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17599 if test "${ac_cv_type_pid_t+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 cat >conftest.$ac_ext <<_ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17608 $ac_includes_default
17609 typedef pid_t ac__type_new_;
17613 if ((ac__type_new_ *) 0)
17615 if (sizeof (ac__type_new_))
17621 rm -f conftest.$ac_objext
17622 if { (ac_try="$ac_compile"
17623 case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_compile") 2>conftest.er1
17630 grep -v '^ *+' conftest.er1 >conftest.err
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest.$ac_objext'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_type_pid_t=yes
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_cv_type_pid_t=no
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17665 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17666 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17667 if test $ac_cv_type_pid_t = yes; then
17671 cat >>confdefs.h <<_ACEOF
17677 { echo "$as_me:$LINENO: checking for size_t" >&5
17678 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17679 if test "${ac_cv_type_size_t+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 $ac_includes_default
17689 typedef size_t ac__type_new_;
17693 if ((ac__type_new_ *) 0)
17695 if (sizeof (ac__type_new_))
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_compile") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_cv_type_size_t=yes
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 ac_cv_type_size_t=no
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17746 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17747 if test $ac_cv_type_size_t = yes; then
17751 cat >>confdefs.h <<_ACEOF
17752 #define size_t unsigned int
17758 cat >>confdefs.h <<_ACEOF
17759 #define RETSIGTYPE void
17762 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17763 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17764 if test "${ac_cv_struct_tm+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 cat >conftest.$ac_ext <<_ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17773 #include <sys/types.h>
17779 struct tm *tp; tp->tm_sec;
17784 rm -f conftest.$ac_objext
17785 if { (ac_try="$ac_compile"
17786 case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791 (eval "$ac_compile") 2>conftest.er1
17793 grep -v '^ *+' conftest.er1 >conftest.err
17795 cat conftest.err >&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17799 { (case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_try") 2>&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try='test -s conftest.$ac_objext'
17809 { (case "(($ac_try" in
17810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811 *) ac_try_echo=$ac_try;;
17813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814 (eval "$ac_try") 2>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 ac_cv_struct_tm=time.h
17820 echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17823 ac_cv_struct_tm=sys/time.h
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17829 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17830 if test $ac_cv_struct_tm = sys/time.h; then
17832 cat >>confdefs.h <<\_ACEOF
17833 #define TM_IN_SYS_TIME 1
17838 { echo "$as_me:$LINENO: checking for int64_t" >&5
17839 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17840 if test "${ac_cv_type_int64_t+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 $ac_includes_default
17850 typedef int64_t ac__type_new_;
17854 if ((ac__type_new_ *) 0)
17856 if (sizeof (ac__type_new_))
17862 rm -f conftest.$ac_objext
17863 if { (ac_try="$ac_compile"
17864 case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_compile") 2>conftest.er1
17871 grep -v '^ *+' conftest.er1 >conftest.err
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } &&
17876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17877 { (case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_try") 2>&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest.$ac_objext'
17887 { (case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_try") 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_type_int64_t=yes
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17901 ac_cv_type_int64_t=no
17904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17906 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17907 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17908 if test $ac_cv_type_int64_t = yes; then
17910 cat >>confdefs.h <<_ACEOF
17911 #define HAVE_INT64_T 1
17916 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17917 echo "$as_me: error: Type int64_t required but not found" >&2;}
17918 { (exit 1); exit 1; }; }
17921 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17922 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17923 if test "${ac_cv_type_uint64_t+set}" = set; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 cat >conftest.$ac_ext <<_ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 $ac_includes_default
17933 typedef uint64_t ac__type_new_;
17937 if ((ac__type_new_ *) 0)
17939 if (sizeof (ac__type_new_))
17945 rm -f conftest.$ac_objext
17946 if { (ac_try="$ac_compile"
17947 case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_compile") 2>conftest.er1
17954 grep -v '^ *+' conftest.er1 >conftest.err
17956 cat conftest.err >&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } &&
17959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17960 { (case "(($ac_try" in
17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962 *) ac_try_echo=$ac_try;;
17964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965 (eval "$ac_try") 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try='test -s conftest.$ac_objext'
17970 { (case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_try") 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
17979 ac_cv_type_uint64_t=yes
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 ac_cv_type_uint64_t=no
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17989 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17990 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17991 if test $ac_cv_type_uint64_t = yes; then
17993 cat >>confdefs.h <<_ACEOF
17994 #define HAVE_UINT64_T 1
17999 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18000 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18001 if test "${ac_cv_type_u_int64_t+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 $ac_includes_default
18011 typedef u_int64_t ac__type_new_;
18015 if ((ac__type_new_ *) 0)
18017 if (sizeof (ac__type_new_))
18023 rm -f conftest.$ac_objext
18024 if { (ac_try="$ac_compile"
18025 case "(($ac_try" in
18026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18027 *) ac_try_echo=$ac_try;;
18029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18030 (eval "$ac_compile") 2>conftest.er1
18032 grep -v '^ *+' conftest.er1 >conftest.err
18034 cat conftest.err >&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } &&
18037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try='test -s conftest.$ac_objext'
18048 { (case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_try") 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 ac_cv_type_u_int64_t=yes
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_cv_type_u_int64_t=no
18065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18067 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18068 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18069 if test $ac_cv_type_u_int64_t = yes; then
18071 cat >>confdefs.h <<_ACEOF
18072 #define HAVE_U_INT64_T 1
18077 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18078 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18079 { (exit 1); exit 1; }; }
18093 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18099 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 cat >conftest.$ac_ext <<_ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18109 #define $ac_func innocuous_$ac_func
18111 /* System header to define __stub macros and hopefully few prototypes,
18112 which can conflict with char $ac_func (); below.
18113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18114 <limits.h> exists even on freestanding compilers. */
18117 # include <limits.h>
18119 # include <assert.h>
18124 /* Override any GCC internal prototype to avoid an error.
18125 Use char because int might match the return type of a GCC
18126 builtin and then its argument prototype would still apply. */
18131 /* The GNU C library defines this for functions which it implements
18132 to always fail with ENOSYS. Some functions are actually named
18133 something starting with __ and the normal name is an alias. */
18134 #if defined __stub_$ac_func || defined __stub___$ac_func
18141 return $ac_func ();
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (ac_try="$ac_link"
18148 case "(($ac_try" in
18149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_link") 2>conftest.er1
18155 grep -v '^ *+' conftest.er1 >conftest.err
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18161 { (case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_try") 2>&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest$ac_exeext'
18171 { (case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_try") 2>&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 eval "$as_ac_var=yes"
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 eval "$as_ac_var=no"
18188 rm -f core conftest.err conftest.$ac_objext \
18189 conftest$ac_exeext conftest.$ac_ext
18191 ac_res=`eval echo '${'$as_ac_var'}'`
18192 { echo "$as_me:$LINENO: result: $ac_res" >&5
18193 echo "${ECHO_T}$ac_res" >&6; }
18194 if test `eval echo '${'$as_ac_var'}'` = yes; then
18195 cat >>confdefs.h <<_ACEOF
18196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18206 for ac_func in powf fmodf strtof round
18208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 cat >conftest.$ac_ext <<_ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18222 #define $ac_func innocuous_$ac_func
18224 /* System header to define __stub macros and hopefully few prototypes,
18225 which can conflict with char $ac_func (); below.
18226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227 <limits.h> exists even on freestanding compilers. */
18230 # include <limits.h>
18232 # include <assert.h>
18237 /* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18244 /* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
18247 #if defined __stub_$ac_func || defined __stub___$ac_func
18254 return $ac_func ();
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (ac_try="$ac_link"
18261 case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_link") 2>conftest.er1
18268 grep -v '^ *+' conftest.er1 >conftest.err
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18274 { (case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_try") 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest$ac_exeext'
18284 { (case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_try") 2>&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 eval "$as_ac_var=yes"
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18298 eval "$as_ac_var=no"
18301 rm -f core conftest.err conftest.$ac_objext \
18302 conftest$ac_exeext conftest.$ac_ext
18304 ac_res=`eval echo '${'$as_ac_var'}'`
18305 { echo "$as_me:$LINENO: result: $ac_res" >&5
18306 echo "${ECHO_T}$ac_res" >&6; }
18307 if test `eval echo '${'$as_ac_var'}'` = yes; then
18308 cat >>confdefs.h <<_ACEOF
18309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18320 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18328 cat >conftest.$ac_ext <<_ACEOF
18331 cat confdefs.h >>conftest.$ac_ext
18332 cat >>conftest.$ac_ext <<_ACEOF
18333 /* end confdefs.h. */
18334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18336 #define $ac_func innocuous_$ac_func
18338 /* System header to define __stub macros and hopefully few prototypes,
18339 which can conflict with char $ac_func (); below.
18340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18341 <limits.h> exists even on freestanding compilers. */
18344 # include <limits.h>
18346 # include <assert.h>
18351 /* Override any GCC internal prototype to avoid an error.
18352 Use char because int might match the return type of a GCC
18353 builtin and then its argument prototype would still apply. */
18358 /* The GNU C library defines this for functions which it implements
18359 to always fail with ENOSYS. Some functions are actually named
18360 something starting with __ and the normal name is an alias. */
18361 #if defined __stub_$ac_func || defined __stub___$ac_func
18368 return $ac_func ();
18373 rm -f conftest.$ac_objext conftest$ac_exeext
18374 if { (ac_try="$ac_link"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_link") 2>conftest.er1
18382 grep -v '^ *+' conftest.er1 >conftest.err
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
18387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18388 { (case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_try") 2>&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest$ac_exeext'
18398 { (case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_try") 2>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 eval "$as_ac_var=yes"
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 eval "$as_ac_var=no"
18415 rm -f core conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18418 ac_res=`eval echo '${'$as_ac_var'}'`
18419 { echo "$as_me:$LINENO: result: $ac_res" >&5
18420 echo "${ECHO_T}$ac_res" >&6; }
18421 if test `eval echo '${'$as_ac_var'}'` = yes; then
18422 cat >>confdefs.h <<_ACEOF
18423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18432 for ac_func in isatty mkdtemp mkstemp
18434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18448 #define $ac_func innocuous_$ac_func
18450 /* System header to define __stub macros and hopefully few prototypes,
18451 which can conflict with char $ac_func (); below.
18452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453 <limits.h> exists even on freestanding compilers. */
18456 # include <limits.h>
18458 # include <assert.h>
18463 /* Override any GCC internal prototype to avoid an error.
18464 Use char because int might match the return type of a GCC
18465 builtin and then its argument prototype would still apply. */
18470 /* The GNU C library defines this for functions which it implements
18471 to always fail with ENOSYS. Some functions are actually named
18472 something starting with __ and the normal name is an alias. */
18473 #if defined __stub_$ac_func || defined __stub___$ac_func
18480 return $ac_func ();
18485 rm -f conftest.$ac_objext conftest$ac_exeext
18486 if { (ac_try="$ac_link"
18487 case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_link") 2>conftest.er1
18494 grep -v '^ *+' conftest.er1 >conftest.err
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18500 { (case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_try") 2>&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try='test -s conftest$ac_exeext'
18510 { (case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_try") 2>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; }; then
18519 eval "$as_ac_var=yes"
18521 echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18524 eval "$as_ac_var=no"
18527 rm -f core conftest.err conftest.$ac_objext \
18528 conftest$ac_exeext conftest.$ac_ext
18530 ac_res=`eval echo '${'$as_ac_var'}'`
18531 { echo "$as_me:$LINENO: result: $ac_res" >&5
18532 echo "${ECHO_T}$ac_res" >&6; }
18533 if test `eval echo '${'$as_ac_var'}'` = yes; then
18534 cat >>confdefs.h <<_ACEOF
18535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18547 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 cat >conftest.$ac_ext <<_ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h. */
18561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18563 #define $ac_func innocuous_$ac_func
18565 /* System header to define __stub macros and hopefully few prototypes,
18566 which can conflict with char $ac_func (); below.
18567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18568 <limits.h> exists even on freestanding compilers. */
18571 # include <limits.h>
18573 # include <assert.h>
18578 /* Override any GCC internal prototype to avoid an error.
18579 Use char because int might match the return type of a GCC
18580 builtin and then its argument prototype would still apply. */
18585 /* The GNU C library defines this for functions which it implements
18586 to always fail with ENOSYS. Some functions are actually named
18587 something starting with __ and the normal name is an alias. */
18588 #if defined __stub_$ac_func || defined __stub___$ac_func
18595 return $ac_func ();
18600 rm -f conftest.$ac_objext conftest$ac_exeext
18601 if { (ac_try="$ac_link"
18602 case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_link") 2>conftest.er1
18609 grep -v '^ *+' conftest.er1 >conftest.err
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
18614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615 { (case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_try") 2>&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest$ac_exeext'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 eval "$as_ac_var=yes"
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18639 eval "$as_ac_var=no"
18642 rm -f core conftest.err conftest.$ac_objext \
18643 conftest$ac_exeext conftest.$ac_ext
18645 ac_res=`eval echo '${'$as_ac_var'}'`
18646 { echo "$as_me:$LINENO: result: $ac_res" >&5
18647 echo "${ECHO_T}$ac_res" >&6; }
18648 if test `eval echo '${'$as_ac_var'}'` = yes; then
18649 cat >>confdefs.h <<_ACEOF
18650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18660 for ac_func in strerror strerror_r strerror_s setenv
18662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 cat >conftest.$ac_ext <<_ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18676 #define $ac_func innocuous_$ac_func
18678 /* System header to define __stub macros and hopefully few prototypes,
18679 which can conflict with char $ac_func (); below.
18680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18681 <limits.h> exists even on freestanding compilers. */
18684 # include <limits.h>
18686 # include <assert.h>
18691 /* Override any GCC internal prototype to avoid an error.
18692 Use char because int might match the return type of a GCC
18693 builtin and then its argument prototype would still apply. */
18698 /* The GNU C library defines this for functions which it implements
18699 to always fail with ENOSYS. Some functions are actually named
18700 something starting with __ and the normal name is an alias. */
18701 #if defined __stub_$ac_func || defined __stub___$ac_func
18708 return $ac_func ();
18713 rm -f conftest.$ac_objext conftest$ac_exeext
18714 if { (ac_try="$ac_link"
18715 case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_link") 2>conftest.er1
18722 grep -v '^ *+' conftest.er1 >conftest.err
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest$ac_exeext'
18738 { (case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_try") 2>&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; }; then
18747 eval "$as_ac_var=yes"
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 eval "$as_ac_var=no"
18755 rm -f core conftest.err conftest.$ac_objext \
18756 conftest$ac_exeext conftest.$ac_ext
18758 ac_res=`eval echo '${'$as_ac_var'}'`
18759 { echo "$as_me:$LINENO: result: $ac_res" >&5
18760 echo "${ECHO_T}$ac_res" >&6; }
18761 if test `eval echo '${'$as_ac_var'}'` = yes; then
18762 cat >>confdefs.h <<_ACEOF
18763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18773 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 cat >conftest.$ac_ext <<_ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18789 #define $ac_func innocuous_$ac_func
18791 /* System header to define __stub macros and hopefully few prototypes,
18792 which can conflict with char $ac_func (); below.
18793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18794 <limits.h> exists even on freestanding compilers. */
18797 # include <limits.h>
18799 # include <assert.h>
18804 /* Override any GCC internal prototype to avoid an error.
18805 Use char because int might match the return type of a GCC
18806 builtin and then its argument prototype would still apply. */
18811 /* The GNU C library defines this for functions which it implements
18812 to always fail with ENOSYS. Some functions are actually named
18813 something starting with __ and the normal name is an alias. */
18814 #if defined __stub_$ac_func || defined __stub___$ac_func
18821 return $ac_func ();
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_link") 2>conftest.er1
18835 grep -v '^ *+' conftest.er1 >conftest.err
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841 { (case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_try") 2>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest$ac_exeext'
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 eval "$as_ac_var=yes"
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18865 eval "$as_ac_var=no"
18868 rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18871 ac_res=`eval echo '${'$as_ac_var'}'`
18872 { echo "$as_me:$LINENO: result: $ac_res" >&5
18873 echo "${ECHO_T}$ac_res" >&6; }
18874 if test `eval echo '${'$as_ac_var'}'` = yes; then
18875 cat >>confdefs.h <<_ACEOF
18876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18886 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18894 cat >conftest.$ac_ext <<_ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h. */
18900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18902 #define $ac_func innocuous_$ac_func
18904 /* System header to define __stub macros and hopefully few prototypes,
18905 which can conflict with char $ac_func (); below.
18906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18907 <limits.h> exists even on freestanding compilers. */
18910 # include <limits.h>
18912 # include <assert.h>
18917 /* Override any GCC internal prototype to avoid an error.
18918 Use char because int might match the return type of a GCC
18919 builtin and then its argument prototype would still apply. */
18924 /* The GNU C library defines this for functions which it implements
18925 to always fail with ENOSYS. Some functions are actually named
18926 something starting with __ and the normal name is an alias. */
18927 #if defined __stub_$ac_func || defined __stub___$ac_func
18934 return $ac_func ();
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (ac_try="$ac_link"
18941 case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_link") 2>conftest.er1
18948 grep -v '^ *+' conftest.er1 >conftest.err
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18954 { (case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959 (eval "$ac_try") 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; } &&
18963 { ac_try='test -s conftest$ac_exeext'
18964 { (case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_try") 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 eval "$as_ac_var=yes"
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 eval "$as_ac_var=no"
18981 rm -f core conftest.err conftest.$ac_objext \
18982 conftest$ac_exeext conftest.$ac_ext
18984 ac_res=`eval echo '${'$as_ac_var'}'`
18985 { echo "$as_me:$LINENO: result: $ac_res" >&5
18986 echo "${ECHO_T}$ac_res" >&6; }
18987 if test `eval echo '${'$as_ac_var'}'` = yes; then
18988 cat >>confdefs.h <<_ACEOF
18989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18995 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18996 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18997 if test "${llvm_cv_c_printf_a+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 ac_cpp='$CPP $CPPFLAGS'
19002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19006 if test "$cross_compiling" = yes; then
19007 llvmac_cv_c_printf_a=no
19009 cat >conftest.$ac_ext <<_ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19018 #include <stdlib.h>
19024 volatile double A, B;
19028 sprintf(Buffer, "%a", A);
19032 if (A != 0x1.999999999999ap-4)
19039 rm -f conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_link") 2>&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19050 { (case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_try") 2>&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; }; then
19059 llvm_cv_c_printf_a=yes
19061 echo "$as_me: program exited with status $ac_status" >&5
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19065 ( exit $ac_status )
19066 llvmac_cv_c_printf_a=no
19068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19073 ac_cpp='$CPP $CPPFLAGS'
19074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19079 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19080 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19081 if test "$llvm_cv_c_printf_a" = "yes"; then
19083 cat >>confdefs.h <<\_ACEOF
19084 #define HAVE_PRINTF_A 1
19090 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19091 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19092 if test "${ac_cv_func_rand48+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 ac_cpp='$CXXCPP $CPPFLAGS'
19097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 #include <stdlib.h>
19111 srand48(0);lrand48();drand48();
19116 rm -f conftest.$ac_objext
19117 if { (ac_try="$ac_compile"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_compile") 2>conftest.er1
19125 grep -v '^ *+' conftest.er1 >conftest.err
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try='test -s conftest.$ac_objext'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 ac_cv_func_rand48=yes
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19155 ac_cv_func_rand48=no
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 ac_cpp='$CPP $CPPFLAGS'
19161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19166 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19167 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19169 if test "$ac_cv_func_rand48" = "yes" ; then
19171 cat >>confdefs.h <<\_ACEOF
19172 #define HAVE_RAND48 1
19179 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19180 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19181 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 ac_cpp='$CXXCPP $CPPFLAGS'
19186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_compile") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1 >conftest.err
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } &&
19219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19220 { (case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_try") 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest.$ac_objext'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_func_isnan_in_math_h=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 ac_cv_func_isnan_in_math_h=no
19247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19249 ac_cpp='$CPP $CPPFLAGS'
19250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19255 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19256 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19259 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE_ISNAN_IN_MATH_H 1
19267 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19268 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19269 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 ac_cpp='$CXXCPP $CPPFLAGS'
19274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19278 cat >conftest.$ac_ext <<_ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19293 rm -f conftest.$ac_objext
19294 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19302 grep -v '^ *+' conftest.er1 >conftest.err
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
19307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19308 { (case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_try") 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest.$ac_objext'
19318 { (case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_try") 2>&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; }; then
19327 ac_cv_func_isnan_in_cmath=yes
19329 echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19332 ac_cv_func_isnan_in_cmath=no
19335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19337 ac_cpp='$CPP $CPPFLAGS'
19338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19343 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19344 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19346 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19348 cat >>confdefs.h <<\_ACEOF
19349 #define HAVE_ISNAN_IN_CMATH 1
19354 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19355 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19356 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19360 ac_cpp='$CXXCPP $CPPFLAGS'
19361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19365 cat >conftest.$ac_ext <<_ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19375 float f; std::isnan(f);
19380 rm -f conftest.$ac_objext
19381 if { (ac_try="$ac_compile"
19382 case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_compile") 2>conftest.er1
19389 grep -v '^ *+' conftest.er1 >conftest.err
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
19394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19395 { (case "(($ac_try" in
19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397 *) ac_try_echo=$ac_try;;
19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400 (eval "$ac_try") 2>&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; } &&
19404 { ac_try='test -s conftest.$ac_objext'
19405 { (case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_try") 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_cv_func_std_isnan_in_cmath=yes
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19419 ac_cv_func_std_isnan_in_cmath=no
19422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19424 ac_cpp='$CPP $CPPFLAGS'
19425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19430 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19431 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19433 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE_STD_ISNAN_IN_CMATH 1
19442 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19443 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19444 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19448 ac_cpp='$CXXCPP $CPPFLAGS'
19449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19468 rm -f conftest.$ac_objext
19469 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19477 grep -v '^ *+' conftest.er1 >conftest.err
19479 cat conftest.err >&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } &&
19482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19483 { (case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_try") 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } &&
19492 { ac_try='test -s conftest.$ac_objext'
19493 { (case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_try") 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 ac_cv_func_isinf_in_math_h=yes
19504 echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19507 ac_cv_func_isinf_in_math_h=no
19510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512 ac_cpp='$CPP $CPPFLAGS'
19513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19518 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19519 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19521 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19523 cat >>confdefs.h <<\_ACEOF
19524 #define HAVE_ISINF_IN_MATH_H 1
19529 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19530 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19531 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19535 ac_cpp='$CXXCPP $CPPFLAGS'
19536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19540 cat >conftest.$ac_ext <<_ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19555 rm -f conftest.$ac_objext
19556 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19564 grep -v '^ *+' conftest.er1 >conftest.err
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest.$ac_objext'
19580 { (case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_try") 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_cv_func_isinf_in_cmath=yes
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19594 ac_cv_func_isinf_in_cmath=no
19597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19599 ac_cpp='$CPP $CPPFLAGS'
19600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19605 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19606 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19608 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19610 cat >>confdefs.h <<\_ACEOF
19611 #define HAVE_ISINF_IN_CMATH 1
19616 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19617 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19618 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 ac_cpp='$CXXCPP $CPPFLAGS'
19623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19627 cat >conftest.$ac_ext <<_ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19637 float f; std::isinf(f)}
19642 rm -f conftest.$ac_objext
19643 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19651 grep -v '^ *+' conftest.er1 >conftest.err
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19657 { (case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_try") 2>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest.$ac_objext'
19667 { (case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_try") 2>&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; }; then
19676 ac_cv_func_std_isinf_in_cmath=yes
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 ac_cv_func_std_isinf_in_cmath=no
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686 ac_cpp='$CPP $CPPFLAGS'
19687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19692 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19693 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19695 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19697 cat >>confdefs.h <<\_ACEOF
19698 #define HAVE_STD_ISINF_IN_CMATH 1
19703 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19704 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19705 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 ac_cpp='$CXXCPP $CPPFLAGS'
19710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19714 cat >conftest.$ac_ext <<_ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 #include <ieeefp.h>
19724 float f; finite(f);
19729 rm -f conftest.$ac_objext
19730 if { (ac_try="$ac_compile"
19731 case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_compile") 2>conftest.er1
19738 grep -v '^ *+' conftest.er1 >conftest.err
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
19743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19744 { (case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_try") 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest.$ac_objext'
19754 { (case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_try") 2>&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
19763 ac_cv_func_finite_in_ieeefp_h=yes
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19768 ac_cv_func_finite_in_ieeefp_h=no
19771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19773 ac_cpp='$CPP $CPPFLAGS'
19774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19779 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19780 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19782 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19784 cat >>confdefs.h <<\_ACEOF
19785 #define HAVE_FINITE_IN_IEEEFP_H 1
19792 if test "$llvm_cv_platform_type" = "Unix" ; then
19795 for ac_header in stdlib.h unistd.h
19797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19804 ac_res=`eval echo '${'$as_ac_Header'}'`
19805 { echo "$as_me:$LINENO: result: $ac_res" >&5
19806 echo "${ECHO_T}$ac_res" >&6; }
19808 # Is the header compilable?
19809 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 $ac_includes_default
19818 #include <$ac_header>
19820 rm -f conftest.$ac_objext
19821 if { (ac_try="$ac_compile"
19822 case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_compile") 2>conftest.er1
19829 grep -v '^ *+' conftest.er1 >conftest.err
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
19834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_try") 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; } &&
19844 { ac_try='test -s conftest.$ac_objext'
19845 { (case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_try") 2>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 ac_header_compiler=yes
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 ac_header_compiler=no
19862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19864 echo "${ECHO_T}$ac_header_compiler" >&6; }
19866 # Is the header present?
19867 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19869 cat >conftest.$ac_ext <<_ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 #include <$ac_header>
19877 if { (ac_try="$ac_cpp conftest.$ac_ext"
19878 case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19885 grep -v '^ *+' conftest.er1 >conftest.err
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } >/dev/null; then
19890 if test -s conftest.err; then
19891 ac_cpp_err=$ac_c_preproc_warn_flag
19892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19899 if test -z "$ac_cpp_err"; then
19900 ac_header_preproc=yes
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 ac_header_preproc=no
19908 rm -f conftest.err conftest.$ac_ext
19909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19910 echo "${ECHO_T}$ac_header_preproc" >&6; }
19912 # So? What about this header?
19913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19919 ac_header_preproc=yes
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19935 ## ----------------------------------- ##
19936 ## Report this to llvmbugs@cs.uiuc.edu ##
19937 ## ----------------------------------- ##
19939 ) | sed "s/^/$as_me: WARNING: /" >&2
19942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 eval "$as_ac_Header=\$ac_header_preproc"
19949 ac_res=`eval echo '${'$as_ac_Header'}'`
19950 { echo "$as_me:$LINENO: result: $ac_res" >&5
19951 echo "${ECHO_T}$ac_res" >&6; }
19954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19955 cat >>confdefs.h <<_ACEOF
19956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19964 for ac_func in getpagesize
19966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19980 #define $ac_func innocuous_$ac_func
19982 /* System header to define __stub macros and hopefully few prototypes,
19983 which can conflict with char $ac_func (); below.
19984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19985 <limits.h> exists even on freestanding compilers. */
19988 # include <limits.h>
19990 # include <assert.h>
19995 /* Override any GCC internal prototype to avoid an error.
19996 Use char because int might match the return type of a GCC
19997 builtin and then its argument prototype would still apply. */
20002 /* The GNU C library defines this for functions which it implements
20003 to always fail with ENOSYS. Some functions are actually named
20004 something starting with __ and the normal name is an alias. */
20005 #if defined __stub_$ac_func || defined __stub___$ac_func
20012 return $ac_func ();
20017 rm -f conftest.$ac_objext conftest$ac_exeext
20018 if { (ac_try="$ac_link"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_link") 2>conftest.er1
20026 grep -v '^ *+' conftest.er1 >conftest.err
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } &&
20031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20032 { (case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_try") 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; } &&
20041 { ac_try='test -s conftest$ac_exeext'
20042 { (case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_try") 2>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 eval "$as_ac_var=yes"
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 eval "$as_ac_var=no"
20059 rm -f core conftest.err conftest.$ac_objext \
20060 conftest$ac_exeext conftest.$ac_ext
20062 ac_res=`eval echo '${'$as_ac_var'}'`
20063 { echo "$as_me:$LINENO: result: $ac_res" >&5
20064 echo "${ECHO_T}$ac_res" >&6; }
20065 if test `eval echo '${'$as_ac_var'}'` = yes; then
20066 cat >>confdefs.h <<_ACEOF
20067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20073 { echo "$as_me:$LINENO: checking for working mmap" >&5
20074 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20075 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 if test "$cross_compiling" = yes; then
20079 ac_cv_func_mmap_fixed_mapped=no
20081 cat >conftest.$ac_ext <<_ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h. */
20087 $ac_includes_default
20088 /* malloc might have been renamed as rpl_malloc. */
20091 /* Thanks to Mike Haertel and Jim Avera for this test.
20092 Here is a matrix of mmap possibilities:
20093 mmap private not fixed
20094 mmap private fixed at somewhere currently unmapped
20095 mmap private fixed at somewhere already mapped
20096 mmap shared not fixed
20097 mmap shared fixed at somewhere currently unmapped
20098 mmap shared fixed at somewhere already mapped
20099 For private mappings, we should verify that changes cannot be read()
20100 back from the file, nor mmap's back from the file at a different
20101 address. (There have been systems where private was not correctly
20102 implemented like the infamous i386 svr4.0, and systems where the
20103 VM page cache was not coherent with the file system buffer cache
20104 like early versions of FreeBSD and possibly contemporary NetBSD.)
20105 For shared mappings, we should conversely verify that changes get
20106 propagated back to all the places they're supposed to be.
20108 Grep wants private fixed already mapped.
20109 The main things grep needs to know about mmap are:
20110 * does it exist and is it safe to write into the mmap'd area
20111 * how to use it (BSD variants) */
20114 #include <sys/mman.h>
20116 #if !STDC_HEADERS && !HAVE_STDLIB_H
20120 /* This mess was copied from the GNU getpagesize.h. */
20121 #if !HAVE_GETPAGESIZE
20122 /* Assume that all systems that can run configure have sys/param.h. */
20123 # if !HAVE_SYS_PARAM_H
20124 # define HAVE_SYS_PARAM_H 1
20127 # ifdef _SC_PAGESIZE
20128 # define getpagesize() sysconf(_SC_PAGESIZE)
20129 # else /* no _SC_PAGESIZE */
20130 # if HAVE_SYS_PARAM_H
20131 # include <sys/param.h>
20132 # ifdef EXEC_PAGESIZE
20133 # define getpagesize() EXEC_PAGESIZE
20134 # else /* no EXEC_PAGESIZE */
20136 # define getpagesize() NBPG * CLSIZE
20139 # endif /* no CLSIZE */
20140 # else /* no NBPG */
20142 # define getpagesize() NBPC
20143 # else /* no NBPC */
20145 # define getpagesize() PAGESIZE
20146 # endif /* PAGESIZE */
20147 # endif /* no NBPC */
20148 # endif /* no NBPG */
20149 # endif /* no EXEC_PAGESIZE */
20150 # else /* no HAVE_SYS_PARAM_H */
20151 # define getpagesize() 8192 /* punt totally */
20152 # endif /* no HAVE_SYS_PARAM_H */
20153 # endif /* no _SC_PAGESIZE */
20155 #endif /* no HAVE_GETPAGESIZE */
20160 char *data, *data2, *data3;
20164 pagesize = getpagesize ();
20166 /* First, make a file with some known garbage in it. */
20167 data = (char *) malloc (pagesize);
20170 for (i = 0; i < pagesize; ++i)
20171 *(data + i) = rand ();
20173 fd = creat ("conftest.mmap", 0600);
20176 if (write (fd, data, pagesize) != pagesize)
20180 /* Next, try to mmap the file at a fixed address which already has
20181 something else allocated at it. If we can, also make sure that
20182 we see the same garbage. */
20183 fd = open ("conftest.mmap", O_RDWR);
20186 data2 = (char *) malloc (2 * pagesize);
20189 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20190 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20191 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20193 for (i = 0; i < pagesize; ++i)
20194 if (*(data + i) != *(data2 + i))
20197 /* Finally, make sure that changes to the mapped area do not
20198 percolate back to the file as seen by read(). (This is a bug on
20199 some variants of i386 svr4.0.) */
20200 for (i = 0; i < pagesize; ++i)
20201 *(data2 + i) = *(data2 + i) + 1;
20202 data3 = (char *) malloc (pagesize);
20205 if (read (fd, data3, pagesize) != pagesize)
20207 for (i = 0; i < pagesize; ++i)
20208 if (*(data + i) != *(data3 + i))
20214 rm -f conftest$ac_exeext
20215 if { (ac_try="$ac_link"
20216 case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_link") 2>&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20225 { (case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_try") 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20234 ac_cv_func_mmap_fixed_mapped=yes
20236 echo "$as_me: program exited with status $ac_status" >&5
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20240 ( exit $ac_status )
20241 ac_cv_func_mmap_fixed_mapped=no
20243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20248 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20249 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20250 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20252 cat >>confdefs.h <<\_ACEOF
20253 #define HAVE_MMAP 1
20257 rm -f conftest.mmap
20259 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20260 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20261 if test "${ac_cv_func_mmap_file+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 ac_cpp='$CPP $CPPFLAGS'
20266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20270 if test "$cross_compiling" = yes; then
20271 ac_cv_func_mmap_file=no
20273 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20281 #include <sys/types.h>
20282 #include <sys/mman.h>
20290 fd = creat ("foo",0777);
20291 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20293 return (fd != (int) MAP_FAILED);
20298 rm -f conftest$ac_exeext
20299 if { (ac_try="$ac_link"
20300 case "(($ac_try" in
20301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302 *) ac_try_echo=$ac_try;;
20304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305 (eval "$ac_link") 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20309 { (case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_try") 2>&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
20318 ac_cv_func_mmap_file=yes
20320 echo "$as_me: program exited with status $ac_status" >&5
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ( exit $ac_status )
20325 ac_cv_func_mmap_file=no
20327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20332 ac_cpp='$CPP $CPPFLAGS'
20333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20339 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20340 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20341 if test "$ac_cv_func_mmap_file" = yes; then
20343 cat >>confdefs.h <<\_ACEOF
20344 #define HAVE_MMAP_FILE
20351 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20352 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20353 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 if test "$llvm_cv_os_type" = "Interix" ; then
20357 ac_cv_need_dev_zero_for_mmap=yes
20359 ac_cv_need_dev_zero_for_mmap=no
20363 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20364 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20365 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20367 cat >>confdefs.h <<\_ACEOF
20368 #define NEED_DEV_ZERO_FOR_MMAP 1
20373 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20375 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20376 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20378 if test "$ac_cv_func_mmap_file" = "no"
20380 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20381 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20385 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20386 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20388 ac_cpp='$CXXCPP $CPPFLAGS'
20389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20393 cat >conftest.$ac_ext <<_ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20400 volatile unsigned long val = 1;
20401 __sync_synchronize();
20402 __sync_val_compare_and_swap(&val, 1, 0);
20403 __sync_add_and_fetch(&val, 1);
20404 __sync_sub_and_fetch(&val, 1);
20409 rm -f conftest.$ac_objext conftest$ac_exeext
20410 if { (ac_try="$ac_link"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_link") 2>conftest.er1
20418 grep -v '^ *+' conftest.er1 >conftest.err
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } &&
20423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20424 { (case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_try") 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest$ac_exeext'
20434 { (case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_try") 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20444 ac_cpp='$CPP $CPPFLAGS'
20445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20449 { echo "$as_me:$LINENO: result: yes" >&5
20450 echo "${ECHO_T}yes" >&6; }
20452 cat >>confdefs.h <<\_ACEOF
20453 #define LLVM_MULTITHREADED 1
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 { echo "$as_me:$LINENO: result: no" >&5
20461 echo "${ECHO_T}no" >&6; }
20463 cat >>confdefs.h <<\_ACEOF
20464 #define LLVM_MULTITHREADED 0
20467 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20468 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20471 rm -f core conftest.err conftest.$ac_objext \
20472 conftest$ac_exeext conftest.$ac_ext
20475 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20476 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20477 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20478 if test "${llvm_cv_linux_mixed+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 ac_cpp='$CPP $CPPFLAGS'
20483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20494 error: Not x86-64 even if uname says so!
20505 rm -f conftest.$ac_objext
20506 if { (ac_try="$ac_compile"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_compile") 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20520 { (case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_try") 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try='test -s conftest.$ac_objext'
20530 { (case "(($ac_try" in
20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532 *) ac_try_echo=$ac_try;;
20534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535 (eval "$ac_try") 2>&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); }; }; then
20539 llvm_cv_linux_mixed=no
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20544 llvm_cv_linux_mixed=yes
20547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20549 ac_cpp='$CPP $CPPFLAGS'
20550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20556 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20557 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20559 if test "$llvm_cv_linux_mixed" = "yes"; then
20560 llvm_cv_target_arch="x86"
20566 for ac_func in __dso_handle
20568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 cat >conftest.$ac_ext <<_ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20582 #define $ac_func innocuous_$ac_func
20584 /* System header to define __stub macros and hopefully few prototypes,
20585 which can conflict with char $ac_func (); below.
20586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20587 <limits.h> exists even on freestanding compilers. */
20590 # include <limits.h>
20592 # include <assert.h>
20597 /* Override any GCC internal prototype to avoid an error.
20598 Use char because int might match the return type of a GCC
20599 builtin and then its argument prototype would still apply. */
20604 /* The GNU C library defines this for functions which it implements
20605 to always fail with ENOSYS. Some functions are actually named
20606 something starting with __ and the normal name is an alias. */
20607 #if defined __stub_$ac_func || defined __stub___$ac_func
20614 return $ac_func ();
20619 rm -f conftest.$ac_objext conftest$ac_exeext
20620 if { (ac_try="$ac_link"
20621 case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_link") 2>conftest.er1
20628 grep -v '^ *+' conftest.er1 >conftest.err
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest$ac_exeext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 eval "$as_ac_var=yes"
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20658 eval "$as_ac_var=no"
20661 rm -f core conftest.err conftest.$ac_objext \
20662 conftest$ac_exeext conftest.$ac_ext
20664 ac_res=`eval echo '${'$as_ac_var'}'`
20665 { echo "$as_me:$LINENO: result: $ac_res" >&5
20666 echo "${ECHO_T}$ac_res" >&6; }
20667 if test `eval echo '${'$as_ac_var'}'` = yes; then
20668 cat >>confdefs.h <<_ACEOF
20669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20676 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20677 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20678 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 llvm_cv_llvmgcc_dragonegg="no"
20682 if test -n "$LLVMGCC" ; then
20683 cp /dev/null conftest.c
20684 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
20685 if test $? -eq 0 ; then
20686 llvm_cv_llvmgcc_dragonegg="yes"
20691 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20692 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20694 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20695 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
20696 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
20698 LLVMCC_EMITIR_FLAG="-emit-llvm"
20699 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
20704 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20705 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20706 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 llvm_cv_llvmgcc_sanity="no"
20710 if test -n "$LLVMGCC" ; then
20711 cp /dev/null conftest.c
20712 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
20713 grep 'target datalayout =' > /dev/null 2>&1
20714 if test $? -eq 0 ; then
20715 llvm_cv_llvmgcc_sanity="yes"
20720 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20721 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20723 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20724 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20725 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20726 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
20727 LLVMCC1=$llvmcc1path
20729 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
20730 LLVMCC1PLUS=$llvmcc1pluspath
20732 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20733 LLVMGCCDIR=$llvmgccdir
20735 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20736 LLVMGCC_LANGS=$llvmgcclangs
20738 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20741 { echo "$as_me:$LINENO: result: ok" >&5
20742 echo "${ECHO_T}ok" >&6; }
20745 SHLIBEXT=$libltdl_cv_shlibext
20748 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20751 # Translate the various configuration directories and other basic
20752 # information into substitutions that will end up in Makefile.config.in
20753 # that these configured values can be used by the makefiles
20754 if test "${prefix}" = "NONE" ; then
20755 prefix="/usr/local"
20757 eval LLVM_PREFIX="${prefix}";
20758 eval LLVM_BINDIR="${prefix}/bin";
20759 eval LLVM_LIBDIR="${prefix}/lib";
20760 eval LLVM_DATADIR="${prefix}/share/llvm";
20761 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20762 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20763 eval LLVM_INCLUDEDIR="${prefix}/include";
20764 eval LLVM_INFODIR="${prefix}/info";
20765 eval LLVM_MANDIR="${prefix}/man";
20766 LLVM_CONFIGTIME=`date`
20778 # Place the various directores into the config.h file as #defines so that we
20779 # can know about the installation paths within LLVM.
20781 cat >>confdefs.h <<_ACEOF
20782 #define LLVM_PREFIX "$LLVM_PREFIX"
20786 cat >>confdefs.h <<_ACEOF
20787 #define LLVM_BINDIR "$LLVM_BINDIR"
20791 cat >>confdefs.h <<_ACEOF
20792 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20796 cat >>confdefs.h <<_ACEOF
20797 #define LLVM_DATADIR "$LLVM_DATADIR"
20801 cat >>confdefs.h <<_ACEOF
20802 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20806 cat >>confdefs.h <<_ACEOF
20807 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20811 cat >>confdefs.h <<_ACEOF
20812 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20816 cat >>confdefs.h <<_ACEOF
20817 #define LLVM_INFODIR "$LLVM_INFODIR"
20821 cat >>confdefs.h <<_ACEOF
20822 #define LLVM_MANDIR "$LLVM_MANDIR"
20826 cat >>confdefs.h <<_ACEOF
20827 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20831 cat >>confdefs.h <<_ACEOF
20832 #define LLVM_HOSTTRIPLE "$host"
20836 # Determine which bindings to build.
20837 if test "$BINDINGS_TO_BUILD" = auto ; then
20838 BINDINGS_TO_BUILD=""
20839 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20840 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20843 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20846 # This isn't really configurey, but it avoids having to repeat the list in
20851 # Do any work necessary to ensure that bindings have what they need.
20852 binding_prereqs_failed=0
20853 for a_binding in $BINDINGS_TO_BUILD ; do
20854 case "$a_binding" in
20856 if test "x$OCAMLC" = x ; then
20857 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20858 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20859 binding_prereqs_failed=1
20861 if test "x$OCAMLDEP" = x ; then
20862 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20863 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20864 binding_prereqs_failed=1
20866 if test "x$OCAMLOPT" = x ; then
20867 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20868 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20870 if test "x$with_ocaml_libdir" != xauto ; then
20871 OCAML_LIBDIR=$with_ocaml_libdir
20874 ocaml_stdlib="`"$OCAMLC" -where`"
20875 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20877 # ocaml stdlib is beneath our prefix; use stdlib
20878 OCAML_LIBDIR=$ocaml_stdlib
20881 # ocaml stdlib is outside our prefix; use libdir/ocaml
20882 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20889 if test "$binding_prereqs_failed" = 1 ; then
20890 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20891 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20892 { (exit 1); exit 1; }; }
20895 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20896 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20897 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
20901 ac_cpp='$CXXCPP $CPPFLAGS'
20902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20906 oldcxxflags="$CXXFLAGS"
20907 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20908 cat >conftest.$ac_ext <<_ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927 *) ac_try_echo=$ac_try;;
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_compile") 2>conftest.er1
20932 grep -v '^ *+' conftest.er1 >conftest.err
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20938 { (case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_try") 2>&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; } &&
20947 { ac_try='test -s conftest.$ac_objext'
20948 { (case "(($ac_try" in
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_try") 2>&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20957 llvm_cv_cxx_visibility_inlines_hidden=yes
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20962 llvm_cv_cxx_visibility_inlines_hidden=no
20965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20966 CXXFLAGS="$oldcxxflags"
20968 ac_cpp='$CPP $CPPFLAGS'
20969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20975 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20976 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20977 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20978 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20981 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20986 if test "$llvm_cv_link_use_r" = "yes" ; then
20993 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20994 RDYNAMIC="-Wl,-export-dynamic"
21001 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21008 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21010 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21012 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21014 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21016 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21019 ac_config_files="$ac_config_files Makefile.config"
21022 ac_config_files="$ac_config_files llvm.spec"
21025 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
21028 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21031 ac_config_commands="$ac_config_commands setup"
21033 ac_config_commands="$ac_config_commands Makefile"
21036 ac_config_commands="$ac_config_commands Makefile.common"
21039 ac_config_commands="$ac_config_commands examples/Makefile"
21042 ac_config_commands="$ac_config_commands lib/Makefile"
21045 ac_config_commands="$ac_config_commands runtime/Makefile"
21048 ac_config_commands="$ac_config_commands test/Makefile"
21051 ac_config_commands="$ac_config_commands test/Makefile.tests"
21054 ac_config_commands="$ac_config_commands unittests/Makefile"
21057 ac_config_commands="$ac_config_commands tools/Makefile"
21060 ac_config_commands="$ac_config_commands utils/Makefile"
21063 ac_config_commands="$ac_config_commands projects/Makefile"
21066 ac_config_commands="$ac_config_commands bindings/Makefile"
21069 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21073 cat >confcache <<\_ACEOF
21074 # This file is a shell script that caches the results of configure
21075 # tests run on this system so they can be shared between configure
21076 # scripts and configure runs, see configure's option --config-cache.
21077 # It is not useful on other systems. If it contains results you don't
21078 # want to keep, you may remove or edit it.
21080 # config.status only pays attention to the cache file if you give it
21081 # the --recheck option to rerun configure.
21083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21085 # following values.
21089 # The following way of writing the cache mishandles newlines in values,
21090 # but we know of no workaround that is simple, portable, and efficient.
21091 # So, we kill variables containing newlines.
21092 # Ultrix sh set writes to stderr and can't be redirected directly,
21093 # and sets the high bit in the cache file unless we assign to the vars.
21095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21096 eval ac_val=\$$ac_var
21100 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21101 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21104 _ | IFS | as_nl) ;; #(
21105 *) $as_unset $ac_var ;;
21111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21112 *${as_nl}ac_space=\ *)
21113 # `set' does not quote correctly, so add quotes (double-quote
21114 # substitution turns \\\\ into \\, and sed turns \\ into \).
21117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21120 # `set' quotes correctly as required by POSIX, so do not add quotes.
21121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21134 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21135 if test -w "$cache_file"; then
21136 test "x$cache_file" != "x/dev/null" &&
21137 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21138 echo "$as_me: updating cache $cache_file" >&6;}
21139 cat confcache >$cache_file
21141 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21142 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21147 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21148 # Let make expand exec_prefix.
21149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21151 DEFS=-DHAVE_CONFIG_H
21155 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21156 # 1. Remove the extension, and $U if already installed.
21157 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21158 ac_i=`echo "$ac_i" | sed "$ac_script"`
21159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21160 # will be set to the directory where LIBOBJS objects are built.
21161 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21162 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21164 LIBOBJS=$ac_libobjs
21166 LTLIBOBJS=$ac_ltlibobjs
21169 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21170 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21171 Usually this means the macro was only invoked conditionally." >&5
21172 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21173 Usually this means the macro was only invoked conditionally." >&2;}
21174 { (exit 1); exit 1; }; }
21176 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21177 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21178 Usually this means the macro was only invoked conditionally." >&5
21179 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21180 Usually this means the macro was only invoked conditionally." >&2;}
21181 { (exit 1); exit 1; }; }
21184 : ${CONFIG_STATUS=./config.status}
21185 ac_clean_files_save=$ac_clean_files
21186 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21187 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21188 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21189 cat >$CONFIG_STATUS <<_ACEOF
21191 # Generated by $as_me.
21192 # Run this file to recreate the current configuration.
21193 # Compiler output produced by configure, useful for debugging
21194 # configure, is in config.log if it exists.
21197 ac_cs_recheck=false
21199 SHELL=\${CONFIG_SHELL-$SHELL}
21202 cat >>$CONFIG_STATUS <<\_ACEOF
21203 ## --------------------- ##
21204 ## M4sh Initialization. ##
21205 ## --------------------- ##
21207 # Be Bourne compatible
21208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21212 # is contrary to our usage. Disable this feature.
21213 alias -g '${1+"$@"}'='"$@"'
21214 setopt NO_GLOB_SUBST
21216 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21218 BIN_SH=xpg4; export BIN_SH # for Tru64
21219 DUALCASE=1; export DUALCASE # for MKS sh
21223 # Avoid depending upon Character Ranges.
21224 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21225 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21226 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21227 as_cr_digits='0123456789'
21228 as_cr_alnum=$as_cr_Letters$as_cr_digits
21230 # The user is always right.
21231 if test "${PATH_SEPARATOR+set}" != set; then
21232 echo "#! /bin/sh" >conf$$.sh
21233 echo "exit 0" >>conf$$.sh
21235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21243 # Support unset when possible.
21244 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21252 # We need space, tab and new line, in precisely that order. Quoting is
21253 # there to prevent editors from complaining about space-tab.
21254 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21255 # splitting by setting IFS to empty value.)
21260 # Find who we are. Look in the path if we contain no directory separator.
21262 *[\\/]* ) as_myself=$0 ;;
21263 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21264 for as_dir in $PATH
21267 test -z "$as_dir" && as_dir=.
21268 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21274 # We did not find ourselves, most probably we were run as `sh COMMAND'
21275 # in which case we are not to be found in the path.
21276 if test "x$as_myself" = x; then
21279 if test ! -f "$as_myself"; then
21280 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21281 { (exit 1); exit 1; }
21284 # Work around bugs in pre-3.0 UWIN ksh.
21285 for as_var in ENV MAIL MAILPATH
21286 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21294 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21295 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21296 LC_TELEPHONE LC_TIME
21298 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21299 eval $as_var=C; export $as_var
21301 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21305 # Required to use basename.
21306 if expr a : '\(a\)' >/dev/null 2>&1 &&
21307 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21313 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21314 as_basename=basename
21320 # Name of the executable.
21321 as_me=`$as_basename -- "$0" ||
21322 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21323 X"$0" : 'X\(//\)$' \| \
21324 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21326 sed '/^.*\/\([^/][^/]*\)\/*$/{
21345 as_lineno_1=$LINENO
21346 as_lineno_2=$LINENO
21347 test "x$as_lineno_1" != "x$as_lineno_2" &&
21348 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21350 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21351 # uniformly replaced by the line number. The first 'sed' inserts a
21352 # line-number line after each line using $LINENO; the second 'sed'
21353 # does the real work. The second script uses 'N' to pair each
21354 # line-number line with the line containing $LINENO, and appends
21355 # trailing '-' during substitution so that $LINENO is not a special
21356 # case at line end.
21357 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21358 # scripts with optimization help from Paolo Bonzini. Blame Lee
21359 # E. McMahon (1931-1989) for sed's syntax. :-)
21371 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21374 ' >$as_me.lineno &&
21375 chmod +x "$as_me.lineno" ||
21376 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21377 { (exit 1); exit 1; }; }
21379 # Don't try to exec as it changes $[0], causing all sort of problems
21380 # (the dirname of $[0] is not the place where we might find the
21381 # original and so on. Autoconf is especially sensitive to this).
21382 . "./$as_me.lineno"
21383 # Exit status is that of the last command.
21388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21394 ECHO_C= ECHO_N= ECHO_T=
21395 case `echo -n x` in
21397 case `echo 'x\c'` in
21398 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21405 if expr a : '\(a\)' >/dev/null 2>&1 &&
21406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21412 rm -f conf$$ conf$$.exe conf$$.file
21413 if test -d conf$$.dir; then
21414 rm -f conf$$.dir/conf$$.file
21420 if ln -s conf$$.file conf$$ 2>/dev/null; then
21422 # ... but there are two gotchas:
21423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21425 # In both cases, we have to default to `cp -p'.
21426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21428 elif ln conf$$.file conf$$ 2>/dev/null; then
21433 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21434 rmdir conf$$.dir 2>/dev/null
21436 if mkdir -p . 2>/dev/null; then
21439 test -d ./-p && rmdir ./-p
21443 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21444 # systems may use methods other than mode bits to determine executability.
21445 cat >conf$$.file <<_ASEOF
21449 chmod +x conf$$.file
21450 if test -x conf$$.file >/dev/null 2>&1; then
21451 as_executable_p="test -x"
21457 # Sed expression to map a string onto a valid CPP name.
21458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21460 # Sed expression to map a string onto a valid variable name.
21461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21466 # Save the log message, to keep $[0] and so on meaningful, and to
21467 # report actual input values of CONFIG_FILES etc. instead of their
21468 # values after options handling.
21470 This file was extended by llvm $as_me 2.9svn, which was
21471 generated by GNU Autoconf 2.60. Invocation command line was
21473 CONFIG_FILES = $CONFIG_FILES
21474 CONFIG_HEADERS = $CONFIG_HEADERS
21475 CONFIG_LINKS = $CONFIG_LINKS
21476 CONFIG_COMMANDS = $CONFIG_COMMANDS
21479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21484 cat >>$CONFIG_STATUS <<_ACEOF
21485 # Files that config.status was made for.
21486 config_files="$ac_config_files"
21487 config_headers="$ac_config_headers"
21488 config_commands="$ac_config_commands"
21492 cat >>$CONFIG_STATUS <<\_ACEOF
21494 \`$as_me' instantiates files from templates according to the
21495 current configuration.
21497 Usage: $0 [OPTIONS] [FILE]...
21499 -h, --help print this help, then exit
21500 -V, --version print version number, then exit
21501 -q, --quiet do not print progress messages
21502 -d, --debug don't remove temporary files
21503 --recheck update $as_me by reconfiguring in the same conditions
21504 --file=FILE[:TEMPLATE]
21505 instantiate the configuration file FILE
21506 --header=FILE[:TEMPLATE]
21507 instantiate the configuration header FILE
21509 Configuration files:
21512 Configuration headers:
21515 Configuration commands:
21518 Report bugs to <bug-autoconf@gnu.org>."
21521 cat >>$CONFIG_STATUS <<_ACEOF
21523 llvm config.status 2.9svn
21524 configured by $0, generated by GNU Autoconf 2.60,
21525 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21527 Copyright (C) 2006 Free Software Foundation, Inc.
21528 This config.status script is free software; the Free Software Foundation
21529 gives unlimited permission to copy, distribute and modify it."
21536 cat >>$CONFIG_STATUS <<\_ACEOF
21537 # If no file are specified by the user, then we need to provide default
21538 # value. By we need to know if files were specified by the user.
21544 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21556 # Handling of the options.
21557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21559 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21560 echo "$ac_cs_version"; exit ;;
21561 --debug | --debu | --deb | --de | --d | -d )
21563 --file | --fil | --fi | --f )
21565 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21566 ac_need_defaults=false;;
21567 --header | --heade | --head | --hea )
21569 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21570 ac_need_defaults=false;;
21572 # Conflict between --help and --header
21573 { echo "$as_me: error: ambiguous option: $1
21574 Try \`$0 --help' for more information." >&2
21575 { (exit 1); exit 1; }; };;
21576 --help | --hel | -h )
21577 echo "$ac_cs_usage"; exit ;;
21578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21579 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21582 # This is an error.
21583 -*) { echo "$as_me: error: unrecognized option: $1
21584 Try \`$0 --help' for more information." >&2
21585 { (exit 1); exit 1; }; } ;;
21587 *) ac_config_targets="$ac_config_targets $1"
21588 ac_need_defaults=false ;;
21594 ac_configure_extra_args=
21596 if $ac_cs_silent; then
21598 ac_configure_extra_args="$ac_configure_extra_args --silent"
21602 cat >>$CONFIG_STATUS <<_ACEOF
21603 if \$ac_cs_recheck; then
21604 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21605 CONFIG_SHELL=$SHELL
21606 export CONFIG_SHELL
21607 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21611 cat >>$CONFIG_STATUS <<\_ACEOF
21615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21616 ## Running $as_me. ##
21622 cat >>$CONFIG_STATUS <<_ACEOF
21626 llvm_src="${srcdir}"
21630 cat >>$CONFIG_STATUS <<\_ACEOF
21632 # Handling of arguments.
21633 for ac_config_target in $ac_config_targets
21635 case $ac_config_target in
21636 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21637 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21638 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21639 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21640 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21641 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21642 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21643 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21644 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21645 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21646 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21647 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21648 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21649 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21650 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21651 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21652 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21653 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21654 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21655 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21656 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21657 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21658 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21659 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21660 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21662 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21663 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21664 { (exit 1); exit 1; }; };;
21669 # If the user did not use the arguments to specify the items to instantiate,
21670 # then the envvar interface is used. Set only those that are not.
21671 # We use the long form for the default assignment because of an extremely
21672 # bizarre bug on SunOS 4.1.3.
21673 if $ac_need_defaults; then
21674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21675 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21676 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21679 # Have a temporary directory for convenience. Make it in the build tree
21680 # simply because there is no reason against having it here, and in addition,
21681 # creating and moving files from /tmp can sometimes cause problems.
21682 # Hook for its removal unless debugging.
21683 # Note that there is a small window in which the directory will not be cleaned:
21684 # after its creation but before its name has been assigned to `$tmp'.
21688 trap 'exit_status=$?
21689 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21691 trap '{ (exit 1); exit 1; }' 1 2 13 15
21693 # Create a (secure) tmp directory for tmp files.
21696 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21697 test -n "$tmp" && test -d "$tmp"
21700 tmp=./conf$$-$RANDOM
21701 (umask 077 && mkdir "$tmp")
21704 echo "$me: cannot create a temporary directory in ." >&2
21705 { (exit 1); exit 1; }
21709 # Set up the sed scripts for CONFIG_FILES section.
21712 # No need to generate the scripts if there are no CONFIG_FILES.
21713 # This happens for instance when ./config.status config.h
21714 if test -n "$CONFIG_FILES"; then
21721 for ac_last_try in false false false false false :; do
21722 cat >conf$$subs.sed <<_ACEOF
21723 SHELL!$SHELL$ac_delim
21724 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21725 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21726 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21727 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21728 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21729 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21730 exec_prefix!$exec_prefix$ac_delim
21731 prefix!$prefix$ac_delim
21732 program_transform_name!$program_transform_name$ac_delim
21733 bindir!$bindir$ac_delim
21734 sbindir!$sbindir$ac_delim
21735 libexecdir!$libexecdir$ac_delim
21736 datarootdir!$datarootdir$ac_delim
21737 datadir!$datadir$ac_delim
21738 sysconfdir!$sysconfdir$ac_delim
21739 sharedstatedir!$sharedstatedir$ac_delim
21740 localstatedir!$localstatedir$ac_delim
21741 includedir!$includedir$ac_delim
21742 oldincludedir!$oldincludedir$ac_delim
21743 docdir!$docdir$ac_delim
21744 infodir!$infodir$ac_delim
21745 htmldir!$htmldir$ac_delim
21746 dvidir!$dvidir$ac_delim
21747 pdfdir!$pdfdir$ac_delim
21748 psdir!$psdir$ac_delim
21749 libdir!$libdir$ac_delim
21750 localedir!$localedir$ac_delim
21751 mandir!$mandir$ac_delim
21752 DEFS!$DEFS$ac_delim
21753 ECHO_C!$ECHO_C$ac_delim
21754 ECHO_N!$ECHO_N$ac_delim
21755 ECHO_T!$ECHO_T$ac_delim
21756 LIBS!$LIBS$ac_delim
21757 build_alias!$build_alias$ac_delim
21758 host_alias!$host_alias$ac_delim
21759 target_alias!$target_alias$ac_delim
21760 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21761 subdirs!$subdirs$ac_delim
21762 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21763 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21764 build!$build$ac_delim
21765 build_cpu!$build_cpu$ac_delim
21766 build_vendor!$build_vendor$ac_delim
21767 build_os!$build_os$ac_delim
21768 host!$host$ac_delim
21769 host_cpu!$host_cpu$ac_delim
21770 host_vendor!$host_vendor$ac_delim
21771 host_os!$host_os$ac_delim
21772 target!$target$ac_delim
21773 target_cpu!$target_cpu$ac_delim
21774 target_vendor!$target_vendor$ac_delim
21775 target_os!$target_os$ac_delim
21777 HOST_OS!$HOST_OS$ac_delim
21778 TARGET_OS!$TARGET_OS$ac_delim
21779 LINKALL!$LINKALL$ac_delim
21780 NOLINKALL!$NOLINKALL$ac_delim
21781 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21782 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21783 ARCH!$ARCH$ac_delim
21784 ENDIAN!$ENDIAN$ac_delim
21786 CFLAGS!$CFLAGS$ac_delim
21787 LDFLAGS!$LDFLAGS$ac_delim
21788 CPPFLAGS!$CPPFLAGS$ac_delim
21789 ac_ct_CC!$ac_ct_CC$ac_delim
21790 EXEEXT!$EXEEXT$ac_delim
21791 OBJEXT!$OBJEXT$ac_delim
21793 GREP!$GREP$ac_delim
21794 EGREP!$EGREP$ac_delim
21795 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21796 BUILD_CC!$BUILD_CC$ac_delim
21797 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21798 BUILD_CXX!$BUILD_CXX$ac_delim
21799 CVSBUILD!$CVSBUILD$ac_delim
21800 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21801 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21802 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21803 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21804 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21805 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21806 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21808 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21809 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21810 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21811 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21812 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21813 ENABLE_PIC!$ENABLE_PIC$ac_delim
21814 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21815 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21816 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21817 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21818 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21819 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21822 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21824 elif $ac_last_try; then
21825 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21826 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21827 { (exit 1); exit 1; }; }
21829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21833 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21834 if test -n "$ac_eof"; then
21835 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21836 ac_eof=`expr $ac_eof + 1`
21839 cat >>$CONFIG_STATUS <<_ACEOF
21840 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21844 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21845 s/^/s,@/; s/!/@,|#_!!_#|/
21848 s/'"$ac_delim"'$/,g/; t
21850 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21851 ' >>$CONFIG_STATUS <conf$$subs.sed
21852 rm -f conf$$subs.sed
21853 cat >>$CONFIG_STATUS <<_ACEOF
21859 for ac_last_try in false false false false false :; do
21860 cat >conf$$subs.sed <<_ACEOF
21861 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21862 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21863 CLANGPATH!$CLANGPATH$ac_delim
21864 CLANGXXPATH!$CLANGXXPATH$ac_delim
21865 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21866 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21867 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21868 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21870 CXXFLAGS!$CXXFLAGS$ac_delim
21871 ac_ct_CXX!$ac_ct_CXX$ac_delim
21873 ifGNUmake!$ifGNUmake$ac_delim
21874 LN_S!$LN_S$ac_delim
21877 DATE!$DATE$ac_delim
21878 FIND!$FIND$ac_delim
21879 MKDIR!$MKDIR$ac_delim
21881 RANLIB!$RANLIB$ac_delim
21886 BINPWD!$BINPWD$ac_delim
21887 GRAPHVIZ!$GRAPHVIZ$ac_delim
21890 NEATO!$NEATO$ac_delim
21891 TWOPI!$TWOPI$ac_delim
21892 CIRCO!$CIRCO$ac_delim
21894 DOTTY!$DOTTY$ac_delim
21895 XDOT_PY!$XDOT_PY$ac_delim
21896 PERL!$PERL$ac_delim
21897 HAVE_PERL!$HAVE_PERL$ac_delim
21898 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21899 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21900 INSTALL_DATA!$INSTALL_DATA$ac_delim
21901 BZIP2!$BZIP2$ac_delim
21903 DOXYGEN!$DOXYGEN$ac_delim
21904 GROFF!$GROFF$ac_delim
21905 GZIPBIN!$GZIPBIN$ac_delim
21906 POD2HTML!$POD2HTML$ac_delim
21907 POD2MAN!$POD2MAN$ac_delim
21908 PDFROFF!$PDFROFF$ac_delim
21909 RUNTEST!$RUNTEST$ac_delim
21910 TCLSH!$TCLSH$ac_delim
21912 OCAMLC!$OCAMLC$ac_delim
21913 OCAMLOPT!$OCAMLOPT$ac_delim
21914 OCAMLDEP!$OCAMLDEP$ac_delim
21915 OCAMLDOC!$OCAMLDOC$ac_delim
21917 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21918 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21919 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21920 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21921 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21922 LIBADD_DL!$LIBADD_DL$ac_delim
21923 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21924 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21925 LLVMGCC!$LLVMGCC$ac_delim
21926 LLVMGXX!$LLVMGXX$ac_delim
21927 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21928 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21929 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21930 USE_UDIS86!$USE_UDIS86$ac_delim
21931 USE_OPROFILE!$USE_OPROFILE$ac_delim
21932 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21933 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21934 MMAP_FILE!$MMAP_FILE$ac_delim
21935 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
21936 LLVMCC1!$LLVMCC1$ac_delim
21937 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21938 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21939 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21940 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
21941 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
21942 SHLIBEXT!$SHLIBEXT$ac_delim
21943 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21944 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21945 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21946 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21947 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21948 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21949 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21950 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21951 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21952 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21953 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21954 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21955 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21956 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21957 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21960 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21962 elif $ac_last_try; then
21963 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21964 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21965 { (exit 1); exit 1; }; }
21967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21971 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21972 if test -n "$ac_eof"; then
21973 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21974 ac_eof=`expr $ac_eof + 1`
21977 cat >>$CONFIG_STATUS <<_ACEOF
21978 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21982 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21983 s/^/s,@/; s/!/@,|#_!!_#|/
21986 s/'"$ac_delim"'$/,g/; t
21988 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21989 ' >>$CONFIG_STATUS <conf$$subs.sed
21990 rm -f conf$$subs.sed
21991 cat >>$CONFIG_STATUS <<_ACEOF
21997 for ac_last_try in false false false false false :; do
21998 cat >conf$$subs.sed <<_ACEOF
21999 RPATH!$RPATH$ac_delim
22000 RDYNAMIC!$RDYNAMIC$ac_delim
22001 LIBOBJS!$LIBOBJS$ac_delim
22002 LTLIBOBJS!$LTLIBOBJS$ac_delim
22005 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
22007 elif $ac_last_try; then
22008 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22009 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22010 { (exit 1); exit 1; }; }
22012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22016 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22017 if test -n "$ac_eof"; then
22018 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22019 ac_eof=`expr $ac_eof + 1`
22022 cat >>$CONFIG_STATUS <<_ACEOF
22023 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22027 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22028 s/^/s,@/; s/!/@,|#_!!_#|/
22031 s/'"$ac_delim"'$/,g/; t
22033 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22034 ' >>$CONFIG_STATUS <conf$$subs.sed
22035 rm -f conf$$subs.sed
22036 cat >>$CONFIG_STATUS <<_ACEOF
22043 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22044 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22045 # trailing colons and then remove the whole line if VPATH becomes empty
22046 # (actually we leave an empty line to preserve line numbers).
22047 if test "x$srcdir" = x.; then
22048 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22049 s/:*\$(srcdir):*/:/
22050 s/:*\${srcdir}:*/:/
22052 s/^\([^=]*=[ ]*\):*/\1/
22058 cat >>$CONFIG_STATUS <<\_ACEOF
22059 fi # test -n "$CONFIG_FILES"
22062 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22065 :[FHLC]) ac_mode=$ac_tag; continue;;
22067 case $ac_mode$ac_tag in
22069 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22070 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22071 { (exit 1); exit 1; }; };;
22072 :[FH]-) ac_tag=-:-;;
22073 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22090 -) ac_f="$tmp/stdin";;
22091 *) # Look for the file first in the build tree, then in the source tree
22092 # (if the path is not absolute). The absolute path cannot be DOS-style,
22093 # because $ac_f cannot contain `:'.
22097 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22099 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22100 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22101 { (exit 1); exit 1; }; };;
22103 ac_file_inputs="$ac_file_inputs $ac_f"
22106 # Let's still pretend it is `configure' which instantiates (i.e., don't
22107 # use $as_me), people would be surprised to read:
22108 # /* config.h. Generated by config.status. */
22109 configure_input="Generated from "`IFS=:
22110 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22111 if test x"$ac_file" != x-; then
22112 configure_input="$ac_file. $configure_input"
22113 { echo "$as_me:$LINENO: creating $ac_file" >&5
22114 echo "$as_me: creating $ac_file" >&6;}
22118 *:-:* | *:-) cat >"$tmp/stdin";;
22123 ac_dir=`$as_dirname -- "$ac_file" ||
22124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22125 X"$ac_file" : 'X\(//\)[^/]' \| \
22126 X"$ac_file" : 'X\(//\)$' \| \
22127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22133 /^X\(\/\/\)[^/].*/{
22148 -*) as_dir=./$as_dir;;
22150 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22154 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22155 *) as_qdir=$as_dir;;
22157 as_dirs="'$as_qdir' $as_dirs"
22158 as_dir=`$as_dirname -- "$as_dir" ||
22159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22160 X"$as_dir" : 'X\(//\)[^/]' \| \
22161 X"$as_dir" : 'X\(//\)$' \| \
22162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22168 /^X\(\/\/\)[^/].*/{
22181 test -d "$as_dir" && break
22183 test -z "$as_dirs" || eval "mkdir $as_dirs"
22184 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22185 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22186 { (exit 1); exit 1; }; }; }
22190 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22192 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22193 # A ".." for each directory in $ac_dir_suffix.
22194 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22195 case $ac_top_builddir_sub in
22196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22200 ac_abs_top_builddir=$ac_pwd
22201 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22202 # for backward compatibility:
22203 ac_top_builddir=$ac_top_build_prefix
22206 .) # We are building in place.
22208 ac_top_srcdir=$ac_top_builddir_sub
22209 ac_abs_top_srcdir=$ac_pwd ;;
22210 [\\/]* | ?:[\\/]* ) # Absolute name.
22211 ac_srcdir=$srcdir$ac_dir_suffix;
22212 ac_top_srcdir=$srcdir
22213 ac_abs_top_srcdir=$srcdir ;;
22214 *) # Relative name.
22215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22216 ac_top_srcdir=$ac_top_build_prefix$srcdir
22217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22219 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22230 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22234 cat >>$CONFIG_STATUS <<\_ACEOF
22235 # If the template does not know about datarootdir, expand it.
22236 # FIXME: This hack should be removed a few years after 2.60.
22237 ac_datarootdir_hack=; ac_datarootdir_seen=
22239 case `sed -n '/datarootdir/ {
22248 ' $ac_file_inputs` in
22249 *datarootdir*) ac_datarootdir_seen=yes;;
22250 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22251 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22252 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22254 cat >>$CONFIG_STATUS <<_ACEOF
22255 ac_datarootdir_hack='
22256 s&@datadir@&$datadir&g
22257 s&@docdir@&$docdir&g
22258 s&@infodir@&$infodir&g
22259 s&@localedir@&$localedir&g
22260 s&@mandir@&$mandir&g
22261 s&\\\${datarootdir}&$datarootdir&g' ;;
22265 # Neutralize VPATH when `$srcdir' = `.'.
22266 # Shell code in configure.ac might set extrasub.
22267 # FIXME: do we really want to maintain this feature?
22268 cat >>$CONFIG_STATUS <<_ACEOF
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22275 s&@configure_input@&$configure_input&;t t
22276 s&@top_builddir@&$ac_top_builddir_sub&;t t
22277 s&@srcdir@&$ac_srcdir&;t t
22278 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22279 s&@top_srcdir@&$ac_top_srcdir&;t t
22280 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22281 s&@builddir@&$ac_builddir&;t t
22282 s&@abs_builddir@&$ac_abs_builddir&;t t
22283 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22284 s&@INSTALL@&$ac_INSTALL&;t t
22285 $ac_datarootdir_hack
22286 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22288 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22289 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22290 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22291 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22292 which seems to be undefined. Please make sure it is defined." >&5
22293 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22294 which seems to be undefined. Please make sure it is defined." >&2;}
22298 -) cat "$tmp/out"; rm -f "$tmp/out";;
22299 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22308 # Transform confdefs.h into a sed script `conftest.defines', that
22309 # substitutes the proper values into config.h.in to produce config.h.
22310 rm -f conftest.defines conftest.tail
22311 # First, append a space to every undef/define line, to ease matching.
22312 echo 's/$/ /' >conftest.defines
22313 # Then, protect against being on the right side of a sed subst, or in
22314 # an unquoted here document, in config.status. If some macros were
22315 # called several times there might be several #defines for the same
22316 # symbol, which is useless. But do not sort them, since the last
22317 # AC_DEFINE must be honored.
22318 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22319 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22320 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22321 # PARAMS is the parameter list in the macro definition--in most cases, it's
22322 # just an empty string.
22323 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22324 ac_dB='\\)[ (].*,\\1define\\2'
22332 s/^[ ]*#[ ]*define[ ][ ]*//
22337 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22338 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22339 ' >>conftest.defines
22341 # Remove the space that was appended to ease matching.
22342 # Then replace #undef with comments. This is necessary, for
22343 # example, in the case of _POSIX_SOURCE, which is predefined and required
22344 # on some systems where configure will not decide to define it.
22345 # (The regexp can be short, since the line contains either #define or #undef.)
22347 s,^[ #]*u.*,/* & */,' >>conftest.defines
22349 # Break up conftest.defines:
22350 ac_max_sed_lines=50
22352 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22353 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22354 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22356 ac_in='$ac_file_inputs'
22357 ac_out='"$tmp/out1"'
22358 ac_nxt='"$tmp/out2"'
22362 # Write a here document:
22363 cat >>$CONFIG_STATUS <<_ACEOF
22364 # First, check the format of the line:
22365 cat >"\$tmp/defines.sed" <<\\CEOF
22366 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22367 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22371 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22373 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22374 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22375 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22376 grep . conftest.tail >/dev/null || break
22377 rm -f conftest.defines
22378 mv conftest.tail conftest.defines
22380 rm -f conftest.defines conftest.tail
22382 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22383 cat >>$CONFIG_STATUS <<\_ACEOF
22384 if test x"$ac_file" != x-; then
22385 echo "/* $configure_input */" >"$tmp/config.h"
22386 cat "$ac_result" >>"$tmp/config.h"
22387 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22388 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22389 echo "$as_me: $ac_file is unchanged" >&6;}
22392 mv "$tmp/config.h" $ac_file
22395 echo "/* $configure_input */"
22401 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22402 echo "$as_me: executing $ac_file commands" >&6;}
22407 case $ac_file$ac_mode in
22408 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22409 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22410 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22411 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22412 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22414 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22416 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22418 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22420 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22422 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22424 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22426 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22427 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22428 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22429 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22430 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22431 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22432 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22433 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22439 { (exit 0); exit 0; }
22441 chmod +x $CONFIG_STATUS
22442 ac_clean_files=$ac_clean_files_save
22445 # configure is writing to config.log, and then calls config.status.
22446 # config.status does its own redirection, appending to config.log.
22447 # Unfortunately, on DOS this fails, as config.log is still kept open
22448 # by configure, so config.status won't be able to write to it; its
22449 # output is simply discarded. So we exec the FD to /dev/null,
22450 # effectively closing config.log, so it can be properly (re)opened and
22451 # appended to by config.status. When coming back to configure, we
22452 # need to make the FD available again.
22453 if test "$no_create" != yes; then
22455 ac_config_status_args=
22456 test "$silent" = yes &&
22457 ac_config_status_args="$ac_config_status_args --quiet"
22459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22462 # would make configure fail if this is the last instruction.
22463 $ac_cs_success || { (exit 1); exit 1; }
22467 # CONFIG_SUBDIRS section.
22469 if test "$no_recursion" != yes; then
22471 # Remove --cache-file and --srcdir arguments so they do not pile up.
22472 ac_sub_configure_args=
22474 eval "set x $ac_configure_args"
22478 if test -n "$ac_prev"; then
22483 -cache-file | --cache-file | --cache-fil | --cache-fi \
22484 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22485 ac_prev=cache_file ;;
22486 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22487 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22490 --config-cache | -C)
22492 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22494 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22496 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22498 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22502 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22504 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22508 # Always prepend --prefix to ensure using the same prefix
22509 # in subdir configurations.
22510 ac_arg="--prefix=$prefix"
22512 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22514 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22517 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22519 # Do not complain, so a configure script can configure whichever
22520 # parts of a large source tree are present.
22521 test -d "$srcdir/$ac_dir" || continue
22523 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22524 echo "$as_me:$LINENO: $ac_msg" >&5
22528 -*) as_dir=./$as_dir;;
22530 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22534 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22535 *) as_qdir=$as_dir;;
22537 as_dirs="'$as_qdir' $as_dirs"
22538 as_dir=`$as_dirname -- "$as_dir" ||
22539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22540 X"$as_dir" : 'X\(//\)[^/]' \| \
22541 X"$as_dir" : 'X\(//\)$' \| \
22542 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22548 /^X\(\/\/\)[^/].*/{
22561 test -d "$as_dir" && break
22563 test -z "$as_dirs" || eval "mkdir $as_dirs"
22564 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22565 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22566 { (exit 1); exit 1; }; }; }
22570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22573 # A ".." for each directory in $ac_dir_suffix.
22574 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22575 case $ac_top_builddir_sub in
22576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22580 ac_abs_top_builddir=$ac_pwd
22581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22582 # for backward compatibility:
22583 ac_top_builddir=$ac_top_build_prefix
22586 .) # We are building in place.
22588 ac_top_srcdir=$ac_top_builddir_sub
22589 ac_abs_top_srcdir=$ac_pwd ;;
22590 [\\/]* | ?:[\\/]* ) # Absolute name.
22591 ac_srcdir=$srcdir$ac_dir_suffix;
22592 ac_top_srcdir=$srcdir
22593 ac_abs_top_srcdir=$srcdir ;;
22594 *) # Relative name.
22595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22596 ac_top_srcdir=$ac_top_build_prefix$srcdir
22597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22604 # Check for guested configure; otherwise get Cygnus style configure.
22605 if test -f "$ac_srcdir/configure.gnu"; then
22606 ac_sub_configure=$ac_srcdir/configure.gnu
22607 elif test -f "$ac_srcdir/configure"; then
22608 ac_sub_configure=$ac_srcdir/configure
22609 elif test -f "$ac_srcdir/configure.in"; then
22610 # This should be Cygnus configure.
22611 ac_sub_configure=$ac_aux_dir/configure
22613 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22618 # The recursion is here.
22619 if test -n "$ac_sub_configure"; then
22620 # Make the cache file name correct relative to the subdirectory.
22621 case $cache_file in
22622 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22623 *) # Relative name.
22624 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22627 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22628 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22629 # The eval makes quoting arguments work.
22630 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22631 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22632 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22633 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22634 { (exit 1); exit 1; }; }