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
683 ENABLE_EXPENSIVE_CHECKS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
753 HAVE_LINK_VERSION_SCRIPT
756 CONVENIENCE_LTDL_TRUE
757 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
790 ENABLE_VISIBILITY_INLINES_HIDDEN
796 ac_precious_vars='build_alias
807 ac_subdirs_all='projects/llvm-gcc
811 projects/llvm-poolalloc
814 projects/llvm-stacker
819 projects/llvm-kernel'
821 # Initialize some variables set by options.
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 -enable-* | --enable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
962 -help | --help | --hel | --he | -h)
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1111 -site=* | --site=* | --sit=*)
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of llvm 2.9svn:";;
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1398 --enable-expensive-checks
1399 Compile with expensive debug checks enabled (default
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
1405 --enable-jit Enable Just In Time Compiling (default is YES)
1406 --enable-doxygen Build doxygen documentation (default is NO)
1407 --enable-threads Use threads if available (default is YES)
1408 --enable-pic Build LLVM with Position Independent Code (default
1410 --enable-shared Build a shared library and link tools against it
1412 --enable-timestamps Enable embedding timestamp information in build
1414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1417 pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1418 and cpp (default=all)
1419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
1423 --enable-libffi Check for the presence of libffi (default is NO)
1424 --enable-ltdl-install install libltdl
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 --with-optimize-option Select the compiler options to use for optimized
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 --with-c-include-dirs Colon separated list of directories clang will
1446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
1452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
1454 --with-tclinclude directory where tcl headers are
1455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 llvm configure 2.9svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 2.9svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1956 if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1961 if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1966 if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1971 if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1976 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1981 for i in `ls ${srcdir}/projects`
1983 if test -d ${srcdir}/projects/${i} ; then
1985 sample) subdirs="$subdirs projects/sample"
1987 privbracket) subdirs="$subdirs projects/privbracket"
1989 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1991 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1993 llvm-java) subdirs="$subdirs projects/llvm-java"
1995 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1997 safecode) subdirs="$subdirs projects/safecode"
1999 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2007 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
2021 { echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 ac_build_alias=$build_alias
2027 test "x$ac_build_alias" = x &&
2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x &&
2030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
2033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
2048 ac_save_IFS=$IFS; IFS='-'
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061 { echo "$as_me:$LINENO: checking host system type" >&5
2062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test "x$host_alias" = x; then
2067 ac_cv_host=$ac_cv_build
2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 echo "${ECHO_T}$ac_cv_host" >&6; }
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
2085 ac_save_IFS=$IFS; IFS='-'
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098 { echo "$as_me:$LINENO: checking target system type" >&5
2099 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_target+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test "x$target_alias" = x; then
2104 ac_cv_target=$ac_cv_host
2106 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114 echo "${ECHO_T}$ac_cv_target" >&6; }
2115 case $ac_cv_target in
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118 echo "$as_me: error: invalid value of canonical target" >&2;}
2119 { (exit 1); exit 1; }; };;
2121 target=$ac_cv_target
2122 ac_save_IFS=$IFS; IFS='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2135 # The aliases save the names the user supplied, while $host etc.
2136 # will get canonicalized.
2137 test -n "$target_alias" &&
2138 test "$program_prefix$program_suffix$program_transform_name" = \
2140 program_prefix=${target_alias}-
2142 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144 if test "${llvm_cv_os_type+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151 llvm_cv_os_type="AIX"
2152 llvm_cv_platform_type="Unix" ;;
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="IRIX"
2157 llvm_cv_platform_type="Unix" ;;
2159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2161 llvm_cv_os_type="Cygwin"
2162 llvm_cv_platform_type="Unix" ;;
2164 llvm_cv_link_all_option="-Wl,-all_load"
2165 llvm_cv_no_link_all_option="-Wl,-noall_load"
2166 llvm_cv_os_type="Darwin"
2167 llvm_cv_platform_type="Unix" ;;
2169 llvm_cv_link_all_option="-Wl,-all_load"
2170 llvm_cv_no_link_all_option="-Wl,-noall_load"
2171 llvm_cv_os_type="Minix"
2172 llvm_cv_platform_type="Unix" ;;
2174 llvm_cv_link_all_option="-Wl,--whole-archive"
2175 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2176 llvm_cv_os_type="FreeBSD"
2177 llvm_cv_platform_type="Unix" ;;
2179 llvm_cv_link_all_option="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2181 llvm_cv_os_type="OpenBSD"
2182 llvm_cv_platform_type="Unix" ;;
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="NetBSD"
2187 llvm_cv_platform_type="Unix" ;;
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="DragonFly"
2192 llvm_cv_platform_type="Unix" ;;
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="HP-UX"
2197 llvm_cv_platform_type="Unix" ;;
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="Interix"
2202 llvm_cv_platform_type="Unix" ;;
2204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206 llvm_cv_os_type="Linux"
2207 llvm_cv_platform_type="Unix" ;;
2209 llvm_cv_link_all_option="-Wl,-z,allextract"
2210 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2211 llvm_cv_os_type="SunOS"
2212 llvm_cv_platform_type="Unix" ;;
2214 llvm_cv_link_all_option="-Wl,-z,allextract"
2215 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2216 llvm_cv_os_type="AuroraUX"
2217 llvm_cv_platform_type="Unix" ;;
2219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221 llvm_cv_os_type="Win32"
2222 llvm_cv_platform_type="Win32" ;;
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="MingW"
2227 llvm_cv_platform_type="Win32" ;;
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="Haiku"
2232 llvm_cv_platform_type="Unix" ;;
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="Freestanding"
2237 llvm_cv_platform_type="Unix" ;;
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="Freestanding"
2242 llvm_cv_platform_type="Unix" ;;
2244 llvm_cv_link_all_option=""
2245 llvm_cv_no_link_all_option=""
2246 llvm_cv_os_type="Unknown"
2247 llvm_cv_platform_type="Unknown" ;;
2250 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255 if test "${llvm_cv_target_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 llvm_cv_target_os_type="AIX" ;;
2262 llvm_cv_target_os_type="IRIX" ;;
2264 llvm_cv_target_os_type="Cygwin" ;;
2266 llvm_cv_target_os_type="Darwin" ;;
2268 llvm_cv_target_os_type="Minix" ;;
2270 llvm_cv_target_os_type="FreeBSD" ;;
2272 llvm_cv_target_os_type="OpenBSD" ;;
2274 llvm_cv_target_os_type="NetBSD" ;;
2276 llvm_cv_target_os_type="DragonFly" ;;
2278 llvm_cv_target_os_type="HP-UX" ;;
2280 llvm_cv_target_os_type="Interix" ;;
2282 llvm_cv_target_os_type="Linux" ;;
2284 llvm_cv_target_os_type="SunOS" ;;
2286 llvm_cv_target_os_type="AuroraUX" ;;
2288 llvm_cv_target_os_type="Win32" ;;
2290 llvm_cv_target_os_type="MingW" ;;
2292 llvm_cv_target_os_type="Haiku" ;;
2294 llvm_cv_target_os_type="Freestanding" ;;
2296 llvm_cv_target_os_type="Unknown" ;;
2299 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2302 if test "$llvm_cv_os_type" = "Unknown" ; then
2303 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305 { (exit 1); exit 1; }; }
2310 HOST_OS=$llvm_cv_os_type
2312 TARGET_OS=$llvm_cv_target_os_type
2315 LINKALL=$llvm_cv_link_all_option
2317 NOLINKALL=$llvm_cv_no_link_all_option
2320 case $llvm_cv_platform_type in
2323 cat >>confdefs.h <<\_ACEOF
2324 #define LLVM_ON_UNIX 1
2334 cat >>confdefs.h <<\_ACEOF
2335 #define LLVM_ON_WIN32 1
2345 { echo "$as_me:$LINENO: checking target architecture" >&5
2346 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347 if test "${llvm_cv_target_arch+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 i?86-*) llvm_cv_target_arch="x86" ;;
2352 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2353 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2354 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2355 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2356 arm*-*) llvm_cv_target_arch="ARM" ;;
2357 mips-*) llvm_cv_target_arch="Mips" ;;
2358 pic16-*) llvm_cv_target_arch="PIC16" ;;
2359 xcore-*) llvm_cv_target_arch="XCore" ;;
2360 msp430-*) llvm_cv_target_arch="MSP430" ;;
2361 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2362 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2363 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2364 ptx-*) llvm_cv_target_arch="PTX" ;;
2365 *) llvm_cv_target_arch="Unknown" ;;
2368 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371 if test "$llvm_cv_target_arch" = "Unknown" ; then
2372 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2376 # Determine the LLVM native architecture for the target
2377 case "$llvm_cv_target_arch" in
2378 x86) LLVM_NATIVE_ARCH="X86" ;;
2379 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2380 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2383 ARCH=$llvm_cv_target_arch
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 if test -n "$CC"; then
2421 { echo "$as_me:$LINENO: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6; }
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2430 if test -z "$ac_cv_prog_CC"; then
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_CC="gcc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6; }
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2468 if test "x$ac_ct_CC" = x; then
2471 case $cross_compiling:$ac_tool_warned in
2473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet. If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&5
2476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet. If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2479 ac_tool_warned=yes ;;
2487 if test -z "$CC"; then
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_CC="${ac_tool_prefix}cc"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2528 if test -z "$CC"; then
2529 # Extract the first word of "cc", so it can be a program name with args.
2530 set dummy cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 if test -n "$CC"; then
2537 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548 ac_prog_rejected=yes
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 if test $ac_prog_rejected = yes; then
2560 # We found a bogon in the path, so make sure we never use it.
2561 set dummy $ac_cv_prog_CC
2563 if test $# != 0; then
2564 # We chose a different compiler from the bogus one.
2565 # However, it has the same basename, so the bogon will be chosen
2566 # first if we set CC to just the basename; use the full file name.
2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 if test -n "$CC"; then
2575 { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2578 { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2584 if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in cl.exe
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 if test -n "$CC"; then
2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6; }
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2625 test -n "$CC" && break
2628 if test -z "$CC"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$ac_ct_CC" && break
2672 if test "x$ac_ct_CC" = x; then
2675 case $cross_compiling:$ac_tool_warned in
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet. If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet. If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
2698 # Provide some information about the compiler.
2699 echo "$as_me:$LINENO: checking for C compiler version" >&5
2700 ac_compiler=`set X $ac_compile; echo $2`
2701 { (ac_try="$ac_compiler --version >&5"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711 { (ac_try="$ac_compiler -v >&5"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721 { (ac_try="$ac_compiler -V >&5"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2752 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756 # List of possible output files, starting from the most likely.
2757 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758 # only as a last resort. b.out is created by i960 compilers.
2759 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761 # The IRIX 6 linker writes into existing files which may not be
2762 # executable, retaining their permissions. Remove them first so a
2763 # subsequent execution test works.
2765 for ac_file in $ac_files
2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2774 if { (ac_try="$ac_link_default"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_link_default") 2>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
2784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2787 # so that the user can short-circuit this test for compilers unknown to
2789 for ac_file in $ac_files
2791 test -f "$ac_file" || continue
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2796 # We found the default executable, but exeext='' is most
2800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2814 test "$ac_cv_exeext" = no && ac_cv_exeext=
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&2;}
2824 { (exit 77); exit 77; }; }
2827 ac_exeext=$ac_cv_exeext
2828 { echo "$as_me:$LINENO: result: $ac_file" >&5
2829 echo "${ECHO_T}$ac_file" >&6; }
2831 # Check that the compiler produces executables we can run. If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2850 if test "$cross_compiling" = maybe; then
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run. If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_link") 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2891 for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
2946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 cat >conftest.$ac_ext <<_ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3040 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042 GCC=`test $ac_compiler_gnu = yes && echo yes`
3043 ac_test_CFLAGS=${CFLAGS+set}
3044 ac_save_CFLAGS=$CFLAGS
3045 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_cc_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 ac_save_c_werror_flag=$ac_c_werror_flag
3051 ac_c_werror_flag=yes
3054 cat >conftest.$ac_ext <<_ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3242 if test "$GCC" = yes; then
3248 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cc_c89+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 ac_cv_prog_cc_c89=no
3255 cat >conftest.$ac_ext <<_ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3263 #include <sys/types.h>
3264 #include <sys/stat.h>
3265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266 struct buf { int x; };
3267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268 static char *e (p, i)
3274 static char *f (char * (*g) (char **, int), char **p, ...)
3279 s = g (p, va_arg (v,int));
3284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285 function prototypes and stuff, but not '\xHH' hex character constants.
3286 These don't provoke an error unfortunately, instead are silently treated
3287 as 'x'. The following induces an error, until -std is added to get
3288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289 array size at least. It's necessary to write '\x00'==0 to get something
3290 that's true only with -std. */
3291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294 inside strings and character constants. */
3296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298 int test (int i, double x);
3299 struct s1 {int (*f) (int a);};
3300 struct s2 {int (*f) (double a);};
3301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315 CC="$ac_save_CC $ac_arg"
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3325 grep -v '^ *+' conftest.er1 >conftest.err
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_cv_prog_cc_c89=$ac_arg
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 rm -f conftest.$ac_ext
3366 case "x$ac_cv_prog_cc_c89" in
3368 { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3374 CC="$CC $ac_cv_prog_cc_c89"
3375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3394 # On Suns, sometimes $CPP names a directory.
3395 if test -n "$CPP" && test -d "$CPP"; then
3398 if test -z "$CPP"; then
3399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3406 for ac_c_preproc_warn_flag in '' yes
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3421 # include <limits.h>
3423 # include <assert.h>
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 if test -z "$ac_cpp_err"; then
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 # Broken: fails on valid input.
3459 rm -f conftest.err conftest.$ac_ext
3461 # OK, works on sane cases. Now check whether nonexistent headers
3462 # can be detected and how.
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 #include <ac_nonexistent.h>
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 if test -z "$ac_cpp_err"; then
3494 # Broken: success on invalid input.
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Passes both tests.
3505 rm -f conftest.err conftest.$ac_ext
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3522 { echo "$as_me:$LINENO: result: $CPP" >&5
3523 echo "${ECHO_T}$CPP" >&6; }
3525 for ac_c_preproc_warn_flag in '' yes
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3540 # include <limits.h>
3542 # include <assert.h>
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 if test -z "$ac_cpp_err"; then
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 # Broken: fails on valid input.
3578 rm -f conftest.err conftest.$ac_ext
3580 # OK, works on sane cases. Now check whether nonexistent headers
3581 # can be detected and how.
3582 cat >conftest.$ac_ext <<_ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 #include <ac_nonexistent.h>
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 if test -z "$ac_cpp_err"; then
3613 # Broken: success on invalid input.
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 # Passes both tests.
3624 rm -f conftest.err conftest.$ac_ext
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then
3632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details." >&5
3634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 # Extract the first word of "grep ggrep" to use in msg output
3652 if test -z "$GREP"; then
3653 set dummy grep ggrep; ac_prog_name=$2
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 ac_path_GREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 test -z "$as_dir" && as_dir=.
3664 for ac_prog in grep ggrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668 # Check for GNU ac_path_GREP and select it if it is found.
3669 # Check for GNU $ac_path_GREP
3670 case `"$ac_path_GREP" --version 2>&1` in
3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
3681 echo 'GREP' >> "conftest.nl"
3682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3684 ac_count=`expr $ac_count + 1`
3685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_GREP="$ac_path_GREP"
3688 ac_path_GREP_max=$ac_count
3690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3697 $ac_path_GREP_found && break 3
3707 GREP="$ac_cv_path_GREP"
3708 if test -z "$GREP"; then
3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711 { (exit 1); exit 1; }; }
3715 ac_cv_path_GREP=$GREP
3720 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3722 GREP="$ac_cv_path_GREP"
3725 { echo "$as_me:$LINENO: checking for egrep" >&5
3726 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727 if test "${ac_cv_path_EGREP+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731 then ac_cv_path_EGREP="$GREP -E"
3733 # Extract the first word of "egrep" to use in msg output
3734 if test -z "$EGREP"; then
3735 set dummy egrep; ac_prog_name=$2
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 ac_path_EGREP_found=false
3740 # Loop through the user's path and test for each of PROGNAME-LIST
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745 test -z "$as_dir" && as_dir=.
3746 for ac_prog in egrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750 # Check for GNU ac_path_EGREP and select it if it is found.
3751 # Check for GNU $ac_path_EGREP
3752 case `"$ac_path_EGREP" --version 2>&1` in
3754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
3763 echo 'EGREP' >> "conftest.nl"
3764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766 ac_count=`expr $ac_count + 1`
3767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_EGREP="$ac_path_EGREP"
3770 ac_path_EGREP_max=$ac_count
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3779 $ac_path_EGREP_found && break 3
3789 EGREP="$ac_cv_path_EGREP"
3790 if test -z "$EGREP"; then
3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793 { (exit 1); exit 1; }; }
3797 ac_cv_path_EGREP=$EGREP
3803 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3805 EGREP="$ac_cv_path_EGREP"
3808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810 if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 cat >conftest.$ac_ext <<_ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3841 grep -v '^ *+' conftest.er1 >conftest.err
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847 { (case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_try") 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_header_stdc=yes
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_header_stdc=no
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 $EGREP "memchr" >/dev/null 2>&1; then
3891 ac_cv_header_stdc=no
3897 if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 $EGREP "free" >/dev/null 2>&1; then
3912 ac_cv_header_stdc=no
3918 if test $ac_cv_header_stdc = yes; then
3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3920 if test "$cross_compiling" = yes; then
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3931 #if ((' ' & 0x0FF) == 0x020)
3932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935 # define ISLOWER(c) \
3936 (('a' <= (c) && (c) <= 'i') \
3937 || ('j' <= (c) && (c) <= 'r') \
3938 || ('s' <= (c) && (c) <= 'z'))
3939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3947 for (i = 0; i < 256; i++)
3948 if (XOR (islower (i), ISLOWER (i))
3949 || toupper (i) != TOUPPER (i))
3954 rm -f conftest$ac_exeext
3955 if { (ac_try="$ac_link"
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_link") 2>&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3976 echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_cv_header_stdc=no
3983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3991 if test $ac_cv_header_stdc = yes; then
3993 cat >>confdefs.h <<\_ACEOF
3994 #define STDC_HEADERS 1
3999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
4012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4026 #include <$ac_header>
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043 { (case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_try") 2>&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 eval "$as_ac_Header=yes"
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 eval "$as_ac_Header=no"
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_res=`eval echo '${'$as_ac_Header'}'`
4073 { echo "$as_me:$LINENO: result: $ac_res" >&5
4074 echo "${ECHO_T}$ac_res" >&6; }
4075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4076 cat >>confdefs.h <<_ACEOF
4077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087 if test "${ac_cv_c_bigendian+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 # See if sys/param.h defines the BYTE_ORDER macro.
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <sys/types.h>
4098 #include <sys/param.h>
4103 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 # It does; now see whether it defined to BIG_ENDIAN or not.
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 #include <sys/types.h>
4153 #include <sys/param.h>
4158 #if BYTE_ORDER != BIG_ENDIAN
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4175 grep -v '^ *+' conftest.er1 >conftest.err
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_c_bigendian=yes
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_c_bigendian=no
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 # It does not; compile a test program.
4214 if test "$cross_compiling" = yes; then
4215 # try to guess the endianness by grepping values into an object file
4216 ac_cv_c_bigendian=unknown
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4232 _ascii (); _ebcdic ();
4237 rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4272 ac_cv_c_bigendian=yes
4274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275 if test "$ac_cv_c_bigendian" = unknown; then
4276 ac_cv_c_bigendian=no
4278 # finding both strings is unlikely to happen, but who knows?
4279 ac_cv_c_bigendian=unknown
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 $ac_includes_default
4302 /* Are we little or big endian? From Harbison&Steele. */
4306 char c[sizeof (long int)];
4309 return u.c[sizeof (long int) - 1] == 1;
4315 rm -f conftest$ac_exeext
4316 if { (ac_try="$ac_link"
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_link") 2>&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_cv_c_bigendian=no
4337 echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_cv_c_bigendian=yes
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354 case $ac_cv_c_bigendian in
4362 { { echo "$as_me:$LINENO: error: unknown endianness
4363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364 echo "$as_me: error: unknown endianness
4365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4370 if test "$cross_compiling" = yes; then
4371 LLVM_CROSS_COMPILING=1
4374 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376 if test "${ac_cv_build_exeext+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380 ac_cv_build_exeext=.exe
4382 ac_build_prefix=${build_alias}-
4384 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385 set dummy ${ac_build_prefix}gcc; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 BUILD_CC=$ac_cv_prog_BUILD_CC
4412 if test -n "$BUILD_CC"; then
4413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414 echo "${ECHO_T}$BUILD_CC" >&6; }
4416 { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "gcc", so it can be a program name with args.
4423 set dummy gcc; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_BUILD_CC="gcc"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 BUILD_CC=$ac_cv_prog_BUILD_CC
4450 if test -n "$BUILD_CC"; then
4451 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452 echo "${ECHO_T}$BUILD_CC" >&6; }
4454 { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4459 if test -z "$BUILD_CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 if test -n "$BUILD_CC"; then
4468 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4482 ac_cv_prog_BUILD_CC="cc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CC
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CC to just the basename; use the full file name.
4499 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4504 BUILD_CC=$ac_cv_prog_BUILD_CC
4505 if test -n "$BUILD_CC"; then
4506 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507 echo "${ECHO_T}$BUILD_CC" >&6; }
4509 { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4516 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518 { (exit 1); exit 1; }; }
4519 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4524 (eval $ac_build_link) 2>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; then
4528 for file in conftest.*; do
4530 *.c | *.o | *.obj | *.dSYM) ;;
4531 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4535 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537 { (exit 1); exit 1; }; }
4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4545 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4546 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4548 ac_build_exeext=$BUILD_EXEEXT
4550 ac_build_prefix=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552 set dummy ${ac_build_prefix}g++; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579 if test -n "$BUILD_CXX"; then
4580 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581 echo "${ECHO_T}$BUILD_CXX" >&6; }
4583 { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590 set dummy g++; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_BUILD_CXX="g++"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617 if test -n "$BUILD_CXX"; then
4618 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619 echo "${ECHO_T}$BUILD_CXX" >&6; }
4621 { echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6; }
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628 set dummy c++; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected=yes
4649 ac_cv_prog_BUILD_CXX="c++"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_BUILD_CXX
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4671 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672 if test -n "$BUILD_CXX"; then
4673 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674 echo "${ECHO_T}$BUILD_CXX" >&6; }
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4684 LLVM_CROSS_COMPILING=0
4688 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4699 # Check whether --enable-optimized was given.
4700 if test "${enable_optimized+set}" = set; then
4701 enableval=$enable_optimized;
4706 if test ${enableval} = "no" ; then
4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4714 # Check whether --enable-profiling was given.
4715 if test "${enable_profiling+set}" = set; then
4716 enableval=$enable_profiling;
4721 if test ${enableval} = "no" ; then
4725 ENABLE_PROFILING=ENABLE_PROFILING=1
4729 # Check whether --enable-assertions was given.
4730 if test "${enable_assertions+set}" = set; then
4731 enableval=$enable_assertions;
4736 if test ${enableval} = "yes" ; then
4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4744 # Check whether --enable-expensive-checks was given.
4745 if test "${enable_expensive_checks+set}" = set; then
4746 enableval=$enable_expensive_checks;
4751 if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754 EXPENSIVE_CHECKS=yes
4757 ENABLE_EXPENSIVE_CHECKS=
4763 # Check whether --enable-debug-runtime was given.
4764 if test "${enable_debug_runtime+set}" = set; then
4765 enableval=$enable_debug_runtime;
4770 if test ${enableval} = "no" ; then
4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4778 # Check whether --enable-debug-symbols was given.
4779 if test "${enable_debug_symbols+set}" = set; then
4780 enableval=$enable_debug_symbols;
4785 if test ${enableval} = "no" ; then
4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4793 # Check whether --enable-jit was given.
4794 if test "${enable_jit+set}" = set; then
4795 enableval=$enable_jit;
4800 if test ${enableval} = "no"
4805 case "$llvm_cv_target_arch" in
4806 x86) TARGET_HAS_JIT=1
4808 Sparc) TARGET_HAS_JIT=0
4810 PowerPC) TARGET_HAS_JIT=1
4812 x86_64) TARGET_HAS_JIT=1
4814 Alpha) TARGET_HAS_JIT=1
4816 ARM) TARGET_HAS_JIT=1
4818 Mips) TARGET_HAS_JIT=0
4820 PIC16) TARGET_HAS_JIT=0
4822 XCore) TARGET_HAS_JIT=0
4824 MSP430) TARGET_HAS_JIT=0
4826 SystemZ) TARGET_HAS_JIT=0
4828 Blackfin) TARGET_HAS_JIT=0
4830 MBlaze) TARGET_HAS_JIT=0
4832 PTX) TARGET_HAS_JIT=0
4839 # Check whether --enable-doxygen was given.
4840 if test "${enable_doxygen+set}" = set; then
4841 enableval=$enable_doxygen;
4846 case "$enableval" in
4847 yes) ENABLE_DOXYGEN=1
4849 no) ENABLE_DOXYGEN=0
4851 default) ENABLE_DOXYGEN=0
4853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4855 { (exit 1); exit 1; }; } ;;
4858 # Check whether --enable-threads was given.
4859 if test "${enable_threads+set}" = set; then
4860 enableval=$enable_threads;
4865 case "$enableval" in
4866 yes) ENABLE_THREADS=1
4868 no) ENABLE_THREADS=0
4870 default) ENABLE_THREADS=1
4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4877 cat >>confdefs.h <<_ACEOF
4878 #define ENABLE_THREADS $ENABLE_THREADS
4882 # Check whether --enable-pic was given.
4883 if test "${enable_pic+set}" = set; then
4884 enableval=$enable_pic;
4889 case "$enableval" in
4894 default) ENABLE_PIC=1
4896 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4897 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4898 { (exit 1); exit 1; }; } ;;
4901 cat >>confdefs.h <<_ACEOF
4902 #define ENABLE_PIC $ENABLE_PIC
4906 # Check whether --enable-shared was given.
4907 if test "${enable_shared+set}" = set; then
4908 enableval=$enable_shared;
4913 case "$enableval" in
4914 yes) ENABLE_SHARED=1
4918 default) ENABLE_SHARED=0
4920 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4921 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4925 # Check whether --enable-timestamps was given.
4926 if test "${enable_timestamps+set}" = set; then
4927 enableval=$enable_timestamps;
4932 case "$enableval" in
4933 yes) ENABLE_TIMESTAMPS=1
4935 no) ENABLE_TIMESTAMPS=0
4937 default) ENABLE_TIMESTAMPS=1
4939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4940 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4944 cat >>confdefs.h <<_ACEOF
4945 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4950 # Check whether --enable-targets was given.
4951 if test "${enable_targets+set}" = set; then
4952 enableval=$enable_targets;
4957 if test "$enableval" = host-only ; then
4960 case "$enableval" in
4961 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4962 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4964 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4965 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4967 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4968 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4969 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4970 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4971 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4972 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4973 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4974 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4975 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4976 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4977 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4978 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4979 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4980 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4981 host) case "$llvm_cv_target_arch" in
4982 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4983 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4985 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4986 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4987 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4988 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4989 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4990 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4991 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4992 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4993 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4994 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4995 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4996 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4997 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4998 echo "$as_me: error: Can not set target to build" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5001 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5002 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5003 { (exit 1); exit 1; }; } ;;
5008 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5011 # Determine whether we are building LLVM support for the native architecture.
5012 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5013 for a_target in $TARGETS_TO_BUILD; do
5014 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5016 cat >>confdefs.h <<_ACEOF
5017 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5020 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5021 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5022 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5024 cat >>confdefs.h <<_ACEOF
5025 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5029 cat >>confdefs.h <<_ACEOF
5030 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5034 cat >>confdefs.h <<_ACEOF
5035 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5041 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5042 # target feature def files.
5043 LLVM_ENUM_TARGETS=""
5044 LLVM_ENUM_ASM_PRINTERS=""
5045 LLVM_ENUM_ASM_PARSERS=""
5046 LLVM_ENUM_DISASSEMBLERS=""
5047 for target_to_build in $TARGETS_TO_BUILD; do
5048 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5049 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5050 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5052 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5053 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5055 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5056 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5064 # Check whether --enable-cbe-printf-a was given.
5065 if test "${enable_cbe_printf_a+set}" = set; then
5066 enableval=$enable_cbe_printf_a;
5071 case "$enableval" in
5072 yes) ENABLE_CBE_PRINTF_A=1
5074 no) ENABLE_CBE_PRINTF_A=0
5076 default) ENABLE_CBE_PRINTF_A=1
5078 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5079 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5080 { (exit 1); exit 1; }; } ;;
5083 cat >>confdefs.h <<_ACEOF
5084 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5089 # Check whether --with-llvmgccdir was given.
5090 if test "${with_llvmgccdir+set}" = set; then
5091 withval=$with_llvmgccdir;
5097 default) WITH_LLVMGCCDIR=default ;;
5098 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5099 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5100 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5101 { (exit 1); exit 1; }; } ;;
5105 # Check whether --with-llvmgcc was given.
5106 if test "${with_llvmgcc+set}" = set; then
5107 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5113 # Check whether --with-llvmgxx was given.
5114 if test "${with_llvmgxx+set}" = set; then
5115 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5120 if test -n "$LLVMGCC"; then
5121 LLVMGCCCOMMAND="$LLVMGCC"
5124 if test -n "$LLVMGXX"; then
5125 LLVMGXXCOMMAND="$LLVMGXX"
5128 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5129 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5130 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5131 { (exit 1); exit 1; }; };
5134 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5135 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5136 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5137 { (exit 1); exit 1; }; };
5141 # Check whether --with-clang was given.
5142 if test "${with_clang+set}" = set; then
5143 withval=$with_clang;
5150 # Check whether --with-built-clang was given.
5151 if test "${with_built_clang+set}" = set; then
5152 withval=$with_built_clang;
5154 with_built_clang=check
5158 { echo "$as_me:$LINENO: checking clang compiler" >&5
5159 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5162 if test "$with_clang" != "default"; then
5163 WITH_CLANGPATH="$with_clang"
5164 if ! test -x "$WITH_CLANGPATH"; then
5165 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5166 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5167 { (exit 1); exit 1; }; }
5169 elif test "$with_built_clang" = "yes"; then
5171 elif test "$with_built_clang" = "no"; then
5174 if test "$with_built_clang" != "check"; then
5175 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5176 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5177 { (exit 1); exit 1; }; }
5180 if test -f ${srcdir}/tools/clang/README.txt; then
5185 if ! test -z "$WITH_CLANGPATH"; then
5186 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5187 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5188 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5189 elif test "$WITH_BUILT_CLANG" = "1"; then
5190 { echo "$as_me:$LINENO: result: built" >&5
5191 echo "${ECHO_T}built" >&6; }
5193 { echo "$as_me:$LINENO: result: none" >&5
5194 echo "${ECHO_T}none" >&6; }
5196 CLANGPATH=$WITH_CLANGPATH
5198 CLANGXXPATH=$WITH_CLANGXXPATH
5200 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5204 # Check whether --with-optimize-option was given.
5205 if test "${with_optimize_option+set}" = set; then
5206 withval=$with_optimize_option;
5211 { echo "$as_me:$LINENO: checking optimization flags" >&5
5212 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5215 case "$llvm_cv_os_type" in
5216 FreeBSD) optimize_option=-O2 ;;
5217 MingW) optimize_option=-O2 ;;
5218 *) optimize_option=-O3 ;;
5220 *) optimize_option="$withval" ;;
5222 OPTIMIZE_OPTION=$optimize_option
5224 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5225 echo "${ECHO_T}$optimize_option" >&6; }
5228 # Check whether --with-extra-options was given.
5229 if test "${with_extra_options+set}" = set; then
5230 withval=$with_extra_options;
5236 default) EXTRA_OPTIONS= ;;
5237 *) EXTRA_OPTIONS=$withval ;;
5239 EXTRA_OPTIONS=$EXTRA_OPTIONS
5242 # Check whether --enable-bindings was given.
5243 if test "${enable_bindings+set}" = set; then
5244 enableval=$enable_bindings;
5249 BINDINGS_TO_BUILD=""
5250 case "$enableval" in
5251 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5252 all ) BINDINGS_TO_BUILD="ocaml" ;;
5253 none | no) BINDINGS_TO_BUILD="" ;;
5254 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5255 case "$a_binding" in
5256 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5257 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5258 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5259 { (exit 1); exit 1; }; } ;;
5266 # Check whether --with-ocaml-libdir was given.
5267 if test "${with_ocaml_libdir+set}" = set; then
5268 withval=$with_ocaml_libdir;
5274 auto) with_ocaml_libdir="$withval" ;;
5275 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5276 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5277 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5278 { (exit 1); exit 1; }; } ;;
5282 # Check whether --with-c-include-dirs was given.
5283 if test "${with_c_include_dirs+set}" = set; then
5284 withval=$with_c_include_dirs;
5290 cat >>confdefs.h <<_ACEOF
5291 #define C_INCLUDE_DIRS "$withval"
5296 # Check whether --with-cxx-include-root was given.
5297 if test "${with_cxx_include_root+set}" = set; then
5298 withval=$with_cxx_include_root;
5304 cat >>confdefs.h <<_ACEOF
5305 #define CXX_INCLUDE_ROOT "$withval"
5310 # Check whether --with-cxx-include-arch was given.
5311 if test "${with_cxx_include_arch+set}" = set; then
5312 withval=$with_cxx_include_arch;
5318 cat >>confdefs.h <<_ACEOF
5319 #define CXX_INCLUDE_ARCH "$withval"
5324 # Check whether --with-cxx-include-32bit-dir was given.
5325 if test "${with_cxx_include_32bit_dir+set}" = set; then
5326 withval=$with_cxx_include_32bit_dir;
5332 cat >>confdefs.h <<_ACEOF
5333 #define CXX_INCLUDE_32BIT_DIR "$withval"
5338 # Check whether --with-cxx-include-64bit-dir was given.
5339 if test "${with_cxx_include_64bit_dir+set}" = set; then
5340 withval=$with_cxx_include_64bit_dir;
5346 cat >>confdefs.h <<_ACEOF
5347 #define CXX_INCLUDE_64BIT_DIR "$withval"
5352 # Check whether --with-binutils-include was given.
5353 if test "${with_binutils_include+set}" = set; then
5354 withval=$with_binutils_include;
5360 default) WITH_BINUTILS_INCDIR=default ;;
5361 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5362 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5363 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5364 { (exit 1); exit 1; }; } ;;
5366 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5367 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5369 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5370 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5371 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5372 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5373 { (exit 1); exit 1; }; };
5377 # Check whether --enable-libffi was given.
5378 if test "${enable_libffi+set}" = set; then
5379 enableval=$enable_libffi; case "$enableval" in
5380 yes) llvm_cv_enable_libffi="yes" ;;
5381 no) llvm_cv_enable_libffi="no" ;;
5382 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5383 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5384 { (exit 1); exit 1; }; } ;;
5387 llvm_cv_enable_libffi=no
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5399 # On Suns, sometimes $CPP names a directory.
5400 if test -n "$CPP" && test -d "$CPP"; then
5403 if test -z "$CPP"; then
5404 if test "${ac_cv_prog_CPP+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 # Double quotes because CPP needs to be expanded
5408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5411 for ac_c_preproc_warn_flag in '' yes
5413 # Use a header file that comes with gcc, so configuring glibc
5414 # with a fresh cross-compiler works.
5415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 # <limits.h> exists even on freestanding compilers.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
5419 cat >conftest.$ac_ext <<_ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5426 # include <limits.h>
5428 # include <assert.h>
5432 if { (ac_try="$ac_cpp conftest.$ac_ext"
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5440 grep -v '^ *+' conftest.er1 >conftest.err
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } >/dev/null; then
5445 if test -s conftest.err; then
5446 ac_cpp_err=$ac_c_preproc_warn_flag
5447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5454 if test -z "$ac_cpp_err"; then
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 # Broken: fails on valid input.
5464 rm -f conftest.err conftest.$ac_ext
5466 # OK, works on sane cases. Now check whether nonexistent headers
5467 # can be detected and how.
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 #include <ac_nonexistent.h>
5476 if { (ac_try="$ac_cpp conftest.$ac_ext"
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5484 grep -v '^ *+' conftest.er1 >conftest.err
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498 if test -z "$ac_cpp_err"; then
5499 # Broken: success on invalid input.
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 # Passes both tests.
5510 rm -f conftest.err conftest.$ac_ext
5513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5514 rm -f conftest.err conftest.$ac_ext
5515 if $ac_preproc_ok; then
5527 { echo "$as_me:$LINENO: result: $CPP" >&5
5528 echo "${ECHO_T}$CPP" >&6; }
5530 for ac_c_preproc_warn_flag in '' yes
5532 # Use a header file that comes with gcc, so configuring glibc
5533 # with a fresh cross-compiler works.
5534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535 # <limits.h> exists even on freestanding compilers.
5536 # On the NeXT, cc -E runs the code through the compiler's parser,
5537 # not just through cpp. "Syntax error" is here to catch this case.
5538 cat >conftest.$ac_ext <<_ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5545 # include <limits.h>
5547 # include <assert.h>
5551 if { (ac_try="$ac_cpp conftest.$ac_ext"
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5559 grep -v '^ *+' conftest.er1 >conftest.err
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } >/dev/null; then
5564 if test -s conftest.err; then
5565 ac_cpp_err=$ac_c_preproc_warn_flag
5566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5573 if test -z "$ac_cpp_err"; then
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5579 # Broken: fails on valid input.
5583 rm -f conftest.err conftest.$ac_ext
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat >conftest.$ac_ext <<_ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 #include <ac_nonexistent.h>
5595 if { (ac_try="$ac_cpp conftest.$ac_ext"
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603 grep -v '^ *+' conftest.er1 >conftest.err
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } >/dev/null; then
5608 if test -s conftest.err; then
5609 ac_cpp_err=$ac_c_preproc_warn_flag
5610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5617 if test -z "$ac_cpp_err"; then
5618 # Broken: success on invalid input.
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 # Passes both tests.
5629 rm -f conftest.err conftest.$ac_ext
5632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5633 rm -f conftest.err conftest.$ac_ext
5634 if $ac_preproc_ok; then
5637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5638 See \`config.log' for more details." >&5
5639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5640 See \`config.log' for more details." >&2;}
5641 { (exit 1); exit 1; }; }
5645 ac_cpp='$CPP $CPPFLAGS'
5646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655 if test -n "$ac_tool_prefix"; then
5658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662 if test "${ac_cv_prog_CC+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 if test -n "$CC"; then
5666 ac_cv_prog_CC="$CC" # Let the user override the test.
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 if test -n "$CC"; then
5687 { echo "$as_me:$LINENO: result: $CC" >&5
5688 echo "${ECHO_T}$CC" >&6; }
5690 { echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6; }
5695 test -n "$CC" && break
5698 if test -z "$CC"; then
5702 # Extract the first word of "$ac_prog", so it can be a program name with args.
5703 set dummy $ac_prog; ac_word=$2
5704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 if test -n "$ac_ct_CC"; then
5710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_ac_ct_CC="$ac_prog"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5730 if test -n "$ac_ct_CC"; then
5731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5732 echo "${ECHO_T}$ac_ct_CC" >&6; }
5734 { echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6; }
5739 test -n "$ac_ct_CC" && break
5742 if test "x$ac_ct_CC" = x; then
5745 case $cross_compiling:$ac_tool_warned in
5747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5748 whose name does not start with the host triplet. If you think this
5749 configuration is useful to you, please write to autoconf@gnu.org." >&5
5750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5751 whose name does not start with the host triplet. If you think this
5752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5753 ac_tool_warned=yes ;;
5760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5761 See \`config.log' for more details." >&5
5762 echo "$as_me: error: no acceptable C compiler found in \$PATH
5763 See \`config.log' for more details." >&2;}
5764 { (exit 1); exit 1; }; }
5766 # Provide some information about the compiler.
5767 echo "$as_me:$LINENO: checking for C compiler version" >&5
5768 ac_compiler=`set X $ac_compile; echo $2`
5769 { (ac_try="$ac_compiler --version >&5"
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compiler --version >&5") 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }
5779 { (ac_try="$ac_compiler -v >&5"
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compiler -v >&5") 2>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }
5789 { (ac_try="$ac_compiler -V >&5"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compiler -V >&5") 2>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }
5800 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5801 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5802 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5869 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5870 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5871 GCC=`test $ac_compiler_gnu = yes && echo yes`
5872 ac_test_CFLAGS=${CFLAGS+set}
5873 ac_save_CFLAGS=$CFLAGS
5874 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5875 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5876 if test "${ac_cv_prog_cc_g+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_save_c_werror_flag=$ac_c_werror_flag
5880 ac_c_werror_flag=yes
5883 cat >conftest.$ac_ext <<_ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_compile") 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5913 { (case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_try") 2>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5938 cat >conftest.$ac_ext <<_ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5953 rm -f conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5962 grep -v '^ *+' conftest.er1 >conftest.err
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_c_werror_flag=$ac_save_c_werror_flag
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6018 grep -v '^ *+' conftest.er1 >conftest.err
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 ac_c_werror_flag=$ac_save_c_werror_flag
6060 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6061 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6062 if test "$ac_test_CFLAGS" = set; then
6063 CFLAGS=$ac_save_CFLAGS
6064 elif test $ac_cv_prog_cc_g = yes; then
6065 if test "$GCC" = yes; then
6071 if test "$GCC" = yes; then
6077 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6078 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6079 if test "${ac_cv_prog_cc_c89+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 ac_cv_prog_cc_c89=no
6084 cat >conftest.$ac_ext <<_ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6092 #include <sys/types.h>
6093 #include <sys/stat.h>
6094 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6095 struct buf { int x; };
6096 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6097 static char *e (p, i)
6103 static char *f (char * (*g) (char **, int), char **p, ...)
6108 s = g (p, va_arg (v,int));
6113 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6114 function prototypes and stuff, but not '\xHH' hex character constants.
6115 These don't provoke an error unfortunately, instead are silently treated
6116 as 'x'. The following induces an error, until -std is added to get
6117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6118 array size at least. It's necessary to write '\x00'==0 to get something
6119 that's true only with -std. */
6120 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6122 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6123 inside strings and character constants. */
6125 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6127 int test (int i, double x);
6128 struct s1 {int (*f) (int a);};
6129 struct s2 {int (*f) (double a);};
6130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6136 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6141 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6144 CC="$ac_save_CC $ac_arg"
6145 rm -f conftest.$ac_objext
6146 if { (ac_try="$ac_compile"
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_compile") 2>conftest.er1
6154 grep -v '^ *+' conftest.er1 >conftest.err
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6160 { (case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_try") 2>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_try") 2>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_prog_cc_c89=$ac_arg
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6187 rm -f core conftest.err conftest.$ac_objext
6188 test "x$ac_cv_prog_cc_c89" != "xno" && break
6190 rm -f conftest.$ac_ext
6195 case "x$ac_cv_prog_cc_c89" in
6197 { echo "$as_me:$LINENO: result: none needed" >&5
6198 echo "${ECHO_T}none needed" >&6; } ;;
6200 { echo "$as_me:$LINENO: result: unsupported" >&5
6201 echo "${ECHO_T}unsupported" >&6; } ;;
6203 CC="$CC $ac_cv_prog_cc_c89"
6204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6205 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6210 ac_cpp='$CPP $CPPFLAGS'
6211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6216 ac_cpp='$CXXCPP $CPPFLAGS'
6217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6220 if test -z "$CXX"; then
6221 if test -n "$CCC"; then
6224 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_prog_CXX+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 if test -n "$CXX"; then
6235 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 if test -n "$CXX"; then
6256 { echo "$as_me:$LINENO: result: $CXX" >&5
6257 echo "${ECHO_T}$CXX" >&6; }
6259 { echo "$as_me:$LINENO: result: no" >&5
6260 echo "${ECHO_T}no" >&6; }
6264 test -n "$CXX" && break
6267 if test -z "$CXX"; then
6271 # Extract the first word of "$ac_prog", so it can be a program name with args.
6272 set dummy $ac_prog; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 if test -n "$ac_ct_CXX"; then
6279 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_ac_ct_CXX="$ac_prog"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6299 if test -n "$ac_ct_CXX"; then
6300 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6301 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6308 test -n "$ac_ct_CXX" && break
6311 if test "x$ac_ct_CXX" = x; then
6314 case $cross_compiling:$ac_tool_warned in
6316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6317 whose name does not start with the host triplet. If you think this
6318 configuration is useful to you, please write to autoconf@gnu.org." >&5
6319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6320 whose name does not start with the host triplet. If you think this
6321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6322 ac_tool_warned=yes ;;
6330 # Provide some information about the compiler.
6331 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6332 ac_compiler=`set X $ac_compile; echo $2`
6333 { (ac_try="$ac_compiler --version >&5"
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_compiler --version >&5") 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }
6343 { (ac_try="$ac_compiler -v >&5"
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compiler -v >&5") 2>&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }
6353 { (ac_try="$ac_compiler -V >&5"
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compiler -V >&5") 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }
6364 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6365 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6366 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6396 grep -v '^ *+' conftest.er1 >conftest.err
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_try") 2>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6433 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6434 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6435 GXX=`test $ac_compiler_gnu = yes && echo yes`
6436 ac_test_CXXFLAGS=${CXXFLAGS+set}
6437 ac_save_CXXFLAGS=$CXXFLAGS
6438 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6439 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_cxx_g+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6444 ac_cxx_werror_flag=yes
6447 cat >conftest.$ac_ext <<_ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6462 rm -f conftest.$ac_objext
6463 if { (ac_try="$ac_compile"
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6471 grep -v '^ *+' conftest.er1 >conftest.err
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6477 { (case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_try") 2>&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_prog_cxx_g=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6502 cat >conftest.$ac_ext <<_ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6517 rm -f conftest.$ac_objext
6518 if { (ac_try="$ac_compile"
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6526 grep -v '^ *+' conftest.er1 >conftest.err
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6532 { (case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_try") 2>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_try") 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6558 cat >conftest.$ac_ext <<_ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6582 grep -v '^ *+' conftest.er1 >conftest.err
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588 { (case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_try") 2>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_cv_prog_cxx_g=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6625 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6626 if test "$ac_test_CXXFLAGS" = set; then
6627 CXXFLAGS=$ac_save_CXXFLAGS
6628 elif test $ac_cv_prog_cxx_g = yes; then
6629 if test "$GXX" = yes; then
6635 if test "$GXX" = yes; then
6642 ac_cpp='$CPP $CPPFLAGS'
6643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6648 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6649 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6650 if test "${lt_cv_path_NM+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 if test -n "$NM"; then
6654 # Let the user override the test.
6657 lt_nm_to_check="${ac_tool_prefix}nm"
6658 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6659 lt_nm_to_check="$lt_nm_to_check nm"
6661 for lt_tmp_nm in $lt_nm_to_check; do
6662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6663 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6665 test -z "$ac_dir" && ac_dir=.
6666 tmp_nm="$ac_dir/$lt_tmp_nm"
6667 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6668 # Check to see if the nm accepts a BSD-compat flag.
6669 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6670 # nm: unknown option "B" ignored
6671 # Tru64's nm complains that /dev/null is an invalid object file
6672 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6673 */dev/null* | *'Invalid file or object type'*)
6674 lt_cv_path_NM="$tmp_nm -B"
6678 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6680 lt_cv_path_NM="$tmp_nm -p"
6684 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6685 continue # so that we can try to find one that supports BSD flags
6694 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6697 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6698 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6703 { echo "$as_me:$LINENO: checking for GNU make" >&5
6704 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6705 if test "${llvm_cv_gnu_make_command+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 llvm_cv_gnu_make_command=''
6709 for a in "$MAKE" make gmake gnumake ; do
6710 if test -z "$a" ; then continue ; fi ;
6711 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6713 llvm_cv_gnu_make_command=$a ;
6718 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6719 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6720 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6724 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6725 echo "${ECHO_T}\"Not found\"" >&6; };
6729 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6730 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6732 if test "$LN_S" = "ln -s"; then
6733 { echo "$as_me:$LINENO: result: yes" >&5
6734 echo "${ECHO_T}yes" >&6; }
6736 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6737 echo "${ECHO_T}no, using $LN_S" >&6; }
6740 # Extract the first word of "cmp", so it can be a program name with args.
6741 set dummy cmp; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_CMP+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6772 if test -n "$CMP"; then
6773 { echo "$as_me:$LINENO: result: $CMP" >&5
6774 echo "${ECHO_T}$CMP" >&6; }
6776 { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6781 # Extract the first word of "cp", so it can be a program name with args.
6782 set dummy cp; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_CP+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6813 if test -n "$CP"; then
6814 { echo "$as_me:$LINENO: result: $CP" >&5
6815 echo "${ECHO_T}$CP" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6822 # Extract the first word of "date", so it can be a program name with args.
6823 set dummy date; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_path_DATE+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6853 DATE=$ac_cv_path_DATE
6854 if test -n "$DATE"; then
6855 { echo "$as_me:$LINENO: result: $DATE" >&5
6856 echo "${ECHO_T}$DATE" >&6; }
6858 { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6863 # Extract the first word of "find", so it can be a program name with args.
6864 set dummy find; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_FIND+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6894 FIND=$ac_cv_path_FIND
6895 if test -n "$FIND"; then
6896 { echo "$as_me:$LINENO: result: $FIND" >&5
6897 echo "${ECHO_T}$FIND" >&6; }
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6904 # Extract the first word of "grep", so it can be a program name with args.
6905 set dummy grep; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_GREP+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6935 GREP=$ac_cv_path_GREP
6936 if test -n "$GREP"; then
6937 { echo "$as_me:$LINENO: result: $GREP" >&5
6938 echo "${ECHO_T}$GREP" >&6; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6945 # Extract the first word of "mkdir", so it can be a program name with args.
6946 set dummy mkdir; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_MKDIR+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6976 MKDIR=$ac_cv_path_MKDIR
6977 if test -n "$MKDIR"; then
6978 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6979 echo "${ECHO_T}$MKDIR" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6986 # Extract the first word of "mv", so it can be a program name with args.
6987 set dummy mv; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_MV+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7018 if test -n "$MV"; then
7019 { echo "$as_me:$LINENO: result: $MV" >&5
7020 echo "${ECHO_T}$MV" >&6; }
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_RANLIB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 if test -n "$RANLIB"; then
7036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 RANLIB=$ac_cv_prog_RANLIB
7056 if test -n "$RANLIB"; then
7057 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7058 echo "${ECHO_T}$RANLIB" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7066 if test -z "$ac_cv_prog_RANLIB"; then
7067 ac_ct_RANLIB=$RANLIB
7068 # Extract the first word of "ranlib", so it can be a program name with args.
7069 set dummy ranlib; ac_word=$2
7070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 if test -n "$ac_ct_RANLIB"; then
7076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_prog_ac_ct_RANLIB="ranlib"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7096 if test -n "$ac_ct_RANLIB"; then
7097 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7098 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7100 { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7104 if test "x$ac_ct_RANLIB" = x; then
7107 case $cross_compiling:$ac_tool_warned in
7109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7110 whose name does not start with the host triplet. If you think this
7111 configuration is useful to you, please write to autoconf@gnu.org." >&5
7112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7113 whose name does not start with the host triplet. If you think this
7114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7115 ac_tool_warned=yes ;;
7117 RANLIB=$ac_ct_RANLIB
7120 RANLIB="$ac_cv_prog_RANLIB"
7123 if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7125 set dummy ${ac_tool_prefix}ar; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_prog_AR+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 if test -n "$AR"; then
7132 ac_cv_prog_AR="$AR" # Let the user override the test.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_prog_AR="${ac_tool_prefix}ar"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 if test -n "$AR"; then
7153 { echo "$as_me:$LINENO: result: $AR" >&5
7154 echo "${ECHO_T}$AR" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7162 if test -z "$ac_cv_prog_AR"; then
7164 # Extract the first word of "ar", so it can be a program name with args.
7165 set dummy ar; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 if test -n "$ac_ct_AR"; then
7172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_prog_ac_ct_AR="ar"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7192 if test -n "$ac_ct_AR"; then
7193 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7194 echo "${ECHO_T}$ac_ct_AR" >&6; }
7196 { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7200 if test "x$ac_ct_AR" = x; then
7203 case $cross_compiling:$ac_tool_warned in
7205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7206 whose name does not start with the host triplet. If you think this
7207 configuration is useful to you, please write to autoconf@gnu.org." >&5
7208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet. If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7211 ac_tool_warned=yes ;;
7219 # Extract the first word of "rm", so it can be a program name with args.
7220 set dummy rm; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_RM+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7251 if test -n "$RM"; then
7252 { echo "$as_me:$LINENO: result: $RM" >&5
7253 echo "${ECHO_T}$RM" >&6; }
7255 { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7260 # Extract the first word of "sed", so it can be a program name with args.
7261 set dummy sed; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_SED+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7292 if test -n "$SED"; then
7293 { echo "$as_me:$LINENO: result: $SED" >&5
7294 echo "${ECHO_T}$SED" >&6; }
7296 { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7301 # Extract the first word of "tar", so it can be a program name with args.
7302 set dummy tar; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_TAR+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7333 if test -n "$TAR"; then
7334 { echo "$as_me:$LINENO: result: $TAR" >&5
7335 echo "${ECHO_T}$TAR" >&6; }
7337 { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7342 # Extract the first word of "pwd", so it can be a program name with args.
7343 set dummy pwd; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_BINPWD+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7373 BINPWD=$ac_cv_path_BINPWD
7374 if test -n "$BINPWD"; then
7375 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7376 echo "${ECHO_T}$BINPWD" >&6; }
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7384 # Extract the first word of "Graphviz", so it can be a program name with args.
7385 set dummy Graphviz; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7415 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7416 if test -n "$GRAPHVIZ"; then
7417 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7418 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7420 { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7425 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_GRAPHVIZ 1
7431 if test "$llvm_cv_os_type" = "MingW" ; then
7432 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7435 cat >>confdefs.h <<_ACEOF
7436 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7440 # Extract the first word of "dot", so it can be a program name with args.
7441 set dummy dot; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_path_DOT+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7472 if test -n "$DOT"; then
7473 { echo "$as_me:$LINENO: result: $DOT" >&5
7474 echo "${ECHO_T}$DOT" >&6; }
7476 { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7481 if test "$DOT" != "echo dot" ; then
7483 cat >>confdefs.h <<\_ACEOF
7487 if test "$llvm_cv_os_type" = "MingW" ; then
7488 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7491 cat >>confdefs.h <<_ACEOF
7492 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7496 # Extract the first word of "fdp", so it can be a program name with args.
7497 set dummy fdp; ac_word=$2
7498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7500 if test "${ac_cv_path_FDP+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7528 if test -n "$FDP"; then
7529 { echo "$as_me:$LINENO: result: $FDP" >&5
7530 echo "${ECHO_T}$FDP" >&6; }
7532 { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7537 if test "$FDP" != "echo fdp" ; then
7539 cat >>confdefs.h <<\_ACEOF
7543 if test "$llvm_cv_os_type" = "MingW" ; then
7544 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7547 cat >>confdefs.h <<_ACEOF
7548 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7552 # Extract the first word of "neato", so it can be a program name with args.
7553 set dummy neato; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_NEATO+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7583 NEATO=$ac_cv_path_NEATO
7584 if test -n "$NEATO"; then
7585 { echo "$as_me:$LINENO: result: $NEATO" >&5
7586 echo "${ECHO_T}$NEATO" >&6; }
7588 { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7593 if test "$NEATO" != "echo neato" ; then
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_NEATO 1
7599 if test "$llvm_cv_os_type" = "MingW" ; then
7600 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7603 cat >>confdefs.h <<_ACEOF
7604 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7608 # Extract the first word of "twopi", so it can be a program name with args.
7609 set dummy twopi; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_TWOPI+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7639 TWOPI=$ac_cv_path_TWOPI
7640 if test -n "$TWOPI"; then
7641 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7642 echo "${ECHO_T}$TWOPI" >&6; }
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7649 if test "$TWOPI" != "echo twopi" ; then
7651 cat >>confdefs.h <<\_ACEOF
7652 #define HAVE_TWOPI 1
7655 if test "$llvm_cv_os_type" = "MingW" ; then
7656 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7659 cat >>confdefs.h <<_ACEOF
7660 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7664 # Extract the first word of "circo", so it can be a program name with args.
7665 set dummy circo; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_CIRCO+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7695 CIRCO=$ac_cv_path_CIRCO
7696 if test -n "$CIRCO"; then
7697 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7698 echo "${ECHO_T}$CIRCO" >&6; }
7700 { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7705 if test "$CIRCO" != "echo circo" ; then
7707 cat >>confdefs.h <<\_ACEOF
7708 #define HAVE_CIRCO 1
7711 if test "$llvm_cv_os_type" = "MingW" ; then
7712 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7715 cat >>confdefs.h <<_ACEOF
7716 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7720 for ac_prog in gv gsview32
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726 if test "${ac_cv_path_GV+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 if test -n "$GV"; then
7754 { echo "$as_me:$LINENO: result: $GV" >&5
7755 echo "${ECHO_T}$GV" >&6; }
7757 { echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6; }
7762 test -n "$GV" && break
7764 test -n "$GV" || GV="echo gv"
7766 if test "$GV" != "echo gv" ; then
7768 cat >>confdefs.h <<\_ACEOF
7772 if test "$llvm_cv_os_type" = "MingW" ; then
7773 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7776 cat >>confdefs.h <<_ACEOF
7777 #define LLVM_PATH_GV "$GV${EXEEXT}"
7781 # Extract the first word of "dotty", so it can be a program name with args.
7782 set dummy dotty; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_DOTTY+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7812 DOTTY=$ac_cv_path_DOTTY
7813 if test -n "$DOTTY"; then
7814 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7815 echo "${ECHO_T}$DOTTY" >&6; }
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7822 if test "$DOTTY" != "echo dotty" ; then
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_DOTTY 1
7828 if test "$llvm_cv_os_type" = "MingW" ; then
7829 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7832 cat >>confdefs.h <<_ACEOF
7833 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7839 # Extract the first word of "perl", so it can be a program name with args.
7840 set dummy perl; ac_word=$2
7841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843 if test "${ac_cv_path_PERL+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7870 PERL=$ac_cv_path_PERL
7871 if test -n "$PERL"; then
7872 { echo "$as_me:$LINENO: result: $PERL" >&5
7873 echo "${ECHO_T}$PERL" >&6; }
7875 { echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6; }
7880 if test "$PERL" != "none"; then
7881 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7882 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7883 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7884 { echo "$as_me:$LINENO: result: yes" >&5
7885 echo "${ECHO_T}yes" >&6; }
7888 { echo "$as_me:$LINENO: result: not found" >&5
7889 echo "${ECHO_T}not found" >&6; }
7894 if test x"$PERL" = xnone; then
7897 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7898 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7899 { (exit 1); exit 1; }; }
7905 # Find a good install program. We prefer a C program (faster),
7906 # so one script is as good as another. But avoid the broken or
7907 # incompatible versions:
7908 # SysV /etc/install, /usr/sbin/install
7909 # SunOS /usr/etc/install
7910 # IRIX /sbin/install
7912 # AmigaOS /C/install, which installs bootblocks on floppy discs
7913 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7914 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7915 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7916 # OS/2's system install, which has a completely different semantic
7917 # ./install, which can be erroneously created by make from ./install.sh.
7918 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7919 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7920 if test -z "$INSTALL"; then
7921 if test "${ac_cv_path_install+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir=.
7929 # Account for people who put trailing slashes in PATH elements.
7931 ./ | .// | /cC/* | \
7932 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7933 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7936 # OSF1 and SCO ODT 3.0 have their own names for install.
7937 # Don't use installbsd from OSF since it installs stuff as root
7939 for ac_prog in ginstall scoinst install; do
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7942 if test $ac_prog = install &&
7943 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7944 # AIX install. It has an incompatible calling convention.
7946 elif test $ac_prog = install &&
7947 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7948 # program-specific install script used by HP pwplus--don't use.
7951 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7964 if test "${ac_cv_path_install+set}" = set; then
7965 INSTALL=$ac_cv_path_install
7967 # As a last resort, use the slow shell script. Don't cache a
7968 # value for INSTALL within a source directory, because that will
7969 # break other packages using the cache if that directory is
7970 # removed, or if the value is a relative name.
7971 INSTALL=$ac_install_sh
7974 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7975 echo "${ECHO_T}$INSTALL" >&6; }
7977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7978 # It thinks the first close brace ends the variable substitution.
7979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7986 [\\/$]* | ?:[\\/]* ) ;;
7987 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7990 # Extract the first word of "bzip2", so it can be a program name with args.
7991 set dummy bzip2; ac_word=$2
7992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994 if test "${ac_cv_path_BZIP2+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 BZIP2=$ac_cv_path_BZIP2
8021 if test -n "$BZIP2"; then
8022 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8023 echo "${ECHO_T}$BZIP2" >&6; }
8025 { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8030 # Extract the first word of "cat", so it can be a program name with args.
8031 set dummy cat; ac_word=$2
8032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034 if test "${ac_cv_path_CAT+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 if test -n "$CAT"; then
8062 { echo "$as_me:$LINENO: result: $CAT" >&5
8063 echo "${ECHO_T}$CAT" >&6; }
8065 { echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6; }
8070 # Extract the first word of "doxygen", so it can be a program name with args.
8071 set dummy doxygen; ac_word=$2
8072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8074 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 DOXYGEN=$ac_cv_path_DOXYGEN
8101 if test -n "$DOXYGEN"; then
8102 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8103 echo "${ECHO_T}$DOXYGEN" >&6; }
8105 { echo "$as_me:$LINENO: result: no" >&5
8106 echo "${ECHO_T}no" >&6; }
8110 # Extract the first word of "groff", so it can be a program name with args.
8111 set dummy groff; ac_word=$2
8112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8114 if test "${ac_cv_path_GROFF+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 GROFF=$ac_cv_path_GROFF
8141 if test -n "$GROFF"; then
8142 { echo "$as_me:$LINENO: result: $GROFF" >&5
8143 echo "${ECHO_T}$GROFF" >&6; }
8145 { echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6; }
8150 # Extract the first word of "gzip", so it can be a program name with args.
8151 set dummy gzip; ac_word=$2
8152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8154 if test "${ac_cv_path_GZIP+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 GZIP=$ac_cv_path_GZIP
8181 if test -n "$GZIP"; then
8182 { echo "$as_me:$LINENO: result: $GZIP" >&5
8183 echo "${ECHO_T}$GZIP" >&6; }
8185 { echo "$as_me:$LINENO: result: no" >&5
8186 echo "${ECHO_T}no" >&6; }
8190 # Extract the first word of "pod2html", so it can be a program name with args.
8191 set dummy pod2html; ac_word=$2
8192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194 if test "${ac_cv_path_POD2HTML+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8209 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 POD2HTML=$ac_cv_path_POD2HTML
8221 if test -n "$POD2HTML"; then
8222 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8223 echo "${ECHO_T}$POD2HTML" >&6; }
8225 { echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6; }
8230 # Extract the first word of "pod2man", so it can be a program name with args.
8231 set dummy pod2man; ac_word=$2
8232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8234 if test "${ac_cv_path_POD2MAN+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 POD2MAN=$ac_cv_path_POD2MAN
8261 if test -n "$POD2MAN"; then
8262 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8263 echo "${ECHO_T}$POD2MAN" >&6; }
8265 { echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6; }
8270 # Extract the first word of "pdfroff", so it can be a program name with args.
8271 set dummy pdfroff; ac_word=$2
8272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8274 if test "${ac_cv_path_PDFROFF+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 PDFROFF=$ac_cv_path_PDFROFF
8301 if test -n "$PDFROFF"; then
8302 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8303 echo "${ECHO_T}$PDFROFF" >&6; }
8305 { echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6; }
8310 # Extract the first word of "runtest", so it can be a program name with args.
8311 set dummy runtest; ac_word=$2
8312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8314 if test "${ac_cv_path_RUNTEST+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 RUNTEST=$ac_cv_path_RUNTEST
8341 if test -n "$RUNTEST"; then
8342 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8343 echo "${ECHO_T}$RUNTEST" >&6; }
8345 { echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6; }
8352 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8353 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8355 # Check whether --with-tclinclude was given.
8356 if test "${with_tclinclude+set}" = set; then
8357 withval=$with_tclinclude; with_tclinclude=${withval}
8362 if test "${ac_cv_path_tclsh+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 if test x"${with_tclinclude}" != x ; then
8367 if test -f ${with_tclinclude}/tclsh ; then
8368 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8369 elif test -f ${with_tclinclude}/src/tclsh ; then
8370 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8372 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8373 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8374 { (exit 1); exit 1; }; }
8380 if test x"${ac_cv_path_tclsh}" = x ; then
8381 { echo "$as_me:$LINENO: result: none" >&5
8382 echo "${ECHO_T}none" >&6; }
8383 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
8385 # Extract the first word of "$ac_prog", so it can be a program name with args.
8386 set dummy $ac_prog; ac_word=$2
8387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8389 if test "${ac_cv_path_TCLSH+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8404 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 TCLSH=$ac_cv_path_TCLSH
8416 if test -n "$TCLSH"; then
8417 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8418 echo "${ECHO_T}$TCLSH" >&6; }
8420 { echo "$as_me:$LINENO: result: no" >&5
8421 echo "${ECHO_T}no" >&6; }
8425 test -n "$TCLSH" && break
8428 if test x"${TCLSH}" = x ; then
8429 ac_cv_path_tclsh='';
8431 ac_cv_path_tclsh="${TCLSH}";
8434 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8435 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8436 TCLSH="${ac_cv_path_tclsh}"
8440 # Extract the first word of "zip", so it can be a program name with args.
8441 set dummy zip; ac_word=$2
8442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8444 if test "${ac_cv_path_ZIP+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8459 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 if test -n "$ZIP"; then
8472 { echo "$as_me:$LINENO: result: $ZIP" >&5
8473 echo "${ECHO_T}$ZIP" >&6; }
8475 { echo "$as_me:$LINENO: result: no" >&5
8476 echo "${ECHO_T}no" >&6; }
8480 for ac_prog in ocamlc
8482 # Extract the first word of "$ac_prog", so it can be a program name with args.
8483 set dummy $ac_prog; ac_word=$2
8484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8486 if test "${ac_cv_path_OCAMLC+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8501 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 OCAMLC=$ac_cv_path_OCAMLC
8513 if test -n "$OCAMLC"; then
8514 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8515 echo "${ECHO_T}$OCAMLC" >&6; }
8517 { echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6; }
8522 test -n "$OCAMLC" && break
8525 for ac_prog in ocamlopt
8527 # Extract the first word of "$ac_prog", so it can be a program name with args.
8528 set dummy $ac_prog; ac_word=$2
8529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8531 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8546 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 OCAMLOPT=$ac_cv_path_OCAMLOPT
8558 if test -n "$OCAMLOPT"; then
8559 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8560 echo "${ECHO_T}$OCAMLOPT" >&6; }
8562 { echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6; }
8567 test -n "$OCAMLOPT" && break
8570 for ac_prog in ocamldep
8572 # Extract the first word of "$ac_prog", so it can be a program name with args.
8573 set dummy $ac_prog; ac_word=$2
8574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8576 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8591 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 OCAMLDEP=$ac_cv_path_OCAMLDEP
8603 if test -n "$OCAMLDEP"; then
8604 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8605 echo "${ECHO_T}$OCAMLDEP" >&6; }
8607 { echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6; }
8612 test -n "$OCAMLDEP" && break
8615 for ac_prog in ocamldoc
8617 # Extract the first word of "$ac_prog", so it can be a program name with args.
8618 set dummy $ac_prog; ac_word=$2
8619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8621 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 test -z "$as_dir" && as_dir=.
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8636 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 OCAMLDOC=$ac_cv_path_OCAMLDOC
8648 if test -n "$OCAMLDOC"; then
8649 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8650 echo "${ECHO_T}$OCAMLDOC" >&6; }
8652 { echo "$as_me:$LINENO: result: no" >&5
8653 echo "${ECHO_T}no" >&6; }
8657 test -n "$OCAMLDOC" && break
8660 for ac_prog in gas as
8662 # Extract the first word of "$ac_prog", so it can be a program name with args.
8663 set dummy $ac_prog; ac_word=$2
8664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8666 if test "${ac_cv_path_GAS+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 if test -n "$GAS"; then
8694 { echo "$as_me:$LINENO: result: $GAS" >&5
8695 echo "${ECHO_T}$GAS" >&6; }
8697 { echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6; }
8702 test -n "$GAS" && break
8706 { echo "$as_me:$LINENO: checking for linker version" >&5
8707 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8708 if test "${llvm_cv_link_version+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 version_string="$(ld -v 2>&1 | head -1)"
8715 if (echo "$version_string" | grep -q "ld64"); then
8716 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8718 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8722 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8723 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8725 cat >>confdefs.h <<_ACEOF
8726 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8731 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8732 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8733 if test "${llvm_cv_link_use_r+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 ac_cpp='$CPP $CPPFLAGS'
8738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743 CFLAGS="$CFLAGS -Wl,-R."
8744 cat >conftest.$ac_ext <<_ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_link") 2>conftest.er1
8768 grep -v '^ *+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8774 { (case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_try") 2>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (case "(($ac_try" in
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_try") 2>&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 llvm_cv_link_use_r=yes
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 llvm_cv_link_use_r=no
8801 rm -f core conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8805 ac_cpp='$CPP $CPPFLAGS'
8806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8812 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8813 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8814 if test "$llvm_cv_link_use_r" = yes ; then
8816 cat >>confdefs.h <<\_ACEOF
8817 #define HAVE_LINK_R 1
8823 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8824 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8825 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 ac_cpp='$CPP $CPPFLAGS'
8830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8835 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8836 cat >conftest.$ac_ext <<_ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (ac_try="$ac_link"
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_link") 2>conftest.er1
8860 grep -v '^ *+' conftest.er1 >conftest.err
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8866 { (case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_try") 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_try") 2>&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 llvm_cv_link_use_export_dynamic=yes
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8890 llvm_cv_link_use_export_dynamic=no
8893 rm -f core conftest.err conftest.$ac_objext \
8894 conftest$ac_exeext conftest.$ac_ext
8897 ac_cpp='$CPP $CPPFLAGS'
8898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8904 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8905 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8906 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_LINK_EXPORT_DYNAMIC 1
8915 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8916 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8917 if test "${llvm_cv_link_use_version_script+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 ac_cpp='$CPP $CPPFLAGS'
8922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8928 # The following code is from the autoconf manual,
8929 # "11.13: Limitations of Usual Tools".
8930 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8931 # Use mktemp if possible; otherwise fall back on mkdir,
8932 # with $RANDOM to make collisions less likely.
8936 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8938 test -n "$tmp" && test -d "$tmp"
8940 tmp=$TMPDIR/foo$$-$RANDOM
8941 (umask 077 && mkdir "$tmp")
8944 echo "{" > "$tmp/export.map"
8945 echo " global: main;" >> "$tmp/export.map"
8946 echo " local: *;" >> "$tmp/export.map"
8947 echo "};" >> "$tmp/export.map"
8949 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8950 cat >conftest.$ac_ext <<_ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (ac_try="$ac_link"
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972 (eval "$ac_link") 2>conftest.er1
8974 grep -v '^ *+' conftest.er1 >conftest.err
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest$ac_exeext'
8990 { (case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_try") 2>&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 llvm_cv_link_use_version_script=yes
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 llvm_cv_link_use_version_script=no
9007 rm -f core conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
9009 rm "$tmp/export.map"
9013 ac_cpp='$CPP $CPPFLAGS'
9014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9020 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9021 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9022 if test "$llvm_cv_link_use_version_script" = yes ; then
9023 HAVE_LINK_VERSION_SCRIPT=1
9030 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9032 if test "${ac_cv_c_const+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 cat >conftest.$ac_ext <<_ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9045 /* FIXME: Include the comments suggested by Paul. */
9047 /* Ultrix mips cc rejects this. */
9048 typedef int charset[2];
9050 /* SunOS 4.1.1 cc rejects this. */
9051 char const *const *ccp;
9053 /* NEC SVR4.0.2 mips cc rejects this. */
9054 struct point {int x, y;};
9055 static struct point const zero = {0,0};
9056 /* AIX XL C 1.02.0.0 rejects this.
9057 It does not let you subtract one const X* pointer from another in
9058 an arm of an if-expression whose if-part is not a constant
9060 const char *g = "string";
9061 ccp = &g + (g ? g-g : 0);
9062 /* HPUX 7.0 cc rejects these. */
9065 ccp = (char const *const *) p;
9066 { /* SCO 3.2v4 cc rejects this. */
9068 char const *s = 0 ? (char *) 0 : (char const *) 0;
9073 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9075 const int *foo = &x[0];
9078 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9079 typedef const int *iptr;
9083 { /* AIX XL C 1.02.0.0 rejects this saying
9084 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9085 struct s { int j; const int *ap[3]; };
9086 struct s *b; b->j = 5;
9088 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9092 return !x[0] && !zero.x;
9099 rm -f conftest.$ac_objext
9100 if { (ac_try="$ac_compile"
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106 (eval "$ac_compile") 2>conftest.er1
9108 grep -v '^ *+' conftest.er1 >conftest.err
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9114 { (case "(($ac_try" in
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_try") 2>&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; } &&
9123 { ac_try='test -s conftest.$ac_objext'
9124 { (case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_try") 2>&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9144 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9145 if test $ac_cv_c_const = no; then
9147 cat >>confdefs.h <<\_ACEOF
9159 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9160 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9161 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9162 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 cat >conftest.$ac_ext <<_ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 #include <sys/types.h>
9184 rm -f conftest.$ac_objext
9185 if { (ac_try="$ac_compile"
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_compile") 2>conftest.er1
9193 grep -v '^ *+' conftest.er1 >conftest.err
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9199 { (case "(($ac_try" in
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204 (eval "$ac_try") 2>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (case "(($ac_try" in
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_try") 2>&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); }; }; then
9218 eval "$as_ac_Header=yes"
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 eval "$as_ac_Header=no"
9226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228 ac_res=`eval echo '${'$as_ac_Header'}'`
9229 { echo "$as_me:$LINENO: result: $ac_res" >&5
9230 echo "${ECHO_T}$ac_res" >&6; }
9231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9232 cat >>confdefs.h <<_ACEOF
9233 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9236 ac_header_dirent=$ac_hdr; break
9240 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9241 if test $ac_header_dirent = dirent.h; then
9242 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9243 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9244 if test "${ac_cv_search_opendir+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 ac_func_search_save_LIBS=$LIBS
9248 cat >conftest.$ac_ext <<_ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9255 /* Override any GCC internal prototype to avoid an error.
9256 Use char because int might match the return type of a GCC
9257 builtin and then its argument prototype would still apply. */
9270 for ac_lib in '' dir; do
9271 if test -z "$ac_lib"; then
9272 ac_res="none required"
9275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (ac_try="$ac_link"
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_link") 2>conftest.er1
9286 grep -v '^ *+' conftest.er1 >conftest.err
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9292 { (case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_try") 2>&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest$ac_exeext'
9302 { (case "(($ac_try" in
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_try") 2>&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_search_opendir=$ac_res
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9319 rm -f core conftest.err conftest.$ac_objext \
9321 if test "${ac_cv_search_opendir+set}" = set; then
9325 if test "${ac_cv_search_opendir+set}" = set; then
9328 ac_cv_search_opendir=no
9331 LIBS=$ac_func_search_save_LIBS
9333 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9334 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9335 ac_res=$ac_cv_search_opendir
9336 if test "$ac_res" != no; then
9337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9342 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9343 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9344 if test "${ac_cv_search_opendir+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 ac_func_search_save_LIBS=$LIBS
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9370 for ac_lib in '' x; do
9371 if test -z "$ac_lib"; then
9372 ac_res="none required"
9375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_link") 2>conftest.er1
9386 grep -v '^ *+' conftest.er1 >conftest.err
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9392 { (case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_try") 2>&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest$ac_exeext'
9402 { (case "(($ac_try" in
9403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9404 *) ac_try_echo=$ac_try;;
9406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9407 (eval "$ac_try") 2>&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_search_opendir=$ac_res
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9419 rm -f core conftest.err conftest.$ac_objext \
9421 if test "${ac_cv_search_opendir+set}" = set; then
9425 if test "${ac_cv_search_opendir+set}" = set; then
9428 ac_cv_search_opendir=no
9431 LIBS=$ac_func_search_save_LIBS
9433 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9434 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9435 ac_res=$ac_cv_search_opendir
9436 if test "$ac_res" != no; then
9437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9444 for ac_header in dlfcn.h
9446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 ac_res=`eval echo '${'$as_ac_Header'}'`
9454 { echo "$as_me:$LINENO: result: $ac_res" >&5
9455 echo "${ECHO_T}$ac_res" >&6; }
9457 # Is the header compilable?
9458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9460 cat >conftest.$ac_ext <<_ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 $ac_includes_default
9467 #include <$ac_header>
9469 rm -f conftest.$ac_objext
9470 if { (ac_try="$ac_compile"
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_compile") 2>conftest.er1
9478 grep -v '^ *+' conftest.er1 >conftest.err
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484 { (case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest.$ac_objext'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_header_compiler=yes
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ac_header_compiler=no
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9513 echo "${ECHO_T}$ac_header_compiler" >&6; }
9515 # Is the header present?
9516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9518 cat >conftest.$ac_ext <<_ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 #include <$ac_header>
9526 if { (ac_try="$ac_cpp conftest.$ac_ext"
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9534 grep -v '^ *+' conftest.er1 >conftest.err
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } >/dev/null; then
9539 if test -s conftest.err; then
9540 ac_cpp_err=$ac_c_preproc_warn_flag
9541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9548 if test -z "$ac_cpp_err"; then
9549 ac_header_preproc=yes
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_header_preproc=no
9557 rm -f conftest.err conftest.$ac_ext
9558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6; }
9561 # So? What about this header?
9562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568 ac_header_preproc=yes
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9584 ## ----------------------------------- ##
9585 ## Report this to llvmbugs@cs.uiuc.edu ##
9586 ## ----------------------------------- ##
9588 ) | sed "s/^/$as_me: WARNING: /" >&2
9591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 eval "$as_ac_Header=\$ac_header_preproc"
9598 ac_res=`eval echo '${'$as_ac_Header'}'`
9599 { echo "$as_me:$LINENO: result: $ac_res" >&5
9600 echo "${ECHO_T}$ac_res" >&6; }
9603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9612 # Check whether --enable-ltdl-install was given.
9613 if test "${enable_ltdl_install+set}" = set; then
9614 enableval=$enable_ltdl_install;
9620 if test x"${enable_ltdl_install-no}" != xno; then
9622 INSTALL_LTDL_FALSE='#'
9624 INSTALL_LTDL_TRUE='#'
9630 if test x"${enable_ltdl_convenience-no}" != xno; then
9631 CONVENIENCE_LTDL_TRUE=
9632 CONVENIENCE_LTDL_FALSE='#'
9634 CONVENIENCE_LTDL_TRUE='#'
9635 CONVENIENCE_LTDL_FALSE=
9639 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9640 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9642 libname_spec='lib$name'
9650 shlibpath_overrides_runpath=unknown
9652 dynamic_linker="$host_os ld.so"
9653 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9654 if test "$GCC" = yes; then
9655 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9656 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9657 # if the path contains ";" then we assume it to be the separator
9658 # otherwise default to the standard path separator (i.e. ":") - it is
9659 # assumed that no part of a normal pathname contains ";" but that should
9660 # okay in the real world where ";" in dirpaths is itself problematic.
9661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9668 need_lib_prefix=unknown
9669 hardcode_into_libs=no
9671 # when you set need_version to no, make sure it does not cause -set_version
9672 # flags to be left without arguments
9673 need_version=unknown
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9679 shlibpath_var=LIBPATH
9681 # AIX 3 has no versioning support, so we append a major version to the name.
9682 soname_spec='${libname}${release}${shared_ext}$major'
9689 hardcode_into_libs=yes
9690 if test "$host_cpu" = ia64; then
9691 # AIX 5 supports IA64
9692 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9693 shlibpath_var=LD_LIBRARY_PATH
9695 # With GCC up to 2.95.x, collect2 would create an import file
9696 # for dependence libraries. The import file would start with
9697 # the line `#! .'. This would cause the generated library to
9698 # depend on `.', always an invalid library. This was fixed in
9699 # development snapshots of GCC prior to 3.0.
9701 aix4 | aix4.[01] | aix4.[01].*)
9702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9704 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9711 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9712 # soname into executable. Probably we can add versioning support to
9713 # collect2, so additional links can be useful in future.
9714 if test "$aix_use_runtimelinking" = yes; then
9715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9716 # instead of lib<name>.a to let people know that these are not
9717 # typical AIX shared libraries.
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 # We preserve .a as extension for shared libraries through AIX4.2
9721 # and later when we are not doing run time linking.
9722 library_names_spec='${libname}${release}.a $libname.a'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LIBPATH
9730 library_names_spec='$libname.ixlibrary $libname.a'
9731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9732 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'
9736 library_names_spec='${libname}${shared_ext}'
9737 dynamic_linker="$host_os ld.so"
9738 shlibpath_var=LIBRARY_PATH
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9750 # the default ld.so.conf also contains /usr/contrib/lib and
9751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9752 # libtool to hard-code these into programs
9755 cygwin* | mingw* | pw32*)
9756 version_type=windows
9761 case $GCC,$host_os in
9762 yes,cygwin* | yes,mingw* | yes,pw32*)
9763 library_names_spec='$libname.dll.a'
9764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9765 postinstall_cmds='base_file=`basename \${file}`~
9766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9767 dldir=$destdir/`dirname \$dlpath`~
9768 test -d \$dldir || mkdir -p \$dldir~
9769 $install_prog $dir/$dlname \$dldir/$dlname~
9770 chmod a+x \$dldir/$dlname'
9771 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9772 dlpath=$dir/\$dldll~
9774 shlibpath_overrides_runpath=yes
9778 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9779 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9780 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9783 # MinGW DLLs use traditional 'lib' prefix
9784 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9786 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9787 # It is most probably a Windows format PATH printed by
9788 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9789 # path with ; separators, and with drive letters. We can handle the
9790 # drive letters (cygwin fileutils understands them), so leave them,
9791 # especially as we might pass files found there to a mingw objdump,
9792 # which wouldn't understand a cygwinified path. Ahh.
9793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9799 # pw32 DLLs use 'pw' prefix rather than 'lib'
9800 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9806 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9809 dynamic_linker='Win32 ld.exe'
9810 # FIXME: first we should search . and the directory the executable is in
9814 darwin* | rhapsody*)
9815 dynamic_linker="$host_os dyld"
9819 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9820 soname_spec='${libname}${release}${major}$shared_ext'
9821 shlibpath_overrides_runpath=yes
9822 shlibpath_var=DYLD_LIBRARY_PATH
9823 shrext_cmds='.dylib'
9824 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9825 if test "$GCC" = yes; then
9826 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"`
9828 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 shlibpath_var=LD_LIBRARY_PATH
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 shlibpath_overrides_runpath=no
9854 hardcode_into_libs=yes
9855 dynamic_linker='GNU ld.so'
9858 freebsd* | dragonfly*)
9859 # DragonFly does not have aout. When/if they implement a new
9860 # versioning mechanism, adjust this.
9861 if test -x /usr/bin/objformat; then
9862 objformat=`/usr/bin/objformat`
9865 freebsd[123]*) objformat=aout ;;
9869 version_type=freebsd-$objformat
9870 case $version_type in
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9881 shlibpath_var=LD_LIBRARY_PATH
9884 shlibpath_overrides_runpath=yes
9886 freebsd3.[01]* | freebsdelf3.[01]*)
9887 shlibpath_overrides_runpath=yes
9888 hardcode_into_libs=yes
9890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9892 shlibpath_overrides_runpath=no
9893 hardcode_into_libs=yes
9895 freebsd*) # from 4.6 on
9896 shlibpath_overrides_runpath=yes
9897 hardcode_into_libs=yes
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 hardcode_into_libs=yes
9912 hpux9* | hpux10* | hpux11*)
9913 # Give a soname corresponding to the major version so that dld.sl refuses to
9914 # link against other versions.
9921 hardcode_into_libs=yes
9922 dynamic_linker="$host_os dld.so"
9923 shlibpath_var=LD_LIBRARY_PATH
9924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 if test "X$HPUX_IA64_MODE" = X32; then
9928 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9930 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9936 hardcode_into_libs=yes
9937 dynamic_linker="$host_os dld.sl"
9938 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9947 dynamic_linker="$host_os dld.sl"
9948 shlibpath_var=SHLIB_PATH
9949 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951 soname_spec='${libname}${release}${shared_ext}$major'
9954 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9955 postinstall_cmds='chmod 555 $lib'
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=no
9967 hardcode_into_libs=yes
9970 irix5* | irix6* | nonstopux*)
9972 nonstopux*) version_type=nonstopux ;;
9974 if test "$lt_cv_prog_gnu_ld" = yes; then
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9985 irix5* | nonstopux*)
9989 case $LD in # libtool.m4 will add one of these switches to LD
9990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9991 libsuff= shlibsuff= libmagic=32-bit;;
9992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9993 libsuff=32 shlibsuff=N32 libmagic=N32;;
9994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9996 *) libsuff= shlibsuff= libmagic=never-match;;
10000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10001 shlibpath_overrides_runpath=no
10002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10004 hardcode_into_libs=yes
10007 # No shared lib support for Linux oldld, aout, or coff.
10008 linux*oldld* | linux*aout* | linux*coff*)
10012 # This must be Linux ELF.
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 shlibpath_overrides_runpath=no
10022 # This implies no fast_install, which is unacceptable.
10023 # Some rework will be needed to allow for fast_install
10024 # before this can be enabled.
10025 hardcode_into_libs=yes
10027 # Append ld.so.conf contents to the search path
10028 if test -f /etc/ld.so.conf; then
10029 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' ' '`
10030 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10033 # We used to test for /lib/ld.so.1 and disable shared libraries on
10034 # powerpc, because MkLinux only supported shared libraries with the
10035 # GNU dynamic linker. Since this was broken with cross compilers,
10036 # most powerpc-linux boxes support dynamic linking these days and
10037 # people can always --disable-shared, the test was removed, and we
10038 # assume the GNU/Linux dynamic linker is in use.
10039 dynamic_linker='GNU/Linux ld.so'
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10047 soname_spec='${libname}${release}${shared_ext}$major'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=no
10050 hardcode_into_libs=yes
10051 dynamic_linker='GNU ld.so'
10058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10061 dynamic_linker='NetBSD (a.out) ld.so'
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 dynamic_linker='NetBSD ld.elf_so'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=yes
10069 hardcode_into_libs=yes
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=yes
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 shlibpath_overrides_runpath=yes
10091 sys_lib_dlsearch_path_spec="/usr/lib"
10093 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10095 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10096 *) need_version=no ;;
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10103 openbsd2.[89] | openbsd2.[89].*)
10104 shlibpath_overrides_runpath=no
10107 shlibpath_overrides_runpath=yes
10111 shlibpath_overrides_runpath=yes
10116 libname_spec='$name'
10119 library_names_spec='$libname${shared_ext} $libname.a'
10120 dynamic_linker='OS/2 ld.exe'
10121 shlibpath_var=LIBPATH
10124 osf3* | osf4* | osf5*)
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10132 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=yes
10143 hardcode_into_libs=yes
10144 # ldd complains unless libraries are executable
10145 postinstall_cmds='chmod +x $lib'
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 shlibpath_overrides_runpath=yes
10154 if test "$with_gnu_ld" = yes; then
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 shlibpath_var=LD_LIBRARY_PATH
10165 case $host_vendor in
10167 shlibpath_overrides_runpath=no
10169 export_dynamic_flag_spec='${wl}-Blargedynsym'
10170 runpath_var=LD_RUN_PATH
10178 shlibpath_overrides_runpath=no
10179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10185 if test -d /usr/nec ;then
10187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10188 soname_spec='$libname${shared_ext}.$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10194 version_type=freebsd-elf
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 hardcode_into_libs=yes
10201 if test "$with_gnu_ld" = yes; then
10202 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10203 shlibpath_overrides_runpath=no
10205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10206 shlibpath_overrides_runpath=yes
10209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10213 sys_lib_dlsearch_path_spec='/usr/lib'
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10227 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10228 echo "${ECHO_T}$dynamic_linker" >&6; }
10229 test "$dynamic_linker" = no && can_build_shared=no
10231 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10232 if test "$GCC" = yes; then
10233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10237 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10238 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10239 if test "${libltdl_cv_shlibext+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 eval libltdl_cv_shlibext=$shrext_cmds
10247 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10248 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10249 if test -n "$libltdl_cv_shlibext"; then
10251 cat >>confdefs.h <<_ACEOF
10252 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10258 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10259 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10260 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 libltdl_cv_shlibpath_var="$shlibpath_var"
10265 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10266 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10267 if test -n "$libltdl_cv_shlibpath_var"; then
10269 cat >>confdefs.h <<_ACEOF
10270 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10276 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10277 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10278 if test "${libltdl_cv_sys_search_path+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10283 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10284 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10285 if test -n "$libltdl_cv_sys_search_path"; then
10287 for dir in $libltdl_cv_sys_search_path; do
10288 if test -z "$sys_search_path"; then
10289 sys_search_path="$dir"
10291 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10295 cat >>confdefs.h <<_ACEOF
10296 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10301 { echo "$as_me:$LINENO: checking for objdir" >&5
10302 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10303 if test "${libltdl_cv_objdir+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 libltdl_cv_objdir="$objdir"
10307 if test -n "$objdir"; then
10310 rm -f .libs 2>/dev/null
10311 mkdir .libs 2>/dev/null
10312 if test -d .libs; then
10313 libltdl_cv_objdir=.libs
10315 # MS-DOS does not allow filenames that begin with a dot.
10316 libltdl_cv_objdir=_libs
10318 rmdir .libs 2>/dev/null
10322 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10323 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10325 cat >>confdefs.h <<_ACEOF
10326 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10334 # Check for command to grab the raw symbol name followed by C symbol from nm.
10335 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10336 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10337 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 # These are sane defaults that work on at least a few old systems.
10342 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10344 # Character class describing NM global symbol codes.
10345 symcode='[BCDEGRST]'
10347 # Regexp to match symbols that can be accessed directly from C.
10348 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10350 # Transform an extracted symbol line into a proper C declaration
10351 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10353 # Transform an extracted symbol line into symbol name and symbol address
10354 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'"
10356 # Define system-specific variables.
10361 cygwin* | mingw* | pw32*)
10362 symcode='[ABCDGISTW]'
10364 hpux*) # Its linker distinguishes data from code symbols
10365 if test "$host_cpu" = ia64; then
10366 symcode='[ABCDEGRST]'
10368 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10369 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'"
10372 if test "$host_cpu" = ia64; then
10373 symcode='[ABCDGIRSTW]'
10374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10375 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'"
10378 irix* | nonstopux*)
10379 symcode='[BCDEGRST]'
10382 symcode='[BCDEGQRST]'
10393 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10401 # Handle CRLF in mingw tool chain
10405 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10409 # If we're using GNU nm, then use its standard symbol codes.
10410 case `$NM -V 2>&1` in
10411 *GNU* | *'with BFD'*)
10412 symcode='[ABCDGIRSTW]' ;;
10415 # Try without a prefix undercore, then with it.
10416 for ac_symprfx in "" "_"; do
10418 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10419 symxfrm="\\1 $ac_symprfx\\2 \\2"
10421 # Write the raw and C identifiers.
10422 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10424 # Check to see that the pipe works correctly.
10428 cat > conftest.$ac_ext <<EOF
10433 void nm_test_func(){}
10437 int main(){nm_test_var='a';nm_test_func();return(0);}
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441 (eval $ac_compile) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; then
10445 # Now try to grab the symbols.
10447 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10448 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && test -s "$nlist"; then
10452 # Try sorting and uniquifying the output.
10453 if sort "$nlist" | uniq > "$nlist"T; then
10454 mv -f "$nlist"T "$nlist"
10459 # Make sure that we snagged all the symbols we need.
10460 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10461 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10462 cat <<EOF > conftest.$ac_ext
10468 # Now generate the symbol file.
10469 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10471 cat <<EOF >> conftest.$ac_ext
10472 #if defined (__STDC__) && __STDC__
10473 # define lt_ptr_t void *
10475 # define lt_ptr_t char *
10479 /* The mapping between symbol names and symbols. */
10484 lt_preloaded_symbols[] =
10487 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10488 cat <<\EOF >> conftest.$ac_ext
10496 # Now try linking the two files.
10497 mv conftest.$ac_objext conftstm.$ac_objext
10498 lt_save_LIBS="$LIBS"
10499 lt_save_CFLAGS="$CFLAGS"
10500 LIBS="conftstm.$ac_objext"
10501 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10503 (eval $ac_link) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10509 LIBS="$lt_save_LIBS"
10510 CFLAGS="$lt_save_CFLAGS"
10512 echo "cannot find nm_test_func in $nlist" >&5
10515 echo "cannot find nm_test_var in $nlist" >&5
10518 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10521 echo "$progname: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10524 rm -f conftest* conftst*
10526 # Do not use the global_symbol_pipe unless it works.
10527 if test "$pipe_works" = yes; then
10530 lt_cv_sys_global_symbol_pipe=
10536 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10537 lt_cv_sys_global_symbol_to_cdecl=
10539 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10540 { echo "$as_me:$LINENO: result: failed" >&5
10541 echo "${ECHO_T}failed" >&6; }
10543 { echo "$as_me:$LINENO: result: ok" >&5
10544 echo "${ECHO_T}ok" >&6; }
10548 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10549 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10550 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10554 libltdl_cv_preloaded_symbols=yes
10556 libltdl_cv_preloaded_symbols=no
10560 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10561 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10562 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10564 cat >>confdefs.h <<\_ACEOF
10565 #define HAVE_PRELOADED_SYMBOLS 1
10573 ac_cpp='$CPP $CPPFLAGS'
10574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10579 { echo "$as_me:$LINENO: checking for shl_load" >&5
10580 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10581 if test "${ac_cv_func_shl_load+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10592 #define shl_load innocuous_shl_load
10594 /* System header to define __stub macros and hopefully few prototypes,
10595 which can conflict with char shl_load (); below.
10596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10597 <limits.h> exists even on freestanding compilers. */
10600 # include <limits.h>
10602 # include <assert.h>
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10614 /* The GNU C library defines this for functions which it implements
10615 to always fail with ENOSYS. Some functions are actually named
10616 something starting with __ and the normal name is an alias. */
10617 #if defined __stub_shl_load || defined __stub___shl_load
10624 return shl_load ();
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_link") 2>conftest.er1
10638 grep -v '^ *+' conftest.er1 >conftest.err
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644 { (case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_try") 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try='test -s conftest$ac_exeext'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_cv_func_shl_load=yes
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10668 ac_cv_func_shl_load=no
10671 rm -f core conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10675 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10676 if test $ac_cv_func_shl_load = yes; then
10678 cat >>confdefs.h <<\_ACEOF
10679 #define HAVE_SHL_LOAD 1
10683 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10684 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10685 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 ac_check_lib_save_LIBS=$LIBS
10690 cat >conftest.$ac_ext <<_ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10707 return shl_load ();
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_dld_shl_load=yes
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_lib_dld_shl_load=no
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10759 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10760 if test $ac_cv_lib_dld_shl_load = yes; then
10762 cat >>confdefs.h <<\_ACEOF
10763 #define HAVE_SHL_LOAD 1
10766 LIBADD_DL="$LIBADD_DL -ldld"
10768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 ac_check_lib_save_LIBS=$LIBS
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10782 /* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10806 grep -v '^ *+' conftest.er1 >conftest.err
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_cv_lib_dl_dlopen=yes
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_cv_lib_dl_dlopen=no
10839 rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10843 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10845 if test $ac_cv_lib_dl_dlopen = yes; then
10847 cat >>confdefs.h <<\_ACEOF
10848 #define HAVE_LIBDL 1
10851 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10853 cat >conftest.$ac_ext <<_ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10860 # include <dlfcn.h>
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_link") 2>conftest.er1
10880 grep -v '^ *+' conftest.er1 >conftest.err
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886 { (case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_try") 2>&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; } &&
10895 { ac_try='test -s conftest$ac_exeext'
10896 { (case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_try") 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10906 cat >>confdefs.h <<\_ACEOF
10907 #define HAVE_LIBDL 1
10909 libltdl_cv_func_dlopen="yes"
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10915 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10916 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-lsvld $LIBS"
10921 cat >conftest.$ac_ext <<_ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10928 /* Override any GCC internal prototype to avoid an error.
10929 Use char because int might match the return type of a GCC
10930 builtin and then its argument prototype would still apply. */
10943 rm -f conftest.$ac_objext conftest$ac_exeext
10944 if { (ac_try="$ac_link"
10945 case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_link") 2>conftest.er1
10952 grep -v '^ *+' conftest.er1 >conftest.err
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
10957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest$ac_exeext'
10968 { (case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_try") 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 ac_cv_lib_svld_dlopen=yes
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_cv_lib_svld_dlopen=no
10985 rm -f core conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10989 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10990 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10991 if test $ac_cv_lib_svld_dlopen = yes; then
10993 cat >>confdefs.h <<\_ACEOF
10994 #define HAVE_LIBDL 1
10997 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10999 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11000 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11001 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 ac_check_lib_save_LIBS=$LIBS
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11013 /* Override any GCC internal prototype to avoid an error.
11014 Use char because int might match the return type of a GCC
11015 builtin and then its argument prototype would still apply. */
11023 return dld_link ();
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (ac_try="$ac_link"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_link") 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043 { (case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_try") 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try='test -s conftest$ac_exeext'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_lib_dld_dld_link=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_cv_lib_dld_dld_link=no
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11075 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11076 if test $ac_cv_lib_dld_dld_link = yes; then
11078 cat >>confdefs.h <<\_ACEOF
11082 LIBADD_DL="$LIBADD_DL -ldld"
11084 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11085 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11086 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 cat >conftest.$ac_ext <<_ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11097 #define _dyld_func_lookup innocuous__dyld_func_lookup
11099 /* System header to define __stub macros and hopefully few prototypes,
11100 which can conflict with char _dyld_func_lookup (); below.
11101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11102 <limits.h> exists even on freestanding compilers. */
11105 # include <limits.h>
11107 # include <assert.h>
11110 #undef _dyld_func_lookup
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11118 char _dyld_func_lookup ();
11119 /* The GNU C library defines this for functions which it implements
11120 to always fail with ENOSYS. Some functions are actually named
11121 something starting with __ and the normal name is an alias. */
11122 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11129 return _dyld_func_lookup ();
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (ac_try="$ac_link"
11136 case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_link") 2>conftest.er1
11143 grep -v '^ *+' conftest.er1 >conftest.err
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149 { (case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_try") 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest$ac_exeext'
11159 { (case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_try") 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_func__dyld_func_lookup=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 ac_cv_func__dyld_func_lookup=no
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11179 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11180 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11181 if test $ac_cv_func__dyld_func_lookup = yes; then
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_DYLD 1
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11210 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11212 lt_save_LIBS="$LIBS"
11213 LIBS="$LIBS $LIBADD_DL"
11215 for ac_func in dlerror
11217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 cat >conftest.$ac_ext <<_ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11231 #define $ac_func innocuous_$ac_func
11233 /* System header to define __stub macros and hopefully few prototypes,
11234 which can conflict with char $ac_func (); below.
11235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11236 <limits.h> exists even on freestanding compilers. */
11239 # include <limits.h>
11241 # include <assert.h>
11246 /* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11253 /* The GNU C library defines this for functions which it implements
11254 to always fail with ENOSYS. Some functions are actually named
11255 something starting with __ and the normal name is an alias. */
11256 #if defined __stub_$ac_func || defined __stub___$ac_func
11263 return $ac_func ();
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (ac_try="$ac_link"
11270 case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_link") 2>conftest.er1
11277 grep -v '^ *+' conftest.er1 >conftest.err
11279 cat conftest.err >&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest$ac_exeext'
11293 { (case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_try") 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 eval "$as_ac_var=yes"
11304 echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 eval "$as_ac_var=no"
11310 rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11313 ac_res=`eval echo '${'$as_ac_var'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315 echo "${ECHO_T}$ac_res" >&6; }
11316 if test `eval echo '${'$as_ac_var'}'` = yes; then
11317 cat >>confdefs.h <<_ACEOF
11318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11324 LIBS="$lt_save_LIBS"
11327 ac_cpp='$CPP $CPPFLAGS'
11328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11334 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11335 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11336 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 ac_cv_sys_symbol_underscore=no
11340 cat > conftest.$ac_ext <<EOF
11341 void nm_test_func(){}
11342 int main(){nm_test_func;return 0;}
11344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11345 (eval $ac_compile) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; then
11349 # Now try to grab the symbols.
11350 ac_nlist=conftest.nm
11351 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11352 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && test -s "$ac_nlist"; then
11356 # See whether the symbols have a leading underscore.
11357 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11358 ac_cv_sys_symbol_underscore=yes
11360 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11363 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11367 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11370 echo "configure: failed program was:" >&5
11376 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11377 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11380 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11381 if test x"$libltdl_cv_func_dlopen" = xyes ||
11382 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11383 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11384 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11385 if test "${libltdl_cv_need_uscore+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 libltdl_cv_need_uscore=unknown
11390 LIBS="$LIBS $LIBADD_DL"
11391 if test "$cross_compiling" = yes; then :
11392 libltdl_cv_need_uscore=cross
11394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11395 lt_status=$lt_dlunknown
11396 cat > conftest.$ac_ext <<EOF
11397 #line 11397 "configure"
11398 #include "confdefs.h"
11407 # define LT_DLGLOBAL RTLD_GLOBAL
11410 # define LT_DLGLOBAL DL_GLOBAL
11412 # define LT_DLGLOBAL 0
11416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11417 find out it does not work in some platform. */
11418 #ifndef LT_DLLAZY_OR_NOW
11420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11423 # define LT_DLLAZY_OR_NOW DL_LAZY
11426 # define LT_DLLAZY_OR_NOW RTLD_NOW
11429 # define LT_DLLAZY_OR_NOW DL_NOW
11431 # define LT_DLLAZY_OR_NOW 0
11439 extern "C" void exit (int);
11442 void fnord() { int i=42;}
11445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11446 int status = $lt_dlunknown;
11450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11451 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11452 /* dlclose (self); */
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11465 (./conftest; exit; ) >&5 2>/dev/null
11467 case x$lt_status in
11468 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11469 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11470 x$lt_dlunknown|x*) ;;
11473 # compilation failed
11482 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11483 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11487 if test x"$libltdl_cv_need_uscore" = xyes; then
11489 cat >>confdefs.h <<\_ACEOF
11490 #define NEED_USCORE 1
11496 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11497 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11498 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 # PORTME does your system automatically load deplibs for dlopen?
11502 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11503 # For now, we just catch OSes we know something about -- in the
11504 # future, we'll try test this programmatically.
11505 libltdl_cv_sys_dlopen_deplibs=unknown
11507 aix3*|aix4.1.*|aix4.2.*)
11508 # Unknown whether this is true for these versions of AIX, but
11509 # we want this `case' here to explicitly catch those versions.
11510 libltdl_cv_sys_dlopen_deplibs=unknown
11513 libltdl_cv_sys_dlopen_deplibs=yes
11516 # Assuming the user has installed a libdl from somewhere, this is true
11517 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11518 libltdl_cv_sys_dlopen_deplibs=yes
11520 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11521 # GNU and its variants, using gnu ld.so (Glibc)
11522 libltdl_cv_sys_dlopen_deplibs=yes
11525 libltdl_cv_sys_dlopen_deplibs=yes
11528 libltdl_cv_sys_dlopen_deplibs=yes
11530 irix[12345]*|irix6.[01]*)
11531 # Catch all versions of IRIX before 6.2, and indicate that we don't
11532 # know how it worked for any of those versions.
11533 libltdl_cv_sys_dlopen_deplibs=unknown
11536 # The case above catches anything before 6.2, and it's known that
11537 # at 6.2 and later dlopen does load deplibs.
11538 libltdl_cv_sys_dlopen_deplibs=yes
11541 libltdl_cv_sys_dlopen_deplibs=yes
11544 libltdl_cv_sys_dlopen_deplibs=yes
11547 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11548 # it did *not* use an RPATH in a shared library to find objects the
11549 # library depends on, so we explictly say `no'.
11550 libltdl_cv_sys_dlopen_deplibs=no
11552 osf5.0|osf5.0a|osf5.1)
11553 # dlopen *does* load deplibs and with the right loader patch applied
11554 # it even uses RPATH in a shared library to search for shared objects
11555 # that the library depends on, but there's no easy way to know if that
11556 # patch is installed. Since this is the case, all we can really
11557 # say is unknown -- it depends on the patch being installed. If
11558 # it is, this changes to `yes'. Without it, it would be `no'.
11559 libltdl_cv_sys_dlopen_deplibs=unknown
11562 # the two cases above should catch all versions of osf <= 5.1. Read
11563 # the comments above for what we know about them.
11564 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11565 # is used to find them so we can finally say `yes'.
11566 libltdl_cv_sys_dlopen_deplibs=yes
11569 libltdl_cv_sys_dlopen_deplibs=yes
11571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11572 libltdl_cv_sys_dlopen_deplibs=yes
11577 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11578 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11579 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11581 cat >>confdefs.h <<\_ACEOF
11582 #define LTDL_DLOPEN_DEPLIBS 1
11588 for ac_header in argz.h
11590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 ac_res=`eval echo '${'$as_ac_Header'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599 echo "${ECHO_T}$ac_res" >&6; }
11601 # Is the header compilable?
11602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11604 cat >conftest.$ac_ext <<_ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 $ac_includes_default
11611 #include <$ac_header>
11613 rm -f conftest.$ac_objext
11614 if { (ac_try="$ac_compile"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_compile") 2>conftest.er1
11622 grep -v '^ *+' conftest.er1 >conftest.err
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_header_compiler=yes
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 ac_header_compiler=no
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11657 echo "${ECHO_T}$ac_header_compiler" >&6; }
11659 # Is the header present?
11660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11662 cat >conftest.$ac_ext <<_ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 #include <$ac_header>
11670 if { (ac_try="$ac_cpp conftest.$ac_ext"
11671 case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11678 grep -v '^ *+' conftest.er1 >conftest.err
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } >/dev/null; then
11683 if test -s conftest.err; then
11684 ac_cpp_err=$ac_c_preproc_warn_flag
11685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11692 if test -z "$ac_cpp_err"; then
11693 ac_header_preproc=yes
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11698 ac_header_preproc=no
11701 rm -f conftest.err conftest.$ac_ext
11702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11703 echo "${ECHO_T}$ac_header_preproc" >&6; }
11705 # So? What about this header?
11706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11712 ac_header_preproc=yes
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11728 ## ----------------------------------- ##
11729 ## Report this to llvmbugs@cs.uiuc.edu ##
11730 ## ----------------------------------- ##
11732 ) | sed "s/^/$as_me: WARNING: /" >&2
11735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 eval "$as_ac_Header=\$ac_header_preproc"
11742 ac_res=`eval echo '${'$as_ac_Header'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11748 cat >>confdefs.h <<_ACEOF
11749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11757 { echo "$as_me:$LINENO: checking for error_t" >&5
11758 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11759 if test "${ac_cv_type_error_t+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 cat >conftest.$ac_ext <<_ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11772 typedef error_t ac__type_new_;
11776 if ((ac__type_new_ *) 0)
11778 if (sizeof (ac__type_new_))
11784 rm -f conftest.$ac_objext
11785 if { (ac_try="$ac_compile"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_compile") 2>conftest.er1
11793 grep -v '^ *+' conftest.er1 >conftest.err
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest.$ac_objext'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 ac_cv_type_error_t=yes
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 ac_cv_type_error_t=no
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11829 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11830 if test $ac_cv_type_error_t = yes; then
11832 cat >>confdefs.h <<_ACEOF
11833 #define HAVE_ERROR_T 1
11839 cat >>confdefs.h <<\_ACEOF
11840 #define error_t int
11851 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11867 #define $ac_func innocuous_$ac_func
11869 /* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char $ac_func (); below.
11871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872 <limits.h> exists even on freestanding compilers. */
11875 # include <limits.h>
11877 # include <assert.h>
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11889 /* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892 #if defined __stub_$ac_func || defined __stub___$ac_func
11899 return $ac_func ();
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (ac_try="$ac_link"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_link") 2>conftest.er1
11913 grep -v '^ *+' conftest.er1 >conftest.err
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_try") 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 eval "$as_ac_var=yes"
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 eval "$as_ac_var=no"
11946 rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11949 ac_res=`eval echo '${'$as_ac_var'}'`
11950 { echo "$as_me:$LINENO: result: $ac_res" >&5
11951 echo "${ECHO_T}$ac_res" >&6; }
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11987 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 ac_res=`eval echo '${'$as_ac_Header'}'`
11998 { echo "$as_me:$LINENO: result: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12001 # Is the header compilable?
12002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12003 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
12011 #include <$ac_header>
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12022 grep -v '^ *+' conftest.er1 >conftest.err
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest.$ac_objext'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_header_compiler=yes
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ac_header_compiler=no
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12057 echo "${ECHO_T}$ac_header_compiler" >&6; }
12059 # Is the header present?
12060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12062 cat >conftest.$ac_ext <<_ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 #include <$ac_header>
12070 if { (ac_try="$ac_cpp conftest.$ac_ext"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12078 grep -v '^ *+' conftest.er1 >conftest.err
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } >/dev/null; then
12083 if test -s conftest.err; then
12084 ac_cpp_err=$ac_c_preproc_warn_flag
12085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12092 if test -z "$ac_cpp_err"; then
12093 ac_header_preproc=yes
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 ac_header_preproc=no
12101 rm -f conftest.err conftest.$ac_ext
12102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12103 echo "${ECHO_T}$ac_header_preproc" >&6; }
12105 # So? What about this header?
12106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12112 ac_header_preproc=yes
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12128 ## ----------------------------------- ##
12129 ## Report this to llvmbugs@cs.uiuc.edu ##
12130 ## ----------------------------------- ##
12132 ) | sed "s/^/$as_me: WARNING: /" >&2
12135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 eval "$as_ac_Header=\$ac_header_preproc"
12142 ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144 echo "${ECHO_T}$ac_res" >&6; }
12147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12148 cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12160 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 ac_res=`eval echo '${'$as_ac_Header'}'`
12170 { echo "$as_me:$LINENO: result: $ac_res" >&5
12171 echo "${ECHO_T}$ac_res" >&6; }
12173 # Is the header compilable?
12174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12176 cat >conftest.$ac_ext <<_ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 $ac_includes_default
12183 #include <$ac_header>
12185 rm -f conftest.$ac_objext
12186 if { (ac_try="$ac_compile"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_compile") 2>conftest.er1
12194 grep -v '^ *+' conftest.er1 >conftest.err
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest.$ac_objext'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_header_compiler=yes
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 ac_header_compiler=no
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12229 echo "${ECHO_T}$ac_header_compiler" >&6; }
12231 # Is the header present?
12232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 #include <$ac_header>
12242 if { (ac_try="$ac_cpp conftest.$ac_ext"
12243 case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12250 grep -v '^ *+' conftest.er1 >conftest.err
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } >/dev/null; then
12255 if test -s conftest.err; then
12256 ac_cpp_err=$ac_c_preproc_warn_flag
12257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12264 if test -z "$ac_cpp_err"; then
12265 ac_header_preproc=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_header_preproc=no
12273 rm -f conftest.err conftest.$ac_ext
12274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12275 echo "${ECHO_T}$ac_header_preproc" >&6; }
12277 # So? What about this header?
12278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12284 ac_header_preproc=yes
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12300 ## ----------------------------------- ##
12301 ## Report this to llvmbugs@cs.uiuc.edu ##
12302 ## ----------------------------------- ##
12304 ) | sed "s/^/$as_me: WARNING: /" >&2
12307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 eval "$as_ac_Header=\$ac_header_preproc"
12314 ac_res=`eval echo '${'$as_ac_Header'}'`
12315 { echo "$as_me:$LINENO: result: $ac_res" >&5
12316 echo "${ECHO_T}$ac_res" >&6; }
12319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12320 cat >>confdefs.h <<_ACEOF
12321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12330 for ac_header in string.h strings.h
12332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 ac_res=`eval echo '${'$as_ac_Header'}'`
12340 { echo "$as_me:$LINENO: result: $ac_res" >&5
12341 echo "${ECHO_T}$ac_res" >&6; }
12343 # Is the header compilable?
12344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 $ac_includes_default
12353 #include <$ac_header>
12355 rm -f conftest.$ac_objext
12356 if { (ac_try="$ac_compile"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_compile") 2>conftest.er1
12364 grep -v '^ *+' conftest.er1 >conftest.err
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12370 { (case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_try") 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_try") 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12389 ac_header_compiler=yes
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12394 ac_header_compiler=no
12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12399 echo "${ECHO_T}$ac_header_compiler" >&6; }
12401 # Is the header present?
12402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 #include <$ac_header>
12412 if { (ac_try="$ac_cpp conftest.$ac_ext"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } >/dev/null; then
12425 if test -s conftest.err; then
12426 ac_cpp_err=$ac_c_preproc_warn_flag
12427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12434 if test -z "$ac_cpp_err"; then
12435 ac_header_preproc=yes
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 ac_header_preproc=no
12443 rm -f conftest.err conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12445 echo "${ECHO_T}$ac_header_preproc" >&6; }
12447 # So? What about this header?
12448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12454 ac_header_preproc=yes
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12470 ## ----------------------------------- ##
12471 ## Report this to llvmbugs@cs.uiuc.edu ##
12472 ## ----------------------------------- ##
12474 ) | sed "s/^/$as_me: WARNING: /" >&2
12477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 eval "$as_ac_Header=\$ac_header_preproc"
12484 ac_res=`eval echo '${'$as_ac_Header'}'`
12485 { echo "$as_me:$LINENO: result: $ac_res" >&5
12486 echo "${ECHO_T}$ac_res" >&6; }
12489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12490 cat >>confdefs.h <<_ACEOF
12491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12501 for ac_func in strchr index
12503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 cat >conftest.$ac_ext <<_ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12517 #define $ac_func innocuous_$ac_func
12519 /* System header to define __stub macros and hopefully few prototypes,
12520 which can conflict with char $ac_func (); below.
12521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12522 <limits.h> exists even on freestanding compilers. */
12525 # include <limits.h>
12527 # include <assert.h>
12532 /* Override any GCC internal prototype to avoid an error.
12533 Use char because int might match the return type of a GCC
12534 builtin and then its argument prototype would still apply. */
12539 /* The GNU C library defines this for functions which it implements
12540 to always fail with ENOSYS. Some functions are actually named
12541 something starting with __ and the normal name is an alias. */
12542 #if defined __stub_$ac_func || defined __stub___$ac_func
12549 return $ac_func ();
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (ac_try="$ac_link"
12556 case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_link") 2>conftest.er1
12563 grep -v '^ *+' conftest.er1 >conftest.err
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12569 { (case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_try") 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest$ac_exeext'
12579 { (case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_try") 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 eval "$as_ac_var=yes"
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12593 eval "$as_ac_var=no"
12596 rm -f core conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12599 ac_res=`eval echo '${'$as_ac_var'}'`
12600 { echo "$as_me:$LINENO: result: $ac_res" >&5
12601 echo "${ECHO_T}$ac_res" >&6; }
12602 if test `eval echo '${'$as_ac_var'}'` = yes; then
12603 cat >>confdefs.h <<_ACEOF
12604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12612 for ac_func in strrchr rindex
12614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 cat >conftest.$ac_ext <<_ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12628 #define $ac_func innocuous_$ac_func
12630 /* System header to define __stub macros and hopefully few prototypes,
12631 which can conflict with char $ac_func (); below.
12632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12633 <limits.h> exists even on freestanding compilers. */
12636 # include <limits.h>
12638 # include <assert.h>
12643 /* Override any GCC internal prototype to avoid an error.
12644 Use char because int might match the return type of a GCC
12645 builtin and then its argument prototype would still apply. */
12650 /* The GNU C library defines this for functions which it implements
12651 to always fail with ENOSYS. Some functions are actually named
12652 something starting with __ and the normal name is an alias. */
12653 #if defined __stub_$ac_func || defined __stub___$ac_func
12660 return $ac_func ();
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (ac_try="$ac_link"
12667 case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_link") 2>conftest.er1
12674 grep -v '^ *+' conftest.er1 >conftest.err
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12680 { (case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_try") 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest$ac_exeext'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 eval "$as_ac_var=yes"
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 eval "$as_ac_var=no"
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12710 ac_res=`eval echo '${'$as_ac_var'}'`
12711 { echo "$as_me:$LINENO: result: $ac_res" >&5
12712 echo "${ECHO_T}$ac_res" >&6; }
12713 if test `eval echo '${'$as_ac_var'}'` = yes; then
12714 cat >>confdefs.h <<_ACEOF
12715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12723 for ac_func in memcpy bcopy
12725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 cat >conftest.$ac_ext <<_ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12739 #define $ac_func innocuous_$ac_func
12741 /* System header to define __stub macros and hopefully few prototypes,
12742 which can conflict with char $ac_func (); below.
12743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12744 <limits.h> exists even on freestanding compilers. */
12747 # include <limits.h>
12749 # include <assert.h>
12754 /* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12761 /* The GNU C library defines this for functions which it implements
12762 to always fail with ENOSYS. Some functions are actually named
12763 something starting with __ and the normal name is an alias. */
12764 #if defined __stub_$ac_func || defined __stub___$ac_func
12771 return $ac_func ();
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_link") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1 >conftest.err
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12791 { (case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_try") 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_try") 2>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 eval "$as_ac_var=yes"
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 eval "$as_ac_var=no"
12818 rm -f core conftest.err conftest.$ac_objext \
12819 conftest$ac_exeext conftest.$ac_ext
12821 ac_res=`eval echo '${'$as_ac_var'}'`
12822 { echo "$as_me:$LINENO: result: $ac_res" >&5
12823 echo "${ECHO_T}$ac_res" >&6; }
12824 if test `eval echo '${'$as_ac_var'}'` = yes; then
12825 cat >>confdefs.h <<_ACEOF
12826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12834 for ac_func in memmove strcmp
12836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 cat >conftest.$ac_ext <<_ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12850 #define $ac_func innocuous_$ac_func
12852 /* System header to define __stub macros and hopefully few prototypes,
12853 which can conflict with char $ac_func (); below.
12854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12855 <limits.h> exists even on freestanding compilers. */
12858 # include <limits.h>
12860 # include <assert.h>
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12872 /* The GNU C library defines this for functions which it implements
12873 to always fail with ENOSYS. Some functions are actually named
12874 something starting with __ and the normal name is an alias. */
12875 #if defined __stub_$ac_func || defined __stub___$ac_func
12882 return $ac_func ();
12887 rm -f conftest.$ac_objext conftest$ac_exeext
12888 if { (ac_try="$ac_link"
12889 case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_link") 2>conftest.er1
12896 grep -v '^ *+' conftest.er1 >conftest.err
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 eval "$as_ac_var=yes"
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12926 eval "$as_ac_var=no"
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12932 ac_res=`eval echo '${'$as_ac_var'}'`
12933 { echo "$as_me:$LINENO: result: $ac_res" >&5
12934 echo "${ECHO_T}$ac_res" >&6; }
12935 if test `eval echo '${'$as_ac_var'}'` = yes; then
12936 cat >>confdefs.h <<_ACEOF
12937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12946 for ac_func in closedir opendir readdir
12948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 cat >conftest.$ac_ext <<_ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12962 #define $ac_func innocuous_$ac_func
12964 /* System header to define __stub macros and hopefully few prototypes,
12965 which can conflict with char $ac_func (); below.
12966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12967 <limits.h> exists even on freestanding compilers. */
12970 # include <limits.h>
12972 # include <assert.h>
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12984 /* The GNU C library defines this for functions which it implements
12985 to always fail with ENOSYS. Some functions are actually named
12986 something starting with __ and the normal name is an alias. */
12987 #if defined __stub_$ac_func || defined __stub___$ac_func
12994 return $ac_func ();
12999 rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_link") 2>conftest.er1
13008 grep -v '^ *+' conftest.er1 >conftest.err
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13014 { (case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_try") 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest$ac_exeext'
13024 { (case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_try") 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; }; then
13033 eval "$as_ac_var=yes"
13035 echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13038 eval "$as_ac_var=no"
13041 rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13044 ac_res=`eval echo '${'$as_ac_var'}'`
13045 { echo "$as_me:$LINENO: result: $ac_res" >&5
13046 echo "${ECHO_T}$ac_res" >&6; }
13047 if test `eval echo '${'$as_ac_var'}'` = yes; then
13048 cat >>confdefs.h <<_ACEOF
13049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13057 if test "$WITH_LLVMGCCDIR" = "default" ; then
13058 LLVMGCC="llvm-gcc${EXEEXT}"
13059 LLVMGXX="llvm-g++${EXEEXT}"
13060 LLVMGCCCOMMAND="$LLVMGCC"
13061 LLVMGXXCOMMAND="$LLVMGXX"
13062 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13064 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13066 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13067 set dummy $LLVMGCC; ac_word=$2
13068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13070 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13085 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 LLVMGCC=$ac_cv_path_LLVMGCC
13097 if test -n "$LLVMGCC"; then
13098 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13099 echo "${ECHO_T}$LLVMGCC" >&6; }
13101 { echo "$as_me:$LINENO: result: no" >&5
13102 echo "${ECHO_T}no" >&6; }
13106 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13107 set dummy $LLVMGXX; ac_word=$2
13108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13110 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13125 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 LLVMGXX=$ac_cv_path_LLVMGXX
13137 if test -n "$LLVMGXX"; then
13138 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13139 echo "${ECHO_T}$LLVMGXX" >&6; }
13141 { echo "$as_me:$LINENO: result: no" >&5
13142 echo "${ECHO_T}no" >&6; }
13147 if test -z "$LLVMGCC"; then
13148 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13149 LLVMGCCCOMMAND="$LLVMGCC"
13151 if test -z "$LLVMGXX"; then
13152 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13153 LLVMGXXCOMMAND="$LLVMGXX"
13160 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13162 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13167 # Check whether --with-llvmcc was given.
13168 if test "${with_llvmcc+set}" = set; then
13169 withval=$with_llvmcc;
13174 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13175 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13176 if test "$with_llvmcc" != "check"; then
13177 if (test "$with_llvmcc" != "llvm-gcc" &&
13178 test "$with_llvmcc" != "clang" &&
13179 test "$with_llvmcc" != "none"); then
13180 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13181 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13182 { (exit 1); exit 1; }; }
13184 WITH_LLVMCC="$with_llvmcc"
13185 elif test -n "$LLVMGCC"; then
13186 WITH_LLVMCC=llvm-gcc
13187 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13192 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13193 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13194 LLVMCC_OPTION=$WITH_LLVMCC
13197 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13198 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13211 if test "$GCC" != "yes" && test "$ICC" != "yes"
13213 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13214 echo "$as_me: error: gcc|icc required but not found" >&2;}
13215 { (exit 1); exit 1; }; }
13218 if test "$GXX" != "yes" && test "$IXX" != "yes"
13220 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13221 echo "$as_me: error: g++|icc required but not found" >&2;}
13222 { (exit 1); exit 1; }; }
13225 if test "$GCC" = "yes"
13227 cat >conftest.$ac_ext <<_ACEOF
13228 #if !defined(__GNUC__) || __GNUC__ < 3
13229 #error Unsupported GCC version
13233 rm -f conftest.$ac_objext
13234 if { (ac_try="$ac_compile"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_compile") 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (case "(($ac_try" in
13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 *) ac_try_echo=$ac_try;;
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 (eval "$ac_try") 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13273 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13274 { (exit 1); exit 1; }; }
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 if test -z "$llvm_cv_gnu_make_command"
13282 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13283 echo "$as_me: error: GNU Make required but not found" >&2;}
13284 { (exit 1); exit 1; }; }
13287 { echo "$as_me:$LINENO: result: ok" >&5
13288 echo "${ECHO_T}ok" >&6; }
13290 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13291 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13292 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13294 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13296 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13297 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13301 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13302 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13303 if test "${ac_cv_lib_m_sin+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 ac_check_lib_save_LIBS=$LIBS
13308 cat >conftest.$ac_ext <<_ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13315 /* Override any GCC internal prototype to avoid an error.
13316 Use char because int might match the return type of a GCC
13317 builtin and then its argument prototype would still apply. */
13330 rm -f conftest.$ac_objext conftest$ac_exeext
13331 if { (ac_try="$ac_link"
13332 case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_link") 2>conftest.er1
13339 grep -v '^ *+' conftest.er1 >conftest.err
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest$ac_exeext'
13355 { (case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_try") 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13364 ac_cv_lib_m_sin=yes
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13372 rm -f core conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext conftest.$ac_ext
13374 LIBS=$ac_check_lib_save_LIBS
13376 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13377 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13378 if test $ac_cv_lib_m_sin = yes; then
13379 cat >>confdefs.h <<_ACEOF
13380 #define HAVE_LIBM 1
13387 if test "$llvm_cv_os_type" = "MingW" ; then
13389 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13390 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13391 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 ac_check_lib_save_LIBS=$LIBS
13395 LIBS="-limagehlp $LIBS"
13396 cat >conftest.$ac_ext <<_ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_cv_lib_imagehlp_main=yes
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13451 ac_cv_lib_imagehlp_main=no
13454 rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 LIBS=$ac_check_lib_save_LIBS
13458 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13459 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13460 if test $ac_cv_lib_imagehlp_main = yes; then
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_LIBIMAGEHLP 1
13465 LIBS="-limagehlp $LIBS"
13470 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13471 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13472 if test "${ac_cv_lib_psapi_main+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 ac_check_lib_save_LIBS=$LIBS
13476 LIBS="-lpsapi $LIBS"
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (ac_try="$ac_link"
13495 case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_link") 2>conftest.er1
13502 grep -v '^ *+' conftest.er1 >conftest.err
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13508 { (case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_try") 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest$ac_exeext'
13518 { (case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_try") 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_lib_psapi_main=yes
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13532 ac_cv_lib_psapi_main=no
13535 rm -f core conftest.err conftest.$ac_objext \
13536 conftest$ac_exeext conftest.$ac_ext
13537 LIBS=$ac_check_lib_save_LIBS
13539 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13540 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13541 if test $ac_cv_lib_psapi_main = yes; then
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_LIBPSAPI 1
13546 LIBS="-lpsapi $LIBS"
13552 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13553 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13554 if test "${ac_cv_search_dlopen+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 ac_func_search_save_LIBS=$LIBS
13558 cat >conftest.$ac_ext <<_ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13565 /* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
13580 for ac_lib in '' dl; do
13581 if test -z "$ac_lib"; then
13582 ac_res="none required"
13585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (ac_try="$ac_link"
13589 case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_link") 2>conftest.er1
13596 grep -v '^ *+' conftest.er1 >conftest.err
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13602 { (case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_try") 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest$ac_exeext'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
13621 ac_cv_search_dlopen=$ac_res
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13629 rm -f core conftest.err conftest.$ac_objext \
13631 if test "${ac_cv_search_dlopen+set}" = set; then
13635 if test "${ac_cv_search_dlopen+set}" = set; then
13638 ac_cv_search_dlopen=no
13640 rm conftest.$ac_ext
13641 LIBS=$ac_func_search_save_LIBS
13643 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13644 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13645 ac_res=$ac_cv_search_dlopen
13646 if test "$ac_res" != no; then
13647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13649 cat >>confdefs.h <<\_ACEOF
13650 #define HAVE_DLOPEN 1
13654 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13655 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13659 if test "$llvm_cv_enable_libffi" = "yes" ; then
13660 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13661 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13662 if test "${ac_cv_search_ffi_call+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 ac_func_search_save_LIBS=$LIBS
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13673 /* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13683 return ffi_call ();
13688 for ac_lib in '' ffi; do
13689 if test -z "$ac_lib"; then
13690 ac_res="none required"
13693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13704 grep -v '^ *+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest$ac_exeext'
13720 { (case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_try") 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_cv_search_ffi_call=$ac_res
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13737 rm -f core conftest.err conftest.$ac_objext \
13739 if test "${ac_cv_search_ffi_call+set}" = set; then
13743 if test "${ac_cv_search_ffi_call+set}" = set; then
13746 ac_cv_search_ffi_call=no
13748 rm conftest.$ac_ext
13749 LIBS=$ac_func_search_save_LIBS
13751 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13752 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13753 ac_res=$ac_cv_search_ffi_call
13754 if test "$ac_res" != no; then
13755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13757 cat >>confdefs.h <<\_ACEOF
13758 #define HAVE_FFI_CALL 1
13762 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13763 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13764 { (exit 1); exit 1; }; }
13769 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13770 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13771 if test "${ac_cv_search_mallinfo+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 ac_func_search_save_LIBS=$LIBS
13775 cat >conftest.$ac_ext <<_ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13782 /* Override any GCC internal prototype to avoid an error.
13783 Use char because int might match the return type of a GCC
13784 builtin and then its argument prototype would still apply. */
13792 return mallinfo ();
13797 for ac_lib in '' malloc; do
13798 if test -z "$ac_lib"; then
13799 ac_res="none required"
13802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13804 rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (ac_try="$ac_link"
13806 case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_link") 2>conftest.er1
13813 grep -v '^ *+' conftest.er1 >conftest.err
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13819 { (case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_try") 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest$ac_exeext'
13829 { (case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_try") 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_cv_search_mallinfo=$ac_res
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13846 rm -f core conftest.err conftest.$ac_objext \
13848 if test "${ac_cv_search_mallinfo+set}" = set; then
13852 if test "${ac_cv_search_mallinfo+set}" = set; then
13855 ac_cv_search_mallinfo=no
13857 rm conftest.$ac_ext
13858 LIBS=$ac_func_search_save_LIBS
13860 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13861 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13862 ac_res=$ac_cv_search_mallinfo
13863 if test "$ac_res" != no; then
13864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13866 cat >>confdefs.h <<\_ACEOF
13867 #define HAVE_MALLINFO 1
13873 if test "$ENABLE_THREADS" -eq 1 ; then
13875 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13876 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13877 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 ac_check_lib_save_LIBS=$LIBS
13881 LIBS="-lpthread $LIBS"
13882 cat >conftest.$ac_ext <<_ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13889 /* Override any GCC internal prototype to avoid an error.
13890 Use char because int might match the return type of a GCC
13891 builtin and then its argument prototype would still apply. */
13895 char pthread_mutex_init ();
13899 return pthread_mutex_init ();
13904 rm -f conftest.$ac_objext conftest$ac_exeext
13905 if { (ac_try="$ac_link"
13906 case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_link") 2>conftest.er1
13913 grep -v '^ *+' conftest.er1 >conftest.err
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13919 { (case "(($ac_try" in
13920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921 *) ac_try_echo=$ac_try;;
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924 (eval "$ac_try") 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; } &&
13928 { ac_try='test -s conftest$ac_exeext'
13929 { (case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_try") 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_cv_lib_pthread_pthread_mutex_init=yes
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13943 ac_cv_lib_pthread_pthread_mutex_init=no
13946 rm -f core conftest.err conftest.$ac_objext \
13947 conftest$ac_exeext conftest.$ac_ext
13948 LIBS=$ac_check_lib_save_LIBS
13950 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13951 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13952 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13953 cat >>confdefs.h <<_ACEOF
13954 #define HAVE_LIBPTHREAD 1
13957 LIBS="-lpthread $LIBS"
13961 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13962 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13963 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13966 ac_func_search_save_LIBS=$LIBS
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13974 /* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply. */
13980 char pthread_mutex_lock ();
13984 return pthread_mutex_lock ();
13989 for ac_lib in '' pthread; do
13990 if test -z "$ac_lib"; then
13991 ac_res="none required"
13994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13996 rm -f conftest.$ac_objext conftest$ac_exeext
13997 if { (ac_try="$ac_link"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_link") 2>conftest.er1
14005 grep -v '^ *+' conftest.er1 >conftest.err
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011 { (case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_try") 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest$ac_exeext'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_cv_search_pthread_mutex_lock=$ac_res
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14038 rm -f core conftest.err conftest.$ac_objext \
14040 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14044 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14047 ac_cv_search_pthread_mutex_lock=no
14049 rm conftest.$ac_ext
14050 LIBS=$ac_func_search_save_LIBS
14052 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14053 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14054 ac_res=$ac_cv_search_pthread_mutex_lock
14055 if test "$ac_res" != no; then
14056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_PTHREAD_MUTEX_LOCK 1
14064 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14065 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14066 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 ac_func_search_save_LIBS=$LIBS
14070 cat >conftest.$ac_ext <<_ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14077 /* Override any GCC internal prototype to avoid an error.
14078 Use char because int might match the return type of a GCC
14079 builtin and then its argument prototype would still apply. */
14083 char pthread_rwlock_init ();
14087 return pthread_rwlock_init ();
14092 for ac_lib in '' pthread; do
14093 if test -z "$ac_lib"; then
14094 ac_res="none required"
14097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14099 rm -f conftest.$ac_objext conftest$ac_exeext
14100 if { (ac_try="$ac_link"
14101 case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106 (eval "$ac_link") 2>conftest.er1
14108 grep -v '^ *+' conftest.er1 >conftest.err
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14114 { (case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_try") 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } &&
14123 { ac_try='test -s conftest$ac_exeext'
14124 { (case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_try") 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }; then
14133 ac_cv_search_pthread_rwlock_init=$ac_res
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14141 rm -f core conftest.err conftest.$ac_objext \
14143 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14147 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14150 ac_cv_search_pthread_rwlock_init=no
14152 rm conftest.$ac_ext
14153 LIBS=$ac_func_search_save_LIBS
14155 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14156 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14157 ac_res=$ac_cv_search_pthread_rwlock_init
14158 if test "$ac_res" != no; then
14159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14161 cat >>confdefs.h <<\_ACEOF
14162 #define HAVE_PTHREAD_RWLOCK_INIT 1
14167 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14168 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14169 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 ac_func_search_save_LIBS=$LIBS
14173 cat >conftest.$ac_ext <<_ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14180 /* Override any GCC internal prototype to avoid an error.
14181 Use char because int might match the return type of a GCC
14182 builtin and then its argument prototype would still apply. */
14186 char pthread_getspecific ();
14190 return pthread_getspecific ();
14195 for ac_lib in '' pthread; do
14196 if test -z "$ac_lib"; then
14197 ac_res="none required"
14200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14202 rm -f conftest.$ac_objext conftest$ac_exeext
14203 if { (ac_try="$ac_link"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_link") 2>conftest.er1
14211 grep -v '^ *+' conftest.er1 >conftest.err
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; } &&
14226 { ac_try='test -s conftest$ac_exeext'
14227 { (case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232 (eval "$ac_try") 2>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }; then
14236 ac_cv_search_pthread_getspecific=$ac_res
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14244 rm -f core conftest.err conftest.$ac_objext \
14246 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14250 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14253 ac_cv_search_pthread_getspecific=no
14255 rm conftest.$ac_ext
14256 LIBS=$ac_func_search_save_LIBS
14258 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14259 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14260 ac_res=$ac_cv_search_pthread_getspecific
14261 if test "$ac_res" != no; then
14262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14264 cat >>confdefs.h <<\_ACEOF
14265 #define HAVE_PTHREAD_GETSPECIFIC 1
14273 # Check whether --with-udis86 was given.
14274 if test "${with_udis86+set}" = set; then
14275 withval=$with_udis86;
14280 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14283 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14284 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14285 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 ac_check_lib_save_LIBS=$LIBS
14289 LIBS="-ludis86 $LIBS"
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14297 /* Override any GCC internal prototype to avoid an error.
14298 Use char because int might match the return type of a GCC
14299 builtin and then its argument prototype would still apply. */
14312 rm -f conftest.$ac_objext conftest$ac_exeext
14313 if { (ac_try="$ac_link"
14314 case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_link") 2>conftest.er1
14321 grep -v '^ *+' conftest.er1 >conftest.err
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest$ac_exeext'
14337 { (case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_try") 2>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14346 ac_cv_lib_udis86_ud_init=yes
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14351 ac_cv_lib_udis86_ud_init=no
14354 rm -f core conftest.err conftest.$ac_objext \
14355 conftest$ac_exeext conftest.$ac_ext
14356 LIBS=$ac_check_lib_save_LIBS
14358 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14359 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14360 if test $ac_cv_lib_udis86_ud_init = yes; then
14361 cat >>confdefs.h <<_ACEOF
14362 #define HAVE_LIBUDIS86 1
14365 LIBS="-ludis86 $LIBS"
14369 echo "Error! You need to have libudis86 around."
14381 cat >>confdefs.h <<_ACEOF
14382 #define USE_UDIS86 $USE_UDIS86
14387 # Check whether --with-oprofile was given.
14388 if test "${with_oprofile+set}" = set; then
14389 withval=$with_oprofile;
14393 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14394 no) llvm_cv_oppath=
14397 *) llvm_cv_oppath="${withval}/lib/oprofile"
14398 CPPFLAGS="-I${withval}/include";;
14400 if test -n "$llvm_cv_oppath" ; then
14401 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14402 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14403 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14404 if test "${ac_cv_search_bfd_init+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 ac_func_search_save_LIBS=$LIBS
14408 cat >conftest.$ac_ext <<_ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14415 /* Override any GCC internal prototype to avoid an error.
14416 Use char because int might match the return type of a GCC
14417 builtin and then its argument prototype would still apply. */
14425 return bfd_init ();
14430 for ac_lib in '' bfd; do
14431 if test -z "$ac_lib"; then
14432 ac_res="none required"
14435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14437 rm -f conftest.$ac_objext conftest$ac_exeext
14438 if { (ac_try="$ac_link"
14439 case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444 (eval "$ac_link") 2>conftest.er1
14446 grep -v '^ *+' conftest.er1 >conftest.err
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14452 { (case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_try") 2>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } &&
14461 { ac_try='test -s conftest$ac_exeext'
14462 { (case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_try") 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_cv_search_bfd_init=$ac_res
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14479 rm -f core conftest.err conftest.$ac_objext \
14481 if test "${ac_cv_search_bfd_init+set}" = set; then
14485 if test "${ac_cv_search_bfd_init+set}" = set; then
14488 ac_cv_search_bfd_init=no
14490 rm conftest.$ac_ext
14491 LIBS=$ac_func_search_save_LIBS
14493 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14494 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14495 ac_res=$ac_cv_search_bfd_init
14496 if test "$ac_res" != no; then
14497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14501 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14502 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14503 if test "${ac_cv_search_op_open_agent+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 ac_func_search_save_LIBS=$LIBS
14507 cat >conftest.$ac_ext <<_ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14514 /* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
14516 builtin and then its argument prototype would still apply. */
14520 char op_open_agent ();
14524 return op_open_agent ();
14529 for ac_lib in '' opagent; do
14530 if test -z "$ac_lib"; then
14531 ac_res="none required"
14534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
14545 grep -v '^ *+' conftest.er1 >conftest.err
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_cv_search_op_open_agent=$ac_res
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14578 rm -f core conftest.err conftest.$ac_objext \
14580 if test "${ac_cv_search_op_open_agent+set}" = set; then
14584 if test "${ac_cv_search_op_open_agent+set}" = set; then
14587 ac_cv_search_op_open_agent=no
14589 rm conftest.$ac_ext
14590 LIBS=$ac_func_search_save_LIBS
14592 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14593 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14594 ac_res=$ac_cv_search_op_open_agent
14595 if test "$ac_res" != no; then
14596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14600 echo "Error! You need to have libopagent around."
14605 if test "${ac_cv_header_opagent_h+set}" = set; then
14606 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14607 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14608 if test "${ac_cv_header_opagent_h+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14612 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14614 # Is the header compilable?
14615 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14616 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14617 cat >conftest.$ac_ext <<_ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 $ac_includes_default
14624 #include <opagent.h>
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_try") 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_header_compiler=yes
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 ac_header_compiler=no
14668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14670 echo "${ECHO_T}$ac_header_compiler" >&6; }
14672 # Is the header present?
14673 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14674 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14675 cat >conftest.$ac_ext <<_ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 #include <opagent.h>
14683 if { (ac_try="$ac_cpp conftest.$ac_ext"
14684 case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14691 grep -v '^ *+' conftest.er1 >conftest.err
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } >/dev/null; then
14696 if test -s conftest.err; then
14697 ac_cpp_err=$ac_c_preproc_warn_flag
14698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14705 if test -z "$ac_cpp_err"; then
14706 ac_header_preproc=yes
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 ac_header_preproc=no
14714 rm -f conftest.err conftest.$ac_ext
14715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14716 echo "${ECHO_T}$ac_header_preproc" >&6; }
14718 # So? What about this header?
14719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14721 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14722 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14724 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14725 ac_header_preproc=yes
14728 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14729 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14731 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14733 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14734 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14735 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14737 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14739 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14741 ## ----------------------------------- ##
14742 ## Report this to llvmbugs@cs.uiuc.edu ##
14743 ## ----------------------------------- ##
14745 ) | sed "s/^/$as_me: WARNING: /" >&2
14748 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14749 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14750 if test "${ac_cv_header_opagent_h+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 ac_cv_header_opagent_h=$ac_header_preproc
14755 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14756 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14759 if test $ac_cv_header_opagent_h = yes; then
14763 echo "Error! You need to have opagent.h around."
14779 cat >>confdefs.h <<_ACEOF
14780 #define USE_OPROFILE $USE_OPROFILE
14790 ac_header_dirent=no
14791 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14792 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14793 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14794 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 cat >conftest.$ac_ext <<_ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 #include <sys/types.h>
14816 rm -f conftest.$ac_objext
14817 if { (ac_try="$ac_compile"
14818 case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_compile") 2>conftest.er1
14825 grep -v '^ *+' conftest.er1 >conftest.err
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
14830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14831 { (case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_try") 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_try") 2>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 eval "$as_ac_Header=yes"
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 eval "$as_ac_Header=no"
14858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860 ac_res=`eval echo '${'$as_ac_Header'}'`
14861 { echo "$as_me:$LINENO: result: $ac_res" >&5
14862 echo "${ECHO_T}$ac_res" >&6; }
14863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14864 cat >>confdefs.h <<_ACEOF
14865 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14868 ac_header_dirent=$ac_hdr; break
14872 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14873 if test $ac_header_dirent = dirent.h; then
14874 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14875 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14876 if test "${ac_cv_search_opendir+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 ac_func_search_save_LIBS=$LIBS
14880 cat >conftest.$ac_ext <<_ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14887 /* Override any GCC internal prototype to avoid an error.
14888 Use char because int might match the return type of a GCC
14889 builtin and then its argument prototype would still apply. */
14902 for ac_lib in '' dir; do
14903 if test -z "$ac_lib"; then
14904 ac_res="none required"
14907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (ac_try="$ac_link"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_link") 2>conftest.er1
14918 grep -v '^ *+' conftest.er1 >conftest.err
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } &&
14923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14924 { (case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_try") 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try='test -s conftest$ac_exeext'
14934 { (case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_try") 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_cv_search_opendir=$ac_res
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14951 rm -f core conftest.err conftest.$ac_objext \
14953 if test "${ac_cv_search_opendir+set}" = set; then
14957 if test "${ac_cv_search_opendir+set}" = set; then
14960 ac_cv_search_opendir=no
14962 rm conftest.$ac_ext
14963 LIBS=$ac_func_search_save_LIBS
14965 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14966 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14967 ac_res=$ac_cv_search_opendir
14968 if test "$ac_res" != no; then
14969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14974 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14975 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14976 if test "${ac_cv_search_opendir+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 ac_func_search_save_LIBS=$LIBS
14980 cat >conftest.$ac_ext <<_ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14987 /* Override any GCC internal prototype to avoid an error.
14988 Use char because int might match the return type of a GCC
14989 builtin and then its argument prototype would still apply. */
15002 for ac_lib in '' x; do
15003 if test -z "$ac_lib"; then
15004 ac_res="none required"
15007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15009 rm -f conftest.$ac_objext conftest$ac_exeext
15010 if { (ac_try="$ac_link"
15011 case "(($ac_try" in
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_link") 2>conftest.er1
15018 grep -v '^ *+' conftest.er1 >conftest.err
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15024 { (case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_try") 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_try") 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_cv_search_opendir=$ac_res
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15051 rm -f core conftest.err conftest.$ac_objext \
15053 if test "${ac_cv_search_opendir+set}" = set; then
15057 if test "${ac_cv_search_opendir+set}" = set; then
15060 ac_cv_search_opendir=no
15062 rm conftest.$ac_ext
15063 LIBS=$ac_func_search_save_LIBS
15065 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15066 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15067 ac_res=$ac_cv_search_opendir
15068 if test "$ac_res" != no; then
15069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15075 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15076 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15077 if test "${ac_cv_header_mmap_anon+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 ac_cpp='$CPP $CPPFLAGS'
15082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15086 cat >conftest.$ac_ext <<_ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 #include <sys/mman.h>
15093 #include <unistd.h>
15098 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15103 rm -f conftest.$ac_objext
15104 if { (ac_try="$ac_compile"
15105 case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_compile") 2>conftest.er1
15112 grep -v '^ *+' conftest.er1 >conftest.err
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try='test -s conftest.$ac_objext'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_cv_header_mmap_anon=yes
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_cv_header_mmap_anon=no
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 ac_cpp='$CPP $CPPFLAGS'
15148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15154 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15155 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15156 if test "$ac_cv_header_mmap_anon" = yes; then
15158 cat >>confdefs.h <<\_ACEOF
15159 #define HAVE_MMAP_ANONYMOUS 1
15164 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15165 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15166 if test "${ac_cv_header_stat_broken+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 cat >conftest.$ac_ext <<_ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15175 #include <sys/types.h>
15176 #include <sys/stat.h>
15178 #if defined S_ISBLK && defined S_IFDIR
15179 # if S_ISBLK (S_IFDIR)
15184 #if defined S_ISBLK && defined S_IFCHR
15185 # if S_ISBLK (S_IFCHR)
15190 #if defined S_ISLNK && defined S_IFREG
15191 # if S_ISLNK (S_IFREG)
15196 #if defined S_ISSOCK && defined S_IFREG
15197 # if S_ISSOCK (S_IFREG)
15203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15204 $EGREP "You lose" >/dev/null 2>&1; then
15205 ac_cv_header_stat_broken=yes
15207 ac_cv_header_stat_broken=no
15212 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15213 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15214 if test $ac_cv_header_stat_broken = yes; then
15216 cat >>confdefs.h <<\_ACEOF
15217 #define STAT_MACROS_BROKEN 1
15222 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15223 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15224 if test "${ac_cv_header_stdc+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 cat >conftest.$ac_ext <<_ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233 #include <stdlib.h>
15234 #include <stdarg.h>
15235 #include <string.h>
15246 rm -f conftest.$ac_objext
15247 if { (ac_try="$ac_compile"
15248 case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_compile") 2>conftest.er1
15255 grep -v '^ *+' conftest.er1 >conftest.err
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15261 { (case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_try") 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
15271 { (case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276 (eval "$ac_try") 2>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 ac_cv_header_stdc=yes
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 ac_cv_header_stdc=no
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290 if test $ac_cv_header_stdc = yes; then
15291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 #include <string.h>
15301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15302 $EGREP "memchr" >/dev/null 2>&1; then
15305 ac_cv_header_stdc=no
15311 if test $ac_cv_header_stdc = yes; then
15312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15313 cat >conftest.$ac_ext <<_ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 #include <stdlib.h>
15322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15323 $EGREP "free" >/dev/null 2>&1; then
15326 ac_cv_header_stdc=no
15332 if test $ac_cv_header_stdc = yes; then
15333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15334 if test "$cross_compiling" = yes; then
15337 cat >conftest.$ac_ext <<_ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15344 #include <stdlib.h>
15345 #if ((' ' & 0x0FF) == 0x020)
15346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15349 # define ISLOWER(c) \
15350 (('a' <= (c) && (c) <= 'i') \
15351 || ('j' <= (c) && (c) <= 'r') \
15352 || ('s' <= (c) && (c) <= 'z'))
15353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15361 for (i = 0; i < 256; i++)
15362 if (XOR (islower (i), ISLOWER (i))
15363 || toupper (i) != TOUPPER (i))
15368 rm -f conftest$ac_exeext
15369 if { (ac_try="$ac_link"
15370 case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_link") 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15390 echo "$as_me: program exited with status $ac_status" >&5
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15394 ( exit $ac_status )
15395 ac_cv_header_stdc=no
15397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15403 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15404 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15405 if test $ac_cv_header_stdc = yes; then
15407 cat >>confdefs.h <<\_ACEOF
15408 #define STDC_HEADERS 1
15413 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15414 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15415 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 #include <sys/types.h>
15425 #include <sys/wait.h>
15426 #ifndef WEXITSTATUS
15427 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15430 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15438 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15443 rm -f conftest.$ac_objext
15444 if { (ac_try="$ac_compile"
15445 case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_compile") 2>conftest.er1
15452 grep -v '^ *+' conftest.er1 >conftest.err
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15458 { (case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_try") 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest.$ac_objext'
15468 { (case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_try") 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_cv_header_sys_wait_h=yes
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_cv_header_sys_wait_h=no
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15488 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15489 if test $ac_cv_header_sys_wait_h = yes; then
15491 cat >>confdefs.h <<\_ACEOF
15492 #define HAVE_SYS_WAIT_H 1
15497 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15498 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15499 if test "${ac_cv_header_time+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 cat >conftest.$ac_ext <<_ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15508 #include <sys/types.h>
15509 #include <sys/time.h>
15515 if ((struct tm *) 0)
15521 rm -f conftest.$ac_objext
15522 if { (ac_try="$ac_compile"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_compile") 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15536 { (case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_try") 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try='test -s conftest.$ac_objext'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_header_time=yes
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 ac_cv_header_time=no
15563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15566 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15567 if test $ac_cv_header_time = yes; then
15569 cat >>confdefs.h <<\_ACEOF
15570 #define TIME_WITH_SYS_TIME 1
15582 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 ac_res=`eval echo '${'$as_ac_Header'}'`
15592 { echo "$as_me:$LINENO: result: $ac_res" >&5
15593 echo "${ECHO_T}$ac_res" >&6; }
15595 # Is the header compilable?
15596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 $ac_includes_default
15605 #include <$ac_header>
15607 rm -f conftest.$ac_objext
15608 if { (ac_try="$ac_compile"
15609 case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_compile") 2>conftest.er1
15616 grep -v '^ *+' conftest.er1 >conftest.err
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15622 { (case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_try") 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest.$ac_objext'
15632 { (case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_try") 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_header_compiler=yes
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 ac_header_compiler=no
15649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15651 echo "${ECHO_T}$ac_header_compiler" >&6; }
15653 # Is the header present?
15654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15656 cat >conftest.$ac_ext <<_ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 #include <$ac_header>
15664 if { (ac_try="$ac_cpp conftest.$ac_ext"
15665 case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15672 grep -v '^ *+' conftest.er1 >conftest.err
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } >/dev/null; then
15677 if test -s conftest.err; then
15678 ac_cpp_err=$ac_c_preproc_warn_flag
15679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15686 if test -z "$ac_cpp_err"; then
15687 ac_header_preproc=yes
15689 echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15692 ac_header_preproc=no
15695 rm -f conftest.err conftest.$ac_ext
15696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15697 echo "${ECHO_T}$ac_header_preproc" >&6; }
15699 # So? What about this header?
15700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15706 ac_header_preproc=yes
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15722 ## ----------------------------------- ##
15723 ## Report this to llvmbugs@cs.uiuc.edu ##
15724 ## ----------------------------------- ##
15726 ) | sed "s/^/$as_me: WARNING: /" >&2
15729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 eval "$as_ac_Header=\$ac_header_preproc"
15736 ac_res=`eval echo '${'$as_ac_Header'}'`
15737 { echo "$as_me:$LINENO: result: $ac_res" >&5
15738 echo "${ECHO_T}$ac_res" >&6; }
15741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15742 cat >>confdefs.h <<_ACEOF
15743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15756 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 ac_res=`eval echo '${'$as_ac_Header'}'`
15766 { echo "$as_me:$LINENO: result: $ac_res" >&5
15767 echo "${ECHO_T}$ac_res" >&6; }
15769 # Is the header compilable?
15770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15772 cat >conftest.$ac_ext <<_ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 $ac_includes_default
15779 #include <$ac_header>
15781 rm -f conftest.$ac_objext
15782 if { (ac_try="$ac_compile"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_compile") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15796 { (case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_try") 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_try") 2>&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_header_compiler=yes
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_header_compiler=no
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15825 echo "${ECHO_T}$ac_header_compiler" >&6; }
15827 # Is the header present?
15828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 #include <$ac_header>
15838 if { (ac_try="$ac_cpp conftest.$ac_ext"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15846 grep -v '^ *+' conftest.er1 >conftest.err
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } >/dev/null; then
15851 if test -s conftest.err; then
15852 ac_cpp_err=$ac_c_preproc_warn_flag
15853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15860 if test -z "$ac_cpp_err"; then
15861 ac_header_preproc=yes
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ac_header_preproc=no
15869 rm -f conftest.err conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15871 echo "${ECHO_T}$ac_header_preproc" >&6; }
15873 # So? What about this header?
15874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15880 ac_header_preproc=yes
15883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15896 ## ----------------------------------- ##
15897 ## Report this to llvmbugs@cs.uiuc.edu ##
15898 ## ----------------------------------- ##
15900 ) | sed "s/^/$as_me: WARNING: /" >&2
15903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 eval "$as_ac_Header=\$ac_header_preproc"
15910 ac_res=`eval echo '${'$as_ac_Header'}'`
15911 { echo "$as_me:$LINENO: result: $ac_res" >&5
15912 echo "${ECHO_T}$ac_res" >&6; }
15915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15926 for ac_header in utime.h windows.h
15928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 ac_res=`eval echo '${'$as_ac_Header'}'`
15936 { echo "$as_me:$LINENO: result: $ac_res" >&5
15937 echo "${ECHO_T}$ac_res" >&6; }
15939 # Is the header compilable?
15940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15942 cat >conftest.$ac_ext <<_ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h. */
15948 $ac_includes_default
15949 #include <$ac_header>
15951 rm -f conftest.$ac_objext
15952 if { (ac_try="$ac_compile"
15953 case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_compile") 2>conftest.er1
15960 grep -v '^ *+' conftest.er1 >conftest.err
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15966 { (case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_try") 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_try") 2>&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 ac_header_compiler=yes
15987 echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15990 ac_header_compiler=no
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15995 echo "${ECHO_T}$ac_header_compiler" >&6; }
15997 # Is the header present?
15998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 #include <$ac_header>
16008 if { (ac_try="$ac_cpp conftest.$ac_ext"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16016 grep -v '^ *+' conftest.er1 >conftest.err
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } >/dev/null; then
16021 if test -s conftest.err; then
16022 ac_cpp_err=$ac_c_preproc_warn_flag
16023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16030 if test -z "$ac_cpp_err"; then
16031 ac_header_preproc=yes
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16036 ac_header_preproc=no
16039 rm -f conftest.err conftest.$ac_ext
16040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16041 echo "${ECHO_T}$ac_header_preproc" >&6; }
16043 # So? What about this header?
16044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16050 ac_header_preproc=yes
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16066 ## ----------------------------------- ##
16067 ## Report this to llvmbugs@cs.uiuc.edu ##
16068 ## ----------------------------------- ##
16070 ) | sed "s/^/$as_me: WARNING: /" >&2
16073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 eval "$as_ac_Header=\$ac_header_preproc"
16080 ac_res=`eval echo '${'$as_ac_Header'}'`
16081 { echo "$as_me:$LINENO: result: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16086 cat >>confdefs.h <<_ACEOF
16087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16098 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 ac_res=`eval echo '${'$as_ac_Header'}'`
16108 { echo "$as_me:$LINENO: result: $ac_res" >&5
16109 echo "${ECHO_T}$ac_res" >&6; }
16111 # Is the header compilable?
16112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16114 cat >conftest.$ac_ext <<_ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 $ac_includes_default
16121 #include <$ac_header>
16123 rm -f conftest.$ac_objext
16124 if { (ac_try="$ac_compile"
16125 case "(($ac_try" in
16126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127 *) ac_try_echo=$ac_try;;
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130 (eval "$ac_compile") 2>conftest.er1
16132 grep -v '^ *+' conftest.er1 >conftest.err
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
16137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16138 { (case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_try") 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest.$ac_objext'
16148 { (case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_try") 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_header_compiler=yes
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ac_header_compiler=no
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16167 echo "${ECHO_T}$ac_header_compiler" >&6; }
16169 # Is the header present?
16170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 #include <$ac_header>
16180 if { (ac_try="$ac_cpp conftest.$ac_ext"
16181 case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16188 grep -v '^ *+' conftest.er1 >conftest.err
16190 cat conftest.err >&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } >/dev/null; then
16193 if test -s conftest.err; then
16194 ac_cpp_err=$ac_c_preproc_warn_flag
16195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16202 if test -z "$ac_cpp_err"; then
16203 ac_header_preproc=yes
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_header_preproc=no
16211 rm -f conftest.err conftest.$ac_ext
16212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16213 echo "${ECHO_T}$ac_header_preproc" >&6; }
16215 # So? What about this header?
16216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16222 ac_header_preproc=yes
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16238 ## ----------------------------------- ##
16239 ## Report this to llvmbugs@cs.uiuc.edu ##
16240 ## ----------------------------------- ##
16242 ) | sed "s/^/$as_me: WARNING: /" >&2
16245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 eval "$as_ac_Header=\$ac_header_preproc"
16252 ac_res=`eval echo '${'$as_ac_Header'}'`
16253 { echo "$as_me:$LINENO: result: $ac_res" >&5
16254 echo "${ECHO_T}$ac_res" >&6; }
16257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16258 cat >>confdefs.h <<_ACEOF
16259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16270 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 ac_res=`eval echo '${'$as_ac_Header'}'`
16280 { echo "$as_me:$LINENO: result: $ac_res" >&5
16281 echo "${ECHO_T}$ac_res" >&6; }
16283 # Is the header compilable?
16284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16286 cat >conftest.$ac_ext <<_ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 $ac_includes_default
16293 #include <$ac_header>
16295 rm -f conftest.$ac_objext
16296 if { (ac_try="$ac_compile"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_compile") 2>conftest.er1
16304 grep -v '^ *+' conftest.er1 >conftest.err
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest.$ac_objext'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_header_compiler=yes
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 ac_header_compiler=no
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16339 echo "${ECHO_T}$ac_header_compiler" >&6; }
16341 # Is the header present?
16342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16344 cat >conftest.$ac_ext <<_ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 #include <$ac_header>
16352 if { (ac_try="$ac_cpp conftest.$ac_ext"
16353 case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16360 grep -v '^ *+' conftest.er1 >conftest.err
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } >/dev/null; then
16365 if test -s conftest.err; then
16366 ac_cpp_err=$ac_c_preproc_warn_flag
16367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16374 if test -z "$ac_cpp_err"; then
16375 ac_header_preproc=yes
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 ac_header_preproc=no
16383 rm -f conftest.err conftest.$ac_ext
16384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16385 echo "${ECHO_T}$ac_header_preproc" >&6; }
16387 # So? What about this header?
16388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16394 ac_header_preproc=yes
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16410 ## ----------------------------------- ##
16411 ## Report this to llvmbugs@cs.uiuc.edu ##
16412 ## ----------------------------------- ##
16414 ) | sed "s/^/$as_me: WARNING: /" >&2
16417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 eval "$as_ac_Header=\$ac_header_preproc"
16424 ac_res=`eval echo '${'$as_ac_Header'}'`
16425 { echo "$as_me:$LINENO: result: $ac_res" >&5
16426 echo "${ECHO_T}$ac_res" >&6; }
16429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16430 cat >>confdefs.h <<_ACEOF
16431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16439 for ac_header in valgrind/valgrind.h
16441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 ac_res=`eval echo '${'$as_ac_Header'}'`
16449 { echo "$as_me:$LINENO: result: $ac_res" >&5
16450 echo "${ECHO_T}$ac_res" >&6; }
16452 # Is the header compilable?
16453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16455 cat >conftest.$ac_ext <<_ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 $ac_includes_default
16462 #include <$ac_header>
16464 rm -f conftest.$ac_objext
16465 if { (ac_try="$ac_compile"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_compile") 2>conftest.er1
16473 grep -v '^ *+' conftest.er1 >conftest.err
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
16478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try='test -s conftest.$ac_objext'
16489 { (case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_try") 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 ac_header_compiler=yes
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 ac_header_compiler=no
16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16508 echo "${ECHO_T}$ac_header_compiler" >&6; }
16510 # Is the header present?
16511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16513 cat >conftest.$ac_ext <<_ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16519 #include <$ac_header>
16521 if { (ac_try="$ac_cpp conftest.$ac_ext"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } >/dev/null; then
16534 if test -s conftest.err; then
16535 ac_cpp_err=$ac_c_preproc_warn_flag
16536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16543 if test -z "$ac_cpp_err"; then
16544 ac_header_preproc=yes
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_header_preproc=no
16552 rm -f conftest.err conftest.$ac_ext
16553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16554 echo "${ECHO_T}$ac_header_preproc" >&6; }
16556 # So? What about this header?
16557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16563 ac_header_preproc=yes
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16579 ## ----------------------------------- ##
16580 ## Report this to llvmbugs@cs.uiuc.edu ##
16581 ## ----------------------------------- ##
16583 ) | sed "s/^/$as_me: WARNING: /" >&2
16586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 eval "$as_ac_Header=\$ac_header_preproc"
16593 ac_res=`eval echo '${'$as_ac_Header'}'`
16594 { echo "$as_me:$LINENO: result: $ac_res" >&5
16595 echo "${ECHO_T}$ac_res" >&6; }
16598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16599 cat >>confdefs.h <<_ACEOF
16600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16608 for ac_header in fenv.h
16610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 ac_res=`eval echo '${'$as_ac_Header'}'`
16618 { echo "$as_me:$LINENO: result: $ac_res" >&5
16619 echo "${ECHO_T}$ac_res" >&6; }
16621 # Is the header compilable?
16622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16624 cat >conftest.$ac_ext <<_ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 $ac_includes_default
16631 #include <$ac_header>
16633 rm -f conftest.$ac_objext
16634 if { (ac_try="$ac_compile"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_compile") 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest.$ac_objext'
16658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 ac_header_compiler=yes
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_header_compiler=no
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16677 echo "${ECHO_T}$ac_header_compiler" >&6; }
16679 # Is the header present?
16680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16682 cat >conftest.$ac_ext <<_ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 #include <$ac_header>
16690 if { (ac_try="$ac_cpp conftest.$ac_ext"
16691 case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16698 grep -v '^ *+' conftest.er1 >conftest.err
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } >/dev/null; then
16703 if test -s conftest.err; then
16704 ac_cpp_err=$ac_c_preproc_warn_flag
16705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16712 if test -z "$ac_cpp_err"; then
16713 ac_header_preproc=yes
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16718 ac_header_preproc=no
16721 rm -f conftest.err conftest.$ac_ext
16722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16723 echo "${ECHO_T}$ac_header_preproc" >&6; }
16725 # So? What about this header?
16726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16732 ac_header_preproc=yes
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16748 ## ----------------------------------- ##
16749 ## Report this to llvmbugs@cs.uiuc.edu ##
16750 ## ----------------------------------- ##
16752 ) | sed "s/^/$as_me: WARNING: /" >&2
16755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 eval "$as_ac_Header=\$ac_header_preproc"
16762 ac_res=`eval echo '${'$as_ac_Header'}'`
16763 { echo "$as_me:$LINENO: result: $ac_res" >&5
16764 echo "${ECHO_T}$ac_res" >&6; }
16767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16768 cat >>confdefs.h <<_ACEOF
16769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16776 if test "$ENABLE_THREADS" -eq 1 ; then
16778 for ac_header in pthread.h
16780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 ac_res=`eval echo '${'$as_ac_Header'}'`
16788 { echo "$as_me:$LINENO: result: $ac_res" >&5
16789 echo "${ECHO_T}$ac_res" >&6; }
16791 # Is the header compilable?
16792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16794 cat >conftest.$ac_ext <<_ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 $ac_includes_default
16801 #include <$ac_header>
16803 rm -f conftest.$ac_objext
16804 if { (ac_try="$ac_compile"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_compile") 2>conftest.er1
16812 grep -v '^ *+' conftest.er1 >conftest.err
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818 { (case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_try") 2>&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try='test -s conftest.$ac_objext'
16828 { (case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_try") 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_header_compiler=yes
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 ac_header_compiler=no
16845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16847 echo "${ECHO_T}$ac_header_compiler" >&6; }
16849 # Is the header present?
16850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16852 cat >conftest.$ac_ext <<_ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 #include <$ac_header>
16860 if { (ac_try="$ac_cpp conftest.$ac_ext"
16861 case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16868 grep -v '^ *+' conftest.er1 >conftest.err
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } >/dev/null; then
16873 if test -s conftest.err; then
16874 ac_cpp_err=$ac_c_preproc_warn_flag
16875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16882 if test -z "$ac_cpp_err"; then
16883 ac_header_preproc=yes
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16888 ac_header_preproc=no
16891 rm -f conftest.err conftest.$ac_ext
16892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16893 echo "${ECHO_T}$ac_header_preproc" >&6; }
16895 # So? What about this header?
16896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16902 ac_header_preproc=yes
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16918 ## ----------------------------------- ##
16919 ## Report this to llvmbugs@cs.uiuc.edu ##
16920 ## ----------------------------------- ##
16922 ) | sed "s/^/$as_me: WARNING: /" >&2
16925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 eval "$as_ac_Header=\$ac_header_preproc"
16932 ac_res=`eval echo '${'$as_ac_Header'}'`
16933 { echo "$as_me:$LINENO: result: $ac_res" >&5
16934 echo "${ECHO_T}$ac_res" >&6; }
16937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16938 cat >>confdefs.h <<_ACEOF
16939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16955 if test "$llvm_cv_enable_libffi" = "yes" ; then
16958 for ac_header in ffi.h ffi/ffi.h
16960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16967 ac_res=`eval echo '${'$as_ac_Header'}'`
16968 { echo "$as_me:$LINENO: result: $ac_res" >&5
16969 echo "${ECHO_T}$ac_res" >&6; }
16971 # Is the header compilable?
16972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16974 cat >conftest.$ac_ext <<_ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16980 $ac_includes_default
16981 #include <$ac_header>
16983 rm -f conftest.$ac_objext
16984 if { (ac_try="$ac_compile"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_compile") 2>conftest.er1
16992 grep -v '^ *+' conftest.er1 >conftest.err
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
16997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16998 { (case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_try") 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; } &&
17007 { ac_try='test -s conftest.$ac_objext'
17008 { (case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_try") 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_header_compiler=yes
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17022 ac_header_compiler=no
17025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17027 echo "${ECHO_T}$ac_header_compiler" >&6; }
17029 # Is the header present?
17030 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17032 cat >conftest.$ac_ext <<_ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17038 #include <$ac_header>
17040 if { (ac_try="$ac_cpp conftest.$ac_ext"
17041 case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17048 grep -v '^ *+' conftest.er1 >conftest.err
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } >/dev/null; then
17053 if test -s conftest.err; then
17054 ac_cpp_err=$ac_c_preproc_warn_flag
17055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17062 if test -z "$ac_cpp_err"; then
17063 ac_header_preproc=yes
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 ac_header_preproc=no
17071 rm -f conftest.err conftest.$ac_ext
17072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17073 echo "${ECHO_T}$ac_header_preproc" >&6; }
17075 # So? What about this header?
17076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17082 ac_header_preproc=yes
17085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17098 ## ----------------------------------- ##
17099 ## Report this to llvmbugs@cs.uiuc.edu ##
17100 ## ----------------------------------- ##
17102 ) | sed "s/^/$as_me: WARNING: /" >&2
17105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 eval "$as_ac_Header=\$ac_header_preproc"
17112 ac_res=`eval echo '${'$as_ac_Header'}'`
17113 { echo "$as_me:$LINENO: result: $ac_res" >&5
17114 echo "${ECHO_T}$ac_res" >&6; }
17117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17118 cat >>confdefs.h <<_ACEOF
17119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17129 for ac_header in CrashReporterClient.h
17131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 ac_res=`eval echo '${'$as_ac_Header'}'`
17139 { echo "$as_me:$LINENO: result: $ac_res" >&5
17140 echo "${ECHO_T}$ac_res" >&6; }
17142 # Is the header compilable?
17143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17145 cat >conftest.$ac_ext <<_ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17151 $ac_includes_default
17152 #include <$ac_header>
17154 rm -f conftest.$ac_objext
17155 if { (ac_try="$ac_compile"
17156 case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_compile") 2>conftest.er1
17163 grep -v '^ *+' conftest.er1 >conftest.err
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
17168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; } &&
17178 { ac_try='test -s conftest.$ac_objext'
17179 { (case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_try") 2>&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 ac_header_compiler=yes
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_header_compiler=no
17196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17198 echo "${ECHO_T}$ac_header_compiler" >&6; }
17200 # Is the header present?
17201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17203 cat >conftest.$ac_ext <<_ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 #include <$ac_header>
17211 if { (ac_try="$ac_cpp conftest.$ac_ext"
17212 case "(($ac_try" in
17213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214 *) ac_try_echo=$ac_try;;
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17219 grep -v '^ *+' conftest.er1 >conftest.err
17221 cat conftest.err >&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } >/dev/null; then
17224 if test -s conftest.err; then
17225 ac_cpp_err=$ac_c_preproc_warn_flag
17226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17233 if test -z "$ac_cpp_err"; then
17234 ac_header_preproc=yes
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_header_preproc=no
17242 rm -f conftest.err conftest.$ac_ext
17243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17244 echo "${ECHO_T}$ac_header_preproc" >&6; }
17246 # So? What about this header?
17247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17253 ac_header_preproc=yes
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17269 ## ----------------------------------- ##
17270 ## Report this to llvmbugs@cs.uiuc.edu ##
17271 ## ----------------------------------- ##
17273 ) | sed "s/^/$as_me: WARNING: /" >&2
17276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17279 echo $ECHO_N "(cached) $ECHO_C" >&6
17281 eval "$as_ac_Header=\$ac_header_preproc"
17283 ac_res=`eval echo '${'$as_ac_Header'}'`
17284 { echo "$as_me:$LINENO: result: $ac_res" >&5
17285 echo "${ECHO_T}$ac_res" >&6; }
17288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17289 cat >>confdefs.h <<_ACEOF
17290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17301 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17302 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17303 if test "${ac_cv_huge_val_sanity+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 ac_cpp='$CXXCPP $CPPFLAGS'
17309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17313 ac_save_CXXFLAGS=$CXXFLAGS
17315 if test "$cross_compiling" = yes; then
17316 ac_cv_huge_val_sanity=yes
17318 cat >conftest.$ac_ext <<_ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17328 double x = HUGE_VAL; return x != x;
17333 rm -f conftest$ac_exeext
17334 if { (ac_try="$ac_link"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_link") 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17344 { (case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_try") 2>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_cv_huge_val_sanity=yes
17355 echo "$as_me: program exited with status $ac_status" >&5
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 ( exit $ac_status )
17360 ac_cv_huge_val_sanity=no
17362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17366 CXXFLAGS=$ac_save_CXXFLAGS
17368 ac_cpp='$CPP $CPPFLAGS'
17369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17375 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17376 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17377 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17380 { echo "$as_me:$LINENO: checking for pid_t" >&5
17381 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17382 if test "${ac_cv_type_pid_t+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 $ac_includes_default
17392 typedef pid_t ac__type_new_;
17396 if ((ac__type_new_ *) 0)
17398 if (sizeof (ac__type_new_))
17404 rm -f conftest.$ac_objext
17405 if { (ac_try="$ac_compile"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_compile") 2>conftest.er1
17413 grep -v '^ *+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419 { (case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_try") 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest.$ac_objext'
17429 { (case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_try") 2>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_type_pid_t=yes
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 ac_cv_type_pid_t=no
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17448 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17449 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17450 if test $ac_cv_type_pid_t = yes; then
17454 cat >>confdefs.h <<_ACEOF
17460 { echo "$as_me:$LINENO: checking for size_t" >&5
17461 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17462 if test "${ac_cv_type_size_t+set}" = set; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17465 cat >conftest.$ac_ext <<_ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 $ac_includes_default
17472 typedef size_t ac__type_new_;
17476 if ((ac__type_new_ *) 0)
17478 if (sizeof (ac__type_new_))
17484 rm -f conftest.$ac_objext
17485 if { (ac_try="$ac_compile"
17486 case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_compile") 2>conftest.er1
17493 grep -v '^ *+' conftest.er1 >conftest.err
17495 cat conftest.err >&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } &&
17498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17499 { (case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_try") 2>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; } &&
17508 { ac_try='test -s conftest.$ac_objext'
17509 { (case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_try") 2>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_cv_type_size_t=yes
17520 echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17523 ac_cv_type_size_t=no
17526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17528 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17529 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17530 if test $ac_cv_type_size_t = yes; then
17534 cat >>confdefs.h <<_ACEOF
17535 #define size_t unsigned int
17541 cat >>confdefs.h <<_ACEOF
17542 #define RETSIGTYPE void
17545 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17546 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17547 if test "${ac_cv_struct_tm+set}" = set; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 cat >conftest.$ac_ext <<_ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 #include <sys/types.h>
17562 struct tm *tp; tp->tm_sec;
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_compile") 2>conftest.er1
17576 grep -v '^ *+' conftest.er1 >conftest.err
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
17581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17582 { (case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_try") 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try='test -s conftest.$ac_objext'
17592 { (case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_try") 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_struct_tm=time.h
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_struct_tm=sys/time.h
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17611 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17612 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17613 if test $ac_cv_struct_tm = sys/time.h; then
17615 cat >>confdefs.h <<\_ACEOF
17616 #define TM_IN_SYS_TIME 1
17621 { echo "$as_me:$LINENO: checking for int64_t" >&5
17622 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17623 if test "${ac_cv_type_int64_t+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 cat >conftest.$ac_ext <<_ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17632 $ac_includes_default
17633 typedef int64_t ac__type_new_;
17637 if ((ac__type_new_ *) 0)
17639 if (sizeof (ac__type_new_))
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_try") 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_type_int64_t=yes
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17684 ac_cv_type_int64_t=no
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17689 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17690 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17691 if test $ac_cv_type_int64_t = yes; then
17693 cat >>confdefs.h <<_ACEOF
17694 #define HAVE_INT64_T 1
17699 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17700 echo "$as_me: error: Type int64_t required but not found" >&2;}
17701 { (exit 1); exit 1; }; }
17704 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17705 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17706 if test "${ac_cv_type_uint64_t+set}" = set; then
17707 echo $ECHO_N "(cached) $ECHO_C" >&6
17709 cat >conftest.$ac_ext <<_ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h. */
17715 $ac_includes_default
17716 typedef uint64_t ac__type_new_;
17720 if ((ac__type_new_ *) 0)
17722 if (sizeof (ac__type_new_))
17728 rm -f conftest.$ac_objext
17729 if { (ac_try="$ac_compile"
17730 case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_compile") 2>conftest.er1
17737 grep -v '^ *+' conftest.er1 >conftest.err
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; } &&
17752 { ac_try='test -s conftest.$ac_objext'
17753 { (case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_try") 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_cv_type_uint64_t=yes
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17767 ac_cv_type_uint64_t=no
17770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17772 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17773 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17774 if test $ac_cv_type_uint64_t = yes; then
17776 cat >>confdefs.h <<_ACEOF
17777 #define HAVE_UINT64_T 1
17782 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17783 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17784 if test "${ac_cv_type_u_int64_t+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17787 cat >conftest.$ac_ext <<_ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 $ac_includes_default
17794 typedef u_int64_t ac__type_new_;
17798 if ((ac__type_new_ *) 0)
17800 if (sizeof (ac__type_new_))
17806 rm -f conftest.$ac_objext
17807 if { (ac_try="$ac_compile"
17808 case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_compile") 2>conftest.er1
17815 grep -v '^ *+' conftest.er1 >conftest.err
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821 { (case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_try") 2>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_try") 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 ac_cv_type_u_int64_t=yes
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 ac_cv_type_u_int64_t=no
17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17851 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17852 if test $ac_cv_type_u_int64_t = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define HAVE_U_INT64_T 1
17860 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17861 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17862 { (exit 1); exit 1; }; }
17876 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 cat >conftest.$ac_ext <<_ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17892 #define $ac_func innocuous_$ac_func
17894 /* System header to define __stub macros and hopefully few prototypes,
17895 which can conflict with char $ac_func (); below.
17896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17897 <limits.h> exists even on freestanding compilers. */
17900 # include <limits.h>
17902 # include <assert.h>
17907 /* Override any GCC internal prototype to avoid an error.
17908 Use char because int might match the return type of a GCC
17909 builtin and then its argument prototype would still apply. */
17914 /* The GNU C library defines this for functions which it implements
17915 to always fail with ENOSYS. Some functions are actually named
17916 something starting with __ and the normal name is an alias. */
17917 #if defined __stub_$ac_func || defined __stub___$ac_func
17924 return $ac_func ();
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (ac_try="$ac_link"
17931 case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_link") 2>conftest.er1
17938 grep -v '^ *+' conftest.er1 >conftest.err
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
17943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17944 { (case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_try") 2>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest$ac_exeext'
17954 { (case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_try") 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 eval "$as_ac_var=yes"
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 eval "$as_ac_var=no"
17971 rm -f core conftest.err conftest.$ac_objext \
17972 conftest$ac_exeext conftest.$ac_ext
17974 ac_res=`eval echo '${'$as_ac_var'}'`
17975 { echo "$as_me:$LINENO: result: $ac_res" >&5
17976 echo "${ECHO_T}$ac_res" >&6; }
17977 if test `eval echo '${'$as_ac_var'}'` = yes; then
17978 cat >>confdefs.h <<_ACEOF
17979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17989 for ac_func in powf fmodf strtof round
17991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 cat >conftest.$ac_ext <<_ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18005 #define $ac_func innocuous_$ac_func
18007 /* System header to define __stub macros and hopefully few prototypes,
18008 which can conflict with char $ac_func (); below.
18009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18010 <limits.h> exists even on freestanding compilers. */
18013 # include <limits.h>
18015 # include <assert.h>
18020 /* Override any GCC internal prototype to avoid an error.
18021 Use char because int might match the return type of a GCC
18022 builtin and then its argument prototype would still apply. */
18027 /* The GNU C library defines this for functions which it implements
18028 to always fail with ENOSYS. Some functions are actually named
18029 something starting with __ and the normal name is an alias. */
18030 #if defined __stub_$ac_func || defined __stub___$ac_func
18037 return $ac_func ();
18042 rm -f conftest.$ac_objext conftest$ac_exeext
18043 if { (ac_try="$ac_link"
18044 case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_link") 2>conftest.er1
18051 grep -v '^ *+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18057 { (case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_try") 2>&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; } &&
18066 { ac_try='test -s conftest$ac_exeext'
18067 { (case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_try") 2>&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076 eval "$as_ac_var=yes"
18078 echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18081 eval "$as_ac_var=no"
18084 rm -f core conftest.err conftest.$ac_objext \
18085 conftest$ac_exeext conftest.$ac_ext
18087 ac_res=`eval echo '${'$as_ac_var'}'`
18088 { echo "$as_me:$LINENO: result: $ac_res" >&5
18089 echo "${ECHO_T}$ac_res" >&6; }
18090 if test `eval echo '${'$as_ac_var'}'` = yes; then
18091 cat >>confdefs.h <<_ACEOF
18092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18103 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 cat >conftest.$ac_ext <<_ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18119 #define $ac_func innocuous_$ac_func
18121 /* System header to define __stub macros and hopefully few prototypes,
18122 which can conflict with char $ac_func (); below.
18123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18124 <limits.h> exists even on freestanding compilers. */
18127 # include <limits.h>
18129 # include <assert.h>
18134 /* Override any GCC internal prototype to avoid an error.
18135 Use char because int might match the return type of a GCC
18136 builtin and then its argument prototype would still apply. */
18141 /* The GNU C library defines this for functions which it implements
18142 to always fail with ENOSYS. Some functions are actually named
18143 something starting with __ and the normal name is an alias. */
18144 #if defined __stub_$ac_func || defined __stub___$ac_func
18151 return $ac_func ();
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (ac_try="$ac_link"
18158 case "(($ac_try" in
18159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18160 *) ac_try_echo=$ac_try;;
18162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18163 (eval "$ac_link") 2>conftest.er1
18165 grep -v '^ *+' conftest.er1 >conftest.err
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18180 { ac_try='test -s conftest$ac_exeext'
18181 { (case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_try") 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 eval "$as_ac_var=yes"
18192 echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18195 eval "$as_ac_var=no"
18198 rm -f core conftest.err conftest.$ac_objext \
18199 conftest$ac_exeext conftest.$ac_ext
18201 ac_res=`eval echo '${'$as_ac_var'}'`
18202 { echo "$as_me:$LINENO: result: $ac_res" >&5
18203 echo "${ECHO_T}$ac_res" >&6; }
18204 if test `eval echo '${'$as_ac_var'}'` = yes; then
18205 cat >>confdefs.h <<_ACEOF
18206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18215 for ac_func in isatty mkdtemp mkstemp
18217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18223 cat >conftest.$ac_ext <<_ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18231 #define $ac_func innocuous_$ac_func
18233 /* System header to define __stub macros and hopefully few prototypes,
18234 which can conflict with char $ac_func (); below.
18235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18236 <limits.h> exists even on freestanding compilers. */
18239 # include <limits.h>
18241 # include <assert.h>
18246 /* Override any GCC internal prototype to avoid an error.
18247 Use char because int might match the return type of a GCC
18248 builtin and then its argument prototype would still apply. */
18253 /* The GNU C library defines this for functions which it implements
18254 to always fail with ENOSYS. Some functions are actually named
18255 something starting with __ and the normal name is an alias. */
18256 #if defined __stub_$ac_func || defined __stub___$ac_func
18263 return $ac_func ();
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (ac_try="$ac_link"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_link") 2>conftest.er1
18277 grep -v '^ *+' conftest.er1 >conftest.err
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18283 { (case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_try") 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest$ac_exeext'
18293 { (case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_try") 2>&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; }; then
18302 eval "$as_ac_var=yes"
18304 echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18307 eval "$as_ac_var=no"
18310 rm -f core conftest.err conftest.$ac_objext \
18311 conftest$ac_exeext conftest.$ac_ext
18313 ac_res=`eval echo '${'$as_ac_var'}'`
18314 { echo "$as_me:$LINENO: result: $ac_res" >&5
18315 echo "${ECHO_T}$ac_res" >&6; }
18316 if test `eval echo '${'$as_ac_var'}'` = yes; then
18317 cat >>confdefs.h <<_ACEOF
18318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18330 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18338 cat >conftest.$ac_ext <<_ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18346 #define $ac_func innocuous_$ac_func
18348 /* System header to define __stub macros and hopefully few prototypes,
18349 which can conflict with char $ac_func (); below.
18350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18351 <limits.h> exists even on freestanding compilers. */
18354 # include <limits.h>
18356 # include <assert.h>
18361 /* Override any GCC internal prototype to avoid an error.
18362 Use char because int might match the return type of a GCC
18363 builtin and then its argument prototype would still apply. */
18368 /* The GNU C library defines this for functions which it implements
18369 to always fail with ENOSYS. Some functions are actually named
18370 something starting with __ and the normal name is an alias. */
18371 #if defined __stub_$ac_func || defined __stub___$ac_func
18378 return $ac_func ();
18383 rm -f conftest.$ac_objext conftest$ac_exeext
18384 if { (ac_try="$ac_link"
18385 case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_link") 2>conftest.er1
18392 grep -v '^ *+' conftest.er1 >conftest.err
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } &&
18397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18407 { ac_try='test -s conftest$ac_exeext'
18408 { (case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_try") 2>&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; }; then
18417 eval "$as_ac_var=yes"
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18422 eval "$as_ac_var=no"
18425 rm -f core conftest.err conftest.$ac_objext \
18426 conftest$ac_exeext conftest.$ac_ext
18428 ac_res=`eval echo '${'$as_ac_var'}'`
18429 { echo "$as_me:$LINENO: result: $ac_res" >&5
18430 echo "${ECHO_T}$ac_res" >&6; }
18431 if test `eval echo '${'$as_ac_var'}'` = yes; then
18432 cat >>confdefs.h <<_ACEOF
18433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18443 for ac_func in strerror strerror_r strerror_s setenv
18445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 cat >conftest.$ac_ext <<_ACEOF
18454 cat confdefs.h >>conftest.$ac_ext
18455 cat >>conftest.$ac_ext <<_ACEOF
18456 /* end confdefs.h. */
18457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18459 #define $ac_func innocuous_$ac_func
18461 /* System header to define __stub macros and hopefully few prototypes,
18462 which can conflict with char $ac_func (); below.
18463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18464 <limits.h> exists even on freestanding compilers. */
18467 # include <limits.h>
18469 # include <assert.h>
18474 /* Override any GCC internal prototype to avoid an error.
18475 Use char because int might match the return type of a GCC
18476 builtin and then its argument prototype would still apply. */
18481 /* The GNU C library defines this for functions which it implements
18482 to always fail with ENOSYS. Some functions are actually named
18483 something starting with __ and the normal name is an alias. */
18484 #if defined __stub_$ac_func || defined __stub___$ac_func
18491 return $ac_func ();
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (ac_try="$ac_link"
18498 case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_link") 2>conftest.er1
18505 grep -v '^ *+' conftest.er1 >conftest.err
18507 cat conftest.err >&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
18510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18511 { (case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_try") 2>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try='test -s conftest$ac_exeext'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18530 eval "$as_ac_var=yes"
18532 echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18535 eval "$as_ac_var=no"
18538 rm -f core conftest.err conftest.$ac_objext \
18539 conftest$ac_exeext conftest.$ac_ext
18541 ac_res=`eval echo '${'$as_ac_var'}'`
18542 { echo "$as_me:$LINENO: result: $ac_res" >&5
18543 echo "${ECHO_T}$ac_res" >&6; }
18544 if test `eval echo '${'$as_ac_var'}'` = yes; then
18545 cat >>confdefs.h <<_ACEOF
18546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18556 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 cat >conftest.$ac_ext <<_ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18572 #define $ac_func innocuous_$ac_func
18574 /* System header to define __stub macros and hopefully few prototypes,
18575 which can conflict with char $ac_func (); below.
18576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18577 <limits.h> exists even on freestanding compilers. */
18580 # include <limits.h>
18582 # include <assert.h>
18587 /* Override any GCC internal prototype to avoid an error.
18588 Use char because int might match the return type of a GCC
18589 builtin and then its argument prototype would still apply. */
18594 /* The GNU C library defines this for functions which it implements
18595 to always fail with ENOSYS. Some functions are actually named
18596 something starting with __ and the normal name is an alias. */
18597 #if defined __stub_$ac_func || defined __stub___$ac_func
18604 return $ac_func ();
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_link") 2>conftest.er1
18618 grep -v '^ *+' conftest.er1 >conftest.err
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18624 { (case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_try") 2>&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest$ac_exeext'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 eval "$as_ac_var=yes"
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 eval "$as_ac_var=no"
18651 rm -f core conftest.err conftest.$ac_objext \
18652 conftest$ac_exeext conftest.$ac_ext
18654 ac_res=`eval echo '${'$as_ac_var'}'`
18655 { echo "$as_me:$LINENO: result: $ac_res" >&5
18656 echo "${ECHO_T}$ac_res" >&6; }
18657 if test `eval echo '${'$as_ac_var'}'` = yes; then
18658 cat >>confdefs.h <<_ACEOF
18659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18669 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18677 cat >conftest.$ac_ext <<_ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18685 #define $ac_func innocuous_$ac_func
18687 /* System header to define __stub macros and hopefully few prototypes,
18688 which can conflict with char $ac_func (); below.
18689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18690 <limits.h> exists even on freestanding compilers. */
18693 # include <limits.h>
18695 # include <assert.h>
18700 /* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18707 /* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
18710 #if defined __stub_$ac_func || defined __stub___$ac_func
18717 return $ac_func ();
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_link") 2>conftest.er1
18731 grep -v '^ *+' conftest.er1 >conftest.err
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } &&
18736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18737 { (case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_try") 2>&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; } &&
18746 { ac_try='test -s conftest$ac_exeext'
18747 { (case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_try") 2>&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; }; then
18756 eval "$as_ac_var=yes"
18758 echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18761 eval "$as_ac_var=no"
18764 rm -f core conftest.err conftest.$ac_objext \
18765 conftest$ac_exeext conftest.$ac_ext
18767 ac_res=`eval echo '${'$as_ac_var'}'`
18768 { echo "$as_me:$LINENO: result: $ac_res" >&5
18769 echo "${ECHO_T}$ac_res" >&6; }
18770 if test `eval echo '${'$as_ac_var'}'` = yes; then
18771 cat >>confdefs.h <<_ACEOF
18772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18778 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18779 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18780 if test "${llvm_cv_c_printf_a+set}" = set; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 ac_cpp='$CPP $CPPFLAGS'
18785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18789 if test "$cross_compiling" = yes; then
18790 llvmac_cv_c_printf_a=no
18792 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18801 #include <stdlib.h>
18807 volatile double A, B;
18811 sprintf(Buffer, "%a", A);
18815 if (A != 0x1.999999999999ap-4)
18822 rm -f conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_link") 2>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18833 { (case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_try") 2>&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 llvm_cv_c_printf_a=yes
18844 echo "$as_me: program exited with status $ac_status" >&5
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 ( exit $ac_status )
18849 llvmac_cv_c_printf_a=no
18851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18856 ac_cpp='$CPP $CPPFLAGS'
18857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18862 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18863 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18864 if test "$llvm_cv_c_printf_a" = "yes"; then
18866 cat >>confdefs.h <<\_ACEOF
18867 #define HAVE_PRINTF_A 1
18873 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18874 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18875 if test "${ac_cv_func_rand48+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18879 ac_cpp='$CXXCPP $CPPFLAGS'
18880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18884 cat >conftest.$ac_ext <<_ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18890 #include <stdlib.h>
18894 srand48(0);lrand48();drand48();
18899 rm -f conftest.$ac_objext
18900 if { (ac_try="$ac_compile"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_compile") 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest.$ac_objext'
18924 { (case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_try") 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 ac_cv_func_rand48=yes
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 ac_cv_func_rand48=no
18941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18943 ac_cpp='$CPP $CPPFLAGS'
18944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18949 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18950 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18952 if test "$ac_cv_func_rand48" = "yes" ; then
18954 cat >>confdefs.h <<\_ACEOF
18955 #define HAVE_RAND48 1
18962 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18963 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18964 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 ac_cpp='$CXXCPP $CPPFLAGS'
18969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18973 cat >conftest.$ac_ext <<_ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h. */
18988 rm -f conftest.$ac_objext
18989 if { (ac_try="$ac_compile"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_compile") 2>conftest.er1
18997 grep -v '^ *+' conftest.er1 >conftest.err
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } &&
19002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19003 { (case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_try") 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; } &&
19012 { ac_try='test -s conftest.$ac_objext'
19013 { (case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_try") 2>&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
19022 ac_cv_func_isnan_in_math_h=yes
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19027 ac_cv_func_isnan_in_math_h=no
19030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19032 ac_cpp='$CPP $CPPFLAGS'
19033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19038 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19039 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19042 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19044 cat >>confdefs.h <<\_ACEOF
19045 #define HAVE_ISNAN_IN_MATH_H 1
19050 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19051 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19052 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19056 ac_cpp='$CXXCPP $CPPFLAGS'
19057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19061 cat >conftest.$ac_ext <<_ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19076 rm -f conftest.$ac_objext
19077 if { (ac_try="$ac_compile"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_compile") 2>conftest.er1
19085 grep -v '^ *+' conftest.er1 >conftest.err
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
19090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19091 { (case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_try") 2>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest.$ac_objext'
19101 { (case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_try") 2>&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; }; then
19110 ac_cv_func_isnan_in_cmath=yes
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19115 ac_cv_func_isnan_in_cmath=no
19118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19120 ac_cpp='$CPP $CPPFLAGS'
19121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19126 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19127 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19129 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_ISNAN_IN_CMATH 1
19137 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19138 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19139 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 ac_cpp='$CXXCPP $CPPFLAGS'
19144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19148 cat >conftest.$ac_ext <<_ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19158 float f; std::isnan(f);
19163 rm -f conftest.$ac_objext
19164 if { (ac_try="$ac_compile"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_compile") 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_try") 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_func_std_isnan_in_cmath=yes
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_cv_func_std_isnan_in_cmath=no
19205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 ac_cpp='$CPP $CPPFLAGS'
19208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19213 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19214 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19216 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19218 cat >>confdefs.h <<\_ACEOF
19219 #define HAVE_STD_ISNAN_IN_CMATH 1
19225 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19226 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19227 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 ac_cpp='$CXXCPP $CPPFLAGS'
19232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19251 rm -f conftest.$ac_objext
19252 if { (ac_try="$ac_compile"
19253 case "(($ac_try" in
19254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255 *) ac_try_echo=$ac_try;;
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_compile") 2>conftest.er1
19260 grep -v '^ *+' conftest.er1 >conftest.err
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19266 { (case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_try") 2>&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest.$ac_objext'
19276 { (case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_try") 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
19285 ac_cv_func_isinf_in_math_h=yes
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 ac_cv_func_isinf_in_math_h=no
19293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19295 ac_cpp='$CPP $CPPFLAGS'
19296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19301 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19302 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19304 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19306 cat >>confdefs.h <<\_ACEOF
19307 #define HAVE_ISINF_IN_MATH_H 1
19312 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19313 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19314 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 ac_cpp='$CXXCPP $CPPFLAGS'
19319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19347 grep -v '^ *+' conftest.er1 >conftest.err
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19353 { (case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_try") 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest.$ac_objext'
19363 { (case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_try") 2>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
19372 ac_cv_func_isinf_in_cmath=yes
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_func_isinf_in_cmath=no
19380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19382 ac_cpp='$CPP $CPPFLAGS'
19383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19388 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19389 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19391 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19393 cat >>confdefs.h <<\_ACEOF
19394 #define HAVE_ISINF_IN_CMATH 1
19399 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19400 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19401 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 ac_cpp='$CXXCPP $CPPFLAGS'
19406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19410 cat >conftest.$ac_ext <<_ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19420 float f; std::isinf(f)}
19425 rm -f conftest.$ac_objext
19426 if { (ac_try="$ac_compile"
19427 case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_compile") 2>conftest.er1
19434 grep -v '^ *+' conftest.er1 >conftest.err
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19440 { (case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_try") 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try='test -s conftest.$ac_objext'
19450 { (case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_try") 2>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
19459 ac_cv_func_std_isinf_in_cmath=yes
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19464 ac_cv_func_std_isinf_in_cmath=no
19467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19469 ac_cpp='$CPP $CPPFLAGS'
19470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19475 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19476 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19478 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE_STD_ISINF_IN_CMATH 1
19486 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19487 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19488 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 ac_cpp='$CXXCPP $CPPFLAGS'
19493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19497 cat >conftest.$ac_ext <<_ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h. */
19503 #include <ieeefp.h>
19507 float f; finite(f);
19512 rm -f conftest.$ac_objext
19513 if { (ac_try="$ac_compile"
19514 case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_compile") 2>conftest.er1
19521 grep -v '^ *+' conftest.er1 >conftest.err
19523 cat conftest.err >&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
19526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19527 { (case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_try") 2>&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; } &&
19536 { ac_try='test -s conftest.$ac_objext'
19537 { (case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_try") 2>&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; }; then
19546 ac_cv_func_finite_in_ieeefp_h=yes
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 ac_cv_func_finite_in_ieeefp_h=no
19554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19556 ac_cpp='$CPP $CPPFLAGS'
19557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19562 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19563 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19565 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19567 cat >>confdefs.h <<\_ACEOF
19568 #define HAVE_FINITE_IN_IEEEFP_H 1
19575 if test "$llvm_cv_platform_type" = "Unix" ; then
19578 for ac_header in stdlib.h unistd.h
19580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 ac_res=`eval echo '${'$as_ac_Header'}'`
19588 { echo "$as_me:$LINENO: result: $ac_res" >&5
19589 echo "${ECHO_T}$ac_res" >&6; }
19591 # Is the header compilable?
19592 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 $ac_includes_default
19601 #include <$ac_header>
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610 (eval "$ac_compile") 2>conftest.er1
19612 grep -v '^ *+' conftest.er1 >conftest.err
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
19617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19618 { (case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_try") 2>&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_try") 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_header_compiler=yes
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 ac_header_compiler=no
19645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19647 echo "${ECHO_T}$ac_header_compiler" >&6; }
19649 # Is the header present?
19650 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19652 cat >conftest.$ac_ext <<_ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658 #include <$ac_header>
19660 if { (ac_try="$ac_cpp conftest.$ac_ext"
19661 case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19668 grep -v '^ *+' conftest.er1 >conftest.err
19670 cat conftest.err >&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } >/dev/null; then
19673 if test -s conftest.err; then
19674 ac_cpp_err=$ac_c_preproc_warn_flag
19675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19682 if test -z "$ac_cpp_err"; then
19683 ac_header_preproc=yes
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_header_preproc=no
19691 rm -f conftest.err conftest.$ac_ext
19692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19693 echo "${ECHO_T}$ac_header_preproc" >&6; }
19695 # So? What about this header?
19696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19702 ac_header_preproc=yes
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19718 ## ----------------------------------- ##
19719 ## Report this to llvmbugs@cs.uiuc.edu ##
19720 ## ----------------------------------- ##
19722 ) | sed "s/^/$as_me: WARNING: /" >&2
19725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19730 eval "$as_ac_Header=\$ac_header_preproc"
19732 ac_res=`eval echo '${'$as_ac_Header'}'`
19733 { echo "$as_me:$LINENO: result: $ac_res" >&5
19734 echo "${ECHO_T}$ac_res" >&6; }
19737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19738 cat >>confdefs.h <<_ACEOF
19739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19747 for ac_func in getpagesize
19749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19755 cat >conftest.$ac_ext <<_ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19763 #define $ac_func innocuous_$ac_func
19765 /* System header to define __stub macros and hopefully few prototypes,
19766 which can conflict with char $ac_func (); below.
19767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19768 <limits.h> exists even on freestanding compilers. */
19771 # include <limits.h>
19773 # include <assert.h>
19778 /* Override any GCC internal prototype to avoid an error.
19779 Use char because int might match the return type of a GCC
19780 builtin and then its argument prototype would still apply. */
19785 /* The GNU C library defines this for functions which it implements
19786 to always fail with ENOSYS. Some functions are actually named
19787 something starting with __ and the normal name is an alias. */
19788 #if defined __stub_$ac_func || defined __stub___$ac_func
19795 return $ac_func ();
19800 rm -f conftest.$ac_objext conftest$ac_exeext
19801 if { (ac_try="$ac_link"
19802 case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_link") 2>conftest.er1
19809 grep -v '^ *+' conftest.er1 >conftest.err
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
19814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19815 { (case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_try") 2>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest$ac_exeext'
19825 { (case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830 (eval "$ac_try") 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; }; then
19834 eval "$as_ac_var=yes"
19836 echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 eval "$as_ac_var=no"
19842 rm -f core conftest.err conftest.$ac_objext \
19843 conftest$ac_exeext conftest.$ac_ext
19845 ac_res=`eval echo '${'$as_ac_var'}'`
19846 { echo "$as_me:$LINENO: result: $ac_res" >&5
19847 echo "${ECHO_T}$ac_res" >&6; }
19848 if test `eval echo '${'$as_ac_var'}'` = yes; then
19849 cat >>confdefs.h <<_ACEOF
19850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19856 { echo "$as_me:$LINENO: checking for working mmap" >&5
19857 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19858 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19861 if test "$cross_compiling" = yes; then
19862 ac_cv_func_mmap_fixed_mapped=no
19864 cat >conftest.$ac_ext <<_ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 $ac_includes_default
19871 /* malloc might have been renamed as rpl_malloc. */
19874 /* Thanks to Mike Haertel and Jim Avera for this test.
19875 Here is a matrix of mmap possibilities:
19876 mmap private not fixed
19877 mmap private fixed at somewhere currently unmapped
19878 mmap private fixed at somewhere already mapped
19879 mmap shared not fixed
19880 mmap shared fixed at somewhere currently unmapped
19881 mmap shared fixed at somewhere already mapped
19882 For private mappings, we should verify that changes cannot be read()
19883 back from the file, nor mmap's back from the file at a different
19884 address. (There have been systems where private was not correctly
19885 implemented like the infamous i386 svr4.0, and systems where the
19886 VM page cache was not coherent with the file system buffer cache
19887 like early versions of FreeBSD and possibly contemporary NetBSD.)
19888 For shared mappings, we should conversely verify that changes get
19889 propagated back to all the places they're supposed to be.
19891 Grep wants private fixed already mapped.
19892 The main things grep needs to know about mmap are:
19893 * does it exist and is it safe to write into the mmap'd area
19894 * how to use it (BSD variants) */
19897 #include <sys/mman.h>
19899 #if !STDC_HEADERS && !HAVE_STDLIB_H
19903 /* This mess was copied from the GNU getpagesize.h. */
19904 #if !HAVE_GETPAGESIZE
19905 /* Assume that all systems that can run configure have sys/param.h. */
19906 # if !HAVE_SYS_PARAM_H
19907 # define HAVE_SYS_PARAM_H 1
19910 # ifdef _SC_PAGESIZE
19911 # define getpagesize() sysconf(_SC_PAGESIZE)
19912 # else /* no _SC_PAGESIZE */
19913 # if HAVE_SYS_PARAM_H
19914 # include <sys/param.h>
19915 # ifdef EXEC_PAGESIZE
19916 # define getpagesize() EXEC_PAGESIZE
19917 # else /* no EXEC_PAGESIZE */
19919 # define getpagesize() NBPG * CLSIZE
19922 # endif /* no CLSIZE */
19923 # else /* no NBPG */
19925 # define getpagesize() NBPC
19926 # else /* no NBPC */
19928 # define getpagesize() PAGESIZE
19929 # endif /* PAGESIZE */
19930 # endif /* no NBPC */
19931 # endif /* no NBPG */
19932 # endif /* no EXEC_PAGESIZE */
19933 # else /* no HAVE_SYS_PARAM_H */
19934 # define getpagesize() 8192 /* punt totally */
19935 # endif /* no HAVE_SYS_PARAM_H */
19936 # endif /* no _SC_PAGESIZE */
19938 #endif /* no HAVE_GETPAGESIZE */
19943 char *data, *data2, *data3;
19947 pagesize = getpagesize ();
19949 /* First, make a file with some known garbage in it. */
19950 data = (char *) malloc (pagesize);
19953 for (i = 0; i < pagesize; ++i)
19954 *(data + i) = rand ();
19956 fd = creat ("conftest.mmap", 0600);
19959 if (write (fd, data, pagesize) != pagesize)
19963 /* Next, try to mmap the file at a fixed address which already has
19964 something else allocated at it. If we can, also make sure that
19965 we see the same garbage. */
19966 fd = open ("conftest.mmap", O_RDWR);
19969 data2 = (char *) malloc (2 * pagesize);
19972 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19973 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19974 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19976 for (i = 0; i < pagesize; ++i)
19977 if (*(data + i) != *(data2 + i))
19980 /* Finally, make sure that changes to the mapped area do not
19981 percolate back to the file as seen by read(). (This is a bug on
19982 some variants of i386 svr4.0.) */
19983 for (i = 0; i < pagesize; ++i)
19984 *(data2 + i) = *(data2 + i) + 1;
19985 data3 = (char *) malloc (pagesize);
19988 if (read (fd, data3, pagesize) != pagesize)
19990 for (i = 0; i < pagesize; ++i)
19991 if (*(data + i) != *(data3 + i))
19997 rm -f conftest$ac_exeext
19998 if { (ac_try="$ac_link"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_link") 2>&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20008 { (case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_try") 2>&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 ac_cv_func_mmap_fixed_mapped=yes
20019 echo "$as_me: program exited with status $ac_status" >&5
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20023 ( exit $ac_status )
20024 ac_cv_func_mmap_fixed_mapped=no
20026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20031 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20032 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20033 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20035 cat >>confdefs.h <<\_ACEOF
20036 #define HAVE_MMAP 1
20040 rm -f conftest.mmap
20042 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20043 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20044 if test "${ac_cv_func_mmap_file+set}" = set; then
20045 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 ac_cpp='$CPP $CPPFLAGS'
20049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20053 if test "$cross_compiling" = yes; then
20054 ac_cv_func_mmap_file=no
20056 cat >conftest.$ac_ext <<_ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20064 #include <sys/types.h>
20065 #include <sys/mman.h>
20073 fd = creat ("foo",0777);
20074 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20076 return (fd != (int) MAP_FAILED);
20081 rm -f conftest$ac_exeext
20082 if { (ac_try="$ac_link"
20083 case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_link") 2>&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20092 { (case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_try") 2>&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 ac_cv_func_mmap_file=yes
20103 echo "$as_me: program exited with status $ac_status" >&5
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 ( exit $ac_status )
20108 ac_cv_func_mmap_file=no
20110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20115 ac_cpp='$CPP $CPPFLAGS'
20116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20122 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20123 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20124 if test "$ac_cv_func_mmap_file" = yes; then
20126 cat >>confdefs.h <<\_ACEOF
20127 #define HAVE_MMAP_FILE
20134 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20135 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20136 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 if test "$llvm_cv_os_type" = "Interix" ; then
20140 ac_cv_need_dev_zero_for_mmap=yes
20142 ac_cv_need_dev_zero_for_mmap=no
20146 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20147 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20148 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20150 cat >>confdefs.h <<\_ACEOF
20151 #define NEED_DEV_ZERO_FOR_MMAP 1
20156 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20158 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20159 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20161 if test "$ac_cv_func_mmap_file" = "no"
20163 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20164 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20168 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20169 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20171 ac_cpp='$CXXCPP $CPPFLAGS'
20172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20176 cat >conftest.$ac_ext <<_ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20183 volatile unsigned long val = 1;
20184 __sync_synchronize();
20185 __sync_val_compare_and_swap(&val, 1, 0);
20186 __sync_add_and_fetch(&val, 1);
20187 __sync_sub_and_fetch(&val, 1);
20192 rm -f conftest.$ac_objext conftest$ac_exeext
20193 if { (ac_try="$ac_link"
20194 case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_link") 2>conftest.er1
20201 grep -v '^ *+' conftest.er1 >conftest.err
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } &&
20206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20207 { (case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_try") 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest$ac_exeext'
20217 { (case "(($ac_try" in
20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219 *) ac_try_echo=$ac_try;;
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222 (eval "$ac_try") 2>&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; }; then
20227 ac_cpp='$CPP $CPPFLAGS'
20228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20232 { echo "$as_me:$LINENO: result: yes" >&5
20233 echo "${ECHO_T}yes" >&6; }
20235 cat >>confdefs.h <<\_ACEOF
20236 #define LLVM_MULTITHREADED 1
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 { echo "$as_me:$LINENO: result: no" >&5
20244 echo "${ECHO_T}no" >&6; }
20246 cat >>confdefs.h <<\_ACEOF
20247 #define LLVM_MULTITHREADED 0
20250 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20251 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20254 rm -f core conftest.err conftest.$ac_objext \
20255 conftest$ac_exeext conftest.$ac_ext
20258 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20259 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20260 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20261 if test "${llvm_cv_linux_mixed+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 cat >conftest.$ac_ext <<_ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20277 error: Not x86-64 even if uname says so!
20288 rm -f conftest.$ac_objext
20289 if { (ac_try="$ac_compile"
20290 case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_compile") 2>conftest.er1
20297 grep -v '^ *+' conftest.er1 >conftest.err
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
20302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20303 { (case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_try") 2>&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } &&
20312 { ac_try='test -s conftest.$ac_objext'
20313 { (case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_try") 2>&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 llvm_cv_linux_mixed=no
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 llvm_cv_linux_mixed=yes
20330 rm -f core conftest.err 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: $llvm_cv_linux_mixed" >&5
20340 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20342 if test "$llvm_cv_linux_mixed" = "yes"; then
20343 llvm_cv_target_arch="x86"
20349 for ac_func in __dso_handle
20351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 cat >conftest.$ac_ext <<_ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20365 #define $ac_func innocuous_$ac_func
20367 /* System header to define __stub macros and hopefully few prototypes,
20368 which can conflict with char $ac_func (); below.
20369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20370 <limits.h> exists even on freestanding compilers. */
20373 # include <limits.h>
20375 # include <assert.h>
20380 /* Override any GCC internal prototype to avoid an error.
20381 Use char because int might match the return type of a GCC
20382 builtin and then its argument prototype would still apply. */
20387 /* The GNU C library defines this for functions which it implements
20388 to always fail with ENOSYS. Some functions are actually named
20389 something starting with __ and the normal name is an alias. */
20390 #if defined __stub_$ac_func || defined __stub___$ac_func
20397 return $ac_func ();
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (ac_try="$ac_link"
20404 case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_link") 2>conftest.er1
20411 grep -v '^ *+' conftest.er1 >conftest.err
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20417 { (case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_try") 2>&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; } &&
20426 { ac_try='test -s conftest$ac_exeext'
20427 { (case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_try") 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; }; then
20436 eval "$as_ac_var=yes"
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20441 eval "$as_ac_var=no"
20444 rm -f core conftest.err conftest.$ac_objext \
20445 conftest$ac_exeext conftest.$ac_ext
20447 ac_res=`eval echo '${'$as_ac_var'}'`
20448 { echo "$as_me:$LINENO: result: $ac_res" >&5
20449 echo "${ECHO_T}$ac_res" >&6; }
20450 if test `eval echo '${'$as_ac_var'}'` = yes; then
20451 cat >>confdefs.h <<_ACEOF
20452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20459 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20460 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20461 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 llvm_cv_llvmgcc_sanity="no"
20465 if test -x "$LLVMGCC" ; then
20466 cp /dev/null conftest.c
20467 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20468 grep 'target datalayout =' > /dev/null 2>&1
20469 if test $? -eq 0 ; then
20470 llvm_cv_llvmgcc_sanity="yes"
20475 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20476 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20478 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20479 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20480 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20481 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20482 LLVMCC1=$llvmcc1path
20484 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20485 LLVMCC1PLUS=$llvmcc1pluspath
20487 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20488 LLVMGCCDIR=$llvmgccdir
20490 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20491 LLVMGCC_LANGS=$llvmgcclangs
20493 { echo "$as_me:$LINENO: result: ok" >&5
20494 echo "${ECHO_T}ok" >&6; }
20497 SHLIBEXT=$libltdl_cv_shlibext
20500 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20503 # Translate the various configuration directories and other basic
20504 # information into substitutions that will end up in Makefile.config.in
20505 # that these configured values can be used by the makefiles
20506 if test "${prefix}" = "NONE" ; then
20507 prefix="/usr/local"
20509 eval LLVM_PREFIX="${prefix}";
20510 eval LLVM_BINDIR="${prefix}/bin";
20511 eval LLVM_LIBDIR="${prefix}/lib";
20512 eval LLVM_DATADIR="${prefix}/share/llvm";
20513 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20514 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20515 eval LLVM_INCLUDEDIR="${prefix}/include";
20516 eval LLVM_INFODIR="${prefix}/info";
20517 eval LLVM_MANDIR="${prefix}/man";
20518 LLVM_CONFIGTIME=`date`
20530 # Place the various directores into the config.h file as #defines so that we
20531 # can know about the installation paths within LLVM.
20533 cat >>confdefs.h <<_ACEOF
20534 #define LLVM_PREFIX "$LLVM_PREFIX"
20538 cat >>confdefs.h <<_ACEOF
20539 #define LLVM_BINDIR "$LLVM_BINDIR"
20543 cat >>confdefs.h <<_ACEOF
20544 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20548 cat >>confdefs.h <<_ACEOF
20549 #define LLVM_DATADIR "$LLVM_DATADIR"
20553 cat >>confdefs.h <<_ACEOF
20554 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20558 cat >>confdefs.h <<_ACEOF
20559 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20563 cat >>confdefs.h <<_ACEOF
20564 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20568 cat >>confdefs.h <<_ACEOF
20569 #define LLVM_INFODIR "$LLVM_INFODIR"
20573 cat >>confdefs.h <<_ACEOF
20574 #define LLVM_MANDIR "$LLVM_MANDIR"
20578 cat >>confdefs.h <<_ACEOF
20579 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20583 cat >>confdefs.h <<_ACEOF
20584 #define LLVM_HOSTTRIPLE "$host"
20588 # Determine which bindings to build.
20589 if test "$BINDINGS_TO_BUILD" = auto ; then
20590 BINDINGS_TO_BUILD=""
20591 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20592 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20595 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20598 # This isn't really configurey, but it avoids having to repeat the list in
20603 # Do any work necessary to ensure that bindings have what they need.
20604 binding_prereqs_failed=0
20605 for a_binding in $BINDINGS_TO_BUILD ; do
20606 case "$a_binding" in
20608 if test "x$OCAMLC" = x ; then
20609 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20610 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20611 binding_prereqs_failed=1
20613 if test "x$OCAMLDEP" = x ; then
20614 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20615 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20616 binding_prereqs_failed=1
20618 if test "x$OCAMLOPT" = x ; then
20619 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20620 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20622 if test "x$with_ocaml_libdir" != xauto ; then
20623 OCAML_LIBDIR=$with_ocaml_libdir
20626 ocaml_stdlib="`"$OCAMLC" -where`"
20627 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20629 # ocaml stdlib is beneath our prefix; use stdlib
20630 OCAML_LIBDIR=$ocaml_stdlib
20633 # ocaml stdlib is outside our prefix; use libdir/ocaml
20634 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20641 if test "$binding_prereqs_failed" = 1 ; then
20642 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20643 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20644 { (exit 1); exit 1; }; }
20647 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20648 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20649 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20650 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 ac_cpp='$CXXCPP $CPPFLAGS'
20654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20658 oldcxxflags="$CXXFLAGS"
20659 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20660 cat >conftest.$ac_ext <<_ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20675 rm -f conftest.$ac_objext
20676 if { (ac_try="$ac_compile"
20677 case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_compile") 2>conftest.er1
20684 grep -v '^ *+' conftest.er1 >conftest.err
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } &&
20689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20690 { (case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_try") 2>&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; } &&
20699 { ac_try='test -s conftest.$ac_objext'
20700 { (case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_try") 2>&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; }; then
20709 llvm_cv_cxx_visibility_inlines_hidden=yes
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20714 llvm_cv_cxx_visibility_inlines_hidden=no
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 CXXFLAGS="$oldcxxflags"
20720 ac_cpp='$CPP $CPPFLAGS'
20721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20727 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20728 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20729 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20730 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20733 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20738 if test "$llvm_cv_link_use_r" = "yes" ; then
20745 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20746 RDYNAMIC="-Wl,-export-dynamic"
20753 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20760 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20762 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20764 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20766 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20768 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20771 ac_config_files="$ac_config_files Makefile.config"
20774 ac_config_files="$ac_config_files llvm.spec"
20777 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20780 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20783 ac_config_commands="$ac_config_commands setup"
20785 ac_config_commands="$ac_config_commands Makefile"
20788 ac_config_commands="$ac_config_commands Makefile.common"
20791 ac_config_commands="$ac_config_commands examples/Makefile"
20794 ac_config_commands="$ac_config_commands lib/Makefile"
20797 ac_config_commands="$ac_config_commands runtime/Makefile"
20800 ac_config_commands="$ac_config_commands test/Makefile"
20803 ac_config_commands="$ac_config_commands test/Makefile.tests"
20806 ac_config_commands="$ac_config_commands unittests/Makefile"
20809 ac_config_commands="$ac_config_commands tools/Makefile"
20812 ac_config_commands="$ac_config_commands utils/Makefile"
20815 ac_config_commands="$ac_config_commands projects/Makefile"
20818 ac_config_commands="$ac_config_commands bindings/Makefile"
20821 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20825 cat >confcache <<\_ACEOF
20826 # This file is a shell script that caches the results of configure
20827 # tests run on this system so they can be shared between configure
20828 # scripts and configure runs, see configure's option --config-cache.
20829 # It is not useful on other systems. If it contains results you don't
20830 # want to keep, you may remove or edit it.
20832 # config.status only pays attention to the cache file if you give it
20833 # the --recheck option to rerun configure.
20835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20837 # following values.
20841 # The following way of writing the cache mishandles newlines in values,
20842 # but we know of no workaround that is simple, portable, and efficient.
20843 # So, we kill variables containing newlines.
20844 # Ultrix sh set writes to stderr and can't be redirected directly,
20845 # and sets the high bit in the cache file unless we assign to the vars.
20847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20848 eval ac_val=\$$ac_var
20852 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20856 _ | IFS | as_nl) ;; #(
20857 *) $as_unset $ac_var ;;
20863 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20864 *${as_nl}ac_space=\ *)
20865 # `set' does not quote correctly, so add quotes (double-quote
20866 # substitution turns \\\\ into \\, and sed turns \\ into \).
20869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20872 # `set' quotes correctly as required by POSIX, so do not add quotes.
20873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20884 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20887 if test -w "$cache_file"; then
20888 test "x$cache_file" != "x/dev/null" &&
20889 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20890 echo "$as_me: updating cache $cache_file" >&6;}
20891 cat confcache >$cache_file
20893 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20894 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20900 # Let make expand exec_prefix.
20901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20903 DEFS=-DHAVE_CONFIG_H
20907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20908 # 1. Remove the extension, and $U if already installed.
20909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20910 ac_i=`echo "$ac_i" | sed "$ac_script"`
20911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20912 # will be set to the directory where LIBOBJS objects are built.
20913 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20914 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20916 LIBOBJS=$ac_libobjs
20918 LTLIBOBJS=$ac_ltlibobjs
20921 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20922 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20923 Usually this means the macro was only invoked conditionally." >&5
20924 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20925 Usually this means the macro was only invoked conditionally." >&2;}
20926 { (exit 1); exit 1; }; }
20928 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20929 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20930 Usually this means the macro was only invoked conditionally." >&5
20931 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20932 Usually this means the macro was only invoked conditionally." >&2;}
20933 { (exit 1); exit 1; }; }
20936 : ${CONFIG_STATUS=./config.status}
20937 ac_clean_files_save=$ac_clean_files
20938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20939 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20940 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20941 cat >$CONFIG_STATUS <<_ACEOF
20943 # Generated by $as_me.
20944 # Run this file to recreate the current configuration.
20945 # Compiler output produced by configure, useful for debugging
20946 # configure, is in config.log if it exists.
20949 ac_cs_recheck=false
20951 SHELL=\${CONFIG_SHELL-$SHELL}
20954 cat >>$CONFIG_STATUS <<\_ACEOF
20955 ## --------------------- ##
20956 ## M4sh Initialization. ##
20957 ## --------------------- ##
20959 # Be Bourne compatible
20960 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20963 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20964 # is contrary to our usage. Disable this feature.
20965 alias -g '${1+"$@"}'='"$@"'
20966 setopt NO_GLOB_SUBST
20968 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20970 BIN_SH=xpg4; export BIN_SH # for Tru64
20971 DUALCASE=1; export DUALCASE # for MKS sh
20975 # Avoid depending upon Character Ranges.
20976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20979 as_cr_digits='0123456789'
20980 as_cr_alnum=$as_cr_Letters$as_cr_digits
20982 # The user is always right.
20983 if test "${PATH_SEPARATOR+set}" != set; then
20984 echo "#! /bin/sh" >conf$$.sh
20985 echo "exit 0" >>conf$$.sh
20987 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20995 # Support unset when possible.
20996 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21004 # We need space, tab and new line, in precisely that order. Quoting is
21005 # there to prevent editors from complaining about space-tab.
21006 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21007 # splitting by setting IFS to empty value.)
21012 # Find who we are. Look in the path if we contain no directory separator.
21014 *[\\/]* ) as_myself=$0 ;;
21015 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21016 for as_dir in $PATH
21019 test -z "$as_dir" && as_dir=.
21020 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21026 # We did not find ourselves, most probably we were run as `sh COMMAND'
21027 # in which case we are not to be found in the path.
21028 if test "x$as_myself" = x; then
21031 if test ! -f "$as_myself"; then
21032 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21033 { (exit 1); exit 1; }
21036 # Work around bugs in pre-3.0 UWIN ksh.
21037 for as_var in ENV MAIL MAILPATH
21038 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21046 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21047 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21048 LC_TELEPHONE LC_TIME
21050 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21051 eval $as_var=C; export $as_var
21053 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21057 # Required to use basename.
21058 if expr a : '\(a\)' >/dev/null 2>&1 &&
21059 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21065 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21066 as_basename=basename
21072 # Name of the executable.
21073 as_me=`$as_basename -- "$0" ||
21074 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21075 X"$0" : 'X\(//\)$' \| \
21076 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21078 sed '/^.*\/\([^/][^/]*\)\/*$/{
21097 as_lineno_1=$LINENO
21098 as_lineno_2=$LINENO
21099 test "x$as_lineno_1" != "x$as_lineno_2" &&
21100 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21102 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21103 # uniformly replaced by the line number. The first 'sed' inserts a
21104 # line-number line after each line using $LINENO; the second 'sed'
21105 # does the real work. The second script uses 'N' to pair each
21106 # line-number line with the line containing $LINENO, and appends
21107 # trailing '-' during substitution so that $LINENO is not a special
21108 # case at line end.
21109 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21110 # scripts with optimization help from Paolo Bonzini. Blame Lee
21111 # E. McMahon (1931-1989) for sed's syntax. :-)
21123 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21126 ' >$as_me.lineno &&
21127 chmod +x "$as_me.lineno" ||
21128 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21129 { (exit 1); exit 1; }; }
21131 # Don't try to exec as it changes $[0], causing all sort of problems
21132 # (the dirname of $[0] is not the place where we might find the
21133 # original and so on. Autoconf is especially sensitive to this).
21134 . "./$as_me.lineno"
21135 # Exit status is that of the last command.
21140 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21146 ECHO_C= ECHO_N= ECHO_T=
21147 case `echo -n x` in
21149 case `echo 'x\c'` in
21150 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21157 if expr a : '\(a\)' >/dev/null 2>&1 &&
21158 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21164 rm -f conf$$ conf$$.exe conf$$.file
21165 if test -d conf$$.dir; then
21166 rm -f conf$$.dir/conf$$.file
21172 if ln -s conf$$.file conf$$ 2>/dev/null; then
21174 # ... but there are two gotchas:
21175 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21176 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21177 # In both cases, we have to default to `cp -p'.
21178 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21180 elif ln conf$$.file conf$$ 2>/dev/null; then
21185 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21186 rmdir conf$$.dir 2>/dev/null
21188 if mkdir -p . 2>/dev/null; then
21191 test -d ./-p && rmdir ./-p
21195 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21196 # systems may use methods other than mode bits to determine executability.
21197 cat >conf$$.file <<_ASEOF
21201 chmod +x conf$$.file
21202 if test -x conf$$.file >/dev/null 2>&1; then
21203 as_executable_p="test -x"
21209 # Sed expression to map a string onto a valid CPP name.
21210 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21212 # Sed expression to map a string onto a valid variable name.
21213 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21218 # Save the log message, to keep $[0] and so on meaningful, and to
21219 # report actual input values of CONFIG_FILES etc. instead of their
21220 # values after options handling.
21222 This file was extended by llvm $as_me 2.9svn, which was
21223 generated by GNU Autoconf 2.60. Invocation command line was
21225 CONFIG_FILES = $CONFIG_FILES
21226 CONFIG_HEADERS = $CONFIG_HEADERS
21227 CONFIG_LINKS = $CONFIG_LINKS
21228 CONFIG_COMMANDS = $CONFIG_COMMANDS
21231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21236 cat >>$CONFIG_STATUS <<_ACEOF
21237 # Files that config.status was made for.
21238 config_files="$ac_config_files"
21239 config_headers="$ac_config_headers"
21240 config_commands="$ac_config_commands"
21244 cat >>$CONFIG_STATUS <<\_ACEOF
21246 \`$as_me' instantiates files from templates according to the
21247 current configuration.
21249 Usage: $0 [OPTIONS] [FILE]...
21251 -h, --help print this help, then exit
21252 -V, --version print version number, then exit
21253 -q, --quiet do not print progress messages
21254 -d, --debug don't remove temporary files
21255 --recheck update $as_me by reconfiguring in the same conditions
21256 --file=FILE[:TEMPLATE]
21257 instantiate the configuration file FILE
21258 --header=FILE[:TEMPLATE]
21259 instantiate the configuration header FILE
21261 Configuration files:
21264 Configuration headers:
21267 Configuration commands:
21270 Report bugs to <bug-autoconf@gnu.org>."
21273 cat >>$CONFIG_STATUS <<_ACEOF
21275 llvm config.status 2.9svn
21276 configured by $0, generated by GNU Autoconf 2.60,
21277 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21279 Copyright (C) 2006 Free Software Foundation, Inc.
21280 This config.status script is free software; the Free Software Foundation
21281 gives unlimited permission to copy, distribute and modify it."
21288 cat >>$CONFIG_STATUS <<\_ACEOF
21289 # If no file are specified by the user, then we need to provide default
21290 # value. By we need to know if files were specified by the user.
21296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21308 # Handling of the options.
21309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21311 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21312 echo "$ac_cs_version"; exit ;;
21313 --debug | --debu | --deb | --de | --d | -d )
21315 --file | --fil | --fi | --f )
21317 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21318 ac_need_defaults=false;;
21319 --header | --heade | --head | --hea )
21321 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21322 ac_need_defaults=false;;
21324 # Conflict between --help and --header
21325 { echo "$as_me: error: ambiguous option: $1
21326 Try \`$0 --help' for more information." >&2
21327 { (exit 1); exit 1; }; };;
21328 --help | --hel | -h )
21329 echo "$ac_cs_usage"; exit ;;
21330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21334 # This is an error.
21335 -*) { echo "$as_me: error: unrecognized option: $1
21336 Try \`$0 --help' for more information." >&2
21337 { (exit 1); exit 1; }; } ;;
21339 *) ac_config_targets="$ac_config_targets $1"
21340 ac_need_defaults=false ;;
21346 ac_configure_extra_args=
21348 if $ac_cs_silent; then
21350 ac_configure_extra_args="$ac_configure_extra_args --silent"
21354 cat >>$CONFIG_STATUS <<_ACEOF
21355 if \$ac_cs_recheck; then
21356 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21357 CONFIG_SHELL=$SHELL
21358 export CONFIG_SHELL
21359 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21363 cat >>$CONFIG_STATUS <<\_ACEOF
21367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21368 ## Running $as_me. ##
21374 cat >>$CONFIG_STATUS <<_ACEOF
21378 llvm_src="${srcdir}"
21382 cat >>$CONFIG_STATUS <<\_ACEOF
21384 # Handling of arguments.
21385 for ac_config_target in $ac_config_targets
21387 case $ac_config_target in
21388 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21389 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21390 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21391 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21392 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21393 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21394 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21395 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21396 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21397 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21398 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21399 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21400 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21401 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21402 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21403 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21404 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21405 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21406 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21407 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21408 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21409 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21410 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21411 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21412 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21414 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21415 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21416 { (exit 1); exit 1; }; };;
21421 # If the user did not use the arguments to specify the items to instantiate,
21422 # then the envvar interface is used. Set only those that are not.
21423 # We use the long form for the default assignment because of an extremely
21424 # bizarre bug on SunOS 4.1.3.
21425 if $ac_need_defaults; then
21426 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21427 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21428 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21431 # Have a temporary directory for convenience. Make it in the build tree
21432 # simply because there is no reason against having it here, and in addition,
21433 # creating and moving files from /tmp can sometimes cause problems.
21434 # Hook for its removal unless debugging.
21435 # Note that there is a small window in which the directory will not be cleaned:
21436 # after its creation but before its name has been assigned to `$tmp'.
21440 trap 'exit_status=$?
21441 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21443 trap '{ (exit 1); exit 1; }' 1 2 13 15
21445 # Create a (secure) tmp directory for tmp files.
21448 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21449 test -n "$tmp" && test -d "$tmp"
21452 tmp=./conf$$-$RANDOM
21453 (umask 077 && mkdir "$tmp")
21456 echo "$me: cannot create a temporary directory in ." >&2
21457 { (exit 1); exit 1; }
21461 # Set up the sed scripts for CONFIG_FILES section.
21464 # No need to generate the scripts if there are no CONFIG_FILES.
21465 # This happens for instance when ./config.status config.h
21466 if test -n "$CONFIG_FILES"; then
21473 for ac_last_try in false false false false false :; do
21474 cat >conf$$subs.sed <<_ACEOF
21475 SHELL!$SHELL$ac_delim
21476 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21477 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21478 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21479 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21480 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21481 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21482 exec_prefix!$exec_prefix$ac_delim
21483 prefix!$prefix$ac_delim
21484 program_transform_name!$program_transform_name$ac_delim
21485 bindir!$bindir$ac_delim
21486 sbindir!$sbindir$ac_delim
21487 libexecdir!$libexecdir$ac_delim
21488 datarootdir!$datarootdir$ac_delim
21489 datadir!$datadir$ac_delim
21490 sysconfdir!$sysconfdir$ac_delim
21491 sharedstatedir!$sharedstatedir$ac_delim
21492 localstatedir!$localstatedir$ac_delim
21493 includedir!$includedir$ac_delim
21494 oldincludedir!$oldincludedir$ac_delim
21495 docdir!$docdir$ac_delim
21496 infodir!$infodir$ac_delim
21497 htmldir!$htmldir$ac_delim
21498 dvidir!$dvidir$ac_delim
21499 pdfdir!$pdfdir$ac_delim
21500 psdir!$psdir$ac_delim
21501 libdir!$libdir$ac_delim
21502 localedir!$localedir$ac_delim
21503 mandir!$mandir$ac_delim
21504 DEFS!$DEFS$ac_delim
21505 ECHO_C!$ECHO_C$ac_delim
21506 ECHO_N!$ECHO_N$ac_delim
21507 ECHO_T!$ECHO_T$ac_delim
21508 LIBS!$LIBS$ac_delim
21509 build_alias!$build_alias$ac_delim
21510 host_alias!$host_alias$ac_delim
21511 target_alias!$target_alias$ac_delim
21512 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21513 subdirs!$subdirs$ac_delim
21514 build!$build$ac_delim
21515 build_cpu!$build_cpu$ac_delim
21516 build_vendor!$build_vendor$ac_delim
21517 build_os!$build_os$ac_delim
21518 host!$host$ac_delim
21519 host_cpu!$host_cpu$ac_delim
21520 host_vendor!$host_vendor$ac_delim
21521 host_os!$host_os$ac_delim
21522 target!$target$ac_delim
21523 target_cpu!$target_cpu$ac_delim
21524 target_vendor!$target_vendor$ac_delim
21525 target_os!$target_os$ac_delim
21527 HOST_OS!$HOST_OS$ac_delim
21528 TARGET_OS!$TARGET_OS$ac_delim
21529 LINKALL!$LINKALL$ac_delim
21530 NOLINKALL!$NOLINKALL$ac_delim
21531 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21532 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21533 ARCH!$ARCH$ac_delim
21534 ENDIAN!$ENDIAN$ac_delim
21536 CFLAGS!$CFLAGS$ac_delim
21537 LDFLAGS!$LDFLAGS$ac_delim
21538 CPPFLAGS!$CPPFLAGS$ac_delim
21539 ac_ct_CC!$ac_ct_CC$ac_delim
21540 EXEEXT!$EXEEXT$ac_delim
21541 OBJEXT!$OBJEXT$ac_delim
21543 GREP!$GREP$ac_delim
21544 EGREP!$EGREP$ac_delim
21545 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21546 BUILD_CC!$BUILD_CC$ac_delim
21547 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21548 BUILD_CXX!$BUILD_CXX$ac_delim
21549 CVSBUILD!$CVSBUILD$ac_delim
21550 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21551 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21552 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21553 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21554 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21555 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21556 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21558 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21559 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21560 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21561 ENABLE_PIC!$ENABLE_PIC$ac_delim
21562 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21563 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21564 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21565 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21566 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21567 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21568 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21569 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21570 CLANGPATH!$CLANGPATH$ac_delim
21571 CLANGXXPATH!$CLANGXXPATH$ac_delim
21574 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21576 elif $ac_last_try; then
21577 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21578 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21579 { (exit 1); exit 1; }; }
21581 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21585 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21586 if test -n "$ac_eof"; then
21587 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21588 ac_eof=`expr $ac_eof + 1`
21591 cat >>$CONFIG_STATUS <<_ACEOF
21592 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21596 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21597 s/^/s,@/; s/!/@,|#_!!_#|/
21600 s/'"$ac_delim"'$/,g/; t
21602 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21603 ' >>$CONFIG_STATUS <conf$$subs.sed
21604 rm -f conf$$subs.sed
21605 cat >>$CONFIG_STATUS <<_ACEOF
21611 for ac_last_try in false false false false false :; do
21612 cat >conf$$subs.sed <<_ACEOF
21613 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21614 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21615 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21616 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21618 CXXFLAGS!$CXXFLAGS$ac_delim
21619 ac_ct_CXX!$ac_ct_CXX$ac_delim
21621 ifGNUmake!$ifGNUmake$ac_delim
21622 LN_S!$LN_S$ac_delim
21625 DATE!$DATE$ac_delim
21626 FIND!$FIND$ac_delim
21627 MKDIR!$MKDIR$ac_delim
21629 RANLIB!$RANLIB$ac_delim
21634 BINPWD!$BINPWD$ac_delim
21635 GRAPHVIZ!$GRAPHVIZ$ac_delim
21638 NEATO!$NEATO$ac_delim
21639 TWOPI!$TWOPI$ac_delim
21640 CIRCO!$CIRCO$ac_delim
21642 DOTTY!$DOTTY$ac_delim
21643 PERL!$PERL$ac_delim
21644 HAVE_PERL!$HAVE_PERL$ac_delim
21645 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21646 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21647 INSTALL_DATA!$INSTALL_DATA$ac_delim
21648 BZIP2!$BZIP2$ac_delim
21650 DOXYGEN!$DOXYGEN$ac_delim
21651 GROFF!$GROFF$ac_delim
21652 GZIP!$GZIP$ac_delim
21653 POD2HTML!$POD2HTML$ac_delim
21654 POD2MAN!$POD2MAN$ac_delim
21655 PDFROFF!$PDFROFF$ac_delim
21656 RUNTEST!$RUNTEST$ac_delim
21657 TCLSH!$TCLSH$ac_delim
21659 OCAMLC!$OCAMLC$ac_delim
21660 OCAMLOPT!$OCAMLOPT$ac_delim
21661 OCAMLDEP!$OCAMLDEP$ac_delim
21662 OCAMLDOC!$OCAMLDOC$ac_delim
21664 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21665 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21666 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21667 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21668 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21669 LIBADD_DL!$LIBADD_DL$ac_delim
21670 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21671 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21672 LLVMGCC!$LLVMGCC$ac_delim
21673 LLVMGXX!$LLVMGXX$ac_delim
21674 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21675 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21676 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21677 USE_UDIS86!$USE_UDIS86$ac_delim
21678 USE_OPROFILE!$USE_OPROFILE$ac_delim
21679 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21680 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21681 MMAP_FILE!$MMAP_FILE$ac_delim
21682 LLVMCC1!$LLVMCC1$ac_delim
21683 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21684 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21685 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21686 SHLIBEXT!$SHLIBEXT$ac_delim
21687 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21688 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21689 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21690 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21691 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21692 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21693 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21694 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21695 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21696 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21697 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21698 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21699 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21700 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21701 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21702 RPATH!$RPATH$ac_delim
21703 RDYNAMIC!$RDYNAMIC$ac_delim
21704 LIBOBJS!$LIBOBJS$ac_delim
21705 LTLIBOBJS!$LTLIBOBJS$ac_delim
21708 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
21710 elif $ac_last_try; then
21711 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21712 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21713 { (exit 1); exit 1; }; }
21715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21719 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21720 if test -n "$ac_eof"; then
21721 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21722 ac_eof=`expr $ac_eof + 1`
21725 cat >>$CONFIG_STATUS <<_ACEOF
21726 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21730 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21731 s/^/s,@/; s/!/@,|#_!!_#|/
21734 s/'"$ac_delim"'$/,g/; t
21736 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21737 ' >>$CONFIG_STATUS <conf$$subs.sed
21738 rm -f conf$$subs.sed
21739 cat >>$CONFIG_STATUS <<_ACEOF
21746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21748 # trailing colons and then remove the whole line if VPATH becomes empty
21749 # (actually we leave an empty line to preserve line numbers).
21750 if test "x$srcdir" = x.; then
21751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21752 s/:*\$(srcdir):*/:/
21753 s/:*\${srcdir}:*/:/
21755 s/^\([^=]*=[ ]*\):*/\1/
21761 cat >>$CONFIG_STATUS <<\_ACEOF
21762 fi # test -n "$CONFIG_FILES"
21765 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21768 :[FHLC]) ac_mode=$ac_tag; continue;;
21770 case $ac_mode$ac_tag in
21772 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21773 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21774 { (exit 1); exit 1; }; };;
21775 :[FH]-) ac_tag=-:-;;
21776 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21793 -) ac_f="$tmp/stdin";;
21794 *) # Look for the file first in the build tree, then in the source tree
21795 # (if the path is not absolute). The absolute path cannot be DOS-style,
21796 # because $ac_f cannot contain `:'.
21800 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21802 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21803 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21804 { (exit 1); exit 1; }; };;
21806 ac_file_inputs="$ac_file_inputs $ac_f"
21809 # Let's still pretend it is `configure' which instantiates (i.e., don't
21810 # use $as_me), people would be surprised to read:
21811 # /* config.h. Generated by config.status. */
21812 configure_input="Generated from "`IFS=:
21813 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21814 if test x"$ac_file" != x-; then
21815 configure_input="$ac_file. $configure_input"
21816 { echo "$as_me:$LINENO: creating $ac_file" >&5
21817 echo "$as_me: creating $ac_file" >&6;}
21821 *:-:* | *:-) cat >"$tmp/stdin";;
21826 ac_dir=`$as_dirname -- "$ac_file" ||
21827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21828 X"$ac_file" : 'X\(//\)[^/]' \| \
21829 X"$ac_file" : 'X\(//\)$' \| \
21830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21836 /^X\(\/\/\)[^/].*/{
21851 -*) as_dir=./$as_dir;;
21853 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21857 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21858 *) as_qdir=$as_dir;;
21860 as_dirs="'$as_qdir' $as_dirs"
21861 as_dir=`$as_dirname -- "$as_dir" ||
21862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21863 X"$as_dir" : 'X\(//\)[^/]' \| \
21864 X"$as_dir" : 'X\(//\)$' \| \
21865 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21871 /^X\(\/\/\)[^/].*/{
21884 test -d "$as_dir" && break
21886 test -z "$as_dirs" || eval "mkdir $as_dirs"
21887 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21888 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21889 { (exit 1); exit 1; }; }; }
21893 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21896 # A ".." for each directory in $ac_dir_suffix.
21897 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21898 case $ac_top_builddir_sub in
21899 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21900 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21903 ac_abs_top_builddir=$ac_pwd
21904 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21905 # for backward compatibility:
21906 ac_top_builddir=$ac_top_build_prefix
21909 .) # We are building in place.
21911 ac_top_srcdir=$ac_top_builddir_sub
21912 ac_abs_top_srcdir=$ac_pwd ;;
21913 [\\/]* | ?:[\\/]* ) # Absolute name.
21914 ac_srcdir=$srcdir$ac_dir_suffix;
21915 ac_top_srcdir=$srcdir
21916 ac_abs_top_srcdir=$srcdir ;;
21917 *) # Relative name.
21918 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21919 ac_top_srcdir=$ac_top_build_prefix$srcdir
21920 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21922 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21932 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21933 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21937 cat >>$CONFIG_STATUS <<\_ACEOF
21938 # If the template does not know about datarootdir, expand it.
21939 # FIXME: This hack should be removed a few years after 2.60.
21940 ac_datarootdir_hack=; ac_datarootdir_seen=
21942 case `sed -n '/datarootdir/ {
21951 ' $ac_file_inputs` in
21952 *datarootdir*) ac_datarootdir_seen=yes;;
21953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21954 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21955 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21957 cat >>$CONFIG_STATUS <<_ACEOF
21958 ac_datarootdir_hack='
21959 s&@datadir@&$datadir&g
21960 s&@docdir@&$docdir&g
21961 s&@infodir@&$infodir&g
21962 s&@localedir@&$localedir&g
21963 s&@mandir@&$mandir&g
21964 s&\\\${datarootdir}&$datarootdir&g' ;;
21968 # Neutralize VPATH when `$srcdir' = `.'.
21969 # Shell code in configure.ac might set extrasub.
21970 # FIXME: do we really want to maintain this feature?
21971 cat >>$CONFIG_STATUS <<_ACEOF
21975 cat >>$CONFIG_STATUS <<\_ACEOF
21977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21978 s&@configure_input@&$configure_input&;t t
21979 s&@top_builddir@&$ac_top_builddir_sub&;t t
21980 s&@srcdir@&$ac_srcdir&;t t
21981 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21982 s&@top_srcdir@&$ac_top_srcdir&;t t
21983 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21984 s&@builddir@&$ac_builddir&;t t
21985 s&@abs_builddir@&$ac_abs_builddir&;t t
21986 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21987 s&@INSTALL@&$ac_INSTALL&;t t
21988 $ac_datarootdir_hack
21989 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21992 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21993 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21994 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21995 which seems to be undefined. Please make sure it is defined." >&5
21996 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21997 which seems to be undefined. Please make sure it is defined." >&2;}
22001 -) cat "$tmp/out"; rm -f "$tmp/out";;
22002 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22011 # Transform confdefs.h into a sed script `conftest.defines', that
22012 # substitutes the proper values into config.h.in to produce config.h.
22013 rm -f conftest.defines conftest.tail
22014 # First, append a space to every undef/define line, to ease matching.
22015 echo 's/$/ /' >conftest.defines
22016 # Then, protect against being on the right side of a sed subst, or in
22017 # an unquoted here document, in config.status. If some macros were
22018 # called several times there might be several #defines for the same
22019 # symbol, which is useless. But do not sort them, since the last
22020 # AC_DEFINE must be honored.
22021 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22022 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22023 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22024 # PARAMS is the parameter list in the macro definition--in most cases, it's
22025 # just an empty string.
22026 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22027 ac_dB='\\)[ (].*,\\1define\\2'
22035 s/^[ ]*#[ ]*define[ ][ ]*//
22040 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22041 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22042 ' >>conftest.defines
22044 # Remove the space that was appended to ease matching.
22045 # Then replace #undef with comments. This is necessary, for
22046 # example, in the case of _POSIX_SOURCE, which is predefined and required
22047 # on some systems where configure will not decide to define it.
22048 # (The regexp can be short, since the line contains either #define or #undef.)
22050 s,^[ #]*u.*,/* & */,' >>conftest.defines
22052 # Break up conftest.defines:
22053 ac_max_sed_lines=50
22055 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22056 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22057 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22059 ac_in='$ac_file_inputs'
22060 ac_out='"$tmp/out1"'
22061 ac_nxt='"$tmp/out2"'
22065 # Write a here document:
22066 cat >>$CONFIG_STATUS <<_ACEOF
22067 # First, check the format of the line:
22068 cat >"\$tmp/defines.sed" <<\\CEOF
22069 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22070 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22074 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22076 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22077 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22078 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22079 grep . conftest.tail >/dev/null || break
22080 rm -f conftest.defines
22081 mv conftest.tail conftest.defines
22083 rm -f conftest.defines conftest.tail
22085 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22086 cat >>$CONFIG_STATUS <<\_ACEOF
22087 if test x"$ac_file" != x-; then
22088 echo "/* $configure_input */" >"$tmp/config.h"
22089 cat "$ac_result" >>"$tmp/config.h"
22090 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22091 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22092 echo "$as_me: $ac_file is unchanged" >&6;}
22095 mv "$tmp/config.h" $ac_file
22098 echo "/* $configure_input */"
22104 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22105 echo "$as_me: executing $ac_file commands" >&6;}
22110 case $ac_file$ac_mode in
22111 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22112 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22113 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22114 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22115 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22116 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22117 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22118 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22119 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22120 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22121 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22122 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22123 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22124 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22125 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22126 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22127 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22128 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22129 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22130 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22131 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22132 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22133 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22134 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22135 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22136 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22142 { (exit 0); exit 0; }
22144 chmod +x $CONFIG_STATUS
22145 ac_clean_files=$ac_clean_files_save
22148 # configure is writing to config.log, and then calls config.status.
22149 # config.status does its own redirection, appending to config.log.
22150 # Unfortunately, on DOS this fails, as config.log is still kept open
22151 # by configure, so config.status won't be able to write to it; its
22152 # output is simply discarded. So we exec the FD to /dev/null,
22153 # effectively closing config.log, so it can be properly (re)opened and
22154 # appended to by config.status. When coming back to configure, we
22155 # need to make the FD available again.
22156 if test "$no_create" != yes; then
22158 ac_config_status_args=
22159 test "$silent" = yes &&
22160 ac_config_status_args="$ac_config_status_args --quiet"
22162 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22164 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22165 # would make configure fail if this is the last instruction.
22166 $ac_cs_success || { (exit 1); exit 1; }
22170 # CONFIG_SUBDIRS section.
22172 if test "$no_recursion" != yes; then
22174 # Remove --cache-file and --srcdir arguments so they do not pile up.
22175 ac_sub_configure_args=
22177 eval "set x $ac_configure_args"
22181 if test -n "$ac_prev"; then
22186 -cache-file | --cache-file | --cache-fil | --cache-fi \
22187 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22188 ac_prev=cache_file ;;
22189 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22190 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22193 --config-cache | -C)
22195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22205 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22207 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22211 # Always prepend --prefix to ensure using the same prefix
22212 # in subdir configurations.
22213 ac_arg="--prefix=$prefix"
22215 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22217 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22220 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22222 # Do not complain, so a configure script can configure whichever
22223 # parts of a large source tree are present.
22224 test -d "$srcdir/$ac_dir" || continue
22226 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22227 echo "$as_me:$LINENO: $ac_msg" >&5
22231 -*) as_dir=./$as_dir;;
22233 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22237 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22238 *) as_qdir=$as_dir;;
22240 as_dirs="'$as_qdir' $as_dirs"
22241 as_dir=`$as_dirname -- "$as_dir" ||
22242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22243 X"$as_dir" : 'X\(//\)[^/]' \| \
22244 X"$as_dir" : 'X\(//\)$' \| \
22245 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22251 /^X\(\/\/\)[^/].*/{
22264 test -d "$as_dir" && break
22266 test -z "$as_dirs" || eval "mkdir $as_dirs"
22267 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22268 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22269 { (exit 1); exit 1; }; }; }
22273 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22276 # A ".." for each directory in $ac_dir_suffix.
22277 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22278 case $ac_top_builddir_sub in
22279 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22280 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22283 ac_abs_top_builddir=$ac_pwd
22284 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22285 # for backward compatibility:
22286 ac_top_builddir=$ac_top_build_prefix
22289 .) # We are building in place.
22291 ac_top_srcdir=$ac_top_builddir_sub
22292 ac_abs_top_srcdir=$ac_pwd ;;
22293 [\\/]* | ?:[\\/]* ) # Absolute name.
22294 ac_srcdir=$srcdir$ac_dir_suffix;
22295 ac_top_srcdir=$srcdir
22296 ac_abs_top_srcdir=$srcdir ;;
22297 *) # Relative name.
22298 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22299 ac_top_srcdir=$ac_top_build_prefix$srcdir
22300 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22302 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22307 # Check for guested configure; otherwise get Cygnus style configure.
22308 if test -f "$ac_srcdir/configure.gnu"; then
22309 ac_sub_configure=$ac_srcdir/configure.gnu
22310 elif test -f "$ac_srcdir/configure"; then
22311 ac_sub_configure=$ac_srcdir/configure
22312 elif test -f "$ac_srcdir/configure.in"; then
22313 # This should be Cygnus configure.
22314 ac_sub_configure=$ac_aux_dir/configure
22316 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22317 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22321 # The recursion is here.
22322 if test -n "$ac_sub_configure"; then
22323 # Make the cache file name correct relative to the subdirectory.
22324 case $cache_file in
22325 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22326 *) # Relative name.
22327 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22330 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22331 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22332 # The eval makes quoting arguments work.
22333 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22334 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22335 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22336 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22337 { (exit 1); exit 1; }; }