2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.8svn.
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.8svn'
565 PACKAGE_STRING='llvm 2.8svn'
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
695 LLVM_ENUM_ASM_PRINTERS
696 LLVM_ENUM_ASM_PARSERS
697 LLVM_ENUM_DISASSEMBLERS
706 ENABLE_LLVMC_DYNAMIC_PLUGINS
754 HAVE_LINK_RETAIN_SYMBOLS_FILE
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
766 NO_MISSING_FIELD_INITIALIZERS
791 ENABLE_VISIBILITY_INLINES_HIDDEN
797 ac_precious_vars='build_alias
808 ac_subdirs_all='projects/llvm-gcc
812 projects/llvm-poolalloc
815 projects/llvm-stacker
820 projects/llvm-kernel'
822 # Initialize some variables set by options.
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name=s,x,x,
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 -enable-* | --enable-*)
942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
963 -help | --help | --hel | --he | -h)
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1112 -site=* | --site=* | --sit=*)
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
1157 # Obsolete; use --with-x.
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
1205 # Be sure to have absolute directory names.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val=\$$ac_var
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1322 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of llvm 2.8svn:";;
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled (default
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-doxygen Build doxygen documentation (default is NO)
1408 --enable-threads Use threads if available (default is YES)
1409 --enable-pic Build LLVM with Position Independent Code (default
1411 --enable-shared Build a shared library and link tools against it
1413 --enable-targets Build specific host targets: all or
1414 target1,target2,... Valid targets are: host, x86,
1415 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1416 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1417 and cpp (default=all)
1418 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1420 --enable-bindings Build specific language bindings:
1421 all,auto,none,{binding-name} (default=auto)
1422 --enable-libffi Check for the presence of libffi (default is NO)
1423 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1425 --enable-llvmc-dynamic-plugins
1426 Enable dynamic LLVMC plugins (default is YES)
1427 --enable-ltdl-install install libltdl
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1434 --with-llvmgcc Specify location of llvm-gcc driver (default
1436 --with-llvmgxx Specify location of llvm-g++ driver (default
1438 --with-clang Specify location of clang compiler (default is
1440 --with-built-clang Use the compiled Clang as the LLVM compiler
1442 --with-optimize-option Select the compiler options to use for optimized
1444 --with-extra-options Specify additional options to compile LLVM with
1445 --with-ocaml-libdir Specify install location for ocaml bindings (default
1447 --with-c-include-dirs Colon separated list of directories clang will
1449 --with-cxx-include-root Directory with the libstdc++ headers.
1450 --with-cxx-include-arch Architecture of the libstdc++ headers.
1451 --with-cxx-include-32bit-dir
1452 32 bit multilib dir.
1453 --with-cxx-include-64bit-dir
1454 64 bit multilib directory.
1455 --with-binutils-include Specify path to binutils/include/ containing
1456 plugin-api.h file for gold plugin.
1457 --with-tclinclude directory where tcl headers are
1458 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1459 clang, or none; default=check)
1460 --with-udis86=<path> Use udis86 external x86 disassembler library
1461 --with-oprofile=<prefix>
1462 Tell OProfile >= 0.9.4 how to symbolize JIT output
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1472 CXX C++ compiler command
1473 CXXFLAGS C++ compiler flags
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1478 Report bugs to <llvmbugs@cs.uiuc.edu>.
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" || continue
1490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1493 # A ".." for each directory in $ac_dir_suffix.
1494 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1495 case $ac_top_builddir_sub in
1496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 ac_abs_top_builddir=$ac_pwd
1501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502 # for backward compatibility:
1503 ac_top_builddir=$ac_top_build_prefix
1506 .) # We are building in place.
1508 ac_top_srcdir=$ac_top_builddir_sub
1509 ac_abs_top_srcdir=$ac_pwd ;;
1510 [\\/]* | ?:[\\/]* ) # Absolute name.
1511 ac_srcdir=$srcdir$ac_dir_suffix;
1512 ac_top_srcdir=$srcdir
1513 ac_abs_top_srcdir=$srcdir ;;
1515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516 ac_top_srcdir=$ac_top_build_prefix$srcdir
1517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521 cd "$ac_dir" || { ac_status=$?; continue; }
1522 # Check for guested configure.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1528 $SHELL "$ac_srcdir/configure" --help=recursive
1530 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 cd "$ac_pwd" || { ac_status=$?; break; }
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1539 llvm configure 2.8svn
1540 generated by GNU Autoconf 2.60
1542 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1543 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1547 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1551 cat >config.log <<_ACEOF
1552 This file contains any messages produced by compilers while
1553 running configure, to aid debugging if configure makes a mistake.
1555 It was created by llvm $as_me 2.8svn, which was
1556 generated by GNU Autoconf 2.60. Invocation command line was
1568 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1569 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1570 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1571 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1572 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1574 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1575 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1577 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1578 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1579 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1580 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1581 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1582 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1583 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 test -z "$as_dir" && as_dir=.
1592 echo "PATH: $as_dir"
1608 # Keep a trace of the command line.
1609 # Strip out --no-create and --no-recursion so they do not pile up.
1610 # Strip out --silent because we don't want to record it for future runs.
1611 # Also quote any args containing shell meta-characters.
1612 # Make two passes to allow for proper duplicate-argument suppression.
1616 ac_must_keep_next=false
1622 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1624 | -silent | --silent | --silen | --sile | --sil)
1627 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1630 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1632 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1633 if test $ac_must_keep_next = true; then
1634 ac_must_keep_next=false # Got value, back to normal.
1637 *=* | --config-cache | -C | -disable-* | --disable-* \
1638 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1639 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1640 | -with-* | --with-* | -without-* | --without-* | --x)
1641 case "$ac_configure_args0 " in
1642 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1645 -* ) ac_must_keep_next=true ;;
1648 ac_configure_args="$ac_configure_args '$ac_arg'"
1653 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1654 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1656 # When interrupted or exit'd, cleanup temporary files, and complete
1657 # config.log. We remove comments because anyway the quotes in there
1658 # would cause problems or look ugly.
1659 # WARNING: Use '\'' to represent an apostrophe within the trap.
1660 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1661 trap 'exit_status=$?
1662 # Save into config.log some information that might help in debugging.
1667 ## ---------------- ##
1668 ## Cache variables. ##
1669 ## ---------------- ##
1672 # The following way of writing the cache mishandles newlines in values,
1674 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1675 eval ac_val=\$$ac_var
1679 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1680 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1683 _ | IFS | as_nl) ;; #(
1684 *) $as_unset $ac_var ;;
1689 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1690 *${as_nl}ac_space=\ *)
1692 "s/'\''/'\''\\\\'\'''\''/g;
1693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1704 ## ----------------- ##
1705 ## Output variables. ##
1706 ## ----------------- ##
1709 for ac_var in $ac_subst_vars
1711 eval ac_val=\$$ac_var
1713 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1715 echo "$ac_var='\''$ac_val'\''"
1719 if test -n "$ac_subst_files"; then
1721 ## ------------------- ##
1722 ## File substitutions. ##
1723 ## ------------------- ##
1726 for ac_var in $ac_subst_files
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1737 if test -s confdefs.h; then
1747 test "$ac_signal" != 0 &&
1748 echo "$as_me: caught signal $ac_signal"
1749 echo "$as_me: exit $exit_status"
1751 rm -f core *.core core.conftest.* &&
1752 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1755 for ac_signal in 1 2 13 15; do
1756 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1761 rm -f -r conftest* confdefs.h
1763 # Predefined preprocessor variables.
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_NAME "$PACKAGE_NAME"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_STRING "$PACKAGE_STRING"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790 # Let the site file select an alternate cache file if it wants to.
1791 # Prefer explicitly selected file to automatically selected ones.
1792 if test -n "$CONFIG_SITE"; then
1793 set x "$CONFIG_SITE"
1794 elif test "x$prefix" != xNONE; then
1795 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1797 set x "$ac_default_prefix/share/config.site" \
1798 "$ac_default_prefix/etc/config.site"
1803 if test -r "$ac_site_file"; then
1804 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1805 echo "$as_me: loading site script $ac_site_file" >&6;}
1806 sed 's/^/| /' "$ac_site_file" >&5
1811 if test -r "$cache_file"; then
1812 # Some versions of bash will fail to source /dev/null (special
1813 # files actually), so we avoid doing that.
1814 if test -f "$cache_file"; then
1815 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1816 echo "$as_me: loading cache $cache_file" >&6;}
1818 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1819 *) . "./$cache_file";;
1823 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1824 echo "$as_me: creating cache $cache_file" >&6;}
1828 # Check that the precious variables saved in the cache have kept the same
1830 ac_cache_corrupted=false
1831 for ac_var in $ac_precious_vars; do
1832 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1833 eval ac_new_set=\$ac_env_${ac_var}_set
1834 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1835 eval ac_new_val=\$ac_env_${ac_var}_value
1836 case $ac_old_set,$ac_new_set in
1838 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1839 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1840 ac_cache_corrupted=: ;;
1842 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1843 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1844 ac_cache_corrupted=: ;;
1847 if test "x$ac_old_val" != "x$ac_new_val"; then
1848 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1849 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1850 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1851 echo "$as_me: former value: $ac_old_val" >&2;}
1852 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1853 echo "$as_me: current value: $ac_new_val" >&2;}
1854 ac_cache_corrupted=:
1857 # Pass precious variables to config.status.
1858 if test "$ac_new_set" = set; then
1860 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1861 *) ac_arg=$ac_var=$ac_new_val ;;
1863 case " $ac_configure_args " in
1864 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1865 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1869 if $ac_cache_corrupted; then
1870 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1871 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1872 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1873 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1874 { (exit 1); exit 1; }; }
1902 ac_cpp='$CPP $CPPFLAGS'
1903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1918 for ac_dir in autoconf "$srcdir"/autoconf; do
1919 if test -f "$ac_dir/install-sh"; then
1921 ac_install_sh="$ac_aux_dir/install-sh -c"
1923 elif test -f "$ac_dir/install.sh"; then
1925 ac_install_sh="$ac_aux_dir/install.sh -c"
1927 elif test -f "$ac_dir/shtool"; then
1929 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 if test -z "$ac_aux_dir"; then
1934 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1935 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1936 { (exit 1); exit 1; }; }
1939 # These three variables are undocumented and unsupported,
1940 # and are intended to be withdrawn in a future Autoconf release.
1941 # They can cause serious problems if a builder's source tree is in a directory
1942 # whose full name contains unusual characters.
1943 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1944 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1945 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1949 if test ${srcdir} != "." ; then
1950 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1951 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1952 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1953 { (exit 1); exit 1; }; }
1959 if test -d ${srcdir}/projects/llvm-gcc ; then
1960 subdirs="$subdirs projects/llvm-gcc"
1964 if test -d ${srcdir}/projects/test-suite ; then
1965 subdirs="$subdirs projects/test-suite"
1969 if test -d ${srcdir}/projects/llvm-test ; then
1970 subdirs="$subdirs projects/llvm-test"
1974 if test -d ${srcdir}/projects/poolalloc ; then
1975 subdirs="$subdirs projects/poolalloc"
1979 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1980 subdirs="$subdirs projects/llvm-poolalloc"
1984 for i in `ls ${srcdir}/projects`
1986 if test -d ${srcdir}/projects/${i} ; then
1989 sample) subdirs="$subdirs projects/sample"
1991 privbracket) subdirs="$subdirs projects/privbracket"
1993 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1995 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1997 llvm-java) subdirs="$subdirs projects/llvm-java"
1999 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2001 safecode) subdirs="$subdirs projects/safecode"
2003 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2011 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2012 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2019 # Make sure we can run config.sub.
2020 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2021 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2022 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2023 { (exit 1); exit 1; }; }
2025 { echo "$as_me:$LINENO: checking build system type" >&5
2026 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2027 if test "${ac_cv_build+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 ac_build_alias=$build_alias
2031 test "x$ac_build_alias" = x &&
2032 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2033 test "x$ac_build_alias" = x &&
2034 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2035 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2036 { (exit 1); exit 1; }; }
2037 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2038 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2040 { (exit 1); exit 1; }; }
2043 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2044 echo "${ECHO_T}$ac_cv_build" >&6; }
2045 case $ac_cv_build in
2047 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2048 echo "$as_me: error: invalid value of canonical build" >&2;}
2049 { (exit 1); exit 1; }; };;
2052 ac_save_IFS=$IFS; IFS='-'
2058 # Remember, the first character of IFS is used to create $*,
2059 # except with old shells:
2062 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2065 { echo "$as_me:$LINENO: checking host system type" >&5
2066 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2067 if test "${ac_cv_host+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 if test "x$host_alias" = x; then
2071 ac_cv_host=$ac_cv_build
2073 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
2080 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081 echo "${ECHO_T}$ac_cv_host" >&6; }
2084 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2085 echo "$as_me: error: invalid value of canonical host" >&2;}
2086 { (exit 1); exit 1; }; };;
2089 ac_save_IFS=$IFS; IFS='-'
2095 # Remember, the first character of IFS is used to create $*,
2096 # except with old shells:
2099 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2102 { echo "$as_me:$LINENO: checking target system type" >&5
2103 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_target+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 if test "x$target_alias" = x; then
2108 ac_cv_target=$ac_cv_host
2110 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2111 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2112 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2113 { (exit 1); exit 1; }; }
2117 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2118 echo "${ECHO_T}$ac_cv_target" >&6; }
2119 case $ac_cv_target in
2121 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2122 echo "$as_me: error: invalid value of canonical target" >&2;}
2123 { (exit 1); exit 1; }; };;
2125 target=$ac_cv_target
2126 ac_save_IFS=$IFS; IFS='-'
2132 # Remember, the first character of IFS is used to create $*,
2133 # except with old shells:
2136 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2139 # The aliases save the names the user supplied, while $host etc.
2140 # will get canonicalized.
2141 test -n "$target_alias" &&
2142 test "$program_prefix$program_suffix$program_transform_name" = \
2144 program_prefix=${target_alias}-
2146 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2147 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2148 if test "${llvm_cv_os_type+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 llvm_cv_link_all_option="-Wl,--whole-archive"
2154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2155 llvm_cv_os_type="AIX"
2156 llvm_cv_platform_type="Unix" ;;
2158 llvm_cv_link_all_option="-Wl,--whole-archive"
2159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2160 llvm_cv_os_type="IRIX"
2161 llvm_cv_platform_type="Unix" ;;
2163 llvm_cv_link_all_option="-Wl,--whole-archive"
2164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2165 llvm_cv_os_type="Cygwin"
2166 llvm_cv_platform_type="Unix" ;;
2168 llvm_cv_link_all_option="-Wl,-all_load"
2169 llvm_cv_no_link_all_option="-Wl,-noall_load"
2170 llvm_cv_os_type="Darwin"
2171 llvm_cv_platform_type="Unix" ;;
2173 llvm_cv_link_all_option="-Wl,-all_load"
2174 llvm_cv_no_link_all_option="-Wl,-noall_load"
2175 llvm_cv_os_type="Minix"
2176 llvm_cv_platform_type="Unix" ;;
2178 llvm_cv_link_all_option="-Wl,--whole-archive"
2179 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2180 llvm_cv_os_type="FreeBSD"
2181 llvm_cv_platform_type="Unix" ;;
2183 llvm_cv_link_all_option="-Wl,--whole-archive"
2184 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2185 llvm_cv_os_type="OpenBSD"
2186 llvm_cv_platform_type="Unix" ;;
2188 llvm_cv_link_all_option="-Wl,--whole-archive"
2189 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2190 llvm_cv_os_type="NetBSD"
2191 llvm_cv_platform_type="Unix" ;;
2193 llvm_cv_link_all_option="-Wl,--whole-archive"
2194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2195 llvm_cv_os_type="DragonFly"
2196 llvm_cv_platform_type="Unix" ;;
2198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200 llvm_cv_os_type="HP-UX"
2201 llvm_cv_platform_type="Unix" ;;
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="Interix"
2206 llvm_cv_platform_type="Unix" ;;
2208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210 llvm_cv_os_type="Linux"
2211 llvm_cv_platform_type="Unix" ;;
2213 llvm_cv_link_all_option="-Wl,-z,allextract"
2214 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2215 llvm_cv_os_type="SunOS"
2216 llvm_cv_platform_type="Unix" ;;
2218 llvm_cv_link_all_option="-Wl,-z,allextract"
2219 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2220 llvm_cv_os_type="AuroraUX"
2221 llvm_cv_platform_type="Unix" ;;
2223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225 llvm_cv_os_type="Win32"
2226 llvm_cv_platform_type="Win32" ;;
2228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230 llvm_cv_os_type="MingW"
2231 llvm_cv_platform_type="Win32" ;;
2233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235 llvm_cv_os_type="Haiku"
2236 llvm_cv_platform_type="Unix" ;;
2238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240 llvm_cv_os_type="Freestanding"
2241 llvm_cv_platform_type="Unix" ;;
2243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245 llvm_cv_os_type="Freestanding"
2246 llvm_cv_platform_type="Unix" ;;
2248 llvm_cv_link_all_option=""
2249 llvm_cv_no_link_all_option=""
2250 llvm_cv_os_type="Unknown"
2251 llvm_cv_platform_type="Unknown" ;;
2254 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2255 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2257 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2258 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2259 if test "${llvm_cv_target_os_type+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 llvm_cv_target_os_type="AIX" ;;
2266 llvm_cv_target_os_type="IRIX" ;;
2268 llvm_cv_target_os_type="Cygwin" ;;
2270 llvm_cv_target_os_type="Darwin" ;;
2272 llvm_cv_target_os_type="Minix" ;;
2274 llvm_cv_target_os_type="FreeBSD" ;;
2276 llvm_cv_target_os_type="OpenBSD" ;;
2278 llvm_cv_target_os_type="NetBSD" ;;
2280 llvm_cv_target_os_type="DragonFly" ;;
2282 llvm_cv_target_os_type="HP-UX" ;;
2284 llvm_cv_target_os_type="Interix" ;;
2286 llvm_cv_target_os_type="Linux" ;;
2288 llvm_cv_target_os_type="SunOS" ;;
2290 llvm_cv_target_os_type="AuroraUX" ;;
2292 llvm_cv_target_os_type="Win32" ;;
2294 llvm_cv_target_os_type="MingW" ;;
2296 llvm_cv_target_os_type="Haiku" ;;
2298 llvm_cv_target_os_type="Freestanding" ;;
2300 llvm_cv_target_os_type="Unknown" ;;
2303 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2304 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2306 if test "$llvm_cv_os_type" = "Unknown" ; then
2307 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2308 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2309 { (exit 1); exit 1; }; }
2314 HOST_OS=$llvm_cv_os_type
2316 TARGET_OS=$llvm_cv_target_os_type
2319 LINKALL=$llvm_cv_link_all_option
2321 NOLINKALL=$llvm_cv_no_link_all_option
2324 case $llvm_cv_platform_type in
2327 cat >>confdefs.h <<\_ACEOF
2328 #define LLVM_ON_UNIX 1
2338 cat >>confdefs.h <<\_ACEOF
2339 #define LLVM_ON_WIN32 1
2349 { echo "$as_me:$LINENO: checking target architecture" >&5
2350 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2351 if test "${llvm_cv_target_arch+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 i?86-*) llvm_cv_target_arch="x86" ;;
2356 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2357 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2358 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2359 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2360 arm*-*) llvm_cv_target_arch="ARM" ;;
2361 mips-*) llvm_cv_target_arch="Mips" ;;
2362 pic16-*) llvm_cv_target_arch="PIC16" ;;
2363 xcore-*) llvm_cv_target_arch="XCore" ;;
2364 msp430-*) llvm_cv_target_arch="MSP430" ;;
2365 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2366 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2367 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2368 *) llvm_cv_target_arch="Unknown" ;;
2371 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2372 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2374 if test "$llvm_cv_target_arch" = "Unknown" ; then
2375 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2376 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2379 # Determine the LLVM native architecture for the target
2380 case "$llvm_cv_target_arch" in
2381 x86) LLVM_NATIVE_ARCH="X86" ;;
2382 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2383 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2386 ARCH=$llvm_cv_target_arch
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 if test -n "$ac_tool_prefix"; then
2395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_CC+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 if test -n "$CC"; then
2424 { echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6; }
2427 { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2433 if test -z "$ac_cv_prog_CC"; then
2435 # Extract the first word of "gcc", so it can be a program name with args.
2436 set dummy gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$ac_ct_CC"; then
2443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_ac_ct_CC="gcc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2463 if test -n "$ac_ct_CC"; then
2464 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2465 echo "${ECHO_T}$ac_ct_CC" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2471 if test "x$ac_ct_CC" = x; then
2474 case $cross_compiling:$ac_tool_warned in
2476 { echo "$as_me:$LINENO: 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." >&5
2479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet. If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2482 ac_tool_warned=yes ;;
2490 if test -z "$CC"; then
2491 if test -n "$ac_tool_prefix"; then
2492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}cc; ac_word=$2
2494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2496 if test "${ac_cv_prog_CC+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_CC="${ac_tool_prefix}cc"
2510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 if test -n "$CC"; then
2521 { echo "$as_me:$LINENO: result: $CC" >&5
2522 echo "${ECHO_T}$CC" >&6; }
2524 { echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6; }
2531 if test -z "$CC"; then
2532 # Extract the first word of "cc", so it can be a program name with args.
2533 set dummy cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551 ac_prog_rejected=yes
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 if test $ac_prog_rejected = yes; then
2563 # We found a bogon in the path, so make sure we never use it.
2564 set dummy $ac_cv_prog_CC
2566 if test $# != 0; then
2567 # We chose a different compiler from the bogus one.
2568 # However, it has the same basename, so the bogon will be chosen
2569 # first if we set CC to just the basename; use the full file name.
2571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2577 if test -n "$CC"; then
2578 { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2587 if test -z "$CC"; then
2588 if test -n "$ac_tool_prefix"; then
2589 for ac_prog in cl.exe
2591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2595 if test "${ac_cv_prog_CC+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 if test -n "$CC"; then
2620 { echo "$as_me:$LINENO: result: $CC" >&5
2621 echo "${ECHO_T}$CC" >&6; }
2623 { echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6; }
2628 test -n "$CC" && break
2631 if test -z "$CC"; then
2633 for ac_prog in cl.exe
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_ac_ct_CC="$ac_prog"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2665 echo "${ECHO_T}$ac_ct_CC" >&6; }
2667 { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2672 test -n "$ac_ct_CC" && break
2675 if test "x$ac_ct_CC" = x; then
2678 case $cross_compiling:$ac_tool_warned in
2680 { echo "$as_me:$LINENO: 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." >&5
2683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet. If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2686 ac_tool_warned=yes ;;
2695 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&5
2697 echo "$as_me: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&2;}
2699 { (exit 1); exit 1; }; }
2701 # Provide some information about the compiler.
2702 echo "$as_me:$LINENO: checking for C compiler version" >&5
2703 ac_compiler=`set X $ac_compile; echo $2`
2704 { (ac_try="$ac_compiler --version >&5"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler --version >&5") 2>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2714 { (ac_try="$ac_compiler -v >&5"
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler -v >&5") 2>&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
2724 { (ac_try="$ac_compiler -V >&5"
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_compiler -V >&5") 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
2735 cat >conftest.$ac_ext <<_ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2750 ac_clean_files_save=$ac_clean_files
2751 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2752 # Try to create an executable without -o first, disregard a.out.
2753 # It will help us diagnose broken compilers, and finding out an intuition
2755 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2756 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2757 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2759 # List of possible output files, starting from the most likely.
2760 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2761 # only as a last resort. b.out is created by i960 compilers.
2762 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2764 # The IRIX 6 linker writes into existing files which may not be
2765 # executable, retaining their permissions. Remove them first so a
2766 # subsequent execution test works.
2768 for ac_file in $ac_files
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2777 if { (ac_try="$ac_link_default"
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_link_default") 2>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; then
2787 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2788 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2789 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2790 # so that the user can short-circuit this test for compilers unknown to
2792 for ac_file in $ac_files
2794 test -f "$ac_file" || continue
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2799 # We found the default executable, but exeext='' is most
2803 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2805 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2807 # We set ac_cv_exeext here because the later test for it is not
2808 # safe: cross compilers may not add the suffix if given an `-o'
2809 # argument, so we may need to know it at that point already.
2810 # Even if this section looks crufty: it has the advantage of
2817 test "$ac_cv_exeext" = no && ac_cv_exeext=
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2823 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&2;}
2827 { (exit 77); exit 77; }; }
2830 ac_exeext=$ac_cv_exeext
2831 { echo "$as_me:$LINENO: result: $ac_file" >&5
2832 echo "${ECHO_T}$ac_file" >&6; }
2834 # Check that the compiler produces executables we can run. If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2839 # If not cross compiling, check that we can run a simple program.
2840 if test "$cross_compiling" != yes; then
2841 if { ac_try='./$ac_file'
2842 { (case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2853 if test "$cross_compiling" = maybe; then
2856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2866 { echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6; }
2869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2870 ac_clean_files=$ac_clean_files_save
2871 # Check that the compiler produces executables we can run. If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2875 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2876 echo "${ECHO_T}$cross_compiling" >&6; }
2878 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2880 if { (ac_try="$ac_link"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_link") 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; then
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2894 for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&2;}
2908 { (exit 1); exit 1; }; }
2911 rm -f conftest$ac_cv_exeext
2912 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2913 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2915 rm -f conftest.$ac_ext
2916 EXEEXT=$ac_cv_exeext
2918 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2920 if test "${ac_cv_objext+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2938 rm -f conftest.o conftest.obj
2939 if { (ac_try="$ac_compile"
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; then
2949 for ac_file in conftest.o conftest.obj conftest.*; do
2950 test -f "$ac_file" || continue;
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&5
2963 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&2;}
2965 { (exit 1); exit 1; }; }
2968 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2970 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2971 echo "${ECHO_T}$ac_cv_objext" >&6; }
2972 OBJEXT=$ac_cv_objext
2974 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2975 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2976 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3006 grep -v '^ *+' conftest.er1 >conftest.err
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } &&
3011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3012 { (case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_try") 2>&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; } &&
3021 { ac_try='test -s conftest.$ac_objext'
3022 { (case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_try") 2>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3043 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3045 GCC=`test $ac_compiler_gnu = yes && echo yes`
3046 ac_test_CFLAGS=${CFLAGS+set}
3047 ac_save_CFLAGS=$CFLAGS
3048 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3049 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3050 if test "${ac_cv_prog_cc_g+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 ac_save_c_werror_flag=$ac_c_werror_flag
3054 ac_c_werror_flag=yes
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3081 grep -v '^ *+' conftest.er1 >conftest.err
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3112 cat >conftest.$ac_ext <<_ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 ac_c_werror_flag=$ac_save_c_werror_flag
3168 cat >conftest.$ac_ext <<_ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3192 grep -v '^ *+' conftest.er1 >conftest.err
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_try") 2>&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ac_c_werror_flag=$ac_save_c_werror_flag
3234 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3235 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3236 if test "$ac_test_CFLAGS" = set; then
3237 CFLAGS=$ac_save_CFLAGS
3238 elif test $ac_cv_prog_cc_g = yes; then
3239 if test "$GCC" = yes; then
3245 if test "$GCC" = yes; then
3251 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3252 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_cc_c89+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 ac_cv_prog_cc_c89=no
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3266 #include <sys/types.h>
3267 #include <sys/stat.h>
3268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3269 struct buf { int x; };
3270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3271 static char *e (p, i)
3277 static char *f (char * (*g) (char **, int), char **p, ...)
3282 s = g (p, va_arg (v,int));
3287 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3288 function prototypes and stuff, but not '\xHH' hex character constants.
3289 These don't provoke an error unfortunately, instead are silently treated
3290 as 'x'. The following induces an error, until -std is added to get
3291 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3292 array size at least. It's necessary to write '\x00'==0 to get something
3293 that's true only with -std. */
3294 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3296 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3297 inside strings and character constants. */
3299 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3301 int test (int i, double x);
3302 struct s1 {int (*f) (int a);};
3303 struct s2 {int (*f) (double a);};
3304 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3310 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3315 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3316 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3318 CC="$ac_save_CC $ac_arg"
3319 rm -f conftest.$ac_objext
3320 if { (ac_try="$ac_compile"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } &&
3333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; } &&
3343 { ac_try='test -s conftest.$ac_objext'
3344 { (case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_try") 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_prog_cc_c89=$ac_arg
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3361 rm -f core conftest.err conftest.$ac_objext
3362 test "x$ac_cv_prog_cc_c89" != "xno" && break
3364 rm -f conftest.$ac_ext
3369 case "x$ac_cv_prog_cc_c89" in
3371 { echo "$as_me:$LINENO: result: none needed" >&5
3372 echo "${ECHO_T}none needed" >&6; } ;;
3374 { echo "$as_me:$LINENO: result: unsupported" >&5
3375 echo "${ECHO_T}unsupported" >&6; } ;;
3377 CC="$CC $ac_cv_prog_cc_c89"
3378 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3379 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3396 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3397 # On Suns, sometimes $CPP names a directory.
3398 if test -n "$CPP" && test -d "$CPP"; then
3401 if test -z "$CPP"; then
3402 if test "${ac_cv_prog_CPP+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 # Double quotes because CPP needs to be expanded
3406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3409 for ac_c_preproc_warn_flag in '' yes
3411 # Use a header file that comes with gcc, so configuring glibc
3412 # with a fresh cross-compiler works.
3413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414 # <limits.h> exists even on freestanding compilers.
3415 # On the NeXT, cc -E runs the code through the compiler's parser,
3416 # not just through cpp. "Syntax error" is here to catch this case.
3417 cat >conftest.$ac_ext <<_ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3424 # include <limits.h>
3426 # include <assert.h>
3430 if { (ac_try="$ac_cpp conftest.$ac_ext"
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } >/dev/null; then
3443 if test -s conftest.err; then
3444 ac_cpp_err=$ac_c_preproc_warn_flag
3445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452 if test -z "$ac_cpp_err"; then
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 # Broken: fails on valid input.
3462 rm -f conftest.err conftest.$ac_ext
3464 # OK, works on sane cases. Now check whether nonexistent headers
3465 # can be detected and how.
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 #include <ac_nonexistent.h>
3474 if { (ac_try="$ac_cpp conftest.$ac_ext"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } >/dev/null; then
3487 if test -s conftest.err; then
3488 ac_cpp_err=$ac_c_preproc_warn_flag
3489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3496 if test -z "$ac_cpp_err"; then
3497 # Broken: success on invalid input.
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 # Passes both tests.
3508 rm -f conftest.err conftest.$ac_ext
3511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512 rm -f conftest.err conftest.$ac_ext
3513 if $ac_preproc_ok; then
3525 { echo "$as_me:$LINENO: result: $CPP" >&5
3526 echo "${ECHO_T}$CPP" >&6; }
3528 for ac_c_preproc_warn_flag in '' yes
3530 # Use a header file that comes with gcc, so configuring glibc
3531 # with a fresh cross-compiler works.
3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533 # <limits.h> exists even on freestanding compilers.
3534 # On the NeXT, cc -E runs the code through the compiler's parser,
3535 # not just through cpp. "Syntax error" is here to catch this case.
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3543 # include <limits.h>
3545 # include <assert.h>
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3557 grep -v '^ *+' conftest.er1 >conftest.err
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } >/dev/null; then
3562 if test -s conftest.err; then
3563 ac_cpp_err=$ac_c_preproc_warn_flag
3564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3571 if test -z "$ac_cpp_err"; then
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 # Broken: fails on valid input.
3581 rm -f conftest.err conftest.$ac_ext
3583 # OK, works on sane cases. Now check whether nonexistent headers
3584 # can be detected and how.
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591 #include <ac_nonexistent.h>
3593 if { (ac_try="$ac_cpp conftest.$ac_ext"
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601 grep -v '^ *+' conftest.er1 >conftest.err
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } >/dev/null; then
3606 if test -s conftest.err; then
3607 ac_cpp_err=$ac_c_preproc_warn_flag
3608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3615 if test -z "$ac_cpp_err"; then
3616 # Broken: success on invalid input.
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 # Passes both tests.
3627 rm -f conftest.err conftest.$ac_ext
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3635 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&5
3637 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&2;}
3639 { (exit 1); exit 1; }; }
3643 ac_cpp='$CPP $CPPFLAGS'
3644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3650 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3651 if test "${ac_cv_path_GREP+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 # Extract the first word of "grep ggrep" to use in msg output
3655 if test -z "$GREP"; then
3656 set dummy grep ggrep; ac_prog_name=$2
3657 if test "${ac_cv_path_GREP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 ac_path_GREP_found=false
3661 # Loop through the user's path and test for each of PROGNAME-LIST
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666 test -z "$as_dir" && as_dir=.
3667 for ac_prog in grep ggrep; do
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3670 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3671 # Check for GNU ac_path_GREP and select it if it is found.
3672 # Check for GNU $ac_path_GREP
3673 case `"$ac_path_GREP" --version 2>&1` in
3675 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3681 cat "conftest.in" "conftest.in" >"conftest.tmp"
3682 mv "conftest.tmp" "conftest.in"
3683 cp "conftest.in" "conftest.nl"
3684 echo 'GREP' >> "conftest.nl"
3685 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3687 ac_count=`expr $ac_count + 1`
3688 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3689 # Best one so far, save it but keep looking for a better one
3690 ac_cv_path_GREP="$ac_path_GREP"
3691 ac_path_GREP_max=$ac_count
3693 # 10*(2^10) chars as input seems more than enough
3694 test $ac_count -gt 10 && break
3696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700 $ac_path_GREP_found && break 3
3710 GREP="$ac_cv_path_GREP"
3711 if test -z "$GREP"; then
3712 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3713 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3714 { (exit 1); exit 1; }; }
3718 ac_cv_path_GREP=$GREP
3723 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3724 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3725 GREP="$ac_cv_path_GREP"
3728 { echo "$as_me:$LINENO: checking for egrep" >&5
3729 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3730 if test "${ac_cv_path_EGREP+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3734 then ac_cv_path_EGREP="$GREP -E"
3736 # Extract the first word of "egrep" to use in msg output
3737 if test -z "$EGREP"; then
3738 set dummy egrep; ac_prog_name=$2
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 ac_path_EGREP_found=false
3743 # Loop through the user's path and test for each of PROGNAME-LIST
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748 test -z "$as_dir" && as_dir=.
3749 for ac_prog in egrep; do
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3752 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3753 # Check for GNU ac_path_EGREP and select it if it is found.
3754 # Check for GNU $ac_path_EGREP
3755 case `"$ac_path_EGREP" --version 2>&1` in
3757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3763 cat "conftest.in" "conftest.in" >"conftest.tmp"
3764 mv "conftest.tmp" "conftest.in"
3765 cp "conftest.in" "conftest.nl"
3766 echo 'EGREP' >> "conftest.nl"
3767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3769 ac_count=`expr $ac_count + 1`
3770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3771 # Best one so far, save it but keep looking for a better one
3772 ac_cv_path_EGREP="$ac_path_EGREP"
3773 ac_path_EGREP_max=$ac_count
3775 # 10*(2^10) chars as input seems more than enough
3776 test $ac_count -gt 10 && break
3778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782 $ac_path_EGREP_found && break 3
3792 EGREP="$ac_cv_path_EGREP"
3793 if test -z "$EGREP"; then
3794 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3795 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3796 { (exit 1); exit 1; }; }
3800 ac_cv_path_EGREP=$EGREP
3806 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3807 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3808 EGREP="$ac_cv_path_EGREP"
3811 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3813 if test "${ac_cv_header_stdc+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 cat >conftest.$ac_ext <<_ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3835 rm -f conftest.$ac_objext
3836 if { (ac_try="$ac_compile"
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3850 { (case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_try") 2>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest.$ac_objext'
3860 { (case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865 (eval "$ac_try") 2>&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_header_stdc=yes
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 ac_cv_header_stdc=no
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 if test $ac_cv_header_stdc = yes; then
3880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891 $EGREP "memchr" >/dev/null 2>&1; then
3894 ac_cv_header_stdc=no
3900 if test $ac_cv_header_stdc = yes; then
3901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912 $EGREP "free" >/dev/null 2>&1; then
3915 ac_cv_header_stdc=no
3921 if test $ac_cv_header_stdc = yes; then
3922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3923 if test "$cross_compiling" = yes; then
3926 cat >conftest.$ac_ext <<_ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3934 #if ((' ' & 0x0FF) == 0x020)
3935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3938 # define ISLOWER(c) \
3939 (('a' <= (c) && (c) <= 'i') \
3940 || ('j' <= (c) && (c) <= 'r') \
3941 || ('s' <= (c) && (c) <= 'z'))
3942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3950 for (i = 0; i < 256; i++)
3951 if (XOR (islower (i), ISLOWER (i))
3952 || toupper (i) != TOUPPER (i))
3957 rm -f conftest$ac_exeext
3958 if { (ac_try="$ac_link"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_link") 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3968 { (case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_try") 2>&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3979 echo "$as_me: program exited with status $ac_status" >&5
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3984 ac_cv_header_stdc=no
3986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3992 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3993 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3994 if test $ac_cv_header_stdc = yes; then
3996 cat >>confdefs.h <<\_ACEOF
3997 #define STDC_HEADERS 1
4002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013 inttypes.h stdint.h unistd.h
4015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 $ac_includes_default
4029 #include <$ac_header>
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046 { (case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_try") 2>&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_try") 2>&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 eval "$as_ac_Header=yes"
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 eval "$as_ac_Header=no"
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_res=`eval echo '${'$as_ac_Header'}'`
4076 { echo "$as_me:$LINENO: result: $ac_res" >&5
4077 echo "${ECHO_T}$ac_res" >&6; }
4078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4079 cat >>confdefs.h <<_ACEOF
4080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4088 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4089 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4090 if test "${ac_cv_c_bigendian+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 # See if sys/param.h defines the BYTE_ORDER macro.
4094 cat >conftest.$ac_ext <<_ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #include <sys/types.h>
4101 #include <sys/param.h>
4106 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4114 rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121 (eval "$ac_compile") 2>conftest.er1
4123 grep -v '^ *+' conftest.er1 >conftest.err
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_try") 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 # It does; now see whether it defined to BIG_ENDIAN or not.
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 #include <sys/types.h>
4156 #include <sys/param.h>
4161 #if BYTE_ORDER != BIG_ENDIAN
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_compile") 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; } &&
4193 { ac_try='test -s conftest.$ac_objext'
4194 { (case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4203 ac_cv_c_bigendian=yes
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 ac_cv_c_bigendian=no
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 # It does not; compile a test program.
4217 if test "$cross_compiling" = yes; then
4218 # try to guess the endianness by grepping values into an object file
4219 ac_cv_c_bigendian=unknown
4220 cat >conftest.$ac_ext <<_ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4227 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4228 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4229 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4230 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4231 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4235 _ascii (); _ebcdic ();
4240 rm -f conftest.$ac_objext
4241 if { (ac_try="$ac_compile"
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_compile") 2>conftest.er1
4249 grep -v '^ *+' conftest.er1 >conftest.err
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } &&
4254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4255 { (case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_try") 2>&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4275 ac_cv_c_bigendian=yes
4277 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4278 if test "$ac_cv_c_bigendian" = unknown; then
4279 ac_cv_c_bigendian=no
4281 # finding both strings is unlikely to happen, but who knows?
4282 ac_cv_c_bigendian=unknown
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 cat >conftest.$ac_ext <<_ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 $ac_includes_default
4305 /* Are we little or big endian? From Harbison&Steele. */
4309 char c[sizeof (long int)];
4312 return u.c[sizeof (long int) - 1] == 1;
4318 rm -f conftest$ac_exeext
4319 if { (ac_try="$ac_link"
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_link") 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329 { (case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_try") 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_c_bigendian=no
4340 echo "$as_me: program exited with status $ac_status" >&5
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_cv_c_bigendian=yes
4347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4356 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4357 case $ac_cv_c_bigendian in
4365 { { echo "$as_me:$LINENO: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4367 echo "$as_me: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4369 { (exit 1); exit 1; }; } ;;
4373 if test "$cross_compiling" = yes; then
4374 LLVM_CROSS_COMPILING=1
4377 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4378 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4379 if test "${ac_cv_build_exeext+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4383 ac_cv_build_exeext=.exe
4385 ac_build_prefix=${build_alias}-
4387 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4388 set dummy ${ac_build_prefix}gcc; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 if test -n "$BUILD_CC"; then
4395 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 BUILD_CC=$ac_cv_prog_BUILD_CC
4415 if test -n "$BUILD_CC"; then
4416 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4417 echo "${ECHO_T}$BUILD_CC" >&6; }
4419 { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4424 if test -z "$BUILD_CC"; then
4425 # Extract the first word of "gcc", so it can be a program name with args.
4426 set dummy gcc; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$BUILD_CC"; then
4433 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_BUILD_CC="gcc"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 BUILD_CC=$ac_cv_prog_BUILD_CC
4453 if test -n "$BUILD_CC"; then
4454 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4455 echo "${ECHO_T}$BUILD_CC" >&6; }
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4462 if test -z "$BUILD_CC"; then
4463 # Extract the first word of "cc", so it can be a program name with args.
4464 set dummy cc; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 if test -n "$BUILD_CC"; then
4471 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4482 ac_prog_rejected=yes
4485 ac_cv_prog_BUILD_CC="cc"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 if test $ac_prog_rejected = yes; then
4494 # We found a bogon in the path, so make sure we never use it.
4495 set dummy $ac_cv_prog_BUILD_CC
4497 if test $# != 0; then
4498 # We chose a different compiler from the bogus one.
4499 # However, it has the same basename, so the bogon will be chosen
4500 # first if we set BUILD_CC to just the basename; use the full file name.
4502 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4507 BUILD_CC=$ac_cv_prog_BUILD_CC
4508 if test -n "$BUILD_CC"; then
4509 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4510 echo "${ECHO_T}$BUILD_CC" >&6; }
4512 { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4519 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4520 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4521 { (exit 1); exit 1; }; }
4522 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4524 echo 'int main () { return 0; }' > conftest.$ac_ext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4527 (eval $ac_build_link) 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; then
4531 for file in conftest.*; do
4533 *.c | *.o | *.obj | *.dSYM) ;;
4534 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4538 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4539 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4540 { (exit 1); exit 1; }; }
4543 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4548 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4549 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4550 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4551 ac_build_exeext=$BUILD_EXEEXT
4553 ac_build_prefix=${build_alias}-
4554 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4555 set dummy ${ac_build_prefix}g++; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 if test -n "$BUILD_CXX"; then
4562 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4582 if test -n "$BUILD_CXX"; then
4583 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4584 echo "${ECHO_T}$BUILD_CXX" >&6; }
4586 { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4591 if test -z "$BUILD_CXX"; then
4592 # Extract the first word of "g++", so it can be a program name with args.
4593 set dummy g++; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 if test -n "$BUILD_CXX"; then
4600 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 ac_cv_prog_BUILD_CXX="g++"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4620 if test -n "$BUILD_CXX"; then
4621 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4622 echo "${ECHO_T}$BUILD_CXX" >&6; }
4624 { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4629 if test -z "$BUILD_CXX"; then
4630 # Extract the first word of "c++", so it can be a program name with args.
4631 set dummy c++; ac_word=$2
4632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 if test -n "$BUILD_CXX"; then
4638 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4649 ac_prog_rejected=yes
4652 ac_cv_prog_BUILD_CXX="c++"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 if test $ac_prog_rejected = yes; then
4661 # We found a bogon in the path, so make sure we never use it.
4662 set dummy $ac_cv_prog_BUILD_CXX
4664 if test $# != 0; then
4665 # We chose a different compiler from the bogus one.
4666 # However, it has the same basename, so the bogon will be chosen
4667 # first if we set BUILD_CXX to just the basename; use the full file name.
4669 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4674 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4675 if test -n "$BUILD_CXX"; then
4676 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4677 echo "${ECHO_T}$BUILD_CXX" >&6; }
4679 { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4687 LLVM_CROSS_COMPILING=0
4691 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4702 # Check whether --enable-optimized was given.
4703 if test "${enable_optimized+set}" = set; then
4704 enableval=$enable_optimized;
4709 if test ${enableval} = "no" ; then
4713 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4717 # Check whether --enable-profiling was given.
4718 if test "${enable_profiling+set}" = set; then
4719 enableval=$enable_profiling;
4724 if test ${enableval} = "no" ; then
4728 ENABLE_PROFILING=ENABLE_PROFILING=1
4732 # Check whether --enable-assertions was given.
4733 if test "${enable_assertions+set}" = set; then
4734 enableval=$enable_assertions;
4739 if test ${enableval} = "yes" ; then
4743 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4747 # Check whether --enable-expensive-checks was given.
4748 if test "${enable_expensive_checks+set}" = set; then
4749 enableval=$enable_expensive_checks;
4754 if test ${enableval} = "yes" ; then
4755 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4757 EXPENSIVE_CHECKS=yes
4760 ENABLE_EXPENSIVE_CHECKS=
4766 # Check whether --enable-debug-runtime was given.
4767 if test "${enable_debug_runtime+set}" = set; then
4768 enableval=$enable_debug_runtime;
4773 if test ${enableval} = "no" ; then
4777 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4781 # Check whether --enable-debug-symbols was given.
4782 if test "${enable_debug_symbols+set}" = set; then
4783 enableval=$enable_debug_symbols;
4788 if test ${enableval} = "no" ; then
4792 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4796 # Check whether --enable-jit was given.
4797 if test "${enable_jit+set}" = set; then
4798 enableval=$enable_jit;
4803 if test ${enableval} = "no"
4808 case "$llvm_cv_target_arch" in
4809 x86) TARGET_HAS_JIT=1
4811 Sparc) TARGET_HAS_JIT=0
4813 PowerPC) TARGET_HAS_JIT=1
4815 x86_64) TARGET_HAS_JIT=1
4817 Alpha) TARGET_HAS_JIT=1
4819 ARM) TARGET_HAS_JIT=1
4821 Mips) TARGET_HAS_JIT=0
4823 PIC16) TARGET_HAS_JIT=0
4825 XCore) TARGET_HAS_JIT=0
4827 MSP430) TARGET_HAS_JIT=0
4829 SystemZ) TARGET_HAS_JIT=0
4831 Blackfin) TARGET_HAS_JIT=0
4833 MBlaze) TARGET_HAS_JIT=0
4840 # Check whether --enable-doxygen was given.
4841 if test "${enable_doxygen+set}" = set; then
4842 enableval=$enable_doxygen;
4847 case "$enableval" in
4848 yes) ENABLE_DOXYGEN=1
4850 no) ENABLE_DOXYGEN=0
4852 default) ENABLE_DOXYGEN=0
4854 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4855 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4856 { (exit 1); exit 1; }; } ;;
4859 # Check whether --enable-threads was given.
4860 if test "${enable_threads+set}" = set; then
4861 enableval=$enable_threads;
4866 case "$enableval" in
4867 yes) ENABLE_THREADS=1
4869 no) ENABLE_THREADS=0
4871 default) ENABLE_THREADS=1
4873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
4878 cat >>confdefs.h <<_ACEOF
4879 #define ENABLE_THREADS $ENABLE_THREADS
4883 # Check whether --enable-pic was given.
4884 if test "${enable_pic+set}" = set; then
4885 enableval=$enable_pic;
4890 case "$enableval" in
4895 default) ENABLE_PIC=1
4897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4902 cat >>confdefs.h <<_ACEOF
4903 #define ENABLE_PIC $ENABLE_PIC
4907 # Check whether --enable-shared was given.
4908 if test "${enable_shared+set}" = set; then
4909 enableval=$enable_shared;
4914 case "$enableval" in
4915 yes) ENABLE_SHARED=1
4919 default) ENABLE_SHARED=0
4921 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4922 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4927 # Check whether --enable-targets was given.
4928 if test "${enable_targets+set}" = set; then
4929 enableval=$enable_targets;
4934 if test "$enableval" = host-only ; then
4937 case "$enableval" in
4938 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4939 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4941 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4942 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4943 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4944 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4945 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4946 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4947 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4948 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4949 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4950 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4951 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4952 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4953 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4954 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4955 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4956 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4957 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4958 host) case "$llvm_cv_target_arch" in
4959 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4960 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4961 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4962 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4963 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4964 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4965 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4966 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4967 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4968 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4969 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4970 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4971 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4972 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4973 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4974 echo "$as_me: error: Can not set target to build" >&2;}
4975 { (exit 1); exit 1; }; } ;;
4977 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4978 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4979 { (exit 1); exit 1; }; } ;;
4984 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4987 # Determine whether we are building LLVM support for the native architecture.
4988 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4989 for a_target in $TARGETS_TO_BUILD; do
4990 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4991 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4993 cat >>confdefs.h <<_ACEOF
4994 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5000 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5001 # target feature def files.
5002 LLVM_ENUM_TARGETS=""
5003 LLVM_ENUM_ASM_PRINTERS=""
5004 LLVM_ENUM_ASM_PARSERS=""
5005 LLVM_ENUM_DISASSEMBLERS=""
5006 for target_to_build in $TARGETS_TO_BUILD; do
5007 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5008 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5009 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5011 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5012 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5014 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5015 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5023 # Check whether --enable-cbe-printf-a was given.
5024 if test "${enable_cbe_printf_a+set}" = set; then
5025 enableval=$enable_cbe_printf_a;
5030 case "$enableval" in
5031 yes) ENABLE_CBE_PRINTF_A=1
5033 no) ENABLE_CBE_PRINTF_A=0
5035 default) ENABLE_CBE_PRINTF_A=1
5037 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5038 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5039 { (exit 1); exit 1; }; } ;;
5042 cat >>confdefs.h <<_ACEOF
5043 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5048 # Check whether --with-llvmgccdir was given.
5049 if test "${with_llvmgccdir+set}" = set; then
5050 withval=$with_llvmgccdir;
5056 default) WITH_LLVMGCCDIR=default ;;
5057 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5058 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5059 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5060 { (exit 1); exit 1; }; } ;;
5064 # Check whether --with-llvmgcc was given.
5065 if test "${with_llvmgcc+set}" = set; then
5066 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5072 # Check whether --with-llvmgxx was given.
5073 if test "${with_llvmgxx+set}" = set; then
5074 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5079 if test -n "$LLVMGCC"; then
5080 LLVMGCCCOMMAND="$LLVMGCC"
5083 if test -n "$LLVMGXX"; then
5084 LLVMGXXCOMMAND="$LLVMGXX"
5087 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5088 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5089 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5090 { (exit 1); exit 1; }; };
5093 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5094 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5095 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5096 { (exit 1); exit 1; }; };
5100 # Check whether --with-clang was given.
5101 if test "${with_clang+set}" = set; then
5102 withval=$with_clang;
5109 # Check whether --with-built-clang was given.
5110 if test "${with_built_clang+set}" = set; then
5111 withval=$with_built_clang;
5113 with_built_clang=check
5117 { echo "$as_me:$LINENO: checking clang compiler" >&5
5118 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5121 if test "$with_clang" != "default"; then
5122 WITH_CLANGPATH="$with_clang"
5123 if ! test -x "$WITH_CLANGPATH"; then
5124 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5125 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5126 { (exit 1); exit 1; }; }
5128 elif test "$with_built_clang" = "yes"; then
5130 elif test "$with_built_clang" = "no"; then
5133 if test "$with_built_clang" != "check"; then
5134 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5135 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5136 { (exit 1); exit 1; }; }
5139 if test -f ${srcdir}/tools/clang/README.txt; then
5144 if ! test -z "$WITH_CLANGPATH"; then
5145 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5146 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5147 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5148 elif test "$WITH_BUILT_CLANG" = "1"; then
5149 { echo "$as_me:$LINENO: result: built" >&5
5150 echo "${ECHO_T}built" >&6; }
5152 { echo "$as_me:$LINENO: result: none" >&5
5153 echo "${ECHO_T}none" >&6; }
5155 CLANGPATH=$WITH_CLANGPATH
5157 CLANGXXPATH=$WITH_CLANGXXPATH
5159 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5163 # Check whether --with-optimize-option was given.
5164 if test "${with_optimize_option+set}" = set; then
5165 withval=$with_optimize_option;
5170 { echo "$as_me:$LINENO: checking optimization flags" >&5
5171 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5174 case "$llvm_cv_os_type" in
5175 FreeBSD) optimize_option=-O2 ;;
5176 MingW) optimize_option=-O2 ;;
5177 *) optimize_option=-O3 ;;
5179 *) optimize_option="$withval" ;;
5181 OPTIMIZE_OPTION=$optimize_option
5183 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5184 echo "${ECHO_T}$optimize_option" >&6; }
5187 # Check whether --with-extra-options was given.
5188 if test "${with_extra_options+set}" = set; then
5189 withval=$with_extra_options;
5195 default) EXTRA_OPTIONS= ;;
5196 *) EXTRA_OPTIONS=$withval ;;
5198 EXTRA_OPTIONS=$EXTRA_OPTIONS
5201 # Check whether --enable-bindings was given.
5202 if test "${enable_bindings+set}" = set; then
5203 enableval=$enable_bindings;
5208 BINDINGS_TO_BUILD=""
5209 case "$enableval" in
5210 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5211 all ) BINDINGS_TO_BUILD="ocaml" ;;
5212 none | no) BINDINGS_TO_BUILD="" ;;
5213 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5214 case "$a_binding" in
5215 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5216 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5217 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5225 # Check whether --with-ocaml-libdir was given.
5226 if test "${with_ocaml_libdir+set}" = set; then
5227 withval=$with_ocaml_libdir;
5233 auto) with_ocaml_libdir="$withval" ;;
5234 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5235 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5236 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5237 { (exit 1); exit 1; }; } ;;
5241 # Check whether --with-c-include-dirs was given.
5242 if test "${with_c_include_dirs+set}" = set; then
5243 withval=$with_c_include_dirs;
5249 cat >>confdefs.h <<_ACEOF
5250 #define C_INCLUDE_DIRS "$withval"
5255 # Check whether --with-cxx-include-root was given.
5256 if test "${with_cxx_include_root+set}" = set; then
5257 withval=$with_cxx_include_root;
5263 cat >>confdefs.h <<_ACEOF
5264 #define CXX_INCLUDE_ROOT "$withval"
5269 # Check whether --with-cxx-include-arch was given.
5270 if test "${with_cxx_include_arch+set}" = set; then
5271 withval=$with_cxx_include_arch;
5277 cat >>confdefs.h <<_ACEOF
5278 #define CXX_INCLUDE_ARCH "$withval"
5283 # Check whether --with-cxx-include-32bit-dir was given.
5284 if test "${with_cxx_include_32bit_dir+set}" = set; then
5285 withval=$with_cxx_include_32bit_dir;
5291 cat >>confdefs.h <<_ACEOF
5292 #define CXX_INCLUDE_32BIT_DIR "$withval"
5297 # Check whether --with-cxx-include-64bit-dir was given.
5298 if test "${with_cxx_include_64bit_dir+set}" = set; then
5299 withval=$with_cxx_include_64bit_dir;
5305 cat >>confdefs.h <<_ACEOF
5306 #define CXX_INCLUDE_64BIT_DIR "$withval"
5311 # Check whether --with-binutils-include was given.
5312 if test "${with_binutils_include+set}" = set; then
5313 withval=$with_binutils_include;
5319 default) WITH_BINUTILS_INCDIR=default ;;
5320 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5321 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5322 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5323 { (exit 1); exit 1; }; } ;;
5325 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5326 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5328 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5329 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5330 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5331 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5332 { (exit 1); exit 1; }; };
5336 # Check whether --enable-libffi was given.
5337 if test "${enable_libffi+set}" = set; then
5338 enableval=$enable_libffi; case "$enableval" in
5339 yes) llvm_cv_enable_libffi="yes" ;;
5340 no) llvm_cv_enable_libffi="no" ;;
5341 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5342 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5343 { (exit 1); exit 1; }; } ;;
5346 llvm_cv_enable_libffi=no
5350 if test "$llvm_cv_os_type" = "Win32" ; then
5356 # Check whether --enable-llvmc-dynamic was given.
5357 if test "${enable_llvmc_dynamic+set}" = set; then
5358 enableval=$enable_llvmc_dynamic;
5360 enableval=$llvmc_dynamic
5363 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5364 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5367 ENABLE_LLVMC_DYNAMIC=
5371 # Check whether --enable-llvmc-dynamic-plugins was given.
5372 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5373 enableval=$enable_llvmc_dynamic_plugins;
5378 if test ${enableval} = "yes" ; then
5379 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5382 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5388 ac_cpp='$CPP $CPPFLAGS'
5389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5394 # On Suns, sometimes $CPP names a directory.
5395 if test -n "$CPP" && test -d "$CPP"; then
5398 if test -z "$CPP"; then
5399 if test "${ac_cv_prog_CPP+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 # Double quotes because CPP needs to be expanded
5403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5406 for ac_c_preproc_warn_flag in '' yes
5408 # Use a header file that comes with gcc, so configuring glibc
5409 # with a fresh cross-compiler works.
5410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5411 # <limits.h> exists even on freestanding compilers.
5412 # On the NeXT, cc -E runs the code through the compiler's parser,
5413 # not just through cpp. "Syntax error" is here to catch this case.
5414 cat >conftest.$ac_ext <<_ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5421 # include <limits.h>
5423 # include <assert.h>
5427 if { (ac_try="$ac_cpp conftest.$ac_ext"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } >/dev/null; then
5440 if test -s conftest.err; then
5441 ac_cpp_err=$ac_c_preproc_warn_flag
5442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5449 if test -z "$ac_cpp_err"; then
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 # Broken: fails on valid input.
5459 rm -f conftest.err conftest.$ac_ext
5461 # OK, works on sane cases. Now check whether nonexistent headers
5462 # can be detected and how.
5463 cat >conftest.$ac_ext <<_ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 #include <ac_nonexistent.h>
5471 if { (ac_try="$ac_cpp conftest.$ac_ext"
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5479 grep -v '^ *+' conftest.er1 >conftest.err
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } >/dev/null; then
5484 if test -s conftest.err; then
5485 ac_cpp_err=$ac_c_preproc_warn_flag
5486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5493 if test -z "$ac_cpp_err"; then
5494 # Broken: success on invalid input.
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 # Passes both tests.
5505 rm -f conftest.err conftest.$ac_ext
5508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5509 rm -f conftest.err conftest.$ac_ext
5510 if $ac_preproc_ok; then
5522 { echo "$as_me:$LINENO: result: $CPP" >&5
5523 echo "${ECHO_T}$CPP" >&6; }
5525 for ac_c_preproc_warn_flag in '' yes
5527 # Use a header file that comes with gcc, so configuring glibc
5528 # with a fresh cross-compiler works.
5529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5530 # <limits.h> exists even on freestanding compilers.
5531 # On the NeXT, cc -E runs the code through the compiler's parser,
5532 # not just through cpp. "Syntax error" is here to catch this case.
5533 cat >conftest.$ac_ext <<_ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5540 # include <limits.h>
5542 # include <assert.h>
5546 if { (ac_try="$ac_cpp conftest.$ac_ext"
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5554 grep -v '^ *+' conftest.er1 >conftest.err
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } >/dev/null; then
5559 if test -s conftest.err; then
5560 ac_cpp_err=$ac_c_preproc_warn_flag
5561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5568 if test -z "$ac_cpp_err"; then
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 # Broken: fails on valid input.
5578 rm -f conftest.err conftest.$ac_ext
5580 # OK, works on sane cases. Now check whether nonexistent headers
5581 # can be detected and how.
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #include <ac_nonexistent.h>
5590 if { (ac_try="$ac_cpp conftest.$ac_ext"
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5598 grep -v '^ *+' conftest.er1 >conftest.err
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } >/dev/null; then
5603 if test -s conftest.err; then
5604 ac_cpp_err=$ac_c_preproc_warn_flag
5605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5612 if test -z "$ac_cpp_err"; then
5613 # Broken: success on invalid input.
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5619 # Passes both tests.
5624 rm -f conftest.err conftest.$ac_ext
5627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5628 rm -f conftest.err conftest.$ac_ext
5629 if $ac_preproc_ok; then
5632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5633 See \`config.log' for more details." >&5
5634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5635 See \`config.log' for more details." >&2;}
5636 { (exit 1); exit 1; }; }
5640 ac_cpp='$CPP $CPPFLAGS'
5641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650 if test -n "$ac_tool_prefix"; then
5653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5657 if test "${ac_cv_prog_CC+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 if test -n "$CC"; then
5661 ac_cv_prog_CC="$CC" # Let the user override the test.
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 if test -n "$CC"; then
5682 { echo "$as_me:$LINENO: result: $CC" >&5
5683 echo "${ECHO_T}$CC" >&6; }
5685 { echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6; }
5690 test -n "$CC" && break
5693 if test -z "$CC"; then
5697 # Extract the first word of "$ac_prog", so it can be a program name with args.
5698 set dummy $ac_prog; ac_word=$2
5699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 if test -n "$ac_ct_CC"; then
5705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_ac_ct_CC="$ac_prog"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5725 if test -n "$ac_ct_CC"; then
5726 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5727 echo "${ECHO_T}$ac_ct_CC" >&6; }
5729 { echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6; }
5734 test -n "$ac_ct_CC" && break
5737 if test "x$ac_ct_CC" = x; then
5740 case $cross_compiling:$ac_tool_warned in
5742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5743 whose name does not start with the host triplet. If you think this
5744 configuration is useful to you, please write to autoconf@gnu.org." >&5
5745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5746 whose name does not start with the host triplet. If you think this
5747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5748 ac_tool_warned=yes ;;
5755 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5756 See \`config.log' for more details." >&5
5757 echo "$as_me: error: no acceptable C compiler found in \$PATH
5758 See \`config.log' for more details." >&2;}
5759 { (exit 1); exit 1; }; }
5761 # Provide some information about the compiler.
5762 echo "$as_me:$LINENO: checking for C compiler version" >&5
5763 ac_compiler=`set X $ac_compile; echo $2`
5764 { (ac_try="$ac_compiler --version >&5"
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_compiler --version >&5") 2>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }
5774 { (ac_try="$ac_compiler -v >&5"
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compiler -v >&5") 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }
5784 { (ac_try="$ac_compiler -V >&5"
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compiler -V >&5") 2>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }
5795 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5796 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5797 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 cat >conftest.$ac_ext <<_ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5818 rm -f conftest.$ac_objext
5819 if { (ac_try="$ac_compile"
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_compile") 2>conftest.er1
5827 grep -v '^ *+' conftest.er1 >conftest.err
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } &&
5832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5833 { (case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_try") 2>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_try") 2>&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5864 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5865 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5866 GCC=`test $ac_compiler_gnu = yes && echo yes`
5867 ac_test_CFLAGS=${CFLAGS+set}
5868 ac_save_CFLAGS=$CFLAGS
5869 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5870 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5871 if test "${ac_cv_prog_cc_g+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 ac_save_c_werror_flag=$ac_c_werror_flag
5875 ac_c_werror_flag=yes
5878 cat >conftest.$ac_ext <<_ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5893 rm -f conftest.$ac_objext
5894 if { (ac_try="$ac_compile"
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_compile") 2>conftest.er1
5902 grep -v '^ *+' conftest.er1 >conftest.err
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5908 { (case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_try") 2>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try='test -s conftest.$ac_objext'
5918 { (case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5948 rm -f conftest.$ac_objext
5949 if { (ac_try="$ac_compile"
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955 (eval "$ac_compile") 2>conftest.er1
5957 grep -v '^ *+' conftest.er1 >conftest.err
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5963 { (case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_try") 2>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest.$ac_objext'
5973 { (case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_try") 2>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987 ac_c_werror_flag=$ac_save_c_werror_flag
5989 cat >conftest.$ac_ext <<_ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
6004 rm -f conftest.$ac_objext
6005 if { (ac_try="$ac_compile"
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_compile") 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019 { (case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_try") 2>&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_try") 2>&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 ac_c_werror_flag=$ac_save_c_werror_flag
6055 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6056 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6057 if test "$ac_test_CFLAGS" = set; then
6058 CFLAGS=$ac_save_CFLAGS
6059 elif test $ac_cv_prog_cc_g = yes; then
6060 if test "$GCC" = yes; then
6066 if test "$GCC" = yes; then
6072 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6073 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6074 if test "${ac_cv_prog_cc_c89+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 ac_cv_prog_cc_c89=no
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6087 #include <sys/types.h>
6088 #include <sys/stat.h>
6089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6090 struct buf { int x; };
6091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6092 static char *e (p, i)
6098 static char *f (char * (*g) (char **, int), char **p, ...)
6103 s = g (p, va_arg (v,int));
6108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6109 function prototypes and stuff, but not '\xHH' hex character constants.
6110 These don't provoke an error unfortunately, instead are silently treated
6111 as 'x'. The following induces an error, until -std is added to get
6112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6113 array size at least. It's necessary to write '\x00'==0 to get something
6114 that's true only with -std. */
6115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6118 inside strings and character constants. */
6120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6122 int test (int i, double x);
6123 struct s1 {int (*f) (int a);};
6124 struct s2 {int (*f) (double a);};
6125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6139 CC="$ac_save_CC $ac_arg"
6140 rm -f conftest.$ac_objext
6141 if { (ac_try="$ac_compile"
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_compile") 2>conftest.er1
6149 grep -v '^ *+' conftest.er1 >conftest.err
6151 cat conftest.err >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6155 { (case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (case "(($ac_try" in
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170 (eval "$ac_try") 2>&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_cv_prog_cc_c89=$ac_arg
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6182 rm -f core conftest.err conftest.$ac_objext
6183 test "x$ac_cv_prog_cc_c89" != "xno" && break
6185 rm -f conftest.$ac_ext
6190 case "x$ac_cv_prog_cc_c89" in
6192 { echo "$as_me:$LINENO: result: none needed" >&5
6193 echo "${ECHO_T}none needed" >&6; } ;;
6195 { echo "$as_me:$LINENO: result: unsupported" >&5
6196 echo "${ECHO_T}unsupported" >&6; } ;;
6198 CC="$CC $ac_cv_prog_cc_c89"
6199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6200 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211 ac_cpp='$CXXCPP $CPPFLAGS'
6212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6215 if test -z "$CXX"; then
6216 if test -n "$CCC"; then
6219 if test -n "$ac_tool_prefix"; then
6222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_CXX+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 if test -n "$CXX"; then
6230 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 if test -n "$CXX"; then
6251 { echo "$as_me:$LINENO: result: $CXX" >&5
6252 echo "${ECHO_T}$CXX" >&6; }
6254 { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6259 test -n "$CXX" && break
6262 if test -z "$CXX"; then
6266 # Extract the first word of "$ac_prog", so it can be a program name with args.
6267 set dummy $ac_prog; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 if test -n "$ac_ct_CXX"; then
6274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_prog_ac_ct_CXX="$ac_prog"
6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6294 if test -n "$ac_ct_CXX"; then
6295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6298 { echo "$as_me:$LINENO: result: no" >&5
6299 echo "${ECHO_T}no" >&6; }
6303 test -n "$ac_ct_CXX" && break
6306 if test "x$ac_ct_CXX" = x; then
6309 case $cross_compiling:$ac_tool_warned in
6311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet. If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&5
6314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet. If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6317 ac_tool_warned=yes ;;
6325 # Provide some information about the compiler.
6326 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6327 ac_compiler=`set X $ac_compile; echo $2`
6328 { (ac_try="$ac_compiler --version >&5"
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 (eval "$ac_compiler --version >&5") 2>&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }
6338 { (ac_try="$ac_compiler -v >&5"
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compiler -v >&5") 2>&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }
6348 { (ac_try="$ac_compiler -V >&5"
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_compiler -V >&5") 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }
6359 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6360 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6361 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6382 rm -f conftest.$ac_objext
6383 if { (ac_try="$ac_compile"
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_compile") 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6397 { (case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_try") 2>&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; } &&
6406 { ac_try='test -s conftest.$ac_objext'
6407 { (case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_try") 2>&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6428 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6429 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6430 GXX=`test $ac_compiler_gnu = yes && echo yes`
6431 ac_test_CXXFLAGS=${CXXFLAGS+set}
6432 ac_save_CXXFLAGS=$CXXFLAGS
6433 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6434 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6435 if test "${ac_cv_prog_cxx_g+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6439 ac_cxx_werror_flag=yes
6442 cat >conftest.$ac_ext <<_ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6457 rm -f conftest.$ac_objext
6458 if { (ac_try="$ac_compile"
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_compile") 2>conftest.er1
6466 grep -v '^ *+' conftest.er1 >conftest.err
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6472 { (case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_try") 2>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; } &&
6481 { ac_try='test -s conftest.$ac_objext'
6482 { (case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_try") 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_cv_prog_cxx_g=yes
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6497 cat >conftest.$ac_ext <<_ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6512 rm -f conftest.$ac_objext
6513 if { (ac_try="$ac_compile"
6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519 (eval "$ac_compile") 2>conftest.er1
6521 grep -v '^ *+' conftest.er1 >conftest.err
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6527 { (case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_try") 2>&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest.$ac_objext'
6537 { (case "(($ac_try" in
6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539 *) ac_try_echo=$ac_try;;
6541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6542 (eval "$ac_try") 2>&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6553 cat >conftest.$ac_ext <<_ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6568 rm -f conftest.$ac_objext
6569 if { (ac_try="$ac_compile"
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_compile") 2>conftest.er1
6577 grep -v '^ *+' conftest.er1 >conftest.err
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6583 { (case "(($ac_try" in
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_try") 2>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest.$ac_objext'
6593 { (case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_try") 2>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 ac_cv_prog_cxx_g=yes
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6620 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6621 if test "$ac_test_CXXFLAGS" = set; then
6622 CXXFLAGS=$ac_save_CXXFLAGS
6623 elif test $ac_cv_prog_cxx_g = yes; then
6624 if test "$GXX" = yes; then
6630 if test "$GXX" = yes; then
6637 ac_cpp='$CPP $CPPFLAGS'
6638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6643 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6644 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6645 if test "${lt_cv_path_NM+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 if test -n "$NM"; then
6649 # Let the user override the test.
6652 lt_nm_to_check="${ac_tool_prefix}nm"
6653 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6654 lt_nm_to_check="$lt_nm_to_check nm"
6656 for lt_tmp_nm in $lt_nm_to_check; do
6657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6658 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6660 test -z "$ac_dir" && ac_dir=.
6661 tmp_nm="$ac_dir/$lt_tmp_nm"
6662 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6663 # Check to see if the nm accepts a BSD-compat flag.
6664 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6665 # nm: unknown option "B" ignored
6666 # Tru64's nm complains that /dev/null is an invalid object file
6667 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6668 */dev/null* | *'Invalid file or object type'*)
6669 lt_cv_path_NM="$tmp_nm -B"
6673 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6675 lt_cv_path_NM="$tmp_nm -p"
6679 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6680 continue # so that we can try to find one that supports BSD flags
6689 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6692 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6693 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6698 { echo "$as_me:$LINENO: checking for GNU make" >&5
6699 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6700 if test "${llvm_cv_gnu_make_command+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 llvm_cv_gnu_make_command=''
6704 for a in "$MAKE" make gmake gnumake ; do
6705 if test -z "$a" ; then continue ; fi ;
6706 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6708 llvm_cv_gnu_make_command=$a ;
6713 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6714 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6715 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6719 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6720 echo "${ECHO_T}\"Not found\"" >&6; };
6724 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6725 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6727 if test "$LN_S" = "ln -s"; then
6728 { echo "$as_me:$LINENO: result: yes" >&5
6729 echo "${ECHO_T}yes" >&6; }
6731 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6732 echo "${ECHO_T}no, using $LN_S" >&6; }
6735 # Extract the first word of "cmp", so it can be a program name with args.
6736 set dummy cmp; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_path_CMP+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6767 if test -n "$CMP"; then
6768 { echo "$as_me:$LINENO: result: $CMP" >&5
6769 echo "${ECHO_T}$CMP" >&6; }
6771 { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6776 # Extract the first word of "cp", so it can be a program name with args.
6777 set dummy cp; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_path_CP+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6808 if test -n "$CP"; then
6809 { echo "$as_me:$LINENO: result: $CP" >&5
6810 echo "${ECHO_T}$CP" >&6; }
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6817 # Extract the first word of "date", so it can be a program name with args.
6818 set dummy date; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_path_DATE+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6848 DATE=$ac_cv_path_DATE
6849 if test -n "$DATE"; then
6850 { echo "$as_me:$LINENO: result: $DATE" >&5
6851 echo "${ECHO_T}$DATE" >&6; }
6853 { echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6; }
6858 # Extract the first word of "find", so it can be a program name with args.
6859 set dummy find; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_path_FIND+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6889 FIND=$ac_cv_path_FIND
6890 if test -n "$FIND"; then
6891 { echo "$as_me:$LINENO: result: $FIND" >&5
6892 echo "${ECHO_T}$FIND" >&6; }
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6899 # Extract the first word of "grep", so it can be a program name with args.
6900 set dummy grep; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_path_GREP+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6930 GREP=$ac_cv_path_GREP
6931 if test -n "$GREP"; then
6932 { echo "$as_me:$LINENO: result: $GREP" >&5
6933 echo "${ECHO_T}$GREP" >&6; }
6935 { echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6; }
6940 # Extract the first word of "mkdir", so it can be a program name with args.
6941 set dummy mkdir; ac_word=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_path_MKDIR+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6971 MKDIR=$ac_cv_path_MKDIR
6972 if test -n "$MKDIR"; then
6973 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6974 echo "${ECHO_T}$MKDIR" >&6; }
6976 { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6981 # Extract the first word of "mv", so it can be a program name with args.
6982 set dummy mv; ac_word=$2
6983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985 if test "${ac_cv_path_MV+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7013 if test -n "$MV"; then
7014 { echo "$as_me:$LINENO: result: $MV" >&5
7015 echo "${ECHO_T}$MV" >&6; }
7017 { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7022 if test -n "$ac_tool_prefix"; then
7023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027 if test "${ac_cv_prog_RANLIB+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 if test -n "$RANLIB"; then
7031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 RANLIB=$ac_cv_prog_RANLIB
7051 if test -n "$RANLIB"; then
7052 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7053 echo "${ECHO_T}$RANLIB" >&6; }
7055 { echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6; }
7061 if test -z "$ac_cv_prog_RANLIB"; then
7062 ac_ct_RANLIB=$RANLIB
7063 # Extract the first word of "ranlib", so it can be a program name with args.
7064 set dummy ranlib; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 if test -n "$ac_ct_RANLIB"; then
7071 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_ac_ct_RANLIB="ranlib"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7091 if test -n "$ac_ct_RANLIB"; then
7092 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7093 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7099 if test "x$ac_ct_RANLIB" = x; then
7102 case $cross_compiling:$ac_tool_warned in
7104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet. If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&5
7107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7108 whose name does not start with the host triplet. If you think this
7109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7110 ac_tool_warned=yes ;;
7112 RANLIB=$ac_ct_RANLIB
7115 RANLIB="$ac_cv_prog_RANLIB"
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}ar; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_AR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 if test -n "$AR"; then
7127 ac_cv_prog_AR="$AR" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_AR="${ac_tool_prefix}ar"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 if test -n "$AR"; then
7148 { echo "$as_me:$LINENO: result: $AR" >&5
7149 echo "${ECHO_T}$AR" >&6; }
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7157 if test -z "$ac_cv_prog_AR"; then
7159 # Extract the first word of "ar", so it can be a program name with args.
7160 set dummy ar; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 if test -n "$ac_ct_AR"; then
7167 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_ac_ct_AR="ar"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7187 if test -n "$ac_ct_AR"; then
7188 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7189 echo "${ECHO_T}$ac_ct_AR" >&6; }
7191 { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7195 if test "x$ac_ct_AR" = x; then
7198 case $cross_compiling:$ac_tool_warned in
7200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet. If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&5
7203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7204 whose name does not start with the host triplet. If you think this
7205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7206 ac_tool_warned=yes ;;
7214 # Extract the first word of "rm", so it can be a program name with args.
7215 set dummy rm; ac_word=$2
7216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218 if test "${ac_cv_path_RM+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7246 if test -n "$RM"; then
7247 { echo "$as_me:$LINENO: result: $RM" >&5
7248 echo "${ECHO_T}$RM" >&6; }
7250 { echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6; }
7255 # Extract the first word of "sed", so it can be a program name with args.
7256 set dummy sed; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_path_SED+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7287 if test -n "$SED"; then
7288 { echo "$as_me:$LINENO: result: $SED" >&5
7289 echo "${ECHO_T}$SED" >&6; }
7291 { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7296 # Extract the first word of "tar", so it can be a program name with args.
7297 set dummy tar; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_TAR+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7328 if test -n "$TAR"; then
7329 { echo "$as_me:$LINENO: result: $TAR" >&5
7330 echo "${ECHO_T}$TAR" >&6; }
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7337 # Extract the first word of "pwd", so it can be a program name with args.
7338 set dummy pwd; ac_word=$2
7339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341 if test "${ac_cv_path_BINPWD+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7368 BINPWD=$ac_cv_path_BINPWD
7369 if test -n "$BINPWD"; then
7370 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7371 echo "${ECHO_T}$BINPWD" >&6; }
7373 { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7379 # Extract the first word of "Graphviz", so it can be a program name with args.
7380 set dummy Graphviz; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7410 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7411 if test -n "$GRAPHVIZ"; then
7412 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7413 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7415 { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7420 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7422 cat >>confdefs.h <<\_ACEOF
7423 #define HAVE_GRAPHVIZ 1
7426 if test "$llvm_cv_os_type" = "MingW" ; then
7427 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7430 cat >>confdefs.h <<_ACEOF
7431 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7435 # Extract the first word of "dot", so it can be a program name with args.
7436 set dummy dot; ac_word=$2
7437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439 if test "${ac_cv_path_DOT+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7467 if test -n "$DOT"; then
7468 { echo "$as_me:$LINENO: result: $DOT" >&5
7469 echo "${ECHO_T}$DOT" >&6; }
7471 { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7476 if test "$DOT" != "echo dot" ; then
7478 cat >>confdefs.h <<\_ACEOF
7482 if test "$llvm_cv_os_type" = "MingW" ; then
7483 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7486 cat >>confdefs.h <<_ACEOF
7487 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7491 # Extract the first word of "fdp", so it can be a program name with args.
7492 set dummy fdp; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_FDP+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7523 if test -n "$FDP"; then
7524 { echo "$as_me:$LINENO: result: $FDP" >&5
7525 echo "${ECHO_T}$FDP" >&6; }
7527 { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7532 if test "$FDP" != "echo fdp" ; then
7534 cat >>confdefs.h <<\_ACEOF
7538 if test "$llvm_cv_os_type" = "MingW" ; then
7539 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7542 cat >>confdefs.h <<_ACEOF
7543 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7547 # Extract the first word of "neato", so it can be a program name with args.
7548 set dummy neato; ac_word=$2
7549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551 if test "${ac_cv_path_NEATO+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7578 NEATO=$ac_cv_path_NEATO
7579 if test -n "$NEATO"; then
7580 { echo "$as_me:$LINENO: result: $NEATO" >&5
7581 echo "${ECHO_T}$NEATO" >&6; }
7583 { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7588 if test "$NEATO" != "echo neato" ; then
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_NEATO 1
7594 if test "$llvm_cv_os_type" = "MingW" ; then
7595 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7598 cat >>confdefs.h <<_ACEOF
7599 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7603 # Extract the first word of "twopi", so it can be a program name with args.
7604 set dummy twopi; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_TWOPI+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7634 TWOPI=$ac_cv_path_TWOPI
7635 if test -n "$TWOPI"; then
7636 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7637 echo "${ECHO_T}$TWOPI" >&6; }
7639 { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7644 if test "$TWOPI" != "echo twopi" ; then
7646 cat >>confdefs.h <<\_ACEOF
7647 #define HAVE_TWOPI 1
7650 if test "$llvm_cv_os_type" = "MingW" ; then
7651 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7654 cat >>confdefs.h <<_ACEOF
7655 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7659 # Extract the first word of "circo", so it can be a program name with args.
7660 set dummy circo; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_CIRCO+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7690 CIRCO=$ac_cv_path_CIRCO
7691 if test -n "$CIRCO"; then
7692 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7693 echo "${ECHO_T}$CIRCO" >&6; }
7695 { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7700 if test "$CIRCO" != "echo circo" ; then
7702 cat >>confdefs.h <<\_ACEOF
7703 #define HAVE_CIRCO 1
7706 if test "$llvm_cv_os_type" = "MingW" ; then
7707 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7710 cat >>confdefs.h <<_ACEOF
7711 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7715 for ac_prog in gv gsview32
7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7721 if test "${ac_cv_path_GV+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 if test -n "$GV"; then
7749 { echo "$as_me:$LINENO: result: $GV" >&5
7750 echo "${ECHO_T}$GV" >&6; }
7752 { echo "$as_me:$LINENO: result: no" >&5
7753 echo "${ECHO_T}no" >&6; }
7757 test -n "$GV" && break
7759 test -n "$GV" || GV="echo gv"
7761 if test "$GV" != "echo gv" ; then
7763 cat >>confdefs.h <<\_ACEOF
7767 if test "$llvm_cv_os_type" = "MingW" ; then
7768 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7771 cat >>confdefs.h <<_ACEOF
7772 #define LLVM_PATH_GV "$GV${EXEEXT}"
7776 # Extract the first word of "dotty", so it can be a program name with args.
7777 set dummy dotty; ac_word=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_path_DOTTY+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7807 DOTTY=$ac_cv_path_DOTTY
7808 if test -n "$DOTTY"; then
7809 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7810 echo "${ECHO_T}$DOTTY" >&6; }
7812 { echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6; }
7817 if test "$DOTTY" != "echo dotty" ; then
7819 cat >>confdefs.h <<\_ACEOF
7820 #define HAVE_DOTTY 1
7823 if test "$llvm_cv_os_type" = "MingW" ; then
7824 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7827 cat >>confdefs.h <<_ACEOF
7828 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7834 # Extract the first word of "perl", so it can be a program name with args.
7835 set dummy perl; ac_word=$2
7836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7838 if test "${ac_cv_path_PERL+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7865 PERL=$ac_cv_path_PERL
7866 if test -n "$PERL"; then
7867 { echo "$as_me:$LINENO: result: $PERL" >&5
7868 echo "${ECHO_T}$PERL" >&6; }
7870 { echo "$as_me:$LINENO: result: no" >&5
7871 echo "${ECHO_T}no" >&6; }
7875 if test "$PERL" != "none"; then
7876 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7877 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7878 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7879 { echo "$as_me:$LINENO: result: yes" >&5
7880 echo "${ECHO_T}yes" >&6; }
7883 { echo "$as_me:$LINENO: result: not found" >&5
7884 echo "${ECHO_T}not found" >&6; }
7889 if test x"$PERL" = xnone; then
7892 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7893 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7894 { (exit 1); exit 1; }; }
7900 # Find a good install program. We prefer a C program (faster),
7901 # so one script is as good as another. But avoid the broken or
7902 # incompatible versions:
7903 # SysV /etc/install, /usr/sbin/install
7904 # SunOS /usr/etc/install
7905 # IRIX /sbin/install
7907 # AmigaOS /C/install, which installs bootblocks on floppy discs
7908 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7909 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7910 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7911 # OS/2's system install, which has a completely different semantic
7912 # ./install, which can be erroneously created by make from ./install.sh.
7913 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7914 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7915 if test -z "$INSTALL"; then
7916 if test "${ac_cv_path_install+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 test -z "$as_dir" && as_dir=.
7924 # Account for people who put trailing slashes in PATH elements.
7926 ./ | .// | /cC/* | \
7927 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7928 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7931 # OSF1 and SCO ODT 3.0 have their own names for install.
7932 # Don't use installbsd from OSF since it installs stuff as root
7934 for ac_prog in ginstall scoinst install; do
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7937 if test $ac_prog = install &&
7938 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7939 # AIX install. It has an incompatible calling convention.
7941 elif test $ac_prog = install &&
7942 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7943 # program-specific install script used by HP pwplus--don't use.
7946 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7959 if test "${ac_cv_path_install+set}" = set; then
7960 INSTALL=$ac_cv_path_install
7962 # As a last resort, use the slow shell script. Don't cache a
7963 # value for INSTALL within a source directory, because that will
7964 # break other packages using the cache if that directory is
7965 # removed, or if the value is a relative name.
7966 INSTALL=$ac_install_sh
7969 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7970 echo "${ECHO_T}$INSTALL" >&6; }
7972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7973 # It thinks the first close brace ends the variable substitution.
7974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7981 # Extract the first word of "bzip2", so it can be a program name with args.
7982 set dummy bzip2; ac_word=$2
7983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7985 if test "${ac_cv_path_BZIP2+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8000 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 BZIP2=$ac_cv_path_BZIP2
8012 if test -n "$BZIP2"; then
8013 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8014 echo "${ECHO_T}$BZIP2" >&6; }
8016 { echo "$as_me:$LINENO: result: no" >&5
8017 echo "${ECHO_T}no" >&6; }
8021 # Extract the first word of "cat", so it can be a program name with args.
8022 set dummy cat; ac_word=$2
8023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8025 if test "${ac_cv_path_CAT+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 if test -n "$CAT"; then
8053 { echo "$as_me:$LINENO: result: $CAT" >&5
8054 echo "${ECHO_T}$CAT" >&6; }
8056 { echo "$as_me:$LINENO: result: no" >&5
8057 echo "${ECHO_T}no" >&6; }
8061 # Extract the first word of "doxygen", so it can be a program name with args.
8062 set dummy doxygen; ac_word=$2
8063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8065 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8080 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 DOXYGEN=$ac_cv_path_DOXYGEN
8092 if test -n "$DOXYGEN"; then
8093 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8094 echo "${ECHO_T}$DOXYGEN" >&6; }
8096 { echo "$as_me:$LINENO: result: no" >&5
8097 echo "${ECHO_T}no" >&6; }
8101 # Extract the first word of "groff", so it can be a program name with args.
8102 set dummy groff; ac_word=$2
8103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8105 if test "${ac_cv_path_GROFF+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8120 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 GROFF=$ac_cv_path_GROFF
8132 if test -n "$GROFF"; then
8133 { echo "$as_me:$LINENO: result: $GROFF" >&5
8134 echo "${ECHO_T}$GROFF" >&6; }
8136 { echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6; }
8141 # Extract the first word of "gzip", so it can be a program name with args.
8142 set dummy gzip; ac_word=$2
8143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8145 if test "${ac_cv_path_GZIP+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 test -z "$as_dir" && as_dir=.
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8160 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 GZIP=$ac_cv_path_GZIP
8172 if test -n "$GZIP"; then
8173 { echo "$as_me:$LINENO: result: $GZIP" >&5
8174 echo "${ECHO_T}$GZIP" >&6; }
8176 { echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6; }
8181 # Extract the first word of "pod2html", so it can be a program name with args.
8182 set dummy pod2html; ac_word=$2
8183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8185 if test "${ac_cv_path_POD2HTML+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8200 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 POD2HTML=$ac_cv_path_POD2HTML
8212 if test -n "$POD2HTML"; then
8213 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8214 echo "${ECHO_T}$POD2HTML" >&6; }
8216 { echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6; }
8221 # Extract the first word of "pod2man", so it can be a program name with args.
8222 set dummy pod2man; ac_word=$2
8223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8225 if test "${ac_cv_path_POD2MAN+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 POD2MAN=$ac_cv_path_POD2MAN
8252 if test -n "$POD2MAN"; then
8253 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8254 echo "${ECHO_T}$POD2MAN" >&6; }
8256 { echo "$as_me:$LINENO: result: no" >&5
8257 echo "${ECHO_T}no" >&6; }
8261 # Extract the first word of "pdfroff", so it can be a program name with args.
8262 set dummy pdfroff; ac_word=$2
8263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8265 if test "${ac_cv_path_PDFROFF+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 PDFROFF=$ac_cv_path_PDFROFF
8292 if test -n "$PDFROFF"; then
8293 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8294 echo "${ECHO_T}$PDFROFF" >&6; }
8296 { echo "$as_me:$LINENO: result: no" >&5
8297 echo "${ECHO_T}no" >&6; }
8301 # Extract the first word of "runtest", so it can be a program name with args.
8302 set dummy runtest; ac_word=$2
8303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8305 if test "${ac_cv_path_RUNTEST+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8320 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 RUNTEST=$ac_cv_path_RUNTEST
8332 if test -n "$RUNTEST"; then
8333 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8334 echo "${ECHO_T}$RUNTEST" >&6; }
8336 { echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6; }
8343 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8344 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8346 # Check whether --with-tclinclude was given.
8347 if test "${with_tclinclude+set}" = set; then
8348 withval=$with_tclinclude; with_tclinclude=${withval}
8353 if test "${ac_cv_path_tclsh+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 if test x"${with_tclinclude}" != x ; then
8358 if test -f ${with_tclinclude}/tclsh ; then
8359 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8360 elif test -f ${with_tclinclude}/src/tclsh ; then
8361 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8363 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8364 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8365 { (exit 1); exit 1; }; }
8371 if test x"${ac_cv_path_tclsh}" = x ; then
8372 { echo "$as_me:$LINENO: result: none" >&5
8373 echo "${ECHO_T}none" >&6; }
8374 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
8376 # Extract the first word of "$ac_prog", so it can be a program name with args.
8377 set dummy $ac_prog; ac_word=$2
8378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8380 if test "${ac_cv_path_TCLSH+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8395 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 TCLSH=$ac_cv_path_TCLSH
8407 if test -n "$TCLSH"; then
8408 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8409 echo "${ECHO_T}$TCLSH" >&6; }
8411 { echo "$as_me:$LINENO: result: no" >&5
8412 echo "${ECHO_T}no" >&6; }
8416 test -n "$TCLSH" && break
8419 if test x"${TCLSH}" = x ; then
8420 ac_cv_path_tclsh='';
8422 ac_cv_path_tclsh="${TCLSH}";
8425 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8426 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8427 TCLSH="${ac_cv_path_tclsh}"
8431 # Extract the first word of "zip", so it can be a program name with args.
8432 set dummy zip; ac_word=$2
8433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8435 if test "${ac_cv_path_ZIP+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8450 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 if test -n "$ZIP"; then
8463 { echo "$as_me:$LINENO: result: $ZIP" >&5
8464 echo "${ECHO_T}$ZIP" >&6; }
8466 { echo "$as_me:$LINENO: result: no" >&5
8467 echo "${ECHO_T}no" >&6; }
8471 for ac_prog in ocamlc
8473 # Extract the first word of "$ac_prog", so it can be a program name with args.
8474 set dummy $ac_prog; ac_word=$2
8475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8477 if test "${ac_cv_path_OCAMLC+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8492 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 OCAMLC=$ac_cv_path_OCAMLC
8504 if test -n "$OCAMLC"; then
8505 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8506 echo "${ECHO_T}$OCAMLC" >&6; }
8508 { echo "$as_me:$LINENO: result: no" >&5
8509 echo "${ECHO_T}no" >&6; }
8513 test -n "$OCAMLC" && break
8516 for ac_prog in ocamlopt
8518 # Extract the first word of "$ac_prog", so it can be a program name with args.
8519 set dummy $ac_prog; ac_word=$2
8520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8522 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 OCAMLOPT=$ac_cv_path_OCAMLOPT
8549 if test -n "$OCAMLOPT"; then
8550 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8551 echo "${ECHO_T}$OCAMLOPT" >&6; }
8553 { echo "$as_me:$LINENO: result: no" >&5
8554 echo "${ECHO_T}no" >&6; }
8558 test -n "$OCAMLOPT" && break
8561 for ac_prog in ocamldep
8563 # Extract the first word of "$ac_prog", so it can be a program name with args.
8564 set dummy $ac_prog; ac_word=$2
8565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8567 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8582 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 OCAMLDEP=$ac_cv_path_OCAMLDEP
8594 if test -n "$OCAMLDEP"; then
8595 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8596 echo "${ECHO_T}$OCAMLDEP" >&6; }
8598 { echo "$as_me:$LINENO: result: no" >&5
8599 echo "${ECHO_T}no" >&6; }
8603 test -n "$OCAMLDEP" && break
8606 for ac_prog in ocamldoc
8608 # Extract the first word of "$ac_prog", so it can be a program name with args.
8609 set dummy $ac_prog; ac_word=$2
8610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8612 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8638 OCAMLDOC=$ac_cv_path_OCAMLDOC
8639 if test -n "$OCAMLDOC"; then
8640 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8641 echo "${ECHO_T}$OCAMLDOC" >&6; }
8643 { echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6; }
8648 test -n "$OCAMLDOC" && break
8651 for ac_prog in gas as
8653 # Extract the first word of "$ac_prog", so it can be a program name with args.
8654 set dummy $ac_prog; ac_word=$2
8655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8657 if test "${ac_cv_path_GAS+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8672 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 if test -n "$GAS"; then
8685 { echo "$as_me:$LINENO: result: $GAS" >&5
8686 echo "${ECHO_T}$GAS" >&6; }
8688 { echo "$as_me:$LINENO: result: no" >&5
8689 echo "${ECHO_T}no" >&6; }
8693 test -n "$GAS" && break
8697 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8698 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8699 if test "${llvm_cv_link_use_r+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 ac_cpp='$CPP $CPPFLAGS'
8704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8709 CFLAGS="$CFLAGS -Wl,-R."
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (ac_try="$ac_link"
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_link") 2>conftest.er1
8734 grep -v '^ *+' conftest.er1 >conftest.err
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } &&
8739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8740 { (case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_try") 2>&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; } &&
8749 { ac_try='test -s conftest$ac_exeext'
8750 { (case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_try") 2>&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; }; then
8759 llvm_cv_link_use_r=yes
8761 echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8764 llvm_cv_link_use_r=no
8767 rm -f core conftest.err conftest.$ac_objext \
8768 conftest$ac_exeext conftest.$ac_ext
8771 ac_cpp='$CPP $CPPFLAGS'
8772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8778 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8779 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8780 if test "$llvm_cv_link_use_r" = yes ; then
8782 cat >>confdefs.h <<\_ACEOF
8783 #define HAVE_LINK_R 1
8789 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8790 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8791 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 ac_cpp='$CPP $CPPFLAGS'
8796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8801 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8802 cat >conftest.$ac_ext <<_ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (ac_try="$ac_link"
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 (eval "$ac_link") 2>conftest.er1
8826 grep -v '^ *+' conftest.er1 >conftest.err
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8832 { (case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_try") 2>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; } &&
8841 { ac_try='test -s conftest$ac_exeext'
8842 { (case "(($ac_try" in
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_try") 2>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 llvm_cv_link_use_export_dynamic=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 llvm_cv_link_use_export_dynamic=no
8859 rm -f core conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8863 ac_cpp='$CPP $CPPFLAGS'
8864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8870 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8871 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8872 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8874 cat >>confdefs.h <<\_ACEOF
8875 #define HAVE_LINK_EXPORT_DYNAMIC 1
8881 { echo "$as_me:$LINENO: checking for compiler -Wl,-retain-symbols-file option" >&5
8882 echo $ECHO_N "checking for compiler -Wl,-retain-symbols-file option... $ECHO_C" >&6; }
8883 if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 ac_cpp='$CPP $CPPFLAGS'
8888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8894 # The following code is from the autoconf manual,
8895 # "11.13: Limitations of Usual Tools".
8896 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8897 # Use mktemp if possible; otherwise fall back on mkdir,
8898 # with $RANDOM to make collisions less likely.
8902 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8904 test -n "$tmp" && test -d "$tmp"
8906 tmp=$TMPDIR/foo$$-$RANDOM
8907 (umask 077 && mkdir "$tmp")
8910 echo "main" > "$tmp/exports"
8912 CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports"
8913 cat >conftest.$ac_ext <<_ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h. */
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_link") 2>conftest.er1
8937 grep -v '^ *+' conftest.er1 >conftest.err
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8943 { (case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_try") 2>&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_try") 2>&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 llvm_cv_link_use_retain_symbols_file=yes
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 llvm_cv_link_use_retain_symbols_file=no
8970 rm -f core conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8976 ac_cpp='$CPP $CPPFLAGS'
8977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8983 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_retain_symbols_file" >&5
8984 echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; }
8985 if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then
8986 HAVE_LINK_RETAIN_SYMBOLS_FILE=1
8993 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8994 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8995 if test "${ac_cv_c_const+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 cat >conftest.$ac_ext <<_ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9008 /* FIXME: Include the comments suggested by Paul. */
9010 /* Ultrix mips cc rejects this. */
9011 typedef int charset[2];
9013 /* SunOS 4.1.1 cc rejects this. */
9014 char const *const *ccp;
9016 /* NEC SVR4.0.2 mips cc rejects this. */
9017 struct point {int x, y;};
9018 static struct point const zero = {0,0};
9019 /* AIX XL C 1.02.0.0 rejects this.
9020 It does not let you subtract one const X* pointer from another in
9021 an arm of an if-expression whose if-part is not a constant
9023 const char *g = "string";
9024 ccp = &g + (g ? g-g : 0);
9025 /* HPUX 7.0 cc rejects these. */
9028 ccp = (char const *const *) p;
9029 { /* SCO 3.2v4 cc rejects this. */
9031 char const *s = 0 ? (char *) 0 : (char const *) 0;
9036 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9038 const int *foo = &x[0];
9041 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9042 typedef const int *iptr;
9046 { /* AIX XL C 1.02.0.0 rejects this saying
9047 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9048 struct s { int j; const int *ap[3]; };
9049 struct s *b; b->j = 5;
9051 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9055 return !x[0] && !zero.x;
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_compile") 2>conftest.er1
9071 grep -v '^ *+' conftest.er1 >conftest.err
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } &&
9076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9077 { (case "(($ac_try" in
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082 (eval "$ac_try") 2>&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_try") 2>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9107 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9108 if test $ac_cv_c_const = no; then
9110 cat >>confdefs.h <<\_ACEOF
9122 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9123 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9124 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9125 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 cat >conftest.$ac_ext <<_ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 #include <sys/types.h>
9147 rm -f conftest.$ac_objext
9148 if { (ac_try="$ac_compile"
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_compile") 2>conftest.er1
9156 grep -v '^ *+' conftest.er1 >conftest.err
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9162 { (case "(($ac_try" in
9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 (eval "$ac_try") 2>&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest.$ac_objext'
9172 { (case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_try") 2>&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; }; then
9181 eval "$as_ac_Header=yes"
9183 echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9186 eval "$as_ac_Header=no"
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 ac_res=`eval echo '${'$as_ac_Header'}'`
9192 { echo "$as_me:$LINENO: result: $ac_res" >&5
9193 echo "${ECHO_T}$ac_res" >&6; }
9194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9195 cat >>confdefs.h <<_ACEOF
9196 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9199 ac_header_dirent=$ac_hdr; break
9203 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9204 if test $ac_header_dirent = dirent.h; then
9205 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9206 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9207 if test "${ac_cv_search_opendir+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 ac_func_search_save_LIBS=$LIBS
9211 cat >conftest.$ac_ext <<_ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9218 /* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
9233 for ac_lib in '' dir; do
9234 if test -z "$ac_lib"; then
9235 ac_res="none required"
9238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (ac_try="$ac_link"
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_link") 2>conftest.er1
9249 grep -v '^ *+' conftest.er1 >conftest.err
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9255 { (case "(($ac_try" in
9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_try") 2>&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest$ac_exeext'
9265 { (case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_try") 2>&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_cv_search_opendir=$ac_res
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9282 rm -f core conftest.err conftest.$ac_objext \
9284 if test "${ac_cv_search_opendir+set}" = set; then
9288 if test "${ac_cv_search_opendir+set}" = set; then
9291 ac_cv_search_opendir=no
9294 LIBS=$ac_func_search_save_LIBS
9296 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9297 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9298 ac_res=$ac_cv_search_opendir
9299 if test "$ac_res" != no; then
9300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9305 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9306 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9307 if test "${ac_cv_search_opendir+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 ac_func_search_save_LIBS=$LIBS
9311 cat >conftest.$ac_ext <<_ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9318 /* Override any GCC internal prototype to avoid an error.
9319 Use char because int might match the return type of a GCC
9320 builtin and then its argument prototype would still apply. */
9333 for ac_lib in '' x; do
9334 if test -z "$ac_lib"; then
9335 ac_res="none required"
9338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_link") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1 >conftest.err
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9355 { (case "(($ac_try" in
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_try") 2>&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; } &&
9364 { ac_try='test -s conftest$ac_exeext'
9365 { (case "(($ac_try" in
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_try") 2>&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 ac_cv_search_opendir=$ac_res
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9382 rm -f core conftest.err conftest.$ac_objext \
9384 if test "${ac_cv_search_opendir+set}" = set; then
9388 if test "${ac_cv_search_opendir+set}" = set; then
9391 ac_cv_search_opendir=no
9394 LIBS=$ac_func_search_save_LIBS
9396 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9397 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9398 ac_res=$ac_cv_search_opendir
9399 if test "$ac_res" != no; then
9400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9407 for ac_header in dlfcn.h
9409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 ac_res=`eval echo '${'$as_ac_Header'}'`
9417 { echo "$as_me:$LINENO: result: $ac_res" >&5
9418 echo "${ECHO_T}$ac_res" >&6; }
9420 # Is the header compilable?
9421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9423 cat >conftest.$ac_ext <<_ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429 $ac_includes_default
9430 #include <$ac_header>
9432 rm -f conftest.$ac_objext
9433 if { (ac_try="$ac_compile"
9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436 *) ac_try_echo=$ac_try;;
9438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439 (eval "$ac_compile") 2>conftest.er1
9441 grep -v '^ *+' conftest.er1 >conftest.err
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9447 { (case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_try") 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (case "(($ac_try" in
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_try") 2>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_header_compiler=yes
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_header_compiler=no
9474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9476 echo "${ECHO_T}$ac_header_compiler" >&6; }
9478 # Is the header present?
9479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9481 cat >conftest.$ac_ext <<_ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 #include <$ac_header>
9489 if { (ac_try="$ac_cpp conftest.$ac_ext"
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9497 grep -v '^ *+' conftest.er1 >conftest.err
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } >/dev/null; then
9502 if test -s conftest.err; then
9503 ac_cpp_err=$ac_c_preproc_warn_flag
9504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9511 if test -z "$ac_cpp_err"; then
9512 ac_header_preproc=yes
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_header_preproc=no
9520 rm -f conftest.err conftest.$ac_ext
9521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9522 echo "${ECHO_T}$ac_header_preproc" >&6; }
9524 # So? What about this header?
9525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9531 ac_header_preproc=yes
9534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9547 ## ----------------------------------- ##
9548 ## Report this to llvmbugs@cs.uiuc.edu ##
9549 ## ----------------------------------- ##
9551 ) | sed "s/^/$as_me: WARNING: /" >&2
9554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 eval "$as_ac_Header=\$ac_header_preproc"
9561 ac_res=`eval echo '${'$as_ac_Header'}'`
9562 { echo "$as_me:$LINENO: result: $ac_res" >&5
9563 echo "${ECHO_T}$ac_res" >&6; }
9566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9567 cat >>confdefs.h <<_ACEOF
9568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9575 # Check whether --enable-ltdl-install was given.
9576 if test "${enable_ltdl_install+set}" = set; then
9577 enableval=$enable_ltdl_install;
9583 if test x"${enable_ltdl_install-no}" != xno; then
9585 INSTALL_LTDL_FALSE='#'
9587 INSTALL_LTDL_TRUE='#'
9593 if test x"${enable_ltdl_convenience-no}" != xno; then
9594 CONVENIENCE_LTDL_TRUE=
9595 CONVENIENCE_LTDL_FALSE='#'
9597 CONVENIENCE_LTDL_TRUE='#'
9598 CONVENIENCE_LTDL_FALSE=
9602 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9603 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9605 libname_spec='lib$name'
9613 shlibpath_overrides_runpath=unknown
9615 dynamic_linker="$host_os ld.so"
9616 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9617 if test "$GCC" = yes; then
9618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9619 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9620 # if the path contains ";" then we assume it to be the separator
9621 # otherwise default to the standard path separator (i.e. ":") - it is
9622 # assumed that no part of a normal pathname contains ";" but that should
9623 # okay in the real world where ";" in dirpaths is itself problematic.
9624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9631 need_lib_prefix=unknown
9632 hardcode_into_libs=no
9634 # when you set need_version to no, make sure it does not cause -set_version
9635 # flags to be left without arguments
9636 need_version=unknown
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9642 shlibpath_var=LIBPATH
9644 # AIX 3 has no versioning support, so we append a major version to the name.
9645 soname_spec='${libname}${release}${shared_ext}$major'
9652 hardcode_into_libs=yes
9653 if test "$host_cpu" = ia64; then
9654 # AIX 5 supports IA64
9655 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9656 shlibpath_var=LD_LIBRARY_PATH
9658 # With GCC up to 2.95.x, collect2 would create an import file
9659 # for dependence libraries. The import file would start with
9660 # the line `#! .'. This would cause the generated library to
9661 # depend on `.', always an invalid library. This was fixed in
9662 # development snapshots of GCC prior to 3.0.
9664 aix4 | aix4.[01] | aix4.[01].*)
9665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9667 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9674 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9675 # soname into executable. Probably we can add versioning support to
9676 # collect2, so additional links can be useful in future.
9677 if test "$aix_use_runtimelinking" = yes; then
9678 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9679 # instead of lib<name>.a to let people know that these are not
9680 # typical AIX shared libraries.
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 # We preserve .a as extension for shared libraries through AIX4.2
9684 # and later when we are not doing run time linking.
9685 library_names_spec='${libname}${release}.a $libname.a'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LIBPATH
9693 library_names_spec='$libname.ixlibrary $libname.a'
9694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9695 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'
9699 library_names_spec='${libname}${shared_ext}'
9700 dynamic_linker="$host_os ld.so"
9701 shlibpath_var=LIBRARY_PATH
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9710 shlibpath_var=LD_LIBRARY_PATH
9711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9713 # the default ld.so.conf also contains /usr/contrib/lib and
9714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9715 # libtool to hard-code these into programs
9718 cygwin* | mingw* | pw32*)
9719 version_type=windows
9724 case $GCC,$host_os in
9725 yes,cygwin* | yes,mingw* | yes,pw32*)
9726 library_names_spec='$libname.dll.a'
9727 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9728 postinstall_cmds='base_file=`basename \${file}`~
9729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9730 dldir=$destdir/`dirname \$dlpath`~
9731 test -d \$dldir || mkdir -p \$dldir~
9732 $install_prog $dir/$dlname \$dldir/$dlname~
9733 chmod a+x \$dldir/$dlname'
9734 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9735 dlpath=$dir/\$dldll~
9737 shlibpath_overrides_runpath=yes
9741 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9742 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9743 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9746 # MinGW DLLs use traditional 'lib' prefix
9747 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9749 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9750 # It is most probably a Windows format PATH printed by
9751 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9752 # path with ; separators, and with drive letters. We can handle the
9753 # drive letters (cygwin fileutils understands them), so leave them,
9754 # especially as we might pass files found there to a mingw objdump,
9755 # which wouldn't understand a cygwinified path. Ahh.
9756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9762 # pw32 DLLs use 'pw' prefix rather than 'lib'
9763 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9769 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9772 dynamic_linker='Win32 ld.exe'
9773 # FIXME: first we should search . and the directory the executable is in
9777 darwin* | rhapsody*)
9778 dynamic_linker="$host_os dyld"
9782 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9783 soname_spec='${libname}${release}${major}$shared_ext'
9784 shlibpath_overrides_runpath=yes
9785 shlibpath_var=DYLD_LIBRARY_PATH
9786 shrext_cmds='.dylib'
9787 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9788 if test "$GCC" = yes; then
9789 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"`
9791 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 shlibpath_var=LD_LIBRARY_PATH
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 shlibpath_var=LD_LIBRARY_PATH
9816 shlibpath_overrides_runpath=no
9817 hardcode_into_libs=yes
9818 dynamic_linker='GNU ld.so'
9821 freebsd* | dragonfly*)
9822 # DragonFly does not have aout. When/if they implement a new
9823 # versioning mechanism, adjust this.
9824 if test -x /usr/bin/objformat; then
9825 objformat=`/usr/bin/objformat`
9828 freebsd[123]*) objformat=aout ;;
9832 version_type=freebsd-$objformat
9833 case $version_type in
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9844 shlibpath_var=LD_LIBRARY_PATH
9847 shlibpath_overrides_runpath=yes
9849 freebsd3.[01]* | freebsdelf3.[01]*)
9850 shlibpath_overrides_runpath=yes
9851 hardcode_into_libs=yes
9853 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9854 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9855 shlibpath_overrides_runpath=no
9856 hardcode_into_libs=yes
9858 freebsd*) # from 4.6 on
9859 shlibpath_overrides_runpath=yes
9860 hardcode_into_libs=yes
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9870 soname_spec='${libname}${release}${shared_ext}$major'
9871 shlibpath_var=LD_LIBRARY_PATH
9872 hardcode_into_libs=yes
9875 hpux9* | hpux10* | hpux11*)
9876 # Give a soname corresponding to the major version so that dld.sl refuses to
9877 # link against other versions.
9884 hardcode_into_libs=yes
9885 dynamic_linker="$host_os dld.so"
9886 shlibpath_var=LD_LIBRARY_PATH
9887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 if test "X$HPUX_IA64_MODE" = X32; then
9891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9899 hardcode_into_libs=yes
9900 dynamic_linker="$host_os dld.sl"
9901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9910 dynamic_linker="$host_os dld.sl"
9911 shlibpath_var=SHLIB_PATH
9912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9917 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9918 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=no
9930 hardcode_into_libs=yes
9933 irix5* | irix6* | nonstopux*)
9935 nonstopux*) version_type=nonstopux ;;
9937 if test "$lt_cv_prog_gnu_ld" = yes; then
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9948 irix5* | nonstopux*)
9952 case $LD in # libtool.m4 will add one of these switches to LD
9953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9954 libsuff= shlibsuff= libmagic=32-bit;;
9955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9956 libsuff=32 shlibsuff=N32 libmagic=N32;;
9957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9958 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9959 *) libsuff= shlibsuff= libmagic=never-match;;
9963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9964 shlibpath_overrides_runpath=no
9965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9967 hardcode_into_libs=yes
9970 # No shared lib support for Linux oldld, aout, or coff.
9971 linux*oldld* | linux*aout* | linux*coff*)
9975 # This must be Linux ELF.
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 shlibpath_overrides_runpath=no
9985 # This implies no fast_install, which is unacceptable.
9986 # Some rework will be needed to allow for fast_install
9987 # before this can be enabled.
9988 hardcode_into_libs=yes
9990 # Append ld.so.conf contents to the search path
9991 if test -f /etc/ld.so.conf; then
9992 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' ' '`
9993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9996 # We used to test for /lib/ld.so.1 and disable shared libraries on
9997 # powerpc, because MkLinux only supported shared libraries with the
9998 # GNU dynamic linker. Since this was broken with cross compilers,
9999 # most powerpc-linux boxes support dynamic linking these days and
10000 # people can always --disable-shared, the test was removed, and we
10001 # assume the GNU/Linux dynamic linker is in use.
10002 dynamic_linker='GNU/Linux ld.so'
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 shlibpath_overrides_runpath=no
10013 hardcode_into_libs=yes
10014 dynamic_linker='GNU ld.so'
10021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10024 dynamic_linker='NetBSD (a.out) ld.so'
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 dynamic_linker='NetBSD ld.elf_so'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 shlibpath_overrides_runpath=yes
10032 hardcode_into_libs=yes
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath=yes
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=yes
10054 sys_lib_dlsearch_path_spec="/usr/lib"
10056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10058 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10059 *) need_version=no ;;
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10066 openbsd2.[89] | openbsd2.[89].*)
10067 shlibpath_overrides_runpath=no
10070 shlibpath_overrides_runpath=yes
10074 shlibpath_overrides_runpath=yes
10079 libname_spec='$name'
10082 library_names_spec='$libname${shared_ext} $libname.a'
10083 dynamic_linker='OS/2 ld.exe'
10084 shlibpath_var=LIBPATH
10087 osf3* | osf4* | osf5*)
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 shlibpath_overrides_runpath=yes
10106 hardcode_into_libs=yes
10107 # ldd complains unless libraries are executable
10108 postinstall_cmds='chmod +x $lib'
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10114 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10115 shlibpath_var=LD_LIBRARY_PATH
10116 shlibpath_overrides_runpath=yes
10117 if test "$with_gnu_ld" = yes; then
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 case $host_vendor in
10130 shlibpath_overrides_runpath=no
10132 export_dynamic_flag_spec='${wl}-Blargedynsym'
10133 runpath_var=LD_RUN_PATH
10141 shlibpath_overrides_runpath=no
10142 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10148 if test -d /usr/nec ;then
10150 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10151 soname_spec='$libname${shared_ext}.$major'
10152 shlibpath_var=LD_LIBRARY_PATH
10156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10157 version_type=freebsd-elf
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 hardcode_into_libs=yes
10164 if test "$with_gnu_ld" = yes; then
10165 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10166 shlibpath_overrides_runpath=no
10168 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10169 shlibpath_overrides_runpath=yes
10172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10176 sys_lib_dlsearch_path_spec='/usr/lib'
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LD_LIBRARY_PATH
10190 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10191 echo "${ECHO_T}$dynamic_linker" >&6; }
10192 test "$dynamic_linker" = no && can_build_shared=no
10194 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10195 if test "$GCC" = yes; then
10196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10200 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10201 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10202 if test "${libltdl_cv_shlibext+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 eval libltdl_cv_shlibext=$shrext_cmds
10210 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10211 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10212 if test -n "$libltdl_cv_shlibext"; then
10214 cat >>confdefs.h <<_ACEOF
10215 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10221 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10222 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10223 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 libltdl_cv_shlibpath_var="$shlibpath_var"
10228 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10229 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10230 if test -n "$libltdl_cv_shlibpath_var"; then
10232 cat >>confdefs.h <<_ACEOF
10233 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10239 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10240 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10241 if test "${libltdl_cv_sys_search_path+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10246 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10247 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10248 if test -n "$libltdl_cv_sys_search_path"; then
10250 for dir in $libltdl_cv_sys_search_path; do
10251 if test -z "$sys_search_path"; then
10252 sys_search_path="$dir"
10254 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10258 cat >>confdefs.h <<_ACEOF
10259 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10264 { echo "$as_me:$LINENO: checking for objdir" >&5
10265 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10266 if test "${libltdl_cv_objdir+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 libltdl_cv_objdir="$objdir"
10270 if test -n "$objdir"; then
10273 rm -f .libs 2>/dev/null
10274 mkdir .libs 2>/dev/null
10275 if test -d .libs; then
10276 libltdl_cv_objdir=.libs
10278 # MS-DOS does not allow filenames that begin with a dot.
10279 libltdl_cv_objdir=_libs
10281 rmdir .libs 2>/dev/null
10285 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10286 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10288 cat >>confdefs.h <<_ACEOF
10289 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10297 # Check for command to grab the raw symbol name followed by C symbol from nm.
10298 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10299 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10300 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 # These are sane defaults that work on at least a few old systems.
10305 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10307 # Character class describing NM global symbol codes.
10308 symcode='[BCDEGRST]'
10310 # Regexp to match symbols that can be accessed directly from C.
10311 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10313 # Transform an extracted symbol line into a proper C declaration
10314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10316 # Transform an extracted symbol line into symbol name and symbol address
10317 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'"
10319 # Define system-specific variables.
10324 cygwin* | mingw* | pw32*)
10325 symcode='[ABCDGISTW]'
10327 hpux*) # Its linker distinguishes data from code symbols
10328 if test "$host_cpu" = ia64; then
10329 symcode='[ABCDEGRST]'
10331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10332 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'"
10335 if test "$host_cpu" = ia64; then
10336 symcode='[ABCDGIRSTW]'
10337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10338 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'"
10341 irix* | nonstopux*)
10342 symcode='[BCDEGRST]'
10345 symcode='[BCDEGQRST]'
10356 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10364 # Handle CRLF in mingw tool chain
10368 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10372 # If we're using GNU nm, then use its standard symbol codes.
10373 case `$NM -V 2>&1` in
10374 *GNU* | *'with BFD'*)
10375 symcode='[ABCDGIRSTW]' ;;
10378 # Try without a prefix undercore, then with it.
10379 for ac_symprfx in "" "_"; do
10381 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10382 symxfrm="\\1 $ac_symprfx\\2 \\2"
10384 # Write the raw and C identifiers.
10385 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10387 # Check to see that the pipe works correctly.
10391 cat > conftest.$ac_ext <<EOF
10396 void nm_test_func(){}
10400 int main(){nm_test_var='a';nm_test_func();return(0);}
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404 (eval $ac_compile) 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; then
10408 # Now try to grab the symbols.
10410 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10411 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } && test -s "$nlist"; then
10415 # Try sorting and uniquifying the output.
10416 if sort "$nlist" | uniq > "$nlist"T; then
10417 mv -f "$nlist"T "$nlist"
10422 # Make sure that we snagged all the symbols we need.
10423 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10424 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10425 cat <<EOF > conftest.$ac_ext
10431 # Now generate the symbol file.
10432 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10434 cat <<EOF >> conftest.$ac_ext
10435 #if defined (__STDC__) && __STDC__
10436 # define lt_ptr_t void *
10438 # define lt_ptr_t char *
10442 /* The mapping between symbol names and symbols. */
10447 lt_preloaded_symbols[] =
10450 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10451 cat <<\EOF >> conftest.$ac_ext
10459 # Now try linking the two files.
10460 mv conftest.$ac_objext conftstm.$ac_objext
10461 lt_save_LIBS="$LIBS"
10462 lt_save_CFLAGS="$CFLAGS"
10463 LIBS="conftstm.$ac_objext"
10464 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10472 LIBS="$lt_save_LIBS"
10473 CFLAGS="$lt_save_CFLAGS"
10475 echo "cannot find nm_test_func in $nlist" >&5
10478 echo "cannot find nm_test_var in $nlist" >&5
10481 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10484 echo "$progname: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10487 rm -f conftest* conftst*
10489 # Do not use the global_symbol_pipe unless it works.
10490 if test "$pipe_works" = yes; then
10493 lt_cv_sys_global_symbol_pipe=
10499 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10500 lt_cv_sys_global_symbol_to_cdecl=
10502 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10503 { echo "$as_me:$LINENO: result: failed" >&5
10504 echo "${ECHO_T}failed" >&6; }
10506 { echo "$as_me:$LINENO: result: ok" >&5
10507 echo "${ECHO_T}ok" >&6; }
10511 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10512 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10513 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10517 libltdl_cv_preloaded_symbols=yes
10519 libltdl_cv_preloaded_symbols=no
10523 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10524 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10525 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10527 cat >>confdefs.h <<\_ACEOF
10528 #define HAVE_PRELOADED_SYMBOLS 1
10536 ac_cpp='$CPP $CPPFLAGS'
10537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10542 { echo "$as_me:$LINENO: checking for shl_load" >&5
10543 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10544 if test "${ac_cv_func_shl_load+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 cat >conftest.$ac_ext <<_ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10555 #define shl_load innocuous_shl_load
10557 /* System header to define __stub macros and hopefully few prototypes,
10558 which can conflict with char shl_load (); below.
10559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10560 <limits.h> exists even on freestanding compilers. */
10563 # include <limits.h>
10565 # include <assert.h>
10570 /* Override any GCC internal prototype to avoid an error.
10571 Use char because int might match the return type of a GCC
10572 builtin and then its argument prototype would still apply. */
10577 /* The GNU C library defines this for functions which it implements
10578 to always fail with ENOSYS. Some functions are actually named
10579 something starting with __ and the normal name is an alias. */
10580 #if defined __stub_shl_load || defined __stub___shl_load
10587 return shl_load ();
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (ac_try="$ac_link"
10594 case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_link") 2>conftest.er1
10601 grep -v '^ *+' conftest.er1 >conftest.err
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10607 { (case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_try") 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; } &&
10616 { ac_try='test -s conftest$ac_exeext'
10617 { (case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_try") 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_func_shl_load=yes
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_cv_func_shl_load=no
10634 rm -f core conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
10637 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10638 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10639 if test $ac_cv_func_shl_load = yes; then
10641 cat >>confdefs.h <<\_ACEOF
10642 #define HAVE_SHL_LOAD 1
10646 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10647 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10648 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 ac_check_lib_save_LIBS=$LIBS
10653 cat >conftest.$ac_ext <<_ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10670 return shl_load ();
10675 rm -f conftest.$ac_objext conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_link") 2>conftest.er1
10684 grep -v '^ *+' conftest.er1 >conftest.err
10686 cat conftest.err >&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } &&
10689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10690 { (case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_try") 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; } &&
10699 { ac_try='test -s conftest$ac_exeext'
10700 { (case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_try") 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10709 ac_cv_lib_dld_shl_load=yes
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10714 ac_cv_lib_dld_shl_load=no
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10721 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10722 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10723 if test $ac_cv_lib_dld_shl_load = yes; then
10725 cat >>confdefs.h <<\_ACEOF
10726 #define HAVE_SHL_LOAD 1
10729 LIBADD_DL="$LIBADD_DL -ldld"
10731 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10732 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10733 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 ac_check_lib_save_LIBS=$LIBS
10738 cat >conftest.$ac_ext <<_ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10745 /* Override any GCC internal prototype to avoid an error.
10746 Use char because int might match the return type of a GCC
10747 builtin and then its argument prototype would still apply. */
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10769 grep -v '^ *+' conftest.er1 >conftest.err
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10775 { (case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_try") 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try='test -s conftest$ac_exeext'
10785 { (case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790 (eval "$ac_try") 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_lib_dl_dlopen=yes
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_cv_lib_dl_dlopen=no
10802 rm -f core conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804 LIBS=$ac_check_lib_save_LIBS
10806 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10807 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10808 if test $ac_cv_lib_dl_dlopen = yes; then
10810 cat >>confdefs.h <<\_ACEOF
10811 #define HAVE_LIBDL 1
10814 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10816 cat >conftest.$ac_ext <<_ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10823 # include <dlfcn.h>
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (ac_try="$ac_link"
10836 case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_link") 2>conftest.er1
10843 grep -v '^ *+' conftest.er1 >conftest.err
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } &&
10848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10849 { (case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_try") 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_try") 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; }; then
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_LIBDL 1
10872 libltdl_cv_func_dlopen="yes"
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10877 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10878 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10879 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 ac_check_lib_save_LIBS=$LIBS
10883 LIBS="-lsvld $LIBS"
10884 cat >conftest.$ac_ext <<_ACEOF
10887 cat confdefs.h >>conftest.$ac_ext
10888 cat >>conftest.$ac_ext <<_ACEOF
10889 /* end confdefs.h. */
10891 /* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
10906 rm -f conftest.$ac_objext conftest$ac_exeext
10907 if { (ac_try="$ac_link"
10908 case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_link") 2>conftest.er1
10915 grep -v '^ *+' conftest.er1 >conftest.err
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10921 { (case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; } &&
10930 { ac_try='test -s conftest$ac_exeext'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_cv_lib_svld_dlopen=yes
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 ac_cv_lib_svld_dlopen=no
10948 rm -f core conftest.err conftest.$ac_objext \
10949 conftest$ac_exeext conftest.$ac_ext
10950 LIBS=$ac_check_lib_save_LIBS
10952 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10953 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10954 if test $ac_cv_lib_svld_dlopen = yes; then
10956 cat >>confdefs.h <<\_ACEOF
10957 #define HAVE_LIBDL 1
10960 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10962 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10963 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10964 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 ac_check_lib_save_LIBS=$LIBS
10969 cat >conftest.$ac_ext <<_ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10976 /* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10986 return dld_link ();
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11006 { (case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_try") 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; } &&
11015 { ac_try='test -s conftest$ac_exeext'
11016 { (case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_try") 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_lib_dld_dld_link=yes
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_cv_lib_dld_dld_link=no
11033 rm -f core conftest.err conftest.$ac_objext \
11034 conftest$ac_exeext conftest.$ac_ext
11035 LIBS=$ac_check_lib_save_LIBS
11037 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11038 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11039 if test $ac_cv_lib_dld_dld_link = yes; then
11041 cat >>confdefs.h <<\_ACEOF
11045 LIBADD_DL="$LIBADD_DL -ldld"
11047 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11048 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11049 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 cat >conftest.$ac_ext <<_ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11060 #define _dyld_func_lookup innocuous__dyld_func_lookup
11062 /* System header to define __stub macros and hopefully few prototypes,
11063 which can conflict with char _dyld_func_lookup (); below.
11064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11065 <limits.h> exists even on freestanding compilers. */
11068 # include <limits.h>
11070 # include <assert.h>
11073 #undef _dyld_func_lookup
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11081 char _dyld_func_lookup ();
11082 /* The GNU C library defines this for functions which it implements
11083 to always fail with ENOSYS. Some functions are actually named
11084 something starting with __ and the normal name is an alias. */
11085 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11092 return _dyld_func_lookup ();
11097 rm -f conftest.$ac_objext conftest$ac_exeext
11098 if { (ac_try="$ac_link"
11099 case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_link") 2>conftest.er1
11106 grep -v '^ *+' conftest.er1 >conftest.err
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11112 { (case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_try") 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; } &&
11121 { ac_try='test -s conftest$ac_exeext'
11122 { (case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_try") 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_func__dyld_func_lookup=yes
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11136 ac_cv_func__dyld_func_lookup=no
11139 rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11142 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11143 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11144 if test $ac_cv_func__dyld_func_lookup = yes; then
11146 cat >>confdefs.h <<\_ACEOF
11147 #define HAVE_DYLD 1
11161 rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11173 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11175 lt_save_LIBS="$LIBS"
11176 LIBS="$LIBS $LIBADD_DL"
11178 for ac_func in dlerror
11180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 cat >conftest.$ac_ext <<_ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11194 #define $ac_func innocuous_$ac_func
11196 /* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func (); below.
11198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 <limits.h> exists even on freestanding compilers. */
11202 # include <limits.h>
11204 # include <assert.h>
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11216 /* The GNU C library defines this for functions which it implements
11217 to always fail with ENOSYS. Some functions are actually named
11218 something starting with __ and the normal name is an alias. */
11219 #if defined __stub_$ac_func || defined __stub___$ac_func
11226 return $ac_func ();
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (ac_try="$ac_link"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_link") 2>conftest.er1
11240 grep -v '^ *+' conftest.er1 >conftest.err
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11246 { (case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_try") 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest$ac_exeext'
11256 { (case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_try") 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 eval "$as_ac_var=yes"
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11270 eval "$as_ac_var=no"
11273 rm -f core conftest.err conftest.$ac_objext \
11274 conftest$ac_exeext conftest.$ac_ext
11276 ac_res=`eval echo '${'$as_ac_var'}'`
11277 { echo "$as_me:$LINENO: result: $ac_res" >&5
11278 echo "${ECHO_T}$ac_res" >&6; }
11279 if test `eval echo '${'$as_ac_var'}'` = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11287 LIBS="$lt_save_LIBS"
11290 ac_cpp='$CPP $CPPFLAGS'
11291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11297 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11298 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11299 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 ac_cv_sys_symbol_underscore=no
11303 cat > conftest.$ac_ext <<EOF
11304 void nm_test_func(){}
11305 int main(){nm_test_func;return 0;}
11307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11308 (eval $ac_compile) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; then
11312 # Now try to grab the symbols.
11313 ac_nlist=conftest.nm
11314 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11315 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } && test -s "$ac_nlist"; then
11319 # See whether the symbols have a leading underscore.
11320 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11321 ac_cv_sys_symbol_underscore=yes
11323 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11326 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11330 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11333 echo "configure: failed program was:" >&5
11339 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11340 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11343 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11344 if test x"$libltdl_cv_func_dlopen" = xyes ||
11345 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11346 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11347 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11348 if test "${libltdl_cv_need_uscore+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 libltdl_cv_need_uscore=unknown
11353 LIBS="$LIBS $LIBADD_DL"
11354 if test "$cross_compiling" = yes; then :
11355 libltdl_cv_need_uscore=cross
11357 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11358 lt_status=$lt_dlunknown
11359 cat > conftest.$ac_ext <<EOF
11360 #line 11360 "configure"
11361 #include "confdefs.h"
11370 # define LT_DLGLOBAL RTLD_GLOBAL
11373 # define LT_DLGLOBAL DL_GLOBAL
11375 # define LT_DLGLOBAL 0
11379 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11380 find out it does not work in some platform. */
11381 #ifndef LT_DLLAZY_OR_NOW
11383 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11386 # define LT_DLLAZY_OR_NOW DL_LAZY
11389 # define LT_DLLAZY_OR_NOW RTLD_NOW
11392 # define LT_DLLAZY_OR_NOW DL_NOW
11394 # define LT_DLLAZY_OR_NOW 0
11402 extern "C" void exit (int);
11405 void fnord() { int i=42;}
11408 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11409 int status = $lt_dlunknown;
11413 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11414 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11415 /* dlclose (self); */
11423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424 (eval $ac_link) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11428 (./conftest; exit; ) >&5 2>/dev/null
11430 case x$lt_status in
11431 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11432 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11433 x$lt_dlunknown|x*) ;;
11436 # compilation failed
11445 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11446 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11450 if test x"$libltdl_cv_need_uscore" = xyes; then
11452 cat >>confdefs.h <<\_ACEOF
11453 #define NEED_USCORE 1
11459 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11460 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11461 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 # PORTME does your system automatically load deplibs for dlopen?
11465 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11466 # For now, we just catch OSes we know something about -- in the
11467 # future, we'll try test this programmatically.
11468 libltdl_cv_sys_dlopen_deplibs=unknown
11470 aix3*|aix4.1.*|aix4.2.*)
11471 # Unknown whether this is true for these versions of AIX, but
11472 # we want this `case' here to explicitly catch those versions.
11473 libltdl_cv_sys_dlopen_deplibs=unknown
11476 libltdl_cv_sys_dlopen_deplibs=yes
11479 # Assuming the user has installed a libdl from somewhere, this is true
11480 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11481 libltdl_cv_sys_dlopen_deplibs=yes
11483 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11484 # GNU and its variants, using gnu ld.so (Glibc)
11485 libltdl_cv_sys_dlopen_deplibs=yes
11488 libltdl_cv_sys_dlopen_deplibs=yes
11491 libltdl_cv_sys_dlopen_deplibs=yes
11493 irix[12345]*|irix6.[01]*)
11494 # Catch all versions of IRIX before 6.2, and indicate that we don't
11495 # know how it worked for any of those versions.
11496 libltdl_cv_sys_dlopen_deplibs=unknown
11499 # The case above catches anything before 6.2, and it's known that
11500 # at 6.2 and later dlopen does load deplibs.
11501 libltdl_cv_sys_dlopen_deplibs=yes
11504 libltdl_cv_sys_dlopen_deplibs=yes
11507 libltdl_cv_sys_dlopen_deplibs=yes
11510 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11511 # it did *not* use an RPATH in a shared library to find objects the
11512 # library depends on, so we explictly say `no'.
11513 libltdl_cv_sys_dlopen_deplibs=no
11515 osf5.0|osf5.0a|osf5.1)
11516 # dlopen *does* load deplibs and with the right loader patch applied
11517 # it even uses RPATH in a shared library to search for shared objects
11518 # that the library depends on, but there's no easy way to know if that
11519 # patch is installed. Since this is the case, all we can really
11520 # say is unknown -- it depends on the patch being installed. If
11521 # it is, this changes to `yes'. Without it, it would be `no'.
11522 libltdl_cv_sys_dlopen_deplibs=unknown
11525 # the two cases above should catch all versions of osf <= 5.1. Read
11526 # the comments above for what we know about them.
11527 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11528 # is used to find them so we can finally say `yes'.
11529 libltdl_cv_sys_dlopen_deplibs=yes
11532 libltdl_cv_sys_dlopen_deplibs=yes
11534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11535 libltdl_cv_sys_dlopen_deplibs=yes
11540 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11541 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11542 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11544 cat >>confdefs.h <<\_ACEOF
11545 #define LTDL_DLOPEN_DEPLIBS 1
11551 for ac_header in argz.h
11553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 ac_res=`eval echo '${'$as_ac_Header'}'`
11561 { echo "$as_me:$LINENO: result: $ac_res" >&5
11562 echo "${ECHO_T}$ac_res" >&6; }
11564 # Is the header compilable?
11565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11567 cat >conftest.$ac_ext <<_ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 $ac_includes_default
11574 #include <$ac_header>
11576 rm -f conftest.$ac_objext
11577 if { (ac_try="$ac_compile"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_compile") 2>conftest.er1
11585 grep -v '^ *+' conftest.er1 >conftest.err
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
11590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11591 { (case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_try") 2>&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; } &&
11600 { ac_try='test -s conftest.$ac_objext'
11601 { (case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_try") 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 ac_header_compiler=yes
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11615 ac_header_compiler=no
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11620 echo "${ECHO_T}$ac_header_compiler" >&6; }
11622 # Is the header present?
11623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11625 cat >conftest.$ac_ext <<_ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 #include <$ac_header>
11633 if { (ac_try="$ac_cpp conftest.$ac_ext"
11634 case "(($ac_try" in
11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636 *) ac_try_echo=$ac_try;;
11638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11641 grep -v '^ *+' conftest.er1 >conftest.err
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } >/dev/null; then
11646 if test -s conftest.err; then
11647 ac_cpp_err=$ac_c_preproc_warn_flag
11648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11655 if test -z "$ac_cpp_err"; then
11656 ac_header_preproc=yes
11658 echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11661 ac_header_preproc=no
11664 rm -f conftest.err conftest.$ac_ext
11665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11666 echo "${ECHO_T}$ac_header_preproc" >&6; }
11668 # So? What about this header?
11669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11675 ac_header_preproc=yes
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11691 ## ----------------------------------- ##
11692 ## Report this to llvmbugs@cs.uiuc.edu ##
11693 ## ----------------------------------- ##
11695 ) | sed "s/^/$as_me: WARNING: /" >&2
11698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 eval "$as_ac_Header=\$ac_header_preproc"
11705 ac_res=`eval echo '${'$as_ac_Header'}'`
11706 { echo "$as_me:$LINENO: result: $ac_res" >&5
11707 echo "${ECHO_T}$ac_res" >&6; }
11710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11711 cat >>confdefs.h <<_ACEOF
11712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11720 { echo "$as_me:$LINENO: checking for error_t" >&5
11721 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11722 if test "${ac_cv_type_error_t+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 cat >conftest.$ac_ext <<_ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11735 typedef error_t ac__type_new_;
11739 if ((ac__type_new_ *) 0)
11741 if (sizeof (ac__type_new_))
11747 rm -f conftest.$ac_objext
11748 if { (ac_try="$ac_compile"
11749 case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_compile") 2>conftest.er1
11756 grep -v '^ *+' conftest.er1 >conftest.err
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; } &&
11771 { ac_try='test -s conftest.$ac_objext'
11772 { (case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_try") 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_type_error_t=yes
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 ac_cv_type_error_t=no
11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11791 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11792 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11793 if test $ac_cv_type_error_t = yes; then
11795 cat >>confdefs.h <<_ACEOF
11796 #define HAVE_ERROR_T 1
11802 cat >>confdefs.h <<\_ACEOF
11803 #define error_t int
11814 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 cat >conftest.$ac_ext <<_ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830 #define $ac_func innocuous_$ac_func
11832 /* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char $ac_func (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11838 # include <limits.h>
11840 # include <assert.h>
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11852 /* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855 #if defined __stub_$ac_func || defined __stub___$ac_func
11862 return $ac_func ();
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 eval "$as_ac_var=yes"
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 eval "$as_ac_var=no"
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11912 ac_res=`eval echo '${'$as_ac_var'}'`
11913 { echo "$as_me:$LINENO: result: $ac_res" >&5
11914 echo "${ECHO_T}$ac_res" >&6; }
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11950 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 ac_res=`eval echo '${'$as_ac_Header'}'`
11961 { echo "$as_me:$LINENO: result: $ac_res" >&5
11962 echo "${ECHO_T}$ac_res" >&6; }
11964 # Is the header compilable?
11965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11967 cat >conftest.$ac_ext <<_ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 $ac_includes_default
11974 #include <$ac_header>
11976 rm -f conftest.$ac_objext
11977 if { (ac_try="$ac_compile"
11978 case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_compile") 2>conftest.er1
11985 grep -v '^ *+' conftest.er1 >conftest.err
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } &&
11990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11991 { (case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_try") 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest.$ac_objext'
12001 { (case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_try") 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 ac_header_compiler=yes
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ac_header_compiler=no
12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12020 echo "${ECHO_T}$ac_header_compiler" >&6; }
12022 # Is the header present?
12023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12025 cat >conftest.$ac_ext <<_ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 #include <$ac_header>
12033 if { (ac_try="$ac_cpp conftest.$ac_ext"
12034 case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12041 grep -v '^ *+' conftest.er1 >conftest.err
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } >/dev/null; then
12046 if test -s conftest.err; then
12047 ac_cpp_err=$ac_c_preproc_warn_flag
12048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12055 if test -z "$ac_cpp_err"; then
12056 ac_header_preproc=yes
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 ac_header_preproc=no
12064 rm -f conftest.err conftest.$ac_ext
12065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12066 echo "${ECHO_T}$ac_header_preproc" >&6; }
12068 # So? What about this header?
12069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12075 ac_header_preproc=yes
12078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12091 ## ----------------------------------- ##
12092 ## Report this to llvmbugs@cs.uiuc.edu ##
12093 ## ----------------------------------- ##
12095 ) | sed "s/^/$as_me: WARNING: /" >&2
12098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 eval "$as_ac_Header=\$ac_header_preproc"
12105 ac_res=`eval echo '${'$as_ac_Header'}'`
12106 { echo "$as_me:$LINENO: result: $ac_res" >&5
12107 echo "${ECHO_T}$ac_res" >&6; }
12110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12123 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 ac_res=`eval echo '${'$as_ac_Header'}'`
12133 { echo "$as_me:$LINENO: result: $ac_res" >&5
12134 echo "${ECHO_T}$ac_res" >&6; }
12136 # Is the header compilable?
12137 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12139 cat >conftest.$ac_ext <<_ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145 $ac_includes_default
12146 #include <$ac_header>
12148 rm -f conftest.$ac_objext
12149 if { (ac_try="$ac_compile"
12150 case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_compile") 2>conftest.er1
12157 grep -v '^ *+' conftest.er1 >conftest.err
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } &&
12162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12163 { (case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_try") 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 ac_header_compiler=yes
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 ac_header_compiler=no
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12192 echo "${ECHO_T}$ac_header_compiler" >&6; }
12194 # Is the header present?
12195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12197 cat >conftest.$ac_ext <<_ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 #include <$ac_header>
12205 if { (ac_try="$ac_cpp conftest.$ac_ext"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } >/dev/null; then
12218 if test -s conftest.err; then
12219 ac_cpp_err=$ac_c_preproc_warn_flag
12220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12227 if test -z "$ac_cpp_err"; then
12228 ac_header_preproc=yes
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_header_preproc=no
12236 rm -f conftest.err conftest.$ac_ext
12237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12238 echo "${ECHO_T}$ac_header_preproc" >&6; }
12240 # So? What about this header?
12241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12247 ac_header_preproc=yes
12250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12263 ## ----------------------------------- ##
12264 ## Report this to llvmbugs@cs.uiuc.edu ##
12265 ## ----------------------------------- ##
12267 ) | sed "s/^/$as_me: WARNING: /" >&2
12270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 eval "$as_ac_Header=\$ac_header_preproc"
12277 ac_res=`eval echo '${'$as_ac_Header'}'`
12278 { echo "$as_me:$LINENO: result: $ac_res" >&5
12279 echo "${ECHO_T}$ac_res" >&6; }
12282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12283 cat >>confdefs.h <<_ACEOF
12284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12293 for ac_header in string.h strings.h
12295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 ac_res=`eval echo '${'$as_ac_Header'}'`
12303 { echo "$as_me:$LINENO: result: $ac_res" >&5
12304 echo "${ECHO_T}$ac_res" >&6; }
12306 # Is the header compilable?
12307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12309 cat >conftest.$ac_ext <<_ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12315 $ac_includes_default
12316 #include <$ac_header>
12318 rm -f conftest.$ac_objext
12319 if { (ac_try="$ac_compile"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_compile") 2>conftest.er1
12327 grep -v '^ *+' conftest.er1 >conftest.err
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12333 { (case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_try") 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest.$ac_objext'
12343 { (case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_try") 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_header_compiler=yes
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_header_compiler=no
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12362 echo "${ECHO_T}$ac_header_compiler" >&6; }
12364 # Is the header present?
12365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12367 cat >conftest.$ac_ext <<_ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 #include <$ac_header>
12375 if { (ac_try="$ac_cpp conftest.$ac_ext"
12376 case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } >/dev/null; then
12388 if test -s conftest.err; then
12389 ac_cpp_err=$ac_c_preproc_warn_flag
12390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12397 if test -z "$ac_cpp_err"; then
12398 ac_header_preproc=yes
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 ac_header_preproc=no
12406 rm -f conftest.err conftest.$ac_ext
12407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12408 echo "${ECHO_T}$ac_header_preproc" >&6; }
12410 # So? What about this header?
12411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12417 ac_header_preproc=yes
12420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12433 ## ----------------------------------- ##
12434 ## Report this to llvmbugs@cs.uiuc.edu ##
12435 ## ----------------------------------- ##
12437 ) | sed "s/^/$as_me: WARNING: /" >&2
12440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 eval "$as_ac_Header=\$ac_header_preproc"
12447 ac_res=`eval echo '${'$as_ac_Header'}'`
12448 { echo "$as_me:$LINENO: result: $ac_res" >&5
12449 echo "${ECHO_T}$ac_res" >&6; }
12452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12453 cat >>confdefs.h <<_ACEOF
12454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12464 for ac_func in strchr index
12466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 cat >conftest.$ac_ext <<_ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12480 #define $ac_func innocuous_$ac_func
12482 /* System header to define __stub macros and hopefully few prototypes,
12483 which can conflict with char $ac_func (); below.
12484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 <limits.h> exists even on freestanding compilers. */
12488 # include <limits.h>
12490 # include <assert.h>
12495 /* Override any GCC internal prototype to avoid an error.
12496 Use char because int might match the return type of a GCC
12497 builtin and then its argument prototype would still apply. */
12502 /* The GNU C library defines this for functions which it implements
12503 to always fail with ENOSYS. Some functions are actually named
12504 something starting with __ and the normal name is an alias. */
12505 #if defined __stub_$ac_func || defined __stub___$ac_func
12512 return $ac_func ();
12517 rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (ac_try="$ac_link"
12519 case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_link") 2>conftest.er1
12526 grep -v '^ *+' conftest.er1 >conftest.err
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12532 { (case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_try") 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest$ac_exeext'
12542 { (case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_try") 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 eval "$as_ac_var=yes"
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 eval "$as_ac_var=no"
12559 rm -f core conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12562 ac_res=`eval echo '${'$as_ac_var'}'`
12563 { echo "$as_me:$LINENO: result: $ac_res" >&5
12564 echo "${ECHO_T}$ac_res" >&6; }
12565 if test `eval echo '${'$as_ac_var'}'` = yes; then
12566 cat >>confdefs.h <<_ACEOF
12567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12575 for ac_func in strrchr rindex
12577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12591 #define $ac_func innocuous_$ac_func
12593 /* System header to define __stub macros and hopefully few prototypes,
12594 which can conflict with char $ac_func (); below.
12595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12596 <limits.h> exists even on freestanding compilers. */
12599 # include <limits.h>
12601 # include <assert.h>
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12613 /* The GNU C library defines this for functions which it implements
12614 to always fail with ENOSYS. Some functions are actually named
12615 something starting with __ and the normal name is an alias. */
12616 #if defined __stub_$ac_func || defined __stub___$ac_func
12623 return $ac_func ();
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_link") 2>conftest.er1
12637 grep -v '^ *+' conftest.er1 >conftest.err
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_try") 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 eval "$as_ac_var=yes"
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 eval "$as_ac_var=no"
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12673 ac_res=`eval echo '${'$as_ac_var'}'`
12674 { echo "$as_me:$LINENO: result: $ac_res" >&5
12675 echo "${ECHO_T}$ac_res" >&6; }
12676 if test `eval echo '${'$as_ac_var'}'` = yes; then
12677 cat >>confdefs.h <<_ACEOF
12678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12686 for ac_func in memcpy bcopy
12688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 cat >conftest.$ac_ext <<_ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12702 #define $ac_func innocuous_$ac_func
12704 /* System header to define __stub macros and hopefully few prototypes,
12705 which can conflict with char $ac_func (); below.
12706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12707 <limits.h> exists even on freestanding compilers. */
12710 # include <limits.h>
12712 # include <assert.h>
12717 /* Override any GCC internal prototype to avoid an error.
12718 Use char because int might match the return type of a GCC
12719 builtin and then its argument prototype would still apply. */
12724 /* The GNU C library defines this for functions which it implements
12725 to always fail with ENOSYS. Some functions are actually named
12726 something starting with __ and the normal name is an alias. */
12727 #if defined __stub_$ac_func || defined __stub___$ac_func
12734 return $ac_func ();
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_link") 2>conftest.er1
12748 grep -v '^ *+' conftest.er1 >conftest.err
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12754 { (case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_try") 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest$ac_exeext'
12764 { (case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_try") 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 eval "$as_ac_var=yes"
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12778 eval "$as_ac_var=no"
12781 rm -f core conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext conftest.$ac_ext
12784 ac_res=`eval echo '${'$as_ac_var'}'`
12785 { echo "$as_me:$LINENO: result: $ac_res" >&5
12786 echo "${ECHO_T}$ac_res" >&6; }
12787 if test `eval echo '${'$as_ac_var'}'` = yes; then
12788 cat >>confdefs.h <<_ACEOF
12789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12797 for ac_func in memmove strcmp
12799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 cat >conftest.$ac_ext <<_ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12813 #define $ac_func innocuous_$ac_func
12815 /* System header to define __stub macros and hopefully few prototypes,
12816 which can conflict with char $ac_func (); below.
12817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818 <limits.h> exists even on freestanding compilers. */
12821 # include <limits.h>
12823 # include <assert.h>
12828 /* Override any GCC internal prototype to avoid an error.
12829 Use char because int might match the return type of a GCC
12830 builtin and then its argument prototype would still apply. */
12835 /* The GNU C library defines this for functions which it implements
12836 to always fail with ENOSYS. Some functions are actually named
12837 something starting with __ and the normal name is an alias. */
12838 #if defined __stub_$ac_func || defined __stub___$ac_func
12845 return $ac_func ();
12850 rm -f conftest.$ac_objext conftest$ac_exeext
12851 if { (ac_try="$ac_link"
12852 case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_link") 2>conftest.er1
12859 grep -v '^ *+' conftest.er1 >conftest.err
12861 cat conftest.err >&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
12864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12865 { (case "(($ac_try" in
12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867 *) ac_try_echo=$ac_try;;
12869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870 (eval "$ac_try") 2>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; } &&
12874 { ac_try='test -s conftest$ac_exeext'
12875 { (case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_try") 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 eval "$as_ac_var=yes"
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12889 eval "$as_ac_var=no"
12892 rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12895 ac_res=`eval echo '${'$as_ac_var'}'`
12896 { echo "$as_me:$LINENO: result: $ac_res" >&5
12897 echo "${ECHO_T}$ac_res" >&6; }
12898 if test `eval echo '${'$as_ac_var'}'` = yes; then
12899 cat >>confdefs.h <<_ACEOF
12900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12909 for ac_func in closedir opendir readdir
12911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 cat >conftest.$ac_ext <<_ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12925 #define $ac_func innocuous_$ac_func
12927 /* System header to define __stub macros and hopefully few prototypes,
12928 which can conflict with char $ac_func (); below.
12929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12930 <limits.h> exists even on freestanding compilers. */
12933 # include <limits.h>
12935 # include <assert.h>
12940 /* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
12947 /* The GNU C library defines this for functions which it implements
12948 to always fail with ENOSYS. Some functions are actually named
12949 something starting with __ and the normal name is an alias. */
12950 #if defined __stub_$ac_func || defined __stub___$ac_func
12957 return $ac_func ();
12962 rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (ac_try="$ac_link"
12964 case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_link") 2>conftest.er1
12971 grep -v '^ *+' conftest.er1 >conftest.err
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_try") 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 eval "$as_ac_var=yes"
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 eval "$as_ac_var=no"
13004 rm -f core conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext conftest.$ac_ext
13007 ac_res=`eval echo '${'$as_ac_var'}'`
13008 { echo "$as_me:$LINENO: result: $ac_res" >&5
13009 echo "${ECHO_T}$ac_res" >&6; }
13010 if test `eval echo '${'$as_ac_var'}'` = yes; then
13011 cat >>confdefs.h <<_ACEOF
13012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13020 if test "$WITH_LLVMGCCDIR" = "default" ; then
13021 LLVMGCC="llvm-gcc${EXEEXT}"
13022 LLVMGXX="llvm-g++${EXEEXT}"
13023 LLVMGCCCOMMAND="$LLVMGCC"
13024 LLVMGXXCOMMAND="$LLVMGXX"
13025 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13027 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13029 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13030 set dummy $LLVMGCC; ac_word=$2
13031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13033 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13045 test -z "$as_dir" && as_dir=.
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13048 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13059 LLVMGCC=$ac_cv_path_LLVMGCC
13060 if test -n "$LLVMGCC"; then
13061 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13062 echo "${ECHO_T}$LLVMGCC" >&6; }
13064 { echo "$as_me:$LINENO: result: no" >&5
13065 echo "${ECHO_T}no" >&6; }
13069 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13070 set dummy $LLVMGXX; ac_word=$2
13071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13073 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13078 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13082 for as_dir in $PATH
13085 test -z "$as_dir" && as_dir=.
13086 for ac_exec_ext in '' $ac_executable_extensions; do
13087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13088 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13099 LLVMGXX=$ac_cv_path_LLVMGXX
13100 if test -n "$LLVMGXX"; then
13101 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13102 echo "${ECHO_T}$LLVMGXX" >&6; }
13104 { echo "$as_me:$LINENO: result: no" >&5
13105 echo "${ECHO_T}no" >&6; }
13110 if test -z "$LLVMGCC"; then
13111 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13112 LLVMGCCCOMMAND="$LLVMGCC"
13114 if test -z "$LLVMGXX"; then
13115 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13116 LLVMGXXCOMMAND="$LLVMGXX"
13123 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13125 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13130 # Check whether --with-llvmcc was given.
13131 if test "${with_llvmcc+set}" = set; then
13132 withval=$with_llvmcc;
13137 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13138 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13139 if test "$with_llvmcc" != "check"; then
13140 if (test "$with_llvmcc" != "llvm-gcc" &&
13141 test "$with_llvmcc" != "clang" &&
13142 test "$with_llvmcc" != "none"); then
13143 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13144 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13145 { (exit 1); exit 1; }; }
13147 WITH_LLVMCC="$with_llvmcc"
13148 elif test -n "$LLVMGCC"; then
13149 WITH_LLVMCC=llvm-gcc
13150 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13155 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13156 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13157 LLVMCC_OPTION=$WITH_LLVMCC
13160 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13161 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13174 if test "$GCC" != "yes" && test "$ICC" != "yes"
13176 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13177 echo "$as_me: error: gcc|icc required but not found" >&2;}
13178 { (exit 1); exit 1; }; }
13181 if test "$GXX" != "yes" && test "$IXX" != "yes"
13183 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13184 echo "$as_me: error: g++|icc required but not found" >&2;}
13185 { (exit 1); exit 1; }; }
13188 if test "$GCC" = "yes"
13190 cat >conftest.$ac_ext <<_ACEOF
13191 #if !defined(__GNUC__) || __GNUC__ < 3
13192 #error Unsupported GCC version
13196 rm -f conftest.$ac_objext
13197 if { (ac_try="$ac_compile"
13198 case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_compile") 2>conftest.er1
13205 grep -v '^ *+' conftest.er1 >conftest.err
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211 { (case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_try") 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try='test -s conftest.$ac_objext'
13221 { (case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_try") 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13236 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13237 { (exit 1); exit 1; }; }
13240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13243 if test -z "$llvm_cv_gnu_make_command"
13245 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13246 echo "$as_me: error: GNU Make required but not found" >&2;}
13247 { (exit 1); exit 1; }; }
13250 { echo "$as_me:$LINENO: result: ok" >&5
13251 echo "${ECHO_T}ok" >&6; }
13253 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13254 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13255 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13257 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13259 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13260 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13264 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13265 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13266 if test "${ac_cv_lib_m_sin+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13269 ac_check_lib_save_LIBS=$LIBS
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13278 /* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13293 rm -f conftest.$ac_objext conftest$ac_exeext
13294 if { (ac_try="$ac_link"
13295 case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_link") 2>conftest.er1
13302 grep -v '^ *+' conftest.er1 >conftest.err
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13308 { (case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_try") 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } &&
13317 { ac_try='test -s conftest$ac_exeext'
13318 { (case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_try") 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_cv_lib_m_sin=yes
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13335 rm -f core conftest.err conftest.$ac_objext \
13336 conftest$ac_exeext conftest.$ac_ext
13337 LIBS=$ac_check_lib_save_LIBS
13339 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13340 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13341 if test $ac_cv_lib_m_sin = yes; then
13342 cat >>confdefs.h <<_ACEOF
13343 #define HAVE_LIBM 1
13350 if test "$llvm_cv_os_type" = "MingW" ; then
13352 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13353 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13354 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 ac_check_lib_save_LIBS=$LIBS
13358 LIBS="-limagehlp $LIBS"
13359 cat >conftest.$ac_ext <<_ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h. */
13375 rm -f conftest.$ac_objext conftest$ac_exeext
13376 if { (ac_try="$ac_link"
13377 case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_link") 2>conftest.er1
13384 grep -v '^ *+' conftest.er1 >conftest.err
13386 cat conftest.err >&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
13389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13390 { (case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_try") 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try='test -s conftest$ac_exeext'
13400 { (case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_try") 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 ac_cv_lib_imagehlp_main=yes
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13414 ac_cv_lib_imagehlp_main=no
13417 rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13421 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13422 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13423 if test $ac_cv_lib_imagehlp_main = yes; then
13424 cat >>confdefs.h <<_ACEOF
13425 #define HAVE_LIBIMAGEHLP 1
13428 LIBS="-limagehlp $LIBS"
13433 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13434 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13435 if test "${ac_cv_lib_psapi_main+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 ac_check_lib_save_LIBS=$LIBS
13439 LIBS="-lpsapi $LIBS"
13440 cat >conftest.$ac_ext <<_ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (ac_try="$ac_link"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>conftest.er1
13465 grep -v '^ *+' conftest.er1 >conftest.err
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13471 { (case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_try") 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; } &&
13480 { ac_try='test -s conftest$ac_exeext'
13481 { (case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_try") 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 ac_cv_lib_psapi_main=yes
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13495 ac_cv_lib_psapi_main=no
13498 rm -f core conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext conftest.$ac_ext
13500 LIBS=$ac_check_lib_save_LIBS
13502 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13503 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13504 if test $ac_cv_lib_psapi_main = yes; then
13505 cat >>confdefs.h <<_ACEOF
13506 #define HAVE_LIBPSAPI 1
13509 LIBS="-lpsapi $LIBS"
13515 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13516 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13517 if test "${ac_cv_search_dlopen+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 ac_func_search_save_LIBS=$LIBS
13521 cat >conftest.$ac_ext <<_ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13528 /* Override any GCC internal prototype to avoid an error.
13529 Use char because int might match the return type of a GCC
13530 builtin and then its argument prototype would still apply. */
13543 for ac_lib in '' dl; do
13544 if test -z "$ac_lib"; then
13545 ac_res="none required"
13548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (ac_try="$ac_link"
13552 case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_link") 2>conftest.er1
13559 grep -v '^ *+' conftest.er1 >conftest.err
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest$ac_exeext'
13575 { (case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_try") 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_search_dlopen=$ac_res
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13592 rm -f core conftest.err conftest.$ac_objext \
13594 if test "${ac_cv_search_dlopen+set}" = set; then
13598 if test "${ac_cv_search_dlopen+set}" = set; then
13601 ac_cv_search_dlopen=no
13603 rm conftest.$ac_ext
13604 LIBS=$ac_func_search_save_LIBS
13606 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13607 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13608 ac_res=$ac_cv_search_dlopen
13609 if test "$ac_res" != no; then
13610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13612 cat >>confdefs.h <<\_ACEOF
13613 #define HAVE_DLOPEN 1
13617 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13618 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13622 if test "$llvm_cv_enable_libffi" = "yes" ; then
13623 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13624 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13625 if test "${ac_cv_search_ffi_call+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 ac_func_search_save_LIBS=$LIBS
13629 cat >conftest.$ac_ext <<_ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13636 /* Override any GCC internal prototype to avoid an error.
13637 Use char because int might match the return type of a GCC
13638 builtin and then its argument prototype would still apply. */
13646 return ffi_call ();
13651 for ac_lib in '' ffi; do
13652 if test -z "$ac_lib"; then
13653 ac_res="none required"
13656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13658 rm -f conftest.$ac_objext conftest$ac_exeext
13659 if { (ac_try="$ac_link"
13660 case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665 (eval "$ac_link") 2>conftest.er1
13667 grep -v '^ *+' conftest.er1 >conftest.err
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13673 { (case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13678 (eval "$ac_try") 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest$ac_exeext'
13683 { (case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688 (eval "$ac_try") 2>&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; }; then
13692 ac_cv_search_ffi_call=$ac_res
13694 echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13700 rm -f core conftest.err conftest.$ac_objext \
13702 if test "${ac_cv_search_ffi_call+set}" = set; then
13706 if test "${ac_cv_search_ffi_call+set}" = set; then
13709 ac_cv_search_ffi_call=no
13711 rm conftest.$ac_ext
13712 LIBS=$ac_func_search_save_LIBS
13714 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13715 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13716 ac_res=$ac_cv_search_ffi_call
13717 if test "$ac_res" != no; then
13718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13720 cat >>confdefs.h <<\_ACEOF
13721 #define HAVE_FFI_CALL 1
13725 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13726 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13727 { (exit 1); exit 1; }; }
13732 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13733 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13734 if test "${ac_cv_search_mallinfo+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 ac_func_search_save_LIBS=$LIBS
13738 cat >conftest.$ac_ext <<_ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13745 /* Override any GCC internal prototype to avoid an error.
13746 Use char because int might match the return type of a GCC
13747 builtin and then its argument prototype would still apply. */
13755 return mallinfo ();
13760 for ac_lib in '' malloc; do
13761 if test -z "$ac_lib"; then
13762 ac_res="none required"
13765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13767 rm -f conftest.$ac_objext conftest$ac_exeext
13768 if { (ac_try="$ac_link"
13769 case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_link") 2>conftest.er1
13776 grep -v '^ *+' conftest.er1 >conftest.err
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13782 { (case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_try") 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; } &&
13791 { ac_try='test -s conftest$ac_exeext'
13792 { (case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_try") 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 ac_cv_search_mallinfo=$ac_res
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13809 rm -f core conftest.err conftest.$ac_objext \
13811 if test "${ac_cv_search_mallinfo+set}" = set; then
13815 if test "${ac_cv_search_mallinfo+set}" = set; then
13818 ac_cv_search_mallinfo=no
13820 rm conftest.$ac_ext
13821 LIBS=$ac_func_search_save_LIBS
13823 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13824 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13825 ac_res=$ac_cv_search_mallinfo
13826 if test "$ac_res" != no; then
13827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13829 cat >>confdefs.h <<\_ACEOF
13830 #define HAVE_MALLINFO 1
13836 if test "$ENABLE_THREADS" -eq 1 ; then
13838 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13839 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13840 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 ac_check_lib_save_LIBS=$LIBS
13844 LIBS="-lpthread $LIBS"
13845 cat >conftest.$ac_ext <<_ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13852 /* Override any GCC internal prototype to avoid an error.
13853 Use char because int might match the return type of a GCC
13854 builtin and then its argument prototype would still apply. */
13858 char pthread_mutex_init ();
13862 return pthread_mutex_init ();
13867 rm -f conftest.$ac_objext conftest$ac_exeext
13868 if { (ac_try="$ac_link"
13869 case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_link") 2>conftest.er1
13876 grep -v '^ *+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13882 { (case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_try") 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; } &&
13891 { ac_try='test -s conftest$ac_exeext'
13892 { (case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_try") 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_lib_pthread_pthread_mutex_init=yes
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ac_cv_lib_pthread_pthread_mutex_init=no
13909 rm -f core conftest.err conftest.$ac_objext \
13910 conftest$ac_exeext conftest.$ac_ext
13911 LIBS=$ac_check_lib_save_LIBS
13913 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13914 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13915 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13916 cat >>confdefs.h <<_ACEOF
13917 #define HAVE_LIBPTHREAD 1
13920 LIBS="-lpthread $LIBS"
13924 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13925 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13926 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 ac_func_search_save_LIBS=$LIBS
13930 cat >conftest.$ac_ext <<_ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13937 /* Override any GCC internal prototype to avoid an error.
13938 Use char because int might match the return type of a GCC
13939 builtin and then its argument prototype would still apply. */
13943 char pthread_mutex_lock ();
13947 return pthread_mutex_lock ();
13952 for ac_lib in '' pthread; do
13953 if test -z "$ac_lib"; then
13954 ac_res="none required"
13957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13959 rm -f conftest.$ac_objext conftest$ac_exeext
13960 if { (ac_try="$ac_link"
13961 case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_link") 2>conftest.er1
13968 grep -v '^ *+' conftest.er1 >conftest.err
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13974 { (case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_try") 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest$ac_exeext'
13984 { (case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_try") 2>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_cv_search_pthread_mutex_lock=$ac_res
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
14001 rm -f core conftest.err conftest.$ac_objext \
14003 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14007 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14010 ac_cv_search_pthread_mutex_lock=no
14012 rm conftest.$ac_ext
14013 LIBS=$ac_func_search_save_LIBS
14015 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14016 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14017 ac_res=$ac_cv_search_pthread_mutex_lock
14018 if test "$ac_res" != no; then
14019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14021 cat >>confdefs.h <<\_ACEOF
14022 #define HAVE_PTHREAD_MUTEX_LOCK 1
14027 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14028 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14029 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 ac_func_search_save_LIBS=$LIBS
14033 cat >conftest.$ac_ext <<_ACEOF
14036 cat confdefs.h >>conftest.$ac_ext
14037 cat >>conftest.$ac_ext <<_ACEOF
14038 /* end confdefs.h. */
14040 /* Override any GCC internal prototype to avoid an error.
14041 Use char because int might match the return type of a GCC
14042 builtin and then its argument prototype would still apply. */
14046 char pthread_rwlock_init ();
14050 return pthread_rwlock_init ();
14055 for ac_lib in '' pthread; do
14056 if test -z "$ac_lib"; then
14057 ac_res="none required"
14060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14062 rm -f conftest.$ac_objext conftest$ac_exeext
14063 if { (ac_try="$ac_link"
14064 case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_link") 2>conftest.er1
14071 grep -v '^ *+' conftest.er1 >conftest.err
14073 cat conftest.err >&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14077 { (case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_try") 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try='test -s conftest$ac_exeext'
14087 { (case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_try") 2>&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_cv_search_pthread_rwlock_init=$ac_res
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14104 rm -f core conftest.err conftest.$ac_objext \
14106 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14110 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14113 ac_cv_search_pthread_rwlock_init=no
14115 rm conftest.$ac_ext
14116 LIBS=$ac_func_search_save_LIBS
14118 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14119 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14120 ac_res=$ac_cv_search_pthread_rwlock_init
14121 if test "$ac_res" != no; then
14122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14124 cat >>confdefs.h <<\_ACEOF
14125 #define HAVE_PTHREAD_RWLOCK_INIT 1
14130 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14131 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14132 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 ac_func_search_save_LIBS=$LIBS
14136 cat >conftest.$ac_ext <<_ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14149 char pthread_getspecific ();
14153 return pthread_getspecific ();
14158 for ac_lib in '' pthread; do
14159 if test -z "$ac_lib"; then
14160 ac_res="none required"
14163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14165 rm -f conftest.$ac_objext conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_link") 2>conftest.er1
14174 grep -v '^ *+' conftest.er1 >conftest.err
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14180 { (case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_try") 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest$ac_exeext'
14190 { (case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_try") 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
14199 ac_cv_search_pthread_getspecific=$ac_res
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14207 rm -f core conftest.err conftest.$ac_objext \
14209 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14213 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14216 ac_cv_search_pthread_getspecific=no
14218 rm conftest.$ac_ext
14219 LIBS=$ac_func_search_save_LIBS
14221 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14222 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14223 ac_res=$ac_cv_search_pthread_getspecific
14224 if test "$ac_res" != no; then
14225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14227 cat >>confdefs.h <<\_ACEOF
14228 #define HAVE_PTHREAD_GETSPECIFIC 1
14236 # Check whether --with-udis86 was given.
14237 if test "${with_udis86+set}" = set; then
14238 withval=$with_udis86;
14243 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14246 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14247 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14248 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 ac_check_lib_save_LIBS=$LIBS
14252 LIBS="-ludis86 $LIBS"
14253 cat >conftest.$ac_ext <<_ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14275 rm -f conftest.$ac_objext conftest$ac_exeext
14276 if { (ac_try="$ac_link"
14277 case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_link") 2>conftest.er1
14284 grep -v '^ *+' conftest.er1 >conftest.err
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest$ac_exeext'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_cv_lib_udis86_ud_init=yes
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14314 ac_cv_lib_udis86_ud_init=no
14317 rm -f core conftest.err conftest.$ac_objext \
14318 conftest$ac_exeext conftest.$ac_ext
14319 LIBS=$ac_check_lib_save_LIBS
14321 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14322 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14323 if test $ac_cv_lib_udis86_ud_init = yes; then
14324 cat >>confdefs.h <<_ACEOF
14325 #define HAVE_LIBUDIS86 1
14328 LIBS="-ludis86 $LIBS"
14332 echo "Error! You need to have libudis86 around."
14344 cat >>confdefs.h <<_ACEOF
14345 #define USE_UDIS86 $USE_UDIS86
14350 # Check whether --with-oprofile was given.
14351 if test "${with_oprofile+set}" = set; then
14352 withval=$with_oprofile;
14356 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14357 no) llvm_cv_oppath=
14360 *) llvm_cv_oppath="${withval}/lib/oprofile"
14361 CPPFLAGS="-I${withval}/include";;
14363 if test -n "$llvm_cv_oppath" ; then
14364 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14365 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14366 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14367 if test "${ac_cv_search_bfd_init+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 ac_func_search_save_LIBS=$LIBS
14371 cat >conftest.$ac_ext <<_ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14378 /* Override any GCC internal prototype to avoid an error.
14379 Use char because int might match the return type of a GCC
14380 builtin and then its argument prototype would still apply. */
14388 return bfd_init ();
14393 for ac_lib in '' bfd; do
14394 if test -z "$ac_lib"; then
14395 ac_res="none required"
14398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14400 rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (ac_try="$ac_link"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_link") 2>conftest.er1
14409 grep -v '^ *+' conftest.er1 >conftest.err
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
14414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14415 { (case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_try") 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest$ac_exeext'
14425 { (case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_try") 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 ac_cv_search_bfd_init=$ac_res
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14442 rm -f core conftest.err conftest.$ac_objext \
14444 if test "${ac_cv_search_bfd_init+set}" = set; then
14448 if test "${ac_cv_search_bfd_init+set}" = set; then
14451 ac_cv_search_bfd_init=no
14453 rm conftest.$ac_ext
14454 LIBS=$ac_func_search_save_LIBS
14456 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14457 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14458 ac_res=$ac_cv_search_bfd_init
14459 if test "$ac_res" != no; then
14460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14464 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14465 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14466 if test "${ac_cv_search_op_open_agent+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 ac_func_search_save_LIBS=$LIBS
14470 cat >conftest.$ac_ext <<_ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14477 /* Override any GCC internal prototype to avoid an error.
14478 Use char because int might match the return type of a GCC
14479 builtin and then its argument prototype would still apply. */
14483 char op_open_agent ();
14487 return op_open_agent ();
14492 for ac_lib in '' opagent; do
14493 if test -z "$ac_lib"; then
14494 ac_res="none required"
14497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14499 rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (ac_try="$ac_link"
14501 case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_link") 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14514 { (case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_try") 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest$ac_exeext'
14524 { (case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_try") 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
14533 ac_cv_search_op_open_agent=$ac_res
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14541 rm -f core conftest.err conftest.$ac_objext \
14543 if test "${ac_cv_search_op_open_agent+set}" = set; then
14547 if test "${ac_cv_search_op_open_agent+set}" = set; then
14550 ac_cv_search_op_open_agent=no
14552 rm conftest.$ac_ext
14553 LIBS=$ac_func_search_save_LIBS
14555 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14556 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14557 ac_res=$ac_cv_search_op_open_agent
14558 if test "$ac_res" != no; then
14559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14563 echo "Error! You need to have libopagent around."
14568 if test "${ac_cv_header_opagent_h+set}" = set; then
14569 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14570 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14571 if test "${ac_cv_header_opagent_h+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14575 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14577 # Is the header compilable?
14578 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14579 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14580 cat >conftest.$ac_ext <<_ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 $ac_includes_default
14587 #include <opagent.h>
14589 rm -f conftest.$ac_objext
14590 if { (ac_try="$ac_compile"
14591 case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_compile") 2>conftest.er1
14598 grep -v '^ *+' conftest.er1 >conftest.err
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } &&
14603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14604 { (case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_try") 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; } &&
14613 { ac_try='test -s conftest.$ac_objext'
14614 { (case "(($ac_try" in
14615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616 *) ac_try_echo=$ac_try;;
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_try") 2>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; }; then
14623 ac_header_compiler=yes
14625 echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14628 ac_header_compiler=no
14631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14633 echo "${ECHO_T}$ac_header_compiler" >&6; }
14635 # Is the header present?
14636 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14637 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14638 cat >conftest.$ac_ext <<_ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h. */
14644 #include <opagent.h>
14646 if { (ac_try="$ac_cpp conftest.$ac_ext"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14654 grep -v '^ *+' conftest.er1 >conftest.err
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } >/dev/null; then
14659 if test -s conftest.err; then
14660 ac_cpp_err=$ac_c_preproc_warn_flag
14661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14668 if test -z "$ac_cpp_err"; then
14669 ac_header_preproc=yes
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ac_header_preproc=no
14677 rm -f conftest.err conftest.$ac_ext
14678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14679 echo "${ECHO_T}$ac_header_preproc" >&6; }
14681 # So? What about this header?
14682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14684 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14685 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14686 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14687 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14688 ac_header_preproc=yes
14691 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14692 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14693 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14694 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14695 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14696 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14697 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14698 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14700 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14702 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14704 ## ----------------------------------- ##
14705 ## Report this to llvmbugs@cs.uiuc.edu ##
14706 ## ----------------------------------- ##
14708 ) | sed "s/^/$as_me: WARNING: /" >&2
14711 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14712 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14713 if test "${ac_cv_header_opagent_h+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 ac_cv_header_opagent_h=$ac_header_preproc
14718 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14719 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14722 if test $ac_cv_header_opagent_h = yes; then
14726 echo "Error! You need to have opagent.h around."
14742 cat >>confdefs.h <<_ACEOF
14743 #define USE_OPROFILE $USE_OPROFILE
14753 ac_header_dirent=no
14754 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14755 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14756 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14757 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 cat >conftest.$ac_ext <<_ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14767 #include <sys/types.h>
14779 rm -f conftest.$ac_objext
14780 if { (ac_try="$ac_compile"
14781 case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_compile") 2>conftest.er1
14788 grep -v '^ *+' conftest.er1 >conftest.err
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } &&
14793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14794 { (case "(($ac_try" in
14795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796 *) ac_try_echo=$ac_try;;
14798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14799 (eval "$ac_try") 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; } &&
14803 { ac_try='test -s conftest.$ac_objext'
14804 { (case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_try") 2>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 eval "$as_ac_Header=yes"
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 eval "$as_ac_Header=no"
14821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 ac_res=`eval echo '${'$as_ac_Header'}'`
14824 { echo "$as_me:$LINENO: result: $ac_res" >&5
14825 echo "${ECHO_T}$ac_res" >&6; }
14826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14827 cat >>confdefs.h <<_ACEOF
14828 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14831 ac_header_dirent=$ac_hdr; break
14835 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14836 if test $ac_header_dirent = dirent.h; then
14837 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14838 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14839 if test "${ac_cv_search_opendir+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 ac_func_search_save_LIBS=$LIBS
14843 cat >conftest.$ac_ext <<_ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14850 /* Override any GCC internal prototype to avoid an error.
14851 Use char because int might match the return type of a GCC
14852 builtin and then its argument prototype would still apply. */
14865 for ac_lib in '' dir; do
14866 if test -z "$ac_lib"; then
14867 ac_res="none required"
14870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (ac_try="$ac_link"
14874 case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_link") 2>conftest.er1
14881 grep -v '^ *+' conftest.er1 >conftest.err
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest$ac_exeext'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906 ac_cv_search_opendir=$ac_res
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14914 rm -f core conftest.err conftest.$ac_objext \
14916 if test "${ac_cv_search_opendir+set}" = set; then
14920 if test "${ac_cv_search_opendir+set}" = set; then
14923 ac_cv_search_opendir=no
14925 rm conftest.$ac_ext
14926 LIBS=$ac_func_search_save_LIBS
14928 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14929 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14930 ac_res=$ac_cv_search_opendir
14931 if test "$ac_res" != no; then
14932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14937 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14938 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14939 if test "${ac_cv_search_opendir+set}" = set; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 ac_func_search_save_LIBS=$LIBS
14943 cat >conftest.$ac_ext <<_ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14950 /* Override any GCC internal prototype to avoid an error.
14951 Use char because int might match the return type of a GCC
14952 builtin and then its argument prototype would still apply. */
14965 for ac_lib in '' x; do
14966 if test -z "$ac_lib"; then
14967 ac_res="none required"
14970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14972 rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (ac_try="$ac_link"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_link") 2>conftest.er1
14981 grep -v '^ *+' conftest.er1 >conftest.err
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14987 { (case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_try") 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; } &&
14996 { ac_try='test -s conftest$ac_exeext'
14997 { (case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_try") 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 ac_cv_search_opendir=$ac_res
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15014 rm -f core conftest.err conftest.$ac_objext \
15016 if test "${ac_cv_search_opendir+set}" = set; then
15020 if test "${ac_cv_search_opendir+set}" = set; then
15023 ac_cv_search_opendir=no
15025 rm conftest.$ac_ext
15026 LIBS=$ac_func_search_save_LIBS
15028 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15029 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15030 ac_res=$ac_cv_search_opendir
15031 if test "$ac_res" != no; then
15032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15038 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15039 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15040 if test "${ac_cv_header_mmap_anon+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 ac_cpp='$CPP $CPPFLAGS'
15045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15049 cat >conftest.$ac_ext <<_ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055 #include <sys/mman.h>
15056 #include <unistd.h>
15061 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15066 rm -f conftest.$ac_objext
15067 if { (ac_try="$ac_compile"
15068 case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_compile") 2>conftest.er1
15075 grep -v '^ *+' conftest.er1 >conftest.err
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081 { (case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_try") 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest.$ac_objext'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_cv_header_mmap_anon=yes
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ac_cv_header_mmap_anon=no
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 ac_cpp='$CPP $CPPFLAGS'
15111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15117 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15118 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15119 if test "$ac_cv_header_mmap_anon" = yes; then
15121 cat >>confdefs.h <<\_ACEOF
15122 #define HAVE_MMAP_ANONYMOUS 1
15127 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15128 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15129 if test "${ac_cv_header_stat_broken+set}" = set; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 cat >conftest.$ac_ext <<_ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15138 #include <sys/types.h>
15139 #include <sys/stat.h>
15141 #if defined S_ISBLK && defined S_IFDIR
15142 # if S_ISBLK (S_IFDIR)
15147 #if defined S_ISBLK && defined S_IFCHR
15148 # if S_ISBLK (S_IFCHR)
15153 #if defined S_ISLNK && defined S_IFREG
15154 # if S_ISLNK (S_IFREG)
15159 #if defined S_ISSOCK && defined S_IFREG
15160 # if S_ISSOCK (S_IFREG)
15166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15167 $EGREP "You lose" >/dev/null 2>&1; then
15168 ac_cv_header_stat_broken=yes
15170 ac_cv_header_stat_broken=no
15175 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15176 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15177 if test $ac_cv_header_stat_broken = yes; then
15179 cat >>confdefs.h <<\_ACEOF
15180 #define STAT_MACROS_BROKEN 1
15185 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15186 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15187 if test "${ac_cv_header_stdc+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 cat >conftest.$ac_ext <<_ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 #include <stdlib.h>
15197 #include <stdarg.h>
15198 #include <string.h>
15209 rm -f conftest.$ac_objext
15210 if { (ac_try="$ac_compile"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_compile") 2>conftest.er1
15218 grep -v '^ *+' conftest.er1 >conftest.err
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } &&
15223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15224 { (case "(($ac_try" in
15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_try") 2>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; } &&
15233 { ac_try='test -s conftest.$ac_objext'
15234 { (case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_try") 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 ac_cv_header_stdc=yes
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15248 ac_cv_header_stdc=no
15251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15253 if test $ac_cv_header_stdc = yes; then
15254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 #include <string.h>
15264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15265 $EGREP "memchr" >/dev/null 2>&1; then
15268 ac_cv_header_stdc=no
15274 if test $ac_cv_header_stdc = yes; then
15275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15276 cat >conftest.$ac_ext <<_ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 #include <stdlib.h>
15285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15286 $EGREP "free" >/dev/null 2>&1; then
15289 ac_cv_header_stdc=no
15295 if test $ac_cv_header_stdc = yes; then
15296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15297 if test "$cross_compiling" = yes; then
15300 cat >conftest.$ac_ext <<_ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15307 #include <stdlib.h>
15308 #if ((' ' & 0x0FF) == 0x020)
15309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15312 # define ISLOWER(c) \
15313 (('a' <= (c) && (c) <= 'i') \
15314 || ('j' <= (c) && (c) <= 'r') \
15315 || ('s' <= (c) && (c) <= 'z'))
15316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15324 for (i = 0; i < 256; i++)
15325 if (XOR (islower (i), ISLOWER (i))
15326 || toupper (i) != TOUPPER (i))
15331 rm -f conftest$ac_exeext
15332 if { (ac_try="$ac_link"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_link") 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15353 echo "$as_me: program exited with status $ac_status" >&5
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 ( exit $ac_status )
15358 ac_cv_header_stdc=no
15360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15366 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15367 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15368 if test $ac_cv_header_stdc = yes; then
15370 cat >>confdefs.h <<\_ACEOF
15371 #define STDC_HEADERS 1
15376 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15377 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15378 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 #include <sys/types.h>
15388 #include <sys/wait.h>
15389 #ifndef WEXITSTATUS
15390 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15393 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15401 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15406 rm -f conftest.$ac_objext
15407 if { (ac_try="$ac_compile"
15408 case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_compile") 2>conftest.er1
15415 grep -v '^ *+' conftest.er1 >conftest.err
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421 { (case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_try") 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest.$ac_objext'
15431 { (case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_try") 2>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 ac_cv_header_sys_wait_h=yes
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 ac_cv_header_sys_wait_h=no
15448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15450 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15451 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15452 if test $ac_cv_header_sys_wait_h = yes; then
15454 cat >>confdefs.h <<\_ACEOF
15455 #define HAVE_SYS_WAIT_H 1
15460 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15461 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15462 if test "${ac_cv_header_time+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 #include <sys/types.h>
15472 #include <sys/time.h>
15478 if ((struct tm *) 0)
15484 rm -f conftest.$ac_objext
15485 if { (ac_try="$ac_compile"
15486 case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_compile") 2>conftest.er1
15493 grep -v '^ *+' conftest.er1 >conftest.err
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
15498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15499 { (case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_try") 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest.$ac_objext'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 ac_cv_header_time=yes
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ac_cv_header_time=no
15526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15528 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15529 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15530 if test $ac_cv_header_time = yes; then
15532 cat >>confdefs.h <<\_ACEOF
15533 #define TIME_WITH_SYS_TIME 1
15545 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15554 ac_res=`eval echo '${'$as_ac_Header'}'`
15555 { echo "$as_me:$LINENO: result: $ac_res" >&5
15556 echo "${ECHO_T}$ac_res" >&6; }
15558 # Is the header compilable?
15559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15561 cat >conftest.$ac_ext <<_ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15567 $ac_includes_default
15568 #include <$ac_header>
15570 rm -f conftest.$ac_objext
15571 if { (ac_try="$ac_compile"
15572 case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_compile") 2>conftest.er1
15579 grep -v '^ *+' conftest.er1 >conftest.err
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15585 { (case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_try") 2>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest.$ac_objext'
15595 { (case "(($ac_try" in
15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597 *) ac_try_echo=$ac_try;;
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_try") 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_header_compiler=yes
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_header_compiler=no
15612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15614 echo "${ECHO_T}$ac_header_compiler" >&6; }
15616 # Is the header present?
15617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15619 cat >conftest.$ac_ext <<_ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15625 #include <$ac_header>
15627 if { (ac_try="$ac_cpp conftest.$ac_ext"
15628 case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15635 grep -v '^ *+' conftest.er1 >conftest.err
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } >/dev/null; then
15640 if test -s conftest.err; then
15641 ac_cpp_err=$ac_c_preproc_warn_flag
15642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15649 if test -z "$ac_cpp_err"; then
15650 ac_header_preproc=yes
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15655 ac_header_preproc=no
15658 rm -f conftest.err conftest.$ac_ext
15659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15660 echo "${ECHO_T}$ac_header_preproc" >&6; }
15662 # So? What about this header?
15663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15669 ac_header_preproc=yes
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15685 ## ----------------------------------- ##
15686 ## Report this to llvmbugs@cs.uiuc.edu ##
15687 ## ----------------------------------- ##
15689 ) | sed "s/^/$as_me: WARNING: /" >&2
15692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 eval "$as_ac_Header=\$ac_header_preproc"
15699 ac_res=`eval echo '${'$as_ac_Header'}'`
15700 { echo "$as_me:$LINENO: result: $ac_res" >&5
15701 echo "${ECHO_T}$ac_res" >&6; }
15704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15705 cat >>confdefs.h <<_ACEOF
15706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15719 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 ac_res=`eval echo '${'$as_ac_Header'}'`
15729 { echo "$as_me:$LINENO: result: $ac_res" >&5
15730 echo "${ECHO_T}$ac_res" >&6; }
15732 # Is the header compilable?
15733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 $ac_includes_default
15742 #include <$ac_header>
15744 rm -f conftest.$ac_objext
15745 if { (ac_try="$ac_compile"
15746 case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_compile") 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15759 { (case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_try") 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; } &&
15768 { ac_try='test -s conftest.$ac_objext'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 ac_header_compiler=yes
15780 echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 ac_header_compiler=no
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15788 echo "${ECHO_T}$ac_header_compiler" >&6; }
15790 # Is the header present?
15791 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15793 cat >conftest.$ac_ext <<_ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 #include <$ac_header>
15801 if { (ac_try="$ac_cpp conftest.$ac_ext"
15802 case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15809 grep -v '^ *+' conftest.er1 >conftest.err
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } >/dev/null; then
15814 if test -s conftest.err; then
15815 ac_cpp_err=$ac_c_preproc_warn_flag
15816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15823 if test -z "$ac_cpp_err"; then
15824 ac_header_preproc=yes
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_header_preproc=no
15832 rm -f conftest.err conftest.$ac_ext
15833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15834 echo "${ECHO_T}$ac_header_preproc" >&6; }
15836 # So? What about this header?
15837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15843 ac_header_preproc=yes
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15859 ## ----------------------------------- ##
15860 ## Report this to llvmbugs@cs.uiuc.edu ##
15861 ## ----------------------------------- ##
15863 ) | sed "s/^/$as_me: WARNING: /" >&2
15866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 eval "$as_ac_Header=\$ac_header_preproc"
15873 ac_res=`eval echo '${'$as_ac_Header'}'`
15874 { echo "$as_me:$LINENO: result: $ac_res" >&5
15875 echo "${ECHO_T}$ac_res" >&6; }
15878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15879 cat >>confdefs.h <<_ACEOF
15880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15889 for ac_header in utime.h windows.h
15891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15896 echo $ECHO_N "(cached) $ECHO_C" >&6
15898 ac_res=`eval echo '${'$as_ac_Header'}'`
15899 { echo "$as_me:$LINENO: result: $ac_res" >&5
15900 echo "${ECHO_T}$ac_res" >&6; }
15902 # Is the header compilable?
15903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15905 cat >conftest.$ac_ext <<_ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 $ac_includes_default
15912 #include <$ac_header>
15914 rm -f conftest.$ac_objext
15915 if { (ac_try="$ac_compile"
15916 case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_compile") 2>conftest.er1
15923 grep -v '^ *+' conftest.er1 >conftest.err
15925 cat conftest.err >&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } &&
15928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15929 { (case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_try") 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; } &&
15938 { ac_try='test -s conftest.$ac_objext'
15939 { (case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_try") 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_header_compiler=yes
15950 echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15953 ac_header_compiler=no
15956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15958 echo "${ECHO_T}$ac_header_compiler" >&6; }
15960 # Is the header present?
15961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15963 cat >conftest.$ac_ext <<_ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15969 #include <$ac_header>
15971 if { (ac_try="$ac_cpp conftest.$ac_ext"
15972 case "(($ac_try" in
15973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974 *) ac_try_echo=$ac_try;;
15976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15979 grep -v '^ *+' conftest.er1 >conftest.err
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } >/dev/null; then
15984 if test -s conftest.err; then
15985 ac_cpp_err=$ac_c_preproc_warn_flag
15986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15993 if test -z "$ac_cpp_err"; then
15994 ac_header_preproc=yes
15996 echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15999 ac_header_preproc=no
16002 rm -f conftest.err conftest.$ac_ext
16003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16004 echo "${ECHO_T}$ac_header_preproc" >&6; }
16006 # So? What about this header?
16007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16013 ac_header_preproc=yes
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16029 ## ----------------------------------- ##
16030 ## Report this to llvmbugs@cs.uiuc.edu ##
16031 ## ----------------------------------- ##
16033 ) | sed "s/^/$as_me: WARNING: /" >&2
16036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 eval "$as_ac_Header=\$ac_header_preproc"
16043 ac_res=`eval echo '${'$as_ac_Header'}'`
16044 { echo "$as_me:$LINENO: result: $ac_res" >&5
16045 echo "${ECHO_T}$ac_res" >&6; }
16048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16049 cat >>confdefs.h <<_ACEOF
16050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16061 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16070 ac_res=`eval echo '${'$as_ac_Header'}'`
16071 { echo "$as_me:$LINENO: result: $ac_res" >&5
16072 echo "${ECHO_T}$ac_res" >&6; }
16074 # Is the header compilable?
16075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16077 cat >conftest.$ac_ext <<_ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 $ac_includes_default
16084 #include <$ac_header>
16086 rm -f conftest.$ac_objext
16087 if { (ac_try="$ac_compile"
16088 case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_compile") 2>conftest.er1
16095 grep -v '^ *+' conftest.er1 >conftest.err
16097 cat conftest.err >&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest.$ac_objext'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ac_header_compiler=yes
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_header_compiler=no
16128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16130 echo "${ECHO_T}$ac_header_compiler" >&6; }
16132 # Is the header present?
16133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16135 cat >conftest.$ac_ext <<_ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 #include <$ac_header>
16143 if { (ac_try="$ac_cpp conftest.$ac_ext"
16144 case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16151 grep -v '^ *+' conftest.er1 >conftest.err
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } >/dev/null; then
16156 if test -s conftest.err; then
16157 ac_cpp_err=$ac_c_preproc_warn_flag
16158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16165 if test -z "$ac_cpp_err"; then
16166 ac_header_preproc=yes
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ac_header_preproc=no
16174 rm -f conftest.err conftest.$ac_ext
16175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16176 echo "${ECHO_T}$ac_header_preproc" >&6; }
16178 # So? What about this header?
16179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16185 ac_header_preproc=yes
16188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16201 ## ----------------------------------- ##
16202 ## Report this to llvmbugs@cs.uiuc.edu ##
16203 ## ----------------------------------- ##
16205 ) | sed "s/^/$as_me: WARNING: /" >&2
16208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 eval "$as_ac_Header=\$ac_header_preproc"
16215 ac_res=`eval echo '${'$as_ac_Header'}'`
16216 { echo "$as_me:$LINENO: result: $ac_res" >&5
16217 echo "${ECHO_T}$ac_res" >&6; }
16220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16221 cat >>confdefs.h <<_ACEOF
16222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16233 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 ac_res=`eval echo '${'$as_ac_Header'}'`
16243 { echo "$as_me:$LINENO: result: $ac_res" >&5
16244 echo "${ECHO_T}$ac_res" >&6; }
16246 # Is the header compilable?
16247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16249 cat >conftest.$ac_ext <<_ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 $ac_includes_default
16256 #include <$ac_header>
16258 rm -f conftest.$ac_objext
16259 if { (ac_try="$ac_compile"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_compile") 2>conftest.er1
16267 grep -v '^ *+' conftest.er1 >conftest.err
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
16272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16273 { (case "(($ac_try" in
16274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275 *) ac_try_echo=$ac_try;;
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278 (eval "$ac_try") 2>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288 (eval "$ac_try") 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 ac_header_compiler=yes
16294 echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16297 ac_header_compiler=no
16300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16302 echo "${ECHO_T}$ac_header_compiler" >&6; }
16304 # Is the header present?
16305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16307 cat >conftest.$ac_ext <<_ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <$ac_header>
16315 if { (ac_try="$ac_cpp conftest.$ac_ext"
16316 case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16323 grep -v '^ *+' conftest.er1 >conftest.err
16325 cat conftest.err >&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } >/dev/null; then
16328 if test -s conftest.err; then
16329 ac_cpp_err=$ac_c_preproc_warn_flag
16330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16337 if test -z "$ac_cpp_err"; then
16338 ac_header_preproc=yes
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16343 ac_header_preproc=no
16346 rm -f conftest.err conftest.$ac_ext
16347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16348 echo "${ECHO_T}$ac_header_preproc" >&6; }
16350 # So? What about this header?
16351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16357 ac_header_preproc=yes
16360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16373 ## ----------------------------------- ##
16374 ## Report this to llvmbugs@cs.uiuc.edu ##
16375 ## ----------------------------------- ##
16377 ) | sed "s/^/$as_me: WARNING: /" >&2
16380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 eval "$as_ac_Header=\$ac_header_preproc"
16387 ac_res=`eval echo '${'$as_ac_Header'}'`
16388 { echo "$as_me:$LINENO: result: $ac_res" >&5
16389 echo "${ECHO_T}$ac_res" >&6; }
16392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16393 cat >>confdefs.h <<_ACEOF
16394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16402 for ac_header in valgrind/valgrind.h
16404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 ac_res=`eval echo '${'$as_ac_Header'}'`
16412 { echo "$as_me:$LINENO: result: $ac_res" >&5
16413 echo "${ECHO_T}$ac_res" >&6; }
16415 # Is the header compilable?
16416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16418 cat >conftest.$ac_ext <<_ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 $ac_includes_default
16425 #include <$ac_header>
16427 rm -f conftest.$ac_objext
16428 if { (ac_try="$ac_compile"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_compile") 2>conftest.er1
16436 grep -v '^ *+' conftest.er1 >conftest.err
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
16441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16442 { (case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_try") 2>&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; } &&
16451 { ac_try='test -s conftest.$ac_objext'
16452 { (case "(($ac_try" in
16453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454 *) ac_try_echo=$ac_try;;
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457 (eval "$ac_try") 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ac_header_compiler=yes
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 ac_header_compiler=no
16469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16471 echo "${ECHO_T}$ac_header_compiler" >&6; }
16473 # Is the header present?
16474 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16476 cat >conftest.$ac_ext <<_ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 #include <$ac_header>
16484 if { (ac_try="$ac_cpp conftest.$ac_ext"
16485 case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16492 grep -v '^ *+' conftest.er1 >conftest.err
16494 cat conftest.err >&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } >/dev/null; then
16497 if test -s conftest.err; then
16498 ac_cpp_err=$ac_c_preproc_warn_flag
16499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16506 if test -z "$ac_cpp_err"; then
16507 ac_header_preproc=yes
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16512 ac_header_preproc=no
16515 rm -f conftest.err conftest.$ac_ext
16516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16517 echo "${ECHO_T}$ac_header_preproc" >&6; }
16519 # So? What about this header?
16520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16526 ac_header_preproc=yes
16529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16536 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16542 ## ----------------------------------- ##
16543 ## Report this to llvmbugs@cs.uiuc.edu ##
16544 ## ----------------------------------- ##
16546 ) | sed "s/^/$as_me: WARNING: /" >&2
16549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 eval "$as_ac_Header=\$ac_header_preproc"
16556 ac_res=`eval echo '${'$as_ac_Header'}'`
16557 { echo "$as_me:$LINENO: result: $ac_res" >&5
16558 echo "${ECHO_T}$ac_res" >&6; }
16561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16562 cat >>confdefs.h <<_ACEOF
16563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16570 if test "$ENABLE_THREADS" -eq 1 ; then
16572 for ac_header in pthread.h
16574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 ac_res=`eval echo '${'$as_ac_Header'}'`
16582 { echo "$as_me:$LINENO: result: $ac_res" >&5
16583 echo "${ECHO_T}$ac_res" >&6; }
16585 # Is the header compilable?
16586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16588 cat >conftest.$ac_ext <<_ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 $ac_includes_default
16595 #include <$ac_header>
16597 rm -f conftest.$ac_objext
16598 if { (ac_try="$ac_compile"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_compile") 2>conftest.er1
16606 grep -v '^ *+' conftest.er1 >conftest.err
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16612 { (case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_try") 2>&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest.$ac_objext'
16622 { (case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_try") 2>&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 ac_header_compiler=yes
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 ac_header_compiler=no
16639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16641 echo "${ECHO_T}$ac_header_compiler" >&6; }
16643 # Is the header present?
16644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16646 cat >conftest.$ac_ext <<_ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 #include <$ac_header>
16654 if { (ac_try="$ac_cpp conftest.$ac_ext"
16655 case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16662 grep -v '^ *+' conftest.er1 >conftest.err
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } >/dev/null; then
16667 if test -s conftest.err; then
16668 ac_cpp_err=$ac_c_preproc_warn_flag
16669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16676 if test -z "$ac_cpp_err"; then
16677 ac_header_preproc=yes
16679 echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 ac_header_preproc=no
16685 rm -f conftest.err conftest.$ac_ext
16686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16687 echo "${ECHO_T}$ac_header_preproc" >&6; }
16689 # So? What about this header?
16690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16696 ac_header_preproc=yes
16699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16712 ## ----------------------------------- ##
16713 ## Report this to llvmbugs@cs.uiuc.edu ##
16714 ## ----------------------------------- ##
16716 ) | sed "s/^/$as_me: WARNING: /" >&2
16719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 eval "$as_ac_Header=\$ac_header_preproc"
16726 ac_res=`eval echo '${'$as_ac_Header'}'`
16727 { echo "$as_me:$LINENO: result: $ac_res" >&5
16728 echo "${ECHO_T}$ac_res" >&6; }
16731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16732 cat >>confdefs.h <<_ACEOF
16733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16749 if test "$llvm_cv_enable_libffi" = "yes" ; then
16752 for ac_header in ffi.h ffi/ffi.h
16754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 ac_res=`eval echo '${'$as_ac_Header'}'`
16762 { echo "$as_me:$LINENO: result: $ac_res" >&5
16763 echo "${ECHO_T}$ac_res" >&6; }
16765 # Is the header compilable?
16766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16768 cat >conftest.$ac_ext <<_ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 $ac_includes_default
16775 #include <$ac_header>
16777 rm -f conftest.$ac_objext
16778 if { (ac_try="$ac_compile"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_compile") 2>conftest.er1
16786 grep -v '^ *+' conftest.er1 >conftest.err
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16792 { (case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_try") 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest.$ac_objext'
16802 { (case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_try") 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_header_compiler=yes
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 ac_header_compiler=no
16819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16821 echo "${ECHO_T}$ac_header_compiler" >&6; }
16823 # Is the header present?
16824 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16826 cat >conftest.$ac_ext <<_ACEOF
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h. */
16832 #include <$ac_header>
16834 if { (ac_try="$ac_cpp conftest.$ac_ext"
16835 case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16842 grep -v '^ *+' conftest.er1 >conftest.err
16844 cat conftest.err >&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } >/dev/null; then
16847 if test -s conftest.err; then
16848 ac_cpp_err=$ac_c_preproc_warn_flag
16849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16856 if test -z "$ac_cpp_err"; then
16857 ac_header_preproc=yes
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16862 ac_header_preproc=no
16865 rm -f conftest.err conftest.$ac_ext
16866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16867 echo "${ECHO_T}$ac_header_preproc" >&6; }
16869 # So? What about this header?
16870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16876 ac_header_preproc=yes
16879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16892 ## ----------------------------------- ##
16893 ## Report this to llvmbugs@cs.uiuc.edu ##
16894 ## ----------------------------------- ##
16896 ) | sed "s/^/$as_me: WARNING: /" >&2
16899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 eval "$as_ac_Header=\$ac_header_preproc"
16906 ac_res=`eval echo '${'$as_ac_Header'}'`
16907 { echo "$as_me:$LINENO: result: $ac_res" >&5
16908 echo "${ECHO_T}$ac_res" >&6; }
16911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16912 cat >>confdefs.h <<_ACEOF
16913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16925 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16926 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16927 if test "${ac_cv_huge_val_sanity+set}" = set; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 ac_cpp='$CXXCPP $CPPFLAGS'
16933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16937 ac_save_CXXFLAGS=$CXXFLAGS
16939 if test "$cross_compiling" = yes; then
16940 ac_cv_huge_val_sanity=yes
16942 cat >conftest.$ac_ext <<_ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16952 double x = HUGE_VAL; return x != x;
16957 rm -f conftest$ac_exeext
16958 if { (ac_try="$ac_link"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16968 { (case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_try") 2>&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
16977 ac_cv_huge_val_sanity=yes
16979 echo "$as_me: program exited with status $ac_status" >&5
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ( exit $ac_status )
16984 ac_cv_huge_val_sanity=no
16986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16990 CXXFLAGS=$ac_save_CXXFLAGS
16992 ac_cpp='$CPP $CPPFLAGS'
16993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16999 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17000 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17001 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17004 { echo "$as_me:$LINENO: checking for pid_t" >&5
17005 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17006 if test "${ac_cv_type_pid_t+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 cat >conftest.$ac_ext <<_ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 $ac_includes_default
17016 typedef pid_t ac__type_new_;
17020 if ((ac__type_new_ *) 0)
17022 if (sizeof (ac__type_new_))
17028 rm -f conftest.$ac_objext
17029 if { (ac_try="$ac_compile"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_compile") 2>conftest.er1
17037 grep -v '^ *+' conftest.er1 >conftest.err
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043 { (case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_try") 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest.$ac_objext'
17053 { (case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_try") 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_cv_type_pid_t=yes
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 ac_cv_type_pid_t=no
17070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17073 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17074 if test $ac_cv_type_pid_t = yes; then
17078 cat >>confdefs.h <<_ACEOF
17084 { echo "$as_me:$LINENO: checking for size_t" >&5
17085 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17086 if test "${ac_cv_type_size_t+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17089 cat >conftest.$ac_ext <<_ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17095 $ac_includes_default
17096 typedef size_t ac__type_new_;
17100 if ((ac__type_new_ *) 0)
17102 if (sizeof (ac__type_new_))
17108 rm -f conftest.$ac_objext
17109 if { (ac_try="$ac_compile"
17110 case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_compile") 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17123 { (case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_try") 2>&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138 (eval "$ac_try") 2>&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_cv_type_size_t=yes
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 ac_cv_type_size_t=no
17150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17153 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17154 if test $ac_cv_type_size_t = yes; then
17158 cat >>confdefs.h <<_ACEOF
17159 #define size_t unsigned int
17165 cat >>confdefs.h <<_ACEOF
17166 #define RETSIGTYPE void
17169 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17170 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17171 if test "${ac_cv_struct_tm+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 cat >conftest.$ac_ext <<_ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17180 #include <sys/types.h>
17186 struct tm *tp; tp->tm_sec;
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_compile") 2>conftest.er1
17200 grep -v '^ *+' conftest.er1 >conftest.err
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try='test -s conftest.$ac_objext'
17216 { (case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_try") 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_cv_struct_tm=time.h
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 ac_cv_struct_tm=sys/time.h
17233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17236 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17237 if test $ac_cv_struct_tm = sys/time.h; then
17239 cat >>confdefs.h <<\_ACEOF
17240 #define TM_IN_SYS_TIME 1
17245 { echo "$as_me:$LINENO: checking for int64_t" >&5
17246 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17247 if test "${ac_cv_type_int64_t+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17250 cat >conftest.$ac_ext <<_ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 $ac_includes_default
17257 typedef int64_t ac__type_new_;
17261 if ((ac__type_new_ *) 0)
17263 if (sizeof (ac__type_new_))
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_compile") 2>conftest.er1
17278 grep -v '^ *+' conftest.er1 >conftest.err
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } &&
17283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try='test -s conftest.$ac_objext'
17294 { (case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_try") 2>&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_cv_type_int64_t=yes
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ac_cv_type_int64_t=no
17311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17314 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17315 if test $ac_cv_type_int64_t = yes; then
17317 cat >>confdefs.h <<_ACEOF
17318 #define HAVE_INT64_T 1
17323 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17324 echo "$as_me: error: Type int64_t required but not found" >&2;}
17325 { (exit 1); exit 1; }; }
17328 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17329 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17330 if test "${ac_cv_type_uint64_t+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 cat >conftest.$ac_ext <<_ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339 $ac_includes_default
17340 typedef uint64_t ac__type_new_;
17344 if ((ac__type_new_ *) 0)
17346 if (sizeof (ac__type_new_))
17352 rm -f conftest.$ac_objext
17353 if { (ac_try="$ac_compile"
17354 case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_compile") 2>conftest.er1
17361 grep -v '^ *+' conftest.er1 >conftest.err
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17367 { (case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_try") 2>&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; } &&
17376 { ac_try='test -s conftest.$ac_objext'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 ac_cv_type_uint64_t=yes
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 ac_cv_type_uint64_t=no
17394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17396 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17397 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17398 if test $ac_cv_type_uint64_t = yes; then
17400 cat >>confdefs.h <<_ACEOF
17401 #define HAVE_UINT64_T 1
17406 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17407 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17408 if test "${ac_cv_type_u_int64_t+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 cat >conftest.$ac_ext <<_ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17417 $ac_includes_default
17418 typedef u_int64_t ac__type_new_;
17422 if ((ac__type_new_ *) 0)
17424 if (sizeof (ac__type_new_))
17430 rm -f conftest.$ac_objext
17431 if { (ac_try="$ac_compile"
17432 case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_compile") 2>conftest.er1
17439 grep -v '^ *+' conftest.er1 >conftest.err
17441 cat conftest.err >&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
17444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; } &&
17454 { ac_try='test -s conftest.$ac_objext'
17455 { (case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_try") 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 ac_cv_type_u_int64_t=yes
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 ac_cv_type_u_int64_t=no
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17474 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17475 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17476 if test $ac_cv_type_u_int64_t = yes; then
17478 cat >>confdefs.h <<_ACEOF
17479 #define HAVE_U_INT64_T 1
17484 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17485 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17486 { (exit 1); exit 1; }; }
17500 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17508 cat >conftest.$ac_ext <<_ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17516 #define $ac_func innocuous_$ac_func
17518 /* System header to define __stub macros and hopefully few prototypes,
17519 which can conflict with char $ac_func (); below.
17520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17521 <limits.h> exists even on freestanding compilers. */
17524 # include <limits.h>
17526 # include <assert.h>
17531 /* Override any GCC internal prototype to avoid an error.
17532 Use char because int might match the return type of a GCC
17533 builtin and then its argument prototype would still apply. */
17538 /* The GNU C library defines this for functions which it implements
17539 to always fail with ENOSYS. Some functions are actually named
17540 something starting with __ and the normal name is an alias. */
17541 #if defined __stub_$ac_func || defined __stub___$ac_func
17548 return $ac_func ();
17553 rm -f conftest.$ac_objext conftest$ac_exeext
17554 if { (ac_try="$ac_link"
17555 case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_link") 2>conftest.er1
17562 grep -v '^ *+' conftest.er1 >conftest.err
17564 cat conftest.err >&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); } &&
17567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17568 { (case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_try") 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest$ac_exeext'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 eval "$as_ac_var=yes"
17589 echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17592 eval "$as_ac_var=no"
17595 rm -f core conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17598 ac_res=`eval echo '${'$as_ac_var'}'`
17599 { echo "$as_me:$LINENO: result: $ac_res" >&5
17600 echo "${ECHO_T}$ac_res" >&6; }
17601 if test `eval echo '${'$as_ac_var'}'` = yes; then
17602 cat >>confdefs.h <<_ACEOF
17603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17613 for ac_func in powf fmodf strtof round
17615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 cat >conftest.$ac_ext <<_ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17629 #define $ac_func innocuous_$ac_func
17631 /* System header to define __stub macros and hopefully few prototypes,
17632 which can conflict with char $ac_func (); below.
17633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17634 <limits.h> exists even on freestanding compilers. */
17637 # include <limits.h>
17639 # include <assert.h>
17644 /* Override any GCC internal prototype to avoid an error.
17645 Use char because int might match the return type of a GCC
17646 builtin and then its argument prototype would still apply. */
17651 /* The GNU C library defines this for functions which it implements
17652 to always fail with ENOSYS. Some functions are actually named
17653 something starting with __ and the normal name is an alias. */
17654 #if defined __stub_$ac_func || defined __stub___$ac_func
17661 return $ac_func ();
17666 rm -f conftest.$ac_objext conftest$ac_exeext
17667 if { (ac_try="$ac_link"
17668 case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_link") 2>conftest.er1
17675 grep -v '^ *+' conftest.er1 >conftest.err
17677 cat conftest.err >&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } &&
17680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17681 { (case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_try") 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; } &&
17690 { ac_try='test -s conftest$ac_exeext'
17691 { (case "(($ac_try" in
17692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693 *) ac_try_echo=$ac_try;;
17695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17696 (eval "$ac_try") 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 eval "$as_ac_var=yes"
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 eval "$as_ac_var=no"
17708 rm -f core conftest.err conftest.$ac_objext \
17709 conftest$ac_exeext conftest.$ac_ext
17711 ac_res=`eval echo '${'$as_ac_var'}'`
17712 { echo "$as_me:$LINENO: result: $ac_res" >&5
17713 echo "${ECHO_T}$ac_res" >&6; }
17714 if test `eval echo '${'$as_ac_var'}'` = yes; then
17715 cat >>confdefs.h <<_ACEOF
17716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17727 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17735 cat >conftest.$ac_ext <<_ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h. */
17741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17743 #define $ac_func innocuous_$ac_func
17745 /* System header to define __stub macros and hopefully few prototypes,
17746 which can conflict with char $ac_func (); below.
17747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17748 <limits.h> exists even on freestanding compilers. */
17751 # include <limits.h>
17753 # include <assert.h>
17758 /* Override any GCC internal prototype to avoid an error.
17759 Use char because int might match the return type of a GCC
17760 builtin and then its argument prototype would still apply. */
17765 /* The GNU C library defines this for functions which it implements
17766 to always fail with ENOSYS. Some functions are actually named
17767 something starting with __ and the normal name is an alias. */
17768 #if defined __stub_$ac_func || defined __stub___$ac_func
17775 return $ac_func ();
17780 rm -f conftest.$ac_objext conftest$ac_exeext
17781 if { (ac_try="$ac_link"
17782 case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787 (eval "$ac_link") 2>conftest.er1
17789 grep -v '^ *+' conftest.er1 >conftest.err
17791 cat conftest.err >&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } &&
17794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17795 { (case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_try") 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; } &&
17804 { ac_try='test -s conftest$ac_exeext'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 eval "$as_ac_var=yes"
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17819 eval "$as_ac_var=no"
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17825 ac_res=`eval echo '${'$as_ac_var'}'`
17826 { echo "$as_me:$LINENO: result: $ac_res" >&5
17827 echo "${ECHO_T}$ac_res" >&6; }
17828 if test `eval echo '${'$as_ac_var'}'` = yes; then
17829 cat >>confdefs.h <<_ACEOF
17830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17839 for ac_func in isatty mkdtemp mkstemp
17841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 cat >conftest.$ac_ext <<_ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17855 #define $ac_func innocuous_$ac_func
17857 /* System header to define __stub macros and hopefully few prototypes,
17858 which can conflict with char $ac_func (); below.
17859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17860 <limits.h> exists even on freestanding compilers. */
17863 # include <limits.h>
17865 # include <assert.h>
17870 /* Override any GCC internal prototype to avoid an error.
17871 Use char because int might match the return type of a GCC
17872 builtin and then its argument prototype would still apply. */
17877 /* The GNU C library defines this for functions which it implements
17878 to always fail with ENOSYS. Some functions are actually named
17879 something starting with __ and the normal name is an alias. */
17880 #if defined __stub_$ac_func || defined __stub___$ac_func
17887 return $ac_func ();
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (ac_try="$ac_link"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_link") 2>conftest.er1
17901 grep -v '^ *+' conftest.er1 >conftest.err
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_try") 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest$ac_exeext'
17917 { (case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_try") 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 eval "$as_ac_var=yes"
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 eval "$as_ac_var=no"
17934 rm -f core conftest.err conftest.$ac_objext \
17935 conftest$ac_exeext conftest.$ac_ext
17937 ac_res=`eval echo '${'$as_ac_var'}'`
17938 { echo "$as_me:$LINENO: result: $ac_res" >&5
17939 echo "${ECHO_T}$ac_res" >&6; }
17940 if test `eval echo '${'$as_ac_var'}'` = yes; then
17941 cat >>confdefs.h <<_ACEOF
17942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17954 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 cat >conftest.$ac_ext <<_ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17970 #define $ac_func innocuous_$ac_func
17972 /* System header to define __stub macros and hopefully few prototypes,
17973 which can conflict with char $ac_func (); below.
17974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17975 <limits.h> exists even on freestanding compilers. */
17978 # include <limits.h>
17980 # include <assert.h>
17985 /* Override any GCC internal prototype to avoid an error.
17986 Use char because int might match the return type of a GCC
17987 builtin and then its argument prototype would still apply. */
17992 /* The GNU C library defines this for functions which it implements
17993 to always fail with ENOSYS. Some functions are actually named
17994 something starting with __ and the normal name is an alias. */
17995 #if defined __stub_$ac_func || defined __stub___$ac_func
18002 return $ac_func ();
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (ac_try="$ac_link"
18009 case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014 (eval "$ac_link") 2>conftest.er1
18016 grep -v '^ *+' conftest.er1 >conftest.err
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
18021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18022 { (case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_try") 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest$ac_exeext'
18032 { (case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037 (eval "$ac_try") 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 eval "$as_ac_var=yes"
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 eval "$as_ac_var=no"
18049 rm -f core conftest.err conftest.$ac_objext \
18050 conftest$ac_exeext conftest.$ac_ext
18052 ac_res=`eval echo '${'$as_ac_var'}'`
18053 { echo "$as_me:$LINENO: result: $ac_res" >&5
18054 echo "${ECHO_T}$ac_res" >&6; }
18055 if test `eval echo '${'$as_ac_var'}'` = yes; then
18056 cat >>confdefs.h <<_ACEOF
18057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18067 for ac_func in strerror strerror_r strerror_s setenv
18069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 cat >conftest.$ac_ext <<_ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h. */
18081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18083 #define $ac_func innocuous_$ac_func
18085 /* System header to define __stub macros and hopefully few prototypes,
18086 which can conflict with char $ac_func (); below.
18087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18088 <limits.h> exists even on freestanding compilers. */
18091 # include <limits.h>
18093 # include <assert.h>
18098 /* Override any GCC internal prototype to avoid an error.
18099 Use char because int might match the return type of a GCC
18100 builtin and then its argument prototype would still apply. */
18105 /* The GNU C library defines this for functions which it implements
18106 to always fail with ENOSYS. Some functions are actually named
18107 something starting with __ and the normal name is an alias. */
18108 #if defined __stub_$ac_func || defined __stub___$ac_func
18115 return $ac_func ();
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_link") 2>conftest.er1
18129 grep -v '^ *+' conftest.er1 >conftest.err
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18135 { (case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_try") 2>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; } &&
18144 { ac_try='test -s conftest$ac_exeext'
18145 { (case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_try") 2>&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; }; then
18154 eval "$as_ac_var=yes"
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 eval "$as_ac_var=no"
18162 rm -f core conftest.err conftest.$ac_objext \
18163 conftest$ac_exeext conftest.$ac_ext
18165 ac_res=`eval echo '${'$as_ac_var'}'`
18166 { echo "$as_me:$LINENO: result: $ac_res" >&5
18167 echo "${ECHO_T}$ac_res" >&6; }
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169 cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18180 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 cat >conftest.$ac_ext <<_ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18196 #define $ac_func innocuous_$ac_func
18198 /* System header to define __stub macros and hopefully few prototypes,
18199 which can conflict with char $ac_func (); below.
18200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18201 <limits.h> exists even on freestanding compilers. */
18204 # include <limits.h>
18206 # include <assert.h>
18211 /* Override any GCC internal prototype to avoid an error.
18212 Use char because int might match the return type of a GCC
18213 builtin and then its argument prototype would still apply. */
18218 /* The GNU C library defines this for functions which it implements
18219 to always fail with ENOSYS. Some functions are actually named
18220 something starting with __ and the normal name is an alias. */
18221 #if defined __stub_$ac_func || defined __stub___$ac_func
18228 return $ac_func ();
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (ac_try="$ac_link"
18235 case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_link") 2>conftest.er1
18242 grep -v '^ *+' conftest.er1 >conftest.err
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } &&
18247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18248 { (case "(($ac_try" in
18249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253 (eval "$ac_try") 2>&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; } &&
18257 { ac_try='test -s conftest$ac_exeext'
18258 { (case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_try") 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 eval "$as_ac_var=yes"
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 eval "$as_ac_var=no"
18275 rm -f core conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
18278 ac_res=`eval echo '${'$as_ac_var'}'`
18279 { echo "$as_me:$LINENO: result: $ac_res" >&5
18280 echo "${ECHO_T}$ac_res" >&6; }
18281 if test `eval echo '${'$as_ac_var'}'` = yes; then
18282 cat >>confdefs.h <<_ACEOF
18283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18293 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 cat >conftest.$ac_ext <<_ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18309 #define $ac_func innocuous_$ac_func
18311 /* System header to define __stub macros and hopefully few prototypes,
18312 which can conflict with char $ac_func (); below.
18313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18314 <limits.h> exists even on freestanding compilers. */
18317 # include <limits.h>
18319 # include <assert.h>
18324 /* Override any GCC internal prototype to avoid an error.
18325 Use char because int might match the return type of a GCC
18326 builtin and then its argument prototype would still apply. */
18331 /* The GNU C library defines this for functions which it implements
18332 to always fail with ENOSYS. Some functions are actually named
18333 something starting with __ and the normal name is an alias. */
18334 #if defined __stub_$ac_func || defined __stub___$ac_func
18341 return $ac_func ();
18346 rm -f conftest.$ac_objext conftest$ac_exeext
18347 if { (ac_try="$ac_link"
18348 case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_link") 2>conftest.er1
18355 grep -v '^ *+' conftest.er1 >conftest.err
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18361 { (case "(($ac_try" in
18362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363 *) ac_try_echo=$ac_try;;
18365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366 (eval "$ac_try") 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest$ac_exeext'
18371 { (case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376 (eval "$ac_try") 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 eval "$as_ac_var=yes"
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 eval "$as_ac_var=no"
18388 rm -f core conftest.err conftest.$ac_objext \
18389 conftest$ac_exeext conftest.$ac_ext
18391 ac_res=`eval echo '${'$as_ac_var'}'`
18392 { echo "$as_me:$LINENO: result: $ac_res" >&5
18393 echo "${ECHO_T}$ac_res" >&6; }
18394 if test `eval echo '${'$as_ac_var'}'` = yes; then
18395 cat >>confdefs.h <<_ACEOF
18396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18402 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18403 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18404 if test "${llvm_cv_c_printf_a+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 ac_cpp='$CPP $CPPFLAGS'
18409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18413 if test "$cross_compiling" = yes; then
18414 llvmac_cv_c_printf_a=no
18416 cat >conftest.$ac_ext <<_ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18425 #include <stdlib.h>
18431 volatile double A, B;
18435 sprintf(Buffer, "%a", A);
18439 if (A != 0x1.999999999999ap-4)
18446 rm -f conftest$ac_exeext
18447 if { (ac_try="$ac_link"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_link") 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 llvm_cv_c_printf_a=yes
18468 echo "$as_me: program exited with status $ac_status" >&5
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 ( exit $ac_status )
18473 llvmac_cv_c_printf_a=no
18475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18480 ac_cpp='$CPP $CPPFLAGS'
18481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18486 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18487 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18488 if test "$llvm_cv_c_printf_a" = "yes"; then
18490 cat >>confdefs.h <<\_ACEOF
18491 #define HAVE_PRINTF_A 1
18497 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18498 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18499 if test "${ac_cv_func_rand48+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 ac_cpp='$CXXCPP $CPPFLAGS'
18504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 #include <stdlib.h>
18518 srand48(0);lrand48();drand48();
18523 rm -f conftest.$ac_objext
18524 if { (ac_try="$ac_compile"
18525 case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_compile") 2>conftest.er1
18532 grep -v '^ *+' conftest.er1 >conftest.err
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_func_rand48=yes
18559 echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18562 ac_cv_func_rand48=no
18565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567 ac_cpp='$CPP $CPPFLAGS'
18568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18573 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18574 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18576 if test "$ac_cv_func_rand48" = "yes" ; then
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE_RAND48 1
18586 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18587 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18588 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 ac_cpp='$CXXCPP $CPPFLAGS'
18593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18597 cat >conftest.$ac_ext <<_ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18612 rm -f conftest.$ac_objext
18613 if { (ac_try="$ac_compile"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_compile") 2>conftest.er1
18621 grep -v '^ *+' conftest.er1 >conftest.err
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18627 { (case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_try") 2>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest.$ac_objext'
18637 { (case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 ac_cv_func_isnan_in_math_h=yes
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18651 ac_cv_func_isnan_in_math_h=no
18654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18656 ac_cpp='$CPP $CPPFLAGS'
18657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18662 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18663 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18666 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18668 cat >>confdefs.h <<\_ACEOF
18669 #define HAVE_ISNAN_IN_MATH_H 1
18674 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18675 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18676 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18680 ac_cpp='$CXXCPP $CPPFLAGS'
18681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18685 cat >conftest.$ac_ext <<_ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h. */
18700 rm -f conftest.$ac_objext
18701 if { (ac_try="$ac_compile"
18702 case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_compile") 2>conftest.er1
18709 grep -v '^ *+' conftest.er1 >conftest.err
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } &&
18714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18715 { (case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_try") 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; } &&
18724 { ac_try='test -s conftest.$ac_objext'
18725 { (case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_try") 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_cv_func_isnan_in_cmath=yes
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18739 ac_cv_func_isnan_in_cmath=no
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744 ac_cpp='$CPP $CPPFLAGS'
18745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18750 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18751 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18753 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18755 cat >>confdefs.h <<\_ACEOF
18756 #define HAVE_ISNAN_IN_CMATH 1
18761 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18762 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18763 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 ac_cpp='$CXXCPP $CPPFLAGS'
18768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18772 cat >conftest.$ac_ext <<_ACEOF
18775 cat confdefs.h >>conftest.$ac_ext
18776 cat >>conftest.$ac_ext <<_ACEOF
18777 /* end confdefs.h. */
18782 float f; std::isnan(f);
18787 rm -f conftest.$ac_objext
18788 if { (ac_try="$ac_compile"
18789 case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_compile") 2>conftest.er1
18796 grep -v '^ *+' conftest.er1 >conftest.err
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } &&
18801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18802 { (case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_try") 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; } &&
18811 { ac_try='test -s conftest.$ac_objext'
18812 { (case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_try") 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 ac_cv_func_std_isnan_in_cmath=yes
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18826 ac_cv_func_std_isnan_in_cmath=no
18829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18831 ac_cpp='$CPP $CPPFLAGS'
18832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18837 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18838 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18840 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18842 cat >>confdefs.h <<\_ACEOF
18843 #define HAVE_STD_ISNAN_IN_CMATH 1
18849 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18850 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18851 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18855 ac_cpp='$CXXCPP $CPPFLAGS'
18856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18860 cat >conftest.$ac_ext <<_ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18875 rm -f conftest.$ac_objext
18876 if { (ac_try="$ac_compile"
18877 case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_compile") 2>conftest.er1
18884 grep -v '^ *+' conftest.er1 >conftest.err
18886 cat conftest.err >&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest.$ac_objext'
18900 { (case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_try") 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 ac_cv_func_isinf_in_math_h=yes
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 ac_cv_func_isinf_in_math_h=no
18917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919 ac_cpp='$CPP $CPPFLAGS'
18920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18925 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18926 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18928 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18930 cat >>confdefs.h <<\_ACEOF
18931 #define HAVE_ISINF_IN_MATH_H 1
18936 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18937 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18938 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18942 ac_cpp='$CXXCPP $CPPFLAGS'
18943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18947 cat >conftest.$ac_ext <<_ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18962 rm -f conftest.$ac_objext
18963 if { (ac_try="$ac_compile"
18964 case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_compile") 2>conftest.er1
18971 grep -v '^ *+' conftest.er1 >conftest.err
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
18976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18977 { (case "(($ac_try" in
18978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979 *) ac_try_echo=$ac_try;;
18981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18982 (eval "$ac_try") 2>&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; } &&
18986 { ac_try='test -s conftest.$ac_objext'
18987 { (case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_try") 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; }; then
18996 ac_cv_func_isinf_in_cmath=yes
18998 echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19001 ac_cv_func_isinf_in_cmath=no
19004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19006 ac_cpp='$CPP $CPPFLAGS'
19007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19012 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19013 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19015 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19017 cat >>confdefs.h <<\_ACEOF
19018 #define HAVE_ISINF_IN_CMATH 1
19023 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19024 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19025 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19029 ac_cpp='$CXXCPP $CPPFLAGS'
19030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19034 cat >conftest.$ac_ext <<_ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h. */
19044 float f; std::isinf(f)}
19049 rm -f conftest.$ac_objext
19050 if { (ac_try="$ac_compile"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_compile") 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
19063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19064 { (case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069 (eval "$ac_try") 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest.$ac_objext'
19074 { (case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_try") 2>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_cv_func_std_isinf_in_cmath=yes
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 ac_cv_func_std_isinf_in_cmath=no
19091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19093 ac_cpp='$CPP $CPPFLAGS'
19094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19099 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19100 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19102 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19104 cat >>confdefs.h <<\_ACEOF
19105 #define HAVE_STD_ISINF_IN_CMATH 1
19110 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19111 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19112 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19116 ac_cpp='$CXXCPP $CPPFLAGS'
19117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19121 cat >conftest.$ac_ext <<_ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h. */
19127 #include <ieeefp.h>
19131 float f; finite(f);
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_compile") 2>conftest.er1
19145 grep -v '^ *+' conftest.er1 >conftest.err
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
19150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try='test -s conftest.$ac_objext'
19161 { (case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_try") 2>&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; }; then
19170 ac_cv_func_finite_in_ieeefp_h=yes
19172 echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19175 ac_cv_func_finite_in_ieeefp_h=no
19178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19180 ac_cpp='$CPP $CPPFLAGS'
19181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19186 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19187 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19189 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19191 cat >>confdefs.h <<\_ACEOF
19192 #define HAVE_FINITE_IN_IEEEFP_H 1
19199 if test "$llvm_cv_platform_type" = "Unix" ; then
19202 for ac_header in stdlib.h unistd.h
19204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 ac_res=`eval echo '${'$as_ac_Header'}'`
19212 { echo "$as_me:$LINENO: result: $ac_res" >&5
19213 echo "${ECHO_T}$ac_res" >&6; }
19215 # Is the header compilable?
19216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19218 cat >conftest.$ac_ext <<_ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224 $ac_includes_default
19225 #include <$ac_header>
19227 rm -f conftest.$ac_objext
19228 if { (ac_try="$ac_compile"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_compile") 2>conftest.er1
19236 grep -v '^ *+' conftest.er1 >conftest.err
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19242 { (case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_try") 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_try") 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_header_compiler=yes
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19266 ac_header_compiler=no
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19271 echo "${ECHO_T}$ac_header_compiler" >&6; }
19273 # Is the header present?
19274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19276 cat >conftest.$ac_ext <<_ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19282 #include <$ac_header>
19284 if { (ac_try="$ac_cpp conftest.$ac_ext"
19285 case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19292 grep -v '^ *+' conftest.er1 >conftest.err
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } >/dev/null; then
19297 if test -s conftest.err; then
19298 ac_cpp_err=$ac_c_preproc_warn_flag
19299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19306 if test -z "$ac_cpp_err"; then
19307 ac_header_preproc=yes
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_header_preproc=no
19315 rm -f conftest.err conftest.$ac_ext
19316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19317 echo "${ECHO_T}$ac_header_preproc" >&6; }
19319 # So? What about this header?
19320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19326 ac_header_preproc=yes
19329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19342 ## ----------------------------------- ##
19343 ## Report this to llvmbugs@cs.uiuc.edu ##
19344 ## ----------------------------------- ##
19346 ) | sed "s/^/$as_me: WARNING: /" >&2
19349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19354 eval "$as_ac_Header=\$ac_header_preproc"
19356 ac_res=`eval echo '${'$as_ac_Header'}'`
19357 { echo "$as_me:$LINENO: result: $ac_res" >&5
19358 echo "${ECHO_T}$ac_res" >&6; }
19361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19362 cat >>confdefs.h <<_ACEOF
19363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19371 for ac_func in getpagesize
19373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 cat >conftest.$ac_ext <<_ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19387 #define $ac_func innocuous_$ac_func
19389 /* System header to define __stub macros and hopefully few prototypes,
19390 which can conflict with char $ac_func (); below.
19391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19392 <limits.h> exists even on freestanding compilers. */
19395 # include <limits.h>
19397 # include <assert.h>
19402 /* Override any GCC internal prototype to avoid an error.
19403 Use char because int might match the return type of a GCC
19404 builtin and then its argument prototype would still apply. */
19409 /* The GNU C library defines this for functions which it implements
19410 to always fail with ENOSYS. Some functions are actually named
19411 something starting with __ and the normal name is an alias. */
19412 #if defined __stub_$ac_func || defined __stub___$ac_func
19419 return $ac_func ();
19424 rm -f conftest.$ac_objext conftest$ac_exeext
19425 if { (ac_try="$ac_link"
19426 case "(($ac_try" in
19427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_link") 2>conftest.er1
19433 grep -v '^ *+' conftest.er1 >conftest.err
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try='test -s conftest$ac_exeext'
19449 { (case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_try") 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 eval "$as_ac_var=yes"
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19463 eval "$as_ac_var=no"
19466 rm -f core conftest.err conftest.$ac_objext \
19467 conftest$ac_exeext conftest.$ac_ext
19469 ac_res=`eval echo '${'$as_ac_var'}'`
19470 { echo "$as_me:$LINENO: result: $ac_res" >&5
19471 echo "${ECHO_T}$ac_res" >&6; }
19472 if test `eval echo '${'$as_ac_var'}'` = yes; then
19473 cat >>confdefs.h <<_ACEOF
19474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19480 { echo "$as_me:$LINENO: checking for working mmap" >&5
19481 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19482 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19485 if test "$cross_compiling" = yes; then
19486 ac_cv_func_mmap_fixed_mapped=no
19488 cat >conftest.$ac_ext <<_ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 $ac_includes_default
19495 /* malloc might have been renamed as rpl_malloc. */
19498 /* Thanks to Mike Haertel and Jim Avera for this test.
19499 Here is a matrix of mmap possibilities:
19500 mmap private not fixed
19501 mmap private fixed at somewhere currently unmapped
19502 mmap private fixed at somewhere already mapped
19503 mmap shared not fixed
19504 mmap shared fixed at somewhere currently unmapped
19505 mmap shared fixed at somewhere already mapped
19506 For private mappings, we should verify that changes cannot be read()
19507 back from the file, nor mmap's back from the file at a different
19508 address. (There have been systems where private was not correctly
19509 implemented like the infamous i386 svr4.0, and systems where the
19510 VM page cache was not coherent with the file system buffer cache
19511 like early versions of FreeBSD and possibly contemporary NetBSD.)
19512 For shared mappings, we should conversely verify that changes get
19513 propagated back to all the places they're supposed to be.
19515 Grep wants private fixed already mapped.
19516 The main things grep needs to know about mmap are:
19517 * does it exist and is it safe to write into the mmap'd area
19518 * how to use it (BSD variants) */
19521 #include <sys/mman.h>
19523 #if !STDC_HEADERS && !HAVE_STDLIB_H
19527 /* This mess was copied from the GNU getpagesize.h. */
19528 #if !HAVE_GETPAGESIZE
19529 /* Assume that all systems that can run configure have sys/param.h. */
19530 # if !HAVE_SYS_PARAM_H
19531 # define HAVE_SYS_PARAM_H 1
19534 # ifdef _SC_PAGESIZE
19535 # define getpagesize() sysconf(_SC_PAGESIZE)
19536 # else /* no _SC_PAGESIZE */
19537 # if HAVE_SYS_PARAM_H
19538 # include <sys/param.h>
19539 # ifdef EXEC_PAGESIZE
19540 # define getpagesize() EXEC_PAGESIZE
19541 # else /* no EXEC_PAGESIZE */
19543 # define getpagesize() NBPG * CLSIZE
19546 # endif /* no CLSIZE */
19547 # else /* no NBPG */
19549 # define getpagesize() NBPC
19550 # else /* no NBPC */
19552 # define getpagesize() PAGESIZE
19553 # endif /* PAGESIZE */
19554 # endif /* no NBPC */
19555 # endif /* no NBPG */
19556 # endif /* no EXEC_PAGESIZE */
19557 # else /* no HAVE_SYS_PARAM_H */
19558 # define getpagesize() 8192 /* punt totally */
19559 # endif /* no HAVE_SYS_PARAM_H */
19560 # endif /* no _SC_PAGESIZE */
19562 #endif /* no HAVE_GETPAGESIZE */
19567 char *data, *data2, *data3;
19571 pagesize = getpagesize ();
19573 /* First, make a file with some known garbage in it. */
19574 data = (char *) malloc (pagesize);
19577 for (i = 0; i < pagesize; ++i)
19578 *(data + i) = rand ();
19580 fd = creat ("conftest.mmap", 0600);
19583 if (write (fd, data, pagesize) != pagesize)
19587 /* Next, try to mmap the file at a fixed address which already has
19588 something else allocated at it. If we can, also make sure that
19589 we see the same garbage. */
19590 fd = open ("conftest.mmap", O_RDWR);
19593 data2 = (char *) malloc (2 * pagesize);
19596 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19597 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19598 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19600 for (i = 0; i < pagesize; ++i)
19601 if (*(data + i) != *(data2 + i))
19604 /* Finally, make sure that changes to the mapped area do not
19605 percolate back to the file as seen by read(). (This is a bug on
19606 some variants of i386 svr4.0.) */
19607 for (i = 0; i < pagesize; ++i)
19608 *(data2 + i) = *(data2 + i) + 1;
19609 data3 = (char *) malloc (pagesize);
19612 if (read (fd, data3, pagesize) != pagesize)
19614 for (i = 0; i < pagesize; ++i)
19615 if (*(data + i) != *(data3 + i))
19621 rm -f conftest$ac_exeext
19622 if { (ac_try="$ac_link"
19623 case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_link") 2>&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19632 { (case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_try") 2>&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19641 ac_cv_func_mmap_fixed_mapped=yes
19643 echo "$as_me: program exited with status $ac_status" >&5
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19647 ( exit $ac_status )
19648 ac_cv_func_mmap_fixed_mapped=no
19650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19655 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19656 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19657 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19659 cat >>confdefs.h <<\_ACEOF
19660 #define HAVE_MMAP 1
19664 rm -f conftest.mmap
19666 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19667 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19668 if test "${ac_cv_func_mmap_file+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19672 ac_cpp='$CPP $CPPFLAGS'
19673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19677 if test "$cross_compiling" = yes; then
19678 ac_cv_func_mmap_file=no
19680 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19688 #include <sys/types.h>
19689 #include <sys/mman.h>
19697 fd = creat ("foo",0777);
19698 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19700 return (fd != (int) MAP_FAILED);
19705 rm -f conftest$ac_exeext
19706 if { (ac_try="$ac_link"
19707 case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_link") 2>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19716 { (case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_try") 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19725 ac_cv_func_mmap_file=yes
19727 echo "$as_me: program exited with status $ac_status" >&5
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 ( exit $ac_status )
19732 ac_cv_func_mmap_file=no
19734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19739 ac_cpp='$CPP $CPPFLAGS'
19740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19746 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19747 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19748 if test "$ac_cv_func_mmap_file" = yes; then
19750 cat >>confdefs.h <<\_ACEOF
19751 #define HAVE_MMAP_FILE
19758 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19759 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19760 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 if test "$llvm_cv_os_type" = "Interix" ; then
19764 ac_cv_need_dev_zero_for_mmap=yes
19766 ac_cv_need_dev_zero_for_mmap=no
19770 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19771 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19772 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19774 cat >>confdefs.h <<\_ACEOF
19775 #define NEED_DEV_ZERO_FOR_MMAP 1
19780 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19782 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19783 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19785 if test "$ac_cv_func_mmap_file" = "no"
19787 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19788 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19792 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19793 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19794 cat >conftest.$ac_ext <<_ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19801 volatile unsigned long val = 1;
19802 __sync_synchronize();
19803 __sync_val_compare_and_swap(&val, 1, 0);
19804 __sync_add_and_fetch(&val, 1);
19805 __sync_sub_and_fetch(&val, 1);
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (ac_try="$ac_link"
19812 case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_link") 2>conftest.er1
19819 grep -v '^ *+' conftest.er1 >conftest.err
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
19824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19834 { ac_try='test -s conftest$ac_exeext'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_try") 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 { echo "$as_me:$LINENO: result: yes" >&5
19845 echo "${ECHO_T}yes" >&6; }
19847 cat >>confdefs.h <<\_ACEOF
19848 #define LLVM_MULTITHREADED 1
19852 echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19855 { echo "$as_me:$LINENO: result: no" >&5
19856 echo "${ECHO_T}no" >&6; }
19858 cat >>confdefs.h <<\_ACEOF
19859 #define LLVM_MULTITHREADED 0
19862 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19863 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19866 rm -f core conftest.err conftest.$ac_objext \
19867 conftest$ac_exeext conftest.$ac_ext
19871 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19872 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19873 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19874 if test "${llvm_cv_linux_mixed+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19878 ac_cpp='$CPP $CPPFLAGS'
19879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19883 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19890 error: Not x86-64 even if uname says so!
19901 rm -f conftest.$ac_objext
19902 if { (ac_try="$ac_compile"
19903 case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_compile") 2>conftest.er1
19910 grep -v '^ *+' conftest.er1 >conftest.err
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
19915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19916 { (case "(($ac_try" in
19917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918 *) ac_try_echo=$ac_try;;
19920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921 (eval "$ac_try") 2>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; } &&
19925 { ac_try='test -s conftest.$ac_objext'
19926 { (case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_try") 2>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; }; then
19935 llvm_cv_linux_mixed=no
19937 echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19940 llvm_cv_linux_mixed=yes
19943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19945 ac_cpp='$CPP $CPPFLAGS'
19946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19952 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19953 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19955 if test "$llvm_cv_linux_mixed" = "yes"; then
19956 llvm_cv_target_arch="x86"
19962 for ac_func in __dso_handle
19964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19978 #define $ac_func innocuous_$ac_func
19980 /* System header to define __stub macros and hopefully few prototypes,
19981 which can conflict with char $ac_func (); below.
19982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19983 <limits.h> exists even on freestanding compilers. */
19986 # include <limits.h>
19988 # include <assert.h>
19993 /* Override any GCC internal prototype to avoid an error.
19994 Use char because int might match the return type of a GCC
19995 builtin and then its argument prototype would still apply. */
20000 /* The GNU C library defines this for functions which it implements
20001 to always fail with ENOSYS. Some functions are actually named
20002 something starting with __ and the normal name is an alias. */
20003 #if defined __stub_$ac_func || defined __stub___$ac_func
20010 return $ac_func ();
20015 rm -f conftest.$ac_objext conftest$ac_exeext
20016 if { (ac_try="$ac_link"
20017 case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_link") 2>conftest.er1
20024 grep -v '^ *+' conftest.er1 >conftest.err
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } &&
20029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20030 { (case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_try") 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest$ac_exeext'
20040 { (case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_try") 2>&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049 eval "$as_ac_var=yes"
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 eval "$as_ac_var=no"
20057 rm -f core conftest.err conftest.$ac_objext \
20058 conftest$ac_exeext conftest.$ac_ext
20060 ac_res=`eval echo '${'$as_ac_var'}'`
20061 { echo "$as_me:$LINENO: result: $ac_res" >&5
20062 echo "${ECHO_T}$ac_res" >&6; }
20063 if test `eval echo '${'$as_ac_var'}'` = yes; then
20064 cat >>confdefs.h <<_ACEOF
20065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20072 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20073 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20074 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 llvm_cv_llvmgcc_sanity="no"
20078 if test -x "$LLVMGCC" ; then
20079 cp /dev/null conftest.c
20080 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20081 grep 'target datalayout =' > /dev/null 2>&1
20082 if test $? -eq 0 ; then
20083 llvm_cv_llvmgcc_sanity="yes"
20088 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20089 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20091 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20092 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20093 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20094 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20095 LLVMCC1=$llvmcc1path
20097 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20098 LLVMCC1PLUS=$llvmcc1pluspath
20100 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20101 LLVMGCCDIR=$llvmgccdir
20103 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20104 LLVMGCC_LANGS=$llvmgcclangs
20106 { echo "$as_me:$LINENO: result: ok" >&5
20107 echo "${ECHO_T}ok" >&6; }
20110 SHLIBEXT=$libltdl_cv_shlibext
20113 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20116 # Translate the various configuration directories and other basic
20117 # information into substitutions that will end up in Makefile.config.in
20118 # that these configured values can be used by the makefiles
20119 if test "${prefix}" = "NONE" ; then
20120 prefix="/usr/local"
20122 eval LLVM_PREFIX="${prefix}";
20123 eval LLVM_BINDIR="${prefix}/bin";
20124 eval LLVM_LIBDIR="${prefix}/lib";
20125 eval LLVM_DATADIR="${prefix}/share/llvm";
20126 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20127 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20128 eval LLVM_INCLUDEDIR="${prefix}/include";
20129 eval LLVM_INFODIR="${prefix}/info";
20130 eval LLVM_MANDIR="${prefix}/man";
20131 LLVM_CONFIGTIME=`date`
20143 # Place the various directores into the config.h file as #defines so that we
20144 # can know about the installation paths within LLVM.
20146 cat >>confdefs.h <<_ACEOF
20147 #define LLVM_PREFIX "$LLVM_PREFIX"
20151 cat >>confdefs.h <<_ACEOF
20152 #define LLVM_BINDIR "$LLVM_BINDIR"
20156 cat >>confdefs.h <<_ACEOF
20157 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20161 cat >>confdefs.h <<_ACEOF
20162 #define LLVM_DATADIR "$LLVM_DATADIR"
20166 cat >>confdefs.h <<_ACEOF
20167 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20171 cat >>confdefs.h <<_ACEOF
20172 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20176 cat >>confdefs.h <<_ACEOF
20177 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20181 cat >>confdefs.h <<_ACEOF
20182 #define LLVM_INFODIR "$LLVM_INFODIR"
20186 cat >>confdefs.h <<_ACEOF
20187 #define LLVM_MANDIR "$LLVM_MANDIR"
20191 cat >>confdefs.h <<_ACEOF
20192 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20196 cat >>confdefs.h <<_ACEOF
20197 #define LLVM_HOSTTRIPLE "$host"
20201 # Determine which bindings to build.
20202 if test "$BINDINGS_TO_BUILD" = auto ; then
20203 BINDINGS_TO_BUILD=""
20204 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20205 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20208 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20211 # This isn't really configurey, but it avoids having to repeat the list in
20216 # Do any work necessary to ensure that bindings have what they need.
20217 binding_prereqs_failed=0
20218 for a_binding in $BINDINGS_TO_BUILD ; do
20219 case "$a_binding" in
20221 if test "x$OCAMLC" = x ; then
20222 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20223 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20224 binding_prereqs_failed=1
20226 if test "x$OCAMLDEP" = x ; then
20227 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20228 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20229 binding_prereqs_failed=1
20231 if test "x$OCAMLOPT" = x ; then
20232 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20233 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20235 if test "x$with_ocaml_libdir" != xauto ; then
20236 OCAML_LIBDIR=$with_ocaml_libdir
20239 ocaml_stdlib="`"$OCAMLC" -where`"
20240 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20242 # ocaml stdlib is beneath our prefix; use stdlib
20243 OCAML_LIBDIR=$ocaml_stdlib
20246 # ocaml stdlib is outside our prefix; use libdir/ocaml
20247 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20254 if test "$binding_prereqs_failed" = 1 ; then
20255 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20256 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20257 { (exit 1); exit 1; }; }
20260 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20261 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20262 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20266 ac_cpp='$CXXCPP $CPPFLAGS'
20267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20271 oldcxxflags="$CXXFLAGS"
20272 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
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_cxx_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_cxx_visibility_inlines_hidden=yes
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 llvm_cv_cxx_visibility_inlines_hidden=no
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 CXXFLAGS="$oldcxxflags"
20333 ac_cpp='$CPP $CPPFLAGS'
20334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20340 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20341 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20342 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20343 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20346 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20351 if test "$llvm_cv_link_use_r" = "yes" ; then
20358 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20359 RDYNAMIC="-Wl,-export-dynamic"
20366 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20368 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20370 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20372 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20374 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20376 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20379 ac_config_files="$ac_config_files Makefile.config"
20382 ac_config_files="$ac_config_files llvm.spec"
20385 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20388 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20391 ac_config_commands="$ac_config_commands setup"
20393 ac_config_commands="$ac_config_commands Makefile"
20396 ac_config_commands="$ac_config_commands Makefile.common"
20399 ac_config_commands="$ac_config_commands examples/Makefile"
20402 ac_config_commands="$ac_config_commands lib/Makefile"
20405 ac_config_commands="$ac_config_commands runtime/Makefile"
20408 ac_config_commands="$ac_config_commands test/Makefile"
20411 ac_config_commands="$ac_config_commands test/Makefile.tests"
20414 ac_config_commands="$ac_config_commands unittests/Makefile"
20417 ac_config_commands="$ac_config_commands tools/Makefile"
20420 ac_config_commands="$ac_config_commands utils/Makefile"
20423 ac_config_commands="$ac_config_commands projects/Makefile"
20426 ac_config_commands="$ac_config_commands bindings/Makefile"
20429 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20433 cat >confcache <<\_ACEOF
20434 # This file is a shell script that caches the results of configure
20435 # tests run on this system so they can be shared between configure
20436 # scripts and configure runs, see configure's option --config-cache.
20437 # It is not useful on other systems. If it contains results you don't
20438 # want to keep, you may remove or edit it.
20440 # config.status only pays attention to the cache file if you give it
20441 # the --recheck option to rerun configure.
20443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20445 # following values.
20449 # The following way of writing the cache mishandles newlines in values,
20450 # but we know of no workaround that is simple, portable, and efficient.
20451 # So, we kill variables containing newlines.
20452 # Ultrix sh set writes to stderr and can't be redirected directly,
20453 # and sets the high bit in the cache file unless we assign to the vars.
20455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20456 eval ac_val=\$$ac_var
20460 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20461 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20464 _ | IFS | as_nl) ;; #(
20465 *) $as_unset $ac_var ;;
20471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20472 *${as_nl}ac_space=\ *)
20473 # `set' does not quote correctly, so add quotes (double-quote
20474 # substitution turns \\\\ into \\, and sed turns \\ into \).
20477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20480 # `set' quotes correctly as required by POSIX, so do not add quotes.
20481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20495 if test -w "$cache_file"; then
20496 test "x$cache_file" != "x/dev/null" &&
20497 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20498 echo "$as_me: updating cache $cache_file" >&6;}
20499 cat confcache >$cache_file
20501 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20502 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20508 # Let make expand exec_prefix.
20509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20511 DEFS=-DHAVE_CONFIG_H
20515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20516 # 1. Remove the extension, and $U if already installed.
20517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20518 ac_i=`echo "$ac_i" | sed "$ac_script"`
20519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20520 # will be set to the directory where LIBOBJS objects are built.
20521 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20522 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20524 LIBOBJS=$ac_libobjs
20526 LTLIBOBJS=$ac_ltlibobjs
20529 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20530 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20531 Usually this means the macro was only invoked conditionally." >&5
20532 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20533 Usually this means the macro was only invoked conditionally." >&2;}
20534 { (exit 1); exit 1; }; }
20536 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20537 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20538 Usually this means the macro was only invoked conditionally." >&5
20539 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20540 Usually this means the macro was only invoked conditionally." >&2;}
20541 { (exit 1); exit 1; }; }
20544 : ${CONFIG_STATUS=./config.status}
20545 ac_clean_files_save=$ac_clean_files
20546 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20547 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20548 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20549 cat >$CONFIG_STATUS <<_ACEOF
20551 # Generated by $as_me.
20552 # Run this file to recreate the current configuration.
20553 # Compiler output produced by configure, useful for debugging
20554 # configure, is in config.log if it exists.
20557 ac_cs_recheck=false
20559 SHELL=\${CONFIG_SHELL-$SHELL}
20562 cat >>$CONFIG_STATUS <<\_ACEOF
20563 ## --------------------- ##
20564 ## M4sh Initialization. ##
20565 ## --------------------- ##
20567 # Be Bourne compatible
20568 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20571 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20572 # is contrary to our usage. Disable this feature.
20573 alias -g '${1+"$@"}'='"$@"'
20574 setopt NO_GLOB_SUBST
20576 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20578 BIN_SH=xpg4; export BIN_SH # for Tru64
20579 DUALCASE=1; export DUALCASE # for MKS sh
20583 # Avoid depending upon Character Ranges.
20584 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20585 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20586 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20587 as_cr_digits='0123456789'
20588 as_cr_alnum=$as_cr_Letters$as_cr_digits
20590 # The user is always right.
20591 if test "${PATH_SEPARATOR+set}" != set; then
20592 echo "#! /bin/sh" >conf$$.sh
20593 echo "exit 0" >>conf$$.sh
20595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20603 # Support unset when possible.
20604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20612 # We need space, tab and new line, in precisely that order. Quoting is
20613 # there to prevent editors from complaining about space-tab.
20614 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20615 # splitting by setting IFS to empty value.)
20620 # Find who we are. Look in the path if we contain no directory separator.
20622 *[\\/]* ) as_myself=$0 ;;
20623 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20624 for as_dir in $PATH
20627 test -z "$as_dir" && as_dir=.
20628 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20634 # We did not find ourselves, most probably we were run as `sh COMMAND'
20635 # in which case we are not to be found in the path.
20636 if test "x$as_myself" = x; then
20639 if test ! -f "$as_myself"; then
20640 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20641 { (exit 1); exit 1; }
20644 # Work around bugs in pre-3.0 UWIN ksh.
20645 for as_var in ENV MAIL MAILPATH
20646 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20654 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20655 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20656 LC_TELEPHONE LC_TIME
20658 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20659 eval $as_var=C; export $as_var
20661 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20665 # Required to use basename.
20666 if expr a : '\(a\)' >/dev/null 2>&1 &&
20667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20673 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20674 as_basename=basename
20680 # Name of the executable.
20681 as_me=`$as_basename -- "$0" ||
20682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20683 X"$0" : 'X\(//\)$' \| \
20684 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20686 sed '/^.*\/\([^/][^/]*\)\/*$/{
20705 as_lineno_1=$LINENO
20706 as_lineno_2=$LINENO
20707 test "x$as_lineno_1" != "x$as_lineno_2" &&
20708 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20711 # uniformly replaced by the line number. The first 'sed' inserts a
20712 # line-number line after each line using $LINENO; the second 'sed'
20713 # does the real work. The second script uses 'N' to pair each
20714 # line-number line with the line containing $LINENO, and appends
20715 # trailing '-' during substitution so that $LINENO is not a special
20716 # case at line end.
20717 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20718 # scripts with optimization help from Paolo Bonzini. Blame Lee
20719 # E. McMahon (1931-1989) for sed's syntax. :-)
20731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20734 ' >$as_me.lineno &&
20735 chmod +x "$as_me.lineno" ||
20736 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20737 { (exit 1); exit 1; }; }
20739 # Don't try to exec as it changes $[0], causing all sort of problems
20740 # (the dirname of $[0] is not the place where we might find the
20741 # original and so on. Autoconf is especially sensitive to this).
20742 . "./$as_me.lineno"
20743 # Exit status is that of the last command.
20748 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20754 ECHO_C= ECHO_N= ECHO_T=
20755 case `echo -n x` in
20757 case `echo 'x\c'` in
20758 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20765 if expr a : '\(a\)' >/dev/null 2>&1 &&
20766 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20772 rm -f conf$$ conf$$.exe conf$$.file
20773 if test -d conf$$.dir; then
20774 rm -f conf$$.dir/conf$$.file
20780 if ln -s conf$$.file conf$$ 2>/dev/null; then
20782 # ... but there are two gotchas:
20783 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20784 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20785 # In both cases, we have to default to `cp -p'.
20786 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20788 elif ln conf$$.file conf$$ 2>/dev/null; then
20793 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20794 rmdir conf$$.dir 2>/dev/null
20796 if mkdir -p . 2>/dev/null; then
20799 test -d ./-p && rmdir ./-p
20803 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20804 # systems may use methods other than mode bits to determine executability.
20805 cat >conf$$.file <<_ASEOF
20809 chmod +x conf$$.file
20810 if test -x conf$$.file >/dev/null 2>&1; then
20811 as_executable_p="test -x"
20817 # Sed expression to map a string onto a valid CPP name.
20818 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20820 # Sed expression to map a string onto a valid variable name.
20821 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20826 # Save the log message, to keep $[0] and so on meaningful, and to
20827 # report actual input values of CONFIG_FILES etc. instead of their
20828 # values after options handling.
20830 This file was extended by llvm $as_me 2.8svn, which was
20831 generated by GNU Autoconf 2.60. Invocation command line was
20833 CONFIG_FILES = $CONFIG_FILES
20834 CONFIG_HEADERS = $CONFIG_HEADERS
20835 CONFIG_LINKS = $CONFIG_LINKS
20836 CONFIG_COMMANDS = $CONFIG_COMMANDS
20839 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20844 cat >>$CONFIG_STATUS <<_ACEOF
20845 # Files that config.status was made for.
20846 config_files="$ac_config_files"
20847 config_headers="$ac_config_headers"
20848 config_commands="$ac_config_commands"
20852 cat >>$CONFIG_STATUS <<\_ACEOF
20854 \`$as_me' instantiates files from templates according to the
20855 current configuration.
20857 Usage: $0 [OPTIONS] [FILE]...
20859 -h, --help print this help, then exit
20860 -V, --version print version number, then exit
20861 -q, --quiet do not print progress messages
20862 -d, --debug don't remove temporary files
20863 --recheck update $as_me by reconfiguring in the same conditions
20864 --file=FILE[:TEMPLATE]
20865 instantiate the configuration file FILE
20866 --header=FILE[:TEMPLATE]
20867 instantiate the configuration header FILE
20869 Configuration files:
20872 Configuration headers:
20875 Configuration commands:
20878 Report bugs to <bug-autoconf@gnu.org>."
20881 cat >>$CONFIG_STATUS <<_ACEOF
20883 llvm config.status 2.8svn
20884 configured by $0, generated by GNU Autoconf 2.60,
20885 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20887 Copyright (C) 2006 Free Software Foundation, Inc.
20888 This config.status script is free software; the Free Software Foundation
20889 gives unlimited permission to copy, distribute and modify it."
20896 cat >>$CONFIG_STATUS <<\_ACEOF
20897 # If no file are specified by the user, then we need to provide default
20898 # value. By we need to know if files were specified by the user.
20904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20905 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20916 # Handling of the options.
20917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20920 echo "$ac_cs_version"; exit ;;
20921 --debug | --debu | --deb | --de | --d | -d )
20923 --file | --fil | --fi | --f )
20925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20926 ac_need_defaults=false;;
20927 --header | --heade | --head | --hea )
20929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20930 ac_need_defaults=false;;
20932 # Conflict between --help and --header
20933 { echo "$as_me: error: ambiguous option: $1
20934 Try \`$0 --help' for more information." >&2
20935 { (exit 1); exit 1; }; };;
20936 --help | --hel | -h )
20937 echo "$ac_cs_usage"; exit ;;
20938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20942 # This is an error.
20943 -*) { echo "$as_me: error: unrecognized option: $1
20944 Try \`$0 --help' for more information." >&2
20945 { (exit 1); exit 1; }; } ;;
20947 *) ac_config_targets="$ac_config_targets $1"
20948 ac_need_defaults=false ;;
20954 ac_configure_extra_args=
20956 if $ac_cs_silent; then
20958 ac_configure_extra_args="$ac_configure_extra_args --silent"
20962 cat >>$CONFIG_STATUS <<_ACEOF
20963 if \$ac_cs_recheck; then
20964 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20965 CONFIG_SHELL=$SHELL
20966 export CONFIG_SHELL
20967 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20971 cat >>$CONFIG_STATUS <<\_ACEOF
20975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20976 ## Running $as_me. ##
20982 cat >>$CONFIG_STATUS <<_ACEOF
20986 llvm_src="${srcdir}"
20990 cat >>$CONFIG_STATUS <<\_ACEOF
20992 # Handling of arguments.
20993 for ac_config_target in $ac_config_targets
20995 case $ac_config_target in
20996 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20997 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20998 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20999 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21000 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21001 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21002 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21003 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21004 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
21005 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21006 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21007 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21008 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21009 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21010 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21011 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21012 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21013 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21014 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21015 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21016 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21017 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21018 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21019 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21021 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21022 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21023 { (exit 1); exit 1; }; };;
21028 # If the user did not use the arguments to specify the items to instantiate,
21029 # then the envvar interface is used. Set only those that are not.
21030 # We use the long form for the default assignment because of an extremely
21031 # bizarre bug on SunOS 4.1.3.
21032 if $ac_need_defaults; then
21033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21038 # Have a temporary directory for convenience. Make it in the build tree
21039 # simply because there is no reason against having it here, and in addition,
21040 # creating and moving files from /tmp can sometimes cause problems.
21041 # Hook for its removal unless debugging.
21042 # Note that there is a small window in which the directory will not be cleaned:
21043 # after its creation but before its name has been assigned to `$tmp'.
21047 trap 'exit_status=$?
21048 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21050 trap '{ (exit 1); exit 1; }' 1 2 13 15
21052 # Create a (secure) tmp directory for tmp files.
21055 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21056 test -n "$tmp" && test -d "$tmp"
21059 tmp=./conf$$-$RANDOM
21060 (umask 077 && mkdir "$tmp")
21063 echo "$me: cannot create a temporary directory in ." >&2
21064 { (exit 1); exit 1; }
21068 # Set up the sed scripts for CONFIG_FILES section.
21071 # No need to generate the scripts if there are no CONFIG_FILES.
21072 # This happens for instance when ./config.status config.h
21073 if test -n "$CONFIG_FILES"; then
21080 for ac_last_try in false false false false false :; do
21081 cat >conf$$subs.sed <<_ACEOF
21082 SHELL!$SHELL$ac_delim
21083 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21084 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21085 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21086 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21087 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21088 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21089 exec_prefix!$exec_prefix$ac_delim
21090 prefix!$prefix$ac_delim
21091 program_transform_name!$program_transform_name$ac_delim
21092 bindir!$bindir$ac_delim
21093 sbindir!$sbindir$ac_delim
21094 libexecdir!$libexecdir$ac_delim
21095 datarootdir!$datarootdir$ac_delim
21096 datadir!$datadir$ac_delim
21097 sysconfdir!$sysconfdir$ac_delim
21098 sharedstatedir!$sharedstatedir$ac_delim
21099 localstatedir!$localstatedir$ac_delim
21100 includedir!$includedir$ac_delim
21101 oldincludedir!$oldincludedir$ac_delim
21102 docdir!$docdir$ac_delim
21103 infodir!$infodir$ac_delim
21104 htmldir!$htmldir$ac_delim
21105 dvidir!$dvidir$ac_delim
21106 pdfdir!$pdfdir$ac_delim
21107 psdir!$psdir$ac_delim
21108 libdir!$libdir$ac_delim
21109 localedir!$localedir$ac_delim
21110 mandir!$mandir$ac_delim
21111 DEFS!$DEFS$ac_delim
21112 ECHO_C!$ECHO_C$ac_delim
21113 ECHO_N!$ECHO_N$ac_delim
21114 ECHO_T!$ECHO_T$ac_delim
21115 LIBS!$LIBS$ac_delim
21116 build_alias!$build_alias$ac_delim
21117 host_alias!$host_alias$ac_delim
21118 target_alias!$target_alias$ac_delim
21119 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21120 subdirs!$subdirs$ac_delim
21121 build!$build$ac_delim
21122 build_cpu!$build_cpu$ac_delim
21123 build_vendor!$build_vendor$ac_delim
21124 build_os!$build_os$ac_delim
21125 host!$host$ac_delim
21126 host_cpu!$host_cpu$ac_delim
21127 host_vendor!$host_vendor$ac_delim
21128 host_os!$host_os$ac_delim
21129 target!$target$ac_delim
21130 target_cpu!$target_cpu$ac_delim
21131 target_vendor!$target_vendor$ac_delim
21132 target_os!$target_os$ac_delim
21134 HOST_OS!$HOST_OS$ac_delim
21135 TARGET_OS!$TARGET_OS$ac_delim
21136 LINKALL!$LINKALL$ac_delim
21137 NOLINKALL!$NOLINKALL$ac_delim
21138 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21139 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21140 ARCH!$ARCH$ac_delim
21141 ENDIAN!$ENDIAN$ac_delim
21143 CFLAGS!$CFLAGS$ac_delim
21144 LDFLAGS!$LDFLAGS$ac_delim
21145 CPPFLAGS!$CPPFLAGS$ac_delim
21146 ac_ct_CC!$ac_ct_CC$ac_delim
21147 EXEEXT!$EXEEXT$ac_delim
21148 OBJEXT!$OBJEXT$ac_delim
21150 GREP!$GREP$ac_delim
21151 EGREP!$EGREP$ac_delim
21152 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21153 BUILD_CC!$BUILD_CC$ac_delim
21154 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21155 BUILD_CXX!$BUILD_CXX$ac_delim
21156 CVSBUILD!$CVSBUILD$ac_delim
21157 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21158 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21159 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21160 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21161 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21162 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21163 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21165 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21166 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21167 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21168 ENABLE_PIC!$ENABLE_PIC$ac_delim
21169 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21170 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21171 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21172 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21173 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21174 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21175 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21176 CLANGPATH!$CLANGPATH$ac_delim
21177 CLANGXXPATH!$CLANGXXPATH$ac_delim
21178 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21181 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21183 elif $ac_last_try; then
21184 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21185 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21186 { (exit 1); exit 1; }; }
21188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21192 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21193 if test -n "$ac_eof"; then
21194 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21195 ac_eof=`expr $ac_eof + 1`
21198 cat >>$CONFIG_STATUS <<_ACEOF
21199 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21203 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21204 s/^/s,@/; s/!/@,|#_!!_#|/
21207 s/'"$ac_delim"'$/,g/; t
21209 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21210 ' >>$CONFIG_STATUS <conf$$subs.sed
21211 rm -f conf$$subs.sed
21212 cat >>$CONFIG_STATUS <<_ACEOF
21218 for ac_last_try in false false false false false :; do
21219 cat >conf$$subs.sed <<_ACEOF
21220 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21221 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21222 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21223 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21224 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21226 CXXFLAGS!$CXXFLAGS$ac_delim
21227 ac_ct_CXX!$ac_ct_CXX$ac_delim
21229 ifGNUmake!$ifGNUmake$ac_delim
21230 LN_S!$LN_S$ac_delim
21233 DATE!$DATE$ac_delim
21234 FIND!$FIND$ac_delim
21235 MKDIR!$MKDIR$ac_delim
21237 RANLIB!$RANLIB$ac_delim
21242 BINPWD!$BINPWD$ac_delim
21243 GRAPHVIZ!$GRAPHVIZ$ac_delim
21246 NEATO!$NEATO$ac_delim
21247 TWOPI!$TWOPI$ac_delim
21248 CIRCO!$CIRCO$ac_delim
21250 DOTTY!$DOTTY$ac_delim
21251 PERL!$PERL$ac_delim
21252 HAVE_PERL!$HAVE_PERL$ac_delim
21253 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21254 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21255 INSTALL_DATA!$INSTALL_DATA$ac_delim
21256 BZIP2!$BZIP2$ac_delim
21258 DOXYGEN!$DOXYGEN$ac_delim
21259 GROFF!$GROFF$ac_delim
21260 GZIP!$GZIP$ac_delim
21261 POD2HTML!$POD2HTML$ac_delim
21262 POD2MAN!$POD2MAN$ac_delim
21263 PDFROFF!$PDFROFF$ac_delim
21264 RUNTEST!$RUNTEST$ac_delim
21265 TCLSH!$TCLSH$ac_delim
21267 OCAMLC!$OCAMLC$ac_delim
21268 OCAMLOPT!$OCAMLOPT$ac_delim
21269 OCAMLDEP!$OCAMLDEP$ac_delim
21270 OCAMLDOC!$OCAMLDOC$ac_delim
21272 HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim
21273 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21274 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21275 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21276 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21277 LIBADD_DL!$LIBADD_DL$ac_delim
21278 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21279 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21280 LLVMGCC!$LLVMGCC$ac_delim
21281 LLVMGXX!$LLVMGXX$ac_delim
21282 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21283 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21284 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21285 USE_UDIS86!$USE_UDIS86$ac_delim
21286 USE_OPROFILE!$USE_OPROFILE$ac_delim
21287 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21288 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21289 MMAP_FILE!$MMAP_FILE$ac_delim
21290 LLVMCC1!$LLVMCC1$ac_delim
21291 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21292 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21293 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21294 SHLIBEXT!$SHLIBEXT$ac_delim
21295 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21296 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21297 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21298 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21299 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21300 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21301 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21302 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21303 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21304 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21305 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21306 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21307 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21308 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21309 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21310 RPATH!$RPATH$ac_delim
21311 RDYNAMIC!$RDYNAMIC$ac_delim
21312 LIBOBJS!$LIBOBJS$ac_delim
21313 LTLIBOBJS!$LTLIBOBJS$ac_delim
21316 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
21318 elif $ac_last_try; then
21319 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21320 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21321 { (exit 1); exit 1; }; }
21323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21327 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21328 if test -n "$ac_eof"; then
21329 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21330 ac_eof=`expr $ac_eof + 1`
21333 cat >>$CONFIG_STATUS <<_ACEOF
21334 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21338 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21339 s/^/s,@/; s/!/@,|#_!!_#|/
21342 s/'"$ac_delim"'$/,g/; t
21344 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21345 ' >>$CONFIG_STATUS <conf$$subs.sed
21346 rm -f conf$$subs.sed
21347 cat >>$CONFIG_STATUS <<_ACEOF
21354 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21355 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21356 # trailing colons and then remove the whole line if VPATH becomes empty
21357 # (actually we leave an empty line to preserve line numbers).
21358 if test "x$srcdir" = x.; then
21359 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21360 s/:*\$(srcdir):*/:/
21361 s/:*\${srcdir}:*/:/
21363 s/^\([^=]*=[ ]*\):*/\1/
21369 cat >>$CONFIG_STATUS <<\_ACEOF
21370 fi # test -n "$CONFIG_FILES"
21373 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21376 :[FHLC]) ac_mode=$ac_tag; continue;;
21378 case $ac_mode$ac_tag in
21380 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21381 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21382 { (exit 1); exit 1; }; };;
21383 :[FH]-) ac_tag=-:-;;
21384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21401 -) ac_f="$tmp/stdin";;
21402 *) # Look for the file first in the build tree, then in the source tree
21403 # (if the path is not absolute). The absolute path cannot be DOS-style,
21404 # because $ac_f cannot contain `:'.
21408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21410 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21411 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21412 { (exit 1); exit 1; }; };;
21414 ac_file_inputs="$ac_file_inputs $ac_f"
21417 # Let's still pretend it is `configure' which instantiates (i.e., don't
21418 # use $as_me), people would be surprised to read:
21419 # /* config.h. Generated by config.status. */
21420 configure_input="Generated from "`IFS=:
21421 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21422 if test x"$ac_file" != x-; then
21423 configure_input="$ac_file. $configure_input"
21424 { echo "$as_me:$LINENO: creating $ac_file" >&5
21425 echo "$as_me: creating $ac_file" >&6;}
21429 *:-:* | *:-) cat >"$tmp/stdin";;
21434 ac_dir=`$as_dirname -- "$ac_file" ||
21435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21436 X"$ac_file" : 'X\(//\)[^/]' \| \
21437 X"$ac_file" : 'X\(//\)$' \| \
21438 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21444 /^X\(\/\/\)[^/].*/{
21459 -*) as_dir=./$as_dir;;
21461 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21465 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21466 *) as_qdir=$as_dir;;
21468 as_dirs="'$as_qdir' $as_dirs"
21469 as_dir=`$as_dirname -- "$as_dir" ||
21470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21471 X"$as_dir" : 'X\(//\)[^/]' \| \
21472 X"$as_dir" : 'X\(//\)$' \| \
21473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21479 /^X\(\/\/\)[^/].*/{
21492 test -d "$as_dir" && break
21494 test -z "$as_dirs" || eval "mkdir $as_dirs"
21495 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21496 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21497 { (exit 1); exit 1; }; }; }
21501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21504 # A ".." for each directory in $ac_dir_suffix.
21505 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21506 case $ac_top_builddir_sub in
21507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21511 ac_abs_top_builddir=$ac_pwd
21512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21513 # for backward compatibility:
21514 ac_top_builddir=$ac_top_build_prefix
21517 .) # We are building in place.
21519 ac_top_srcdir=$ac_top_builddir_sub
21520 ac_abs_top_srcdir=$ac_pwd ;;
21521 [\\/]* | ?:[\\/]* ) # Absolute name.
21522 ac_srcdir=$srcdir$ac_dir_suffix;
21523 ac_top_srcdir=$srcdir
21524 ac_abs_top_srcdir=$srcdir ;;
21525 *) # Relative name.
21526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21527 ac_top_srcdir=$ac_top_build_prefix$srcdir
21528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21545 cat >>$CONFIG_STATUS <<\_ACEOF
21546 # If the template does not know about datarootdir, expand it.
21547 # FIXME: This hack should be removed a few years after 2.60.
21548 ac_datarootdir_hack=; ac_datarootdir_seen=
21550 case `sed -n '/datarootdir/ {
21559 ' $ac_file_inputs` in
21560 *datarootdir*) ac_datarootdir_seen=yes;;
21561 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21562 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21563 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21565 cat >>$CONFIG_STATUS <<_ACEOF
21566 ac_datarootdir_hack='
21567 s&@datadir@&$datadir&g
21568 s&@docdir@&$docdir&g
21569 s&@infodir@&$infodir&g
21570 s&@localedir@&$localedir&g
21571 s&@mandir@&$mandir&g
21572 s&\\\${datarootdir}&$datarootdir&g' ;;
21576 # Neutralize VPATH when `$srcdir' = `.'.
21577 # Shell code in configure.ac might set extrasub.
21578 # FIXME: do we really want to maintain this feature?
21579 cat >>$CONFIG_STATUS <<_ACEOF
21583 cat >>$CONFIG_STATUS <<\_ACEOF
21585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21586 s&@configure_input@&$configure_input&;t t
21587 s&@top_builddir@&$ac_top_builddir_sub&;t t
21588 s&@srcdir@&$ac_srcdir&;t t
21589 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21590 s&@top_srcdir@&$ac_top_srcdir&;t t
21591 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21592 s&@builddir@&$ac_builddir&;t t
21593 s&@abs_builddir@&$ac_abs_builddir&;t t
21594 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21595 s&@INSTALL@&$ac_INSTALL&;t t
21596 $ac_datarootdir_hack
21597 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21599 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21600 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21601 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21602 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21603 which seems to be undefined. Please make sure it is defined." >&5
21604 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21605 which seems to be undefined. Please make sure it is defined." >&2;}
21609 -) cat "$tmp/out"; rm -f "$tmp/out";;
21610 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21619 # Transform confdefs.h into a sed script `conftest.defines', that
21620 # substitutes the proper values into config.h.in to produce config.h.
21621 rm -f conftest.defines conftest.tail
21622 # First, append a space to every undef/define line, to ease matching.
21623 echo 's/$/ /' >conftest.defines
21624 # Then, protect against being on the right side of a sed subst, or in
21625 # an unquoted here document, in config.status. If some macros were
21626 # called several times there might be several #defines for the same
21627 # symbol, which is useless. But do not sort them, since the last
21628 # AC_DEFINE must be honored.
21629 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21630 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21631 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21632 # PARAMS is the parameter list in the macro definition--in most cases, it's
21633 # just an empty string.
21634 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21635 ac_dB='\\)[ (].*,\\1define\\2'
21643 s/^[ ]*#[ ]*define[ ][ ]*//
21648 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21649 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21650 ' >>conftest.defines
21652 # Remove the space that was appended to ease matching.
21653 # Then replace #undef with comments. This is necessary, for
21654 # example, in the case of _POSIX_SOURCE, which is predefined and required
21655 # on some systems where configure will not decide to define it.
21656 # (The regexp can be short, since the line contains either #define or #undef.)
21658 s,^[ #]*u.*,/* & */,' >>conftest.defines
21660 # Break up conftest.defines:
21661 ac_max_sed_lines=50
21663 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21664 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21665 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21667 ac_in='$ac_file_inputs'
21668 ac_out='"$tmp/out1"'
21669 ac_nxt='"$tmp/out2"'
21673 # Write a here document:
21674 cat >>$CONFIG_STATUS <<_ACEOF
21675 # First, check the format of the line:
21676 cat >"\$tmp/defines.sed" <<\\CEOF
21677 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21678 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21682 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21684 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21685 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21686 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21687 grep . conftest.tail >/dev/null || break
21688 rm -f conftest.defines
21689 mv conftest.tail conftest.defines
21691 rm -f conftest.defines conftest.tail
21693 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21694 cat >>$CONFIG_STATUS <<\_ACEOF
21695 if test x"$ac_file" != x-; then
21696 echo "/* $configure_input */" >"$tmp/config.h"
21697 cat "$ac_result" >>"$tmp/config.h"
21698 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21699 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21700 echo "$as_me: $ac_file is unchanged" >&6;}
21703 mv "$tmp/config.h" $ac_file
21706 echo "/* $configure_input */"
21712 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21713 echo "$as_me: executing $ac_file commands" >&6;}
21718 case $ac_file$ac_mode in
21719 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21720 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21721 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21722 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21723 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21724 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21725 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21726 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21727 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21728 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21729 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21730 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21731 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21732 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21733 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21735 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21737 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21739 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21741 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21743 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21744 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21750 { (exit 0); exit 0; }
21752 chmod +x $CONFIG_STATUS
21753 ac_clean_files=$ac_clean_files_save
21756 # configure is writing to config.log, and then calls config.status.
21757 # config.status does its own redirection, appending to config.log.
21758 # Unfortunately, on DOS this fails, as config.log is still kept open
21759 # by configure, so config.status won't be able to write to it; its
21760 # output is simply discarded. So we exec the FD to /dev/null,
21761 # effectively closing config.log, so it can be properly (re)opened and
21762 # appended to by config.status. When coming back to configure, we
21763 # need to make the FD available again.
21764 if test "$no_create" != yes; then
21766 ac_config_status_args=
21767 test "$silent" = yes &&
21768 ac_config_status_args="$ac_config_status_args --quiet"
21770 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21772 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21773 # would make configure fail if this is the last instruction.
21774 $ac_cs_success || { (exit 1); exit 1; }
21778 # CONFIG_SUBDIRS section.
21780 if test "$no_recursion" != yes; then
21782 # Remove --cache-file and --srcdir arguments so they do not pile up.
21783 ac_sub_configure_args=
21785 eval "set x $ac_configure_args"
21789 if test -n "$ac_prev"; then
21794 -cache-file | --cache-file | --cache-fil | --cache-fi \
21795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21796 ac_prev=cache_file ;;
21797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21801 --config-cache | -C)
21803 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21805 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21807 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21809 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21813 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21815 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21819 # Always prepend --prefix to ensure using the same prefix
21820 # in subdir configurations.
21821 ac_arg="--prefix=$prefix"
21823 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21825 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21828 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21830 # Do not complain, so a configure script can configure whichever
21831 # parts of a large source tree are present.
21832 test -d "$srcdir/$ac_dir" || continue
21834 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21835 echo "$as_me:$LINENO: $ac_msg" >&5
21839 -*) as_dir=./$as_dir;;
21841 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21845 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21846 *) as_qdir=$as_dir;;
21848 as_dirs="'$as_qdir' $as_dirs"
21849 as_dir=`$as_dirname -- "$as_dir" ||
21850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21851 X"$as_dir" : 'X\(//\)[^/]' \| \
21852 X"$as_dir" : 'X\(//\)$' \| \
21853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21859 /^X\(\/\/\)[^/].*/{
21872 test -d "$as_dir" && break
21874 test -z "$as_dirs" || eval "mkdir $as_dirs"
21875 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21876 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21877 { (exit 1); exit 1; }; }; }
21881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21884 # A ".." for each directory in $ac_dir_suffix.
21885 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21886 case $ac_top_builddir_sub in
21887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21891 ac_abs_top_builddir=$ac_pwd
21892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21893 # for backward compatibility:
21894 ac_top_builddir=$ac_top_build_prefix
21897 .) # We are building in place.
21899 ac_top_srcdir=$ac_top_builddir_sub
21900 ac_abs_top_srcdir=$ac_pwd ;;
21901 [\\/]* | ?:[\\/]* ) # Absolute name.
21902 ac_srcdir=$srcdir$ac_dir_suffix;
21903 ac_top_srcdir=$srcdir
21904 ac_abs_top_srcdir=$srcdir ;;
21905 *) # Relative name.
21906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21907 ac_top_srcdir=$ac_top_build_prefix$srcdir
21908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21915 # Check for guested configure; otherwise get Cygnus style configure.
21916 if test -f "$ac_srcdir/configure.gnu"; then
21917 ac_sub_configure=$ac_srcdir/configure.gnu
21918 elif test -f "$ac_srcdir/configure"; then
21919 ac_sub_configure=$ac_srcdir/configure
21920 elif test -f "$ac_srcdir/configure.in"; then
21921 # This should be Cygnus configure.
21922 ac_sub_configure=$ac_aux_dir/configure
21924 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21929 # The recursion is here.
21930 if test -n "$ac_sub_configure"; then
21931 # Make the cache file name correct relative to the subdirectory.
21932 case $cache_file in
21933 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21934 *) # Relative name.
21935 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21938 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21939 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21940 # The eval makes quoting arguments work.
21941 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21942 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21943 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21944 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21945 { (exit 1); exit 1; }; }