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
752 HAVE_LINK_RETAIN_SYMBOLS_FILE
755 CONVENIENCE_LTDL_TRUE
756 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
789 ENABLE_VISIBILITY_INLINES_HIDDEN
795 ac_precious_vars='build_alias
806 ac_subdirs_all='projects/llvm-gcc
810 projects/llvm-poolalloc
813 projects/llvm-stacker
818 projects/llvm-kernel'
820 # Initialize some variables set by options.
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name=s,x,x,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1110 -site=* | --site=* | --sit=*)
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
1155 # Obsolete; use --with-x.
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
1203 # Be sure to have absolute directory names.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of llvm 2.8svn:";;
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-optimized Compile with optimizations enabled (default is NO)
1394 --enable-profiling Compile with profiling enabled (default is NO)
1395 --enable-assertions Compile with assertion checks enabled (default is
1397 --enable-expensive-checks
1398 Compile with expensive debug checks enabled (default
1400 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1403 optimization is on and YES if it's off)
1404 --enable-jit Enable Just In Time Compiling (default is YES)
1405 --enable-doxygen Build doxygen documentation (default is NO)
1406 --enable-threads Use threads if available (default is YES)
1407 --enable-pic Build LLVM with Position Independent Code (default
1409 --enable-shared Build a shared library and link tools against it
1411 --enable-targets Build specific host targets: all or
1412 target1,target2,... Valid targets are: host, x86,
1413 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1414 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1415 and cpp (default=all)
1416 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1418 --enable-bindings Build specific language bindings:
1419 all,auto,none,{binding-name} (default=auto)
1420 --enable-libffi Check for the presence of libffi (default is NO)
1421 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1423 --enable-llvmc-dynamic-plugins
1424 Enable dynamic LLVMC plugins (default is YES)
1425 --enable-ltdl-install install libltdl
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1432 --with-llvmgcc Specify location of llvm-gcc driver (default
1434 --with-llvmgxx Specify location of llvm-g++ driver (default
1436 --with-clang Specify location of clang compiler (default is
1438 --with-built-clang Use the compiled Clang as the LLVM compiler
1440 --with-optimize-option Select the compiler options to use for optimized
1442 --with-extra-options Specify additional options to compile LLVM with
1443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1445 --with-c-include-dirs Colon separated list of directories clang will
1447 --with-cxx-include-root Directory with the libstdc++ headers.
1448 --with-cxx-include-arch Architecture of the libstdc++ headers.
1449 --with-cxx-include-32bit-dir
1450 32 bit multilib dir.
1451 --with-cxx-include-64bit-dir
1452 64 bit multilib directory.
1453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
1455 --with-tclinclude directory where tcl headers are
1456 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1457 clang, or none; default=check)
1458 --with-udis86=<path> Use udis86 external x86 disassembler library
1459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1476 Report bugs to <llvmbugs@cs.uiuc.edu>.
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484 test -d "$ac_dir" || continue
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1504 .) # We are building in place.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1537 llvm configure 2.8svn
1538 generated by GNU Autoconf 2.60
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1545 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1549 cat >config.log <<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1553 It was created by llvm $as_me 2.8svn, which was
1554 generated by GNU Autoconf 2.60. Invocation command line was
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1575 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1579 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 test -z "$as_dir" && as_dir=.
1590 echo "PATH: $as_dir"
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1614 ac_must_keep_next=false
1620 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622 | -silent | --silent | --silen | --sile | --sil)
1625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1628 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1630 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1631 if test $ac_must_keep_next = true; then
1632 ac_must_keep_next=false # Got value, back to normal.
1635 *=* | --config-cache | -C | -disable-* | --disable-* \
1636 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638 | -with-* | --with-* | -without-* | --without-* | --x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1643 -* ) ac_must_keep_next=true ;;
1646 ac_configure_args="$ac_configure_args '$ac_arg'"
1651 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log. We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1670 # The following way of writing the cache mishandles newlines in values,
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1681 _ | IFS | as_nl) ;; #(
1682 *) $as_unset $ac_var ;;
1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
1690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1707 for ac_var in $ac_subst_vars
1709 eval ac_val=\$$ac_var
1711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713 echo "$ac_var='\''$ac_val'\''"
1717 if test -n "$ac_subst_files"; then
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1724 for ac_var in $ac_subst_files
1726 eval ac_val=\$$ac_var
1728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 echo "$ac_var='\''$ac_val'\''"
1735 if test -s confdefs.h; then
1745 test "$ac_signal" != 0 &&
1746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
1749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1753 for ac_signal in 1 2 13 15; do
1754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1761 # Predefined preprocessor variables.
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791 set x "$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE; then
1793 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1795 set x "$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
1801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804 sed 's/^/| /' "$ac_site_file" >&5
1809 if test -r "$cache_file"; then
1810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1816 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817 *) . "./$cache_file";;
1821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1826 # Check that the precious variables saved in the cache have kept the same
1828 ac_cache_corrupted=false
1829 for ac_var in $ac_precious_vars; do
1830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831 eval ac_new_set=\$ac_env_${ac_var}_set
1832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833 eval ac_new_val=\$ac_env_${ac_var}_value
1834 case $ac_old_set,$ac_new_set in
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842 ac_cache_corrupted=: ;;
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
1846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849 echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851 echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted=:
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1858 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 *) ac_arg=$ac_var=$ac_new_val ;;
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1863 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1867 if $ac_cache_corrupted; then
1868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1916 for ac_dir in autoconf "$srcdir"/autoconf; do
1917 if test -f "$ac_dir/install-sh"; then
1919 ac_install_sh="$ac_aux_dir/install-sh -c"
1921 elif test -f "$ac_dir/install.sh"; then
1923 ac_install_sh="$ac_aux_dir/install.sh -c"
1925 elif test -f "$ac_dir/shtool"; then
1927 ac_install_sh="$ac_aux_dir/shtool install -c"
1931 if test -z "$ac_aux_dir"; then
1932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934 { (exit 1); exit 1; }; }
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947 if test ${srcdir} != "." ; then
1948 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1949 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951 { (exit 1); exit 1; }; }
1957 if test -d ${srcdir}/projects/llvm-gcc ; then
1958 subdirs="$subdirs projects/llvm-gcc"
1962 if test -d ${srcdir}/projects/test-suite ; then
1963 subdirs="$subdirs projects/test-suite"
1967 if test -d ${srcdir}/projects/llvm-test ; then
1968 subdirs="$subdirs projects/llvm-test"
1972 if test -d ${srcdir}/projects/poolalloc ; then
1973 subdirs="$subdirs projects/poolalloc"
1977 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978 subdirs="$subdirs projects/llvm-poolalloc"
1982 for i in `ls ${srcdir}/projects`
1984 if test -d ${srcdir}/projects/${i} ; then
1987 sample) subdirs="$subdirs projects/sample"
1989 privbracket) subdirs="$subdirs projects/privbracket"
1991 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1993 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1995 llvm-java) subdirs="$subdirs projects/llvm-java"
1997 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1999 safecode) subdirs="$subdirs projects/safecode"
2001 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2009 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2010 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2017 # Make sure we can run config.sub.
2018 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2019 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2020 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2021 { (exit 1); exit 1; }; }
2023 { echo "$as_me:$LINENO: checking build system type" >&5
2024 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2025 if test "${ac_cv_build+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 ac_build_alias=$build_alias
2029 test "x$ac_build_alias" = x &&
2030 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2031 test "x$ac_build_alias" = x &&
2032 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034 { (exit 1); exit 1; }; }
2035 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2036 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2037 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2038 { (exit 1); exit 1; }; }
2041 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 echo "${ECHO_T}$ac_cv_build" >&6; }
2043 case $ac_cv_build in
2045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2046 echo "$as_me: error: invalid value of canonical build" >&2;}
2047 { (exit 1); exit 1; }; };;
2050 ac_save_IFS=$IFS; IFS='-'
2056 # Remember, the first character of IFS is used to create $*,
2057 # except with old shells:
2060 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2063 { echo "$as_me:$LINENO: checking host system type" >&5
2064 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2065 if test "${ac_cv_host+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 if test "x$host_alias" = x; then
2069 ac_cv_host=$ac_cv_build
2071 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2072 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
2078 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079 echo "${ECHO_T}$ac_cv_host" >&6; }
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2083 echo "$as_me: error: invalid value of canonical host" >&2;}
2084 { (exit 1); exit 1; }; };;
2087 ac_save_IFS=$IFS; IFS='-'
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2097 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2100 { echo "$as_me:$LINENO: checking target system type" >&5
2101 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_target+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test "x$target_alias" = x; then
2106 ac_cv_target=$ac_cv_host
2108 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2109 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2115 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2116 echo "${ECHO_T}$ac_cv_target" >&6; }
2117 case $ac_cv_target in
2119 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2120 echo "$as_me: error: invalid value of canonical target" >&2;}
2121 { (exit 1); exit 1; }; };;
2123 target=$ac_cv_target
2124 ac_save_IFS=$IFS; IFS='-'
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2134 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2137 # The aliases save the names the user supplied, while $host etc.
2138 # will get canonicalized.
2139 test -n "$target_alias" &&
2140 test "$program_prefix$program_suffix$program_transform_name" = \
2142 program_prefix=${target_alias}-
2144 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2145 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2146 if test "${llvm_cv_os_type+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 llvm_cv_link_all_option="-Wl,--whole-archive"
2152 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2153 llvm_cv_os_type="AIX"
2154 llvm_cv_platform_type="Unix" ;;
2156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158 llvm_cv_os_type="IRIX"
2159 llvm_cv_platform_type="Unix" ;;
2161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163 llvm_cv_os_type="Cygwin"
2164 llvm_cv_platform_type="Unix" ;;
2166 llvm_cv_link_all_option="-Wl,-all_load"
2167 llvm_cv_no_link_all_option="-Wl,-noall_load"
2168 llvm_cv_os_type="Darwin"
2169 llvm_cv_platform_type="Unix" ;;
2171 llvm_cv_link_all_option="-Wl,-all_load"
2172 llvm_cv_no_link_all_option="-Wl,-noall_load"
2173 llvm_cv_os_type="Minix"
2174 llvm_cv_platform_type="Unix" ;;
2176 llvm_cv_link_all_option="-Wl,--whole-archive"
2177 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2178 llvm_cv_os_type="FreeBSD"
2179 llvm_cv_platform_type="Unix" ;;
2181 llvm_cv_link_all_option="-Wl,--whole-archive"
2182 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2183 llvm_cv_os_type="OpenBSD"
2184 llvm_cv_platform_type="Unix" ;;
2186 llvm_cv_link_all_option="-Wl,--whole-archive"
2187 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2188 llvm_cv_os_type="NetBSD"
2189 llvm_cv_platform_type="Unix" ;;
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="DragonFly"
2194 llvm_cv_platform_type="Unix" ;;
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="HP-UX"
2199 llvm_cv_platform_type="Unix" ;;
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="Interix"
2204 llvm_cv_platform_type="Unix" ;;
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Linux"
2209 llvm_cv_platform_type="Unix" ;;
2211 llvm_cv_link_all_option="-Wl,-z,allextract"
2212 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2213 llvm_cv_os_type="SunOS"
2214 llvm_cv_platform_type="Unix" ;;
2216 llvm_cv_link_all_option="-Wl,-z,allextract"
2217 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2218 llvm_cv_os_type="AuroraUX"
2219 llvm_cv_platform_type="Unix" ;;
2221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223 llvm_cv_os_type="Win32"
2224 llvm_cv_platform_type="Win32" ;;
2226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228 llvm_cv_os_type="MingW"
2229 llvm_cv_platform_type="Win32" ;;
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="Haiku"
2234 llvm_cv_platform_type="Unix" ;;
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="Freestanding"
2239 llvm_cv_platform_type="Unix" ;;
2241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243 llvm_cv_os_type="Freestanding"
2244 llvm_cv_platform_type="Unix" ;;
2246 llvm_cv_link_all_option=""
2247 llvm_cv_no_link_all_option=""
2248 llvm_cv_os_type="Unknown"
2249 llvm_cv_platform_type="Unknown" ;;
2252 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2253 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2255 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2256 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2257 if test "${llvm_cv_target_os_type+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 llvm_cv_target_os_type="AIX" ;;
2264 llvm_cv_target_os_type="IRIX" ;;
2266 llvm_cv_target_os_type="Cygwin" ;;
2268 llvm_cv_target_os_type="Darwin" ;;
2270 llvm_cv_target_os_type="Minix" ;;
2272 llvm_cv_target_os_type="FreeBSD" ;;
2274 llvm_cv_target_os_type="OpenBSD" ;;
2276 llvm_cv_target_os_type="NetBSD" ;;
2278 llvm_cv_target_os_type="DragonFly" ;;
2280 llvm_cv_target_os_type="HP-UX" ;;
2282 llvm_cv_target_os_type="Interix" ;;
2284 llvm_cv_target_os_type="Linux" ;;
2286 llvm_cv_target_os_type="SunOS" ;;
2288 llvm_cv_target_os_type="AuroraUX" ;;
2290 llvm_cv_target_os_type="Win32" ;;
2292 llvm_cv_target_os_type="MingW" ;;
2294 llvm_cv_target_os_type="Haiku" ;;
2296 llvm_cv_target_os_type="Freestanding" ;;
2298 llvm_cv_target_os_type="Unknown" ;;
2301 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2302 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2304 if test "$llvm_cv_os_type" = "Unknown" ; then
2305 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2307 { (exit 1); exit 1; }; }
2312 HOST_OS=$llvm_cv_os_type
2314 TARGET_OS=$llvm_cv_target_os_type
2317 LINKALL=$llvm_cv_link_all_option
2319 NOLINKALL=$llvm_cv_no_link_all_option
2322 case $llvm_cv_platform_type in
2325 cat >>confdefs.h <<\_ACEOF
2326 #define LLVM_ON_UNIX 1
2336 cat >>confdefs.h <<\_ACEOF
2337 #define LLVM_ON_WIN32 1
2347 { echo "$as_me:$LINENO: checking target architecture" >&5
2348 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2349 if test "${llvm_cv_target_arch+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 i?86-*) llvm_cv_target_arch="x86" ;;
2354 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2355 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2356 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2357 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2358 arm*-*) llvm_cv_target_arch="ARM" ;;
2359 mips-*) llvm_cv_target_arch="Mips" ;;
2360 pic16-*) llvm_cv_target_arch="PIC16" ;;
2361 xcore-*) llvm_cv_target_arch="XCore" ;;
2362 msp430-*) llvm_cv_target_arch="MSP430" ;;
2363 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2364 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2365 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2366 *) llvm_cv_target_arch="Unknown" ;;
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2377 # Determine the LLVM native architecture for the target
2378 case "$llvm_cv_target_arch" in
2379 x86) LLVM_NATIVE_ARCH="X86" ;;
2380 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2381 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2384 ARCH=$llvm_cv_target_arch
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 if test -n "$CC"; then
2422 { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2431 if test -z "$ac_cv_prog_CC"; then
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC="gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6; }
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2469 if test "x$ac_ct_CC" = x; then
2472 case $cross_compiling:$ac_tool_warned in
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet. If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2488 if test -z "$CC"; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_CC="${ac_tool_prefix}cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2575 if test -n "$CC"; then
2576 { echo "$as_me:$LINENO: result: $CC" >&5
2577 echo "${ECHO_T}$CC" >&6; }
2579 { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2585 if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
2587 for ac_prog in cl.exe
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2626 test -n "$CC" && break
2629 if test -z "$CC"; then
2631 for ac_prog in cl.exe
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_ac_ct_CC="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6; }
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2670 test -n "$ac_ct_CC" && break
2673 if test "x$ac_ct_CC" = x; then
2676 case $cross_compiling:$ac_tool_warned in
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet. If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned=yes ;;
2693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2699 # Provide some information about the compiler.
2700 echo "$as_me:$LINENO: checking for C compiler version" >&5
2701 ac_compiler=`set X $ac_compile; echo $2`
2702 { (ac_try="$ac_compiler --version >&5"
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712 { (ac_try="$ac_compiler -v >&5"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722 { (ac_try="$ac_compiler -V >&5"
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2733 cat >conftest.$ac_ext <<_ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2748 ac_clean_files_save=$ac_clean_files
2749 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750 # Try to create an executable without -o first, disregard a.out.
2751 # It will help us diagnose broken compilers, and finding out an intuition
2753 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2757 # List of possible output files, starting from the most likely.
2758 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759 # only as a last resort. b.out is created by i960 compilers.
2760 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2762 # The IRIX 6 linker writes into existing files which may not be
2763 # executable, retaining their permissions. Remove them first so a
2764 # subsequent execution test works.
2766 for ac_file in $ac_files
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 if { (ac_try="$ac_link_default"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link_default") 2>&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2788 # so that the user can short-circuit this test for compilers unknown to
2790 for ac_file in $ac_files
2792 test -f "$ac_file" || continue
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2797 # We found the default executable, but exeext='' is most
2801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2815 test "$ac_cv_exeext" = no && ac_cv_exeext=
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2821 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
2828 ac_exeext=$ac_cv_exeext
2829 { echo "$as_me:$LINENO: result: $ac_file" >&5
2830 echo "${ECHO_T}$ac_file" >&6; }
2832 # Check that the compiler produces executables we can run. If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837 # If not cross compiling, check that we can run a simple program.
2838 if test "$cross_compiling" != yes; then
2839 if { ac_try='./$ac_file'
2840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2851 if test "$cross_compiling" = maybe; then
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855 If you meant to cross compile, use \`--host'.
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: cannot run C compiled programs.
2858 If you meant to cross compile, use \`--host'.
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2864 { echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6; }
2867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868 ac_clean_files=$ac_clean_files_save
2869 # Check that the compiler produces executables we can run. If not, either
2870 # the compiler is broken, or we cross compile.
2871 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874 echo "${ECHO_T}$cross_compiling" >&6; }
2876 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878 if { (ac_try="$ac_link"
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link") 2>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2890 # work properly (i.e., refer to `conftest.exe'), while it won't with
2892 for ac_file in conftest.exe conftest conftest.*; do
2893 test -f "$ac_file" || continue
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2909 rm -f conftest$ac_cv_exeext
2910 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2916 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918 if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2936 rm -f conftest.o conftest.obj
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2968 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969 echo "${ECHO_T}$ac_cv_objext" >&6; }
2970 OBJEXT=$ac_cv_objext
2972 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043 GCC=`test $ac_compiler_gnu = yes && echo yes`
3044 ac_test_CFLAGS=${CFLAGS+set}
3045 ac_save_CFLAGS=$CFLAGS
3046 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048 if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3166 cat >conftest.$ac_ext <<_ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3190 grep -v '^ *+' conftest.er1 >conftest.err
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3243 if test "$GCC" = yes; then
3249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 ac_cv_prog_cc_c89=no
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3280 s = g (p, va_arg (v,int));
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_prog_cc_c89=$ac_arg
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
3362 rm -f conftest.$ac_ext
3367 case "x$ac_cv_prog_cc_c89" in
3369 { echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6; } ;;
3372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373 echo "${ECHO_T}unsupported" >&6; } ;;
3375 CC="$CC $ac_cv_prog_cc_c89"
3376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3395 # On Suns, sometimes $CPP names a directory.
3396 if test -n "$CPP" && test -d "$CPP"; then
3399 if test -z "$CPP"; then
3400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3407 for ac_c_preproc_warn_flag in '' yes
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3422 # include <limits.h>
3424 # include <assert.h>
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450 if test -z "$ac_cpp_err"; then
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Broken: fails on valid input.
3460 rm -f conftest.err conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether nonexistent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3472 if { (ac_try="$ac_cpp conftest.$ac_ext"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3480 grep -v '^ *+' conftest.er1 >conftest.err
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3494 if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Passes both tests.
3506 rm -f conftest.err conftest.$ac_ext
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then
3523 { echo "$as_me:$LINENO: result: $CPP" >&5
3524 echo "${ECHO_T}$CPP" >&6; }
3526 for ac_c_preproc_warn_flag in '' yes
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3541 # include <limits.h>
3543 # include <assert.h>
3547 if { (ac_try="$ac_cpp conftest.$ac_ext"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3569 if test -z "$ac_cpp_err"; then
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 # Broken: fails on valid input.
3579 rm -f conftest.err conftest.$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3613 if test -z "$ac_cpp_err"; then
3614 # Broken: success on invalid input.
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Passes both tests.
3625 rm -f conftest.err conftest.$ac_ext
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then
3633 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log' for more details." >&5
3635 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 # Extract the first word of "grep ggrep" to use in msg output
3653 if test -z "$GREP"; then
3654 set dummy grep ggrep; ac_prog_name=$2
3655 if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 ac_path_GREP_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3664 test -z "$as_dir" && as_dir=.
3665 for ac_prog in grep ggrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
3670 # Check for GNU $ac_path_GREP
3671 case `"$ac_path_GREP" --version 2>&1` in
3673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 echo 'GREP' >> "conftest.nl"
3683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 ac_count=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP="$ac_path_GREP"
3689 ac_path_GREP_max=$ac_count
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3698 $ac_path_GREP_found && break 3
3708 GREP="$ac_cv_path_GREP"
3709 if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3716 ac_cv_path_GREP=$GREP
3721 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723 GREP="$ac_cv_path_GREP"
3726 { echo "$as_me:$LINENO: checking for egrep" >&5
3727 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728 if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732 then ac_cv_path_EGREP="$GREP -E"
3734 # Extract the first word of "egrep" to use in msg output
3735 if test -z "$EGREP"; then
3736 set dummy egrep; ac_prog_name=$2
3737 if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 ac_path_EGREP_found=false
3741 # Loop through the user's path and test for each of PROGNAME-LIST
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3746 test -z "$as_dir" && as_dir=.
3747 for ac_prog in egrep; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
3752 # Check for GNU $ac_path_EGREP
3753 case `"$ac_path_EGREP" --version 2>&1` in
3755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
3764 echo 'EGREP' >> "conftest.nl"
3765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3767 ac_count=`expr $ac_count + 1`
3768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP="$ac_path_EGREP"
3771 ac_path_EGREP_max=$ac_count
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3780 $ac_path_EGREP_found && break 3
3790 EGREP="$ac_cv_path_EGREP"
3791 if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3798 ac_cv_path_EGREP=$EGREP
3804 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806 EGREP="$ac_cv_path_EGREP"
3809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811 if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_header_stdc=yes
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_header_stdc=no
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889 $EGREP "memchr" >/dev/null 2>&1; then
3892 ac_cv_header_stdc=no
3898 if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "free" >/dev/null 2>&1; then
3913 ac_cv_header_stdc=no
3919 if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921 if test "$cross_compiling" = yes; then
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3932 #if ((' ' & 0x0FF) == 0x020)
3933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3936 # define ISLOWER(c) \
3937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
3940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
3950 || toupper (i) != TOUPPER (i))
3955 rm -f conftest$ac_exeext
3956 if { (ac_try="$ac_link"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3977 echo "$as_me: program exited with status $ac_status" >&5
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3982 ac_cv_header_stdc=no
3984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3992 if test $ac_cv_header_stdc = yes; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define STDC_HEADERS 1
4000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
4013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4027 #include <$ac_header>
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4038 grep -v '^ *+' conftest.er1 >conftest.err
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 eval "$as_ac_Header=no"
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_res=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075 echo "${ECHO_T}$ac_res" >&6; }
4076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077 cat >>confdefs.h <<_ACEOF
4078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4086 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088 if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 # See if sys/param.h defines the BYTE_ORDER macro.
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <sys/types.h>
4099 #include <sys/param.h>
4104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4121 grep -v '^ *+' conftest.er1 >conftest.err
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 # It does; now see whether it defined to BIG_ENDIAN or not.
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <sys/types.h>
4154 #include <sys/param.h>
4159 #if BYTE_ORDER != BIG_ENDIAN
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_c_bigendian=yes
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_c_bigendian=no
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 # It does not; compile a test program.
4215 if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian=unknown
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4233 _ascii (); _ebcdic ();
4238 rm -f conftest.$ac_objext
4239 if { (ac_try="$ac_compile"
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4247 grep -v '^ *+' conftest.er1 >conftest.err
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273 ac_cv_c_bigendian=yes
4275 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 $ac_includes_default
4303 /* Are we little or big endian? From Harbison&Steele. */
4307 char c[sizeof (long int)];
4310 return u.c[sizeof (long int) - 1] == 1;
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_c_bigendian=no
4338 echo "$as_me: program exited with status $ac_status" >&5
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4343 ac_cv_c_bigendian=yes
4345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355 case $ac_cv_c_bigendian in
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365 echo "$as_me: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4371 if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4375 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377 if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4383 ac_build_prefix=${build_alias}-
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_build_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 BUILD_CC=$ac_cv_prog_BUILD_CC
4413 if test -n "$BUILD_CC"; then
4414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415 echo "${ECHO_T}$BUILD_CC" >&6; }
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424 set dummy gcc; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_BUILD_CC="gcc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 BUILD_CC=$ac_cv_prog_BUILD_CC
4451 if test -n "$BUILD_CC"; then
4452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453 echo "${ECHO_T}$BUILD_CC" >&6; }
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462 set dummy cc; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4483 ac_cv_prog_BUILD_CC="cc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 BUILD_CC=$ac_cv_prog_BUILD_CC
4506 if test -n "$BUILD_CC"; then
4507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508 echo "${ECHO_T}$BUILD_CC" >&6; }
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
4520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525 (eval $ac_build_link) 2>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 for file in conftest.*; do
4531 *.c | *.o | *.obj | *.dSYM) ;;
4532 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549 ac_build_exeext=$BUILD_EXEEXT
4551 ac_build_prefix=${build_alias}-
4552 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553 set dummy ${ac_build_prefix}g++; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 if test -n "$BUILD_CXX"; then
4560 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580 if test -n "$BUILD_CXX"; then
4581 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582 echo "${ECHO_T}$BUILD_CXX" >&6; }
4584 { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4589 if test -z "$BUILD_CXX"; then
4590 # Extract the first word of "g++", so it can be a program name with args.
4591 set dummy g++; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_BUILD_CXX="g++"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618 if test -n "$BUILD_CXX"; then
4619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620 echo "${ECHO_T}$BUILD_CXX" >&6; }
4622 { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "c++", so it can be a program name with args.
4629 set dummy c++; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647 ac_prog_rejected=yes
4650 ac_cv_prog_BUILD_CXX="c++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_BUILD_CXX
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set BUILD_CXX to just the basename; use the full file name.
4667 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4672 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673 if test -n "$BUILD_CXX"; then
4674 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675 echo "${ECHO_T}$BUILD_CXX" >&6; }
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4685 LLVM_CROSS_COMPILING=0
4689 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4700 # Check whether --enable-optimized was given.
4701 if test "${enable_optimized+set}" = set; then
4702 enableval=$enable_optimized;
4707 if test ${enableval} = "no" ; then
4711 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4715 # Check whether --enable-profiling was given.
4716 if test "${enable_profiling+set}" = set; then
4717 enableval=$enable_profiling;
4722 if test ${enableval} = "no" ; then
4726 ENABLE_PROFILING=ENABLE_PROFILING=1
4730 # Check whether --enable-assertions was given.
4731 if test "${enable_assertions+set}" = set; then
4732 enableval=$enable_assertions;
4737 if test ${enableval} = "yes" ; then
4741 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4745 # Check whether --enable-expensive-checks was given.
4746 if test "${enable_expensive_checks+set}" = set; then
4747 enableval=$enable_expensive_checks;
4752 if test ${enableval} = "yes" ; then
4753 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4755 EXPENSIVE_CHECKS=yes
4758 ENABLE_EXPENSIVE_CHECKS=
4764 # Check whether --enable-debug-runtime was given.
4765 if test "${enable_debug_runtime+set}" = set; then
4766 enableval=$enable_debug_runtime;
4771 if test ${enableval} = "no" ; then
4775 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4779 # Check whether --enable-debug-symbols was given.
4780 if test "${enable_debug_symbols+set}" = set; then
4781 enableval=$enable_debug_symbols;
4786 if test ${enableval} = "no" ; then
4790 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4794 # Check whether --enable-jit was given.
4795 if test "${enable_jit+set}" = set; then
4796 enableval=$enable_jit;
4801 if test ${enableval} = "no"
4806 case "$llvm_cv_target_arch" in
4807 x86) TARGET_HAS_JIT=1
4809 Sparc) TARGET_HAS_JIT=0
4811 PowerPC) TARGET_HAS_JIT=1
4813 x86_64) TARGET_HAS_JIT=1
4815 Alpha) TARGET_HAS_JIT=1
4817 ARM) TARGET_HAS_JIT=1
4819 Mips) TARGET_HAS_JIT=0
4821 PIC16) TARGET_HAS_JIT=0
4823 XCore) TARGET_HAS_JIT=0
4825 MSP430) TARGET_HAS_JIT=0
4827 SystemZ) TARGET_HAS_JIT=0
4829 Blackfin) TARGET_HAS_JIT=0
4831 MBlaze) TARGET_HAS_JIT=0
4838 # Check whether --enable-doxygen was given.
4839 if test "${enable_doxygen+set}" = set; then
4840 enableval=$enable_doxygen;
4845 case "$enableval" in
4846 yes) ENABLE_DOXYGEN=1
4848 no) ENABLE_DOXYGEN=0
4850 default) ENABLE_DOXYGEN=0
4852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
4857 # Check whether --enable-threads was given.
4858 if test "${enable_threads+set}" = set; then
4859 enableval=$enable_threads;
4864 case "$enableval" in
4865 yes) ENABLE_THREADS=1
4867 no) ENABLE_THREADS=0
4869 default) ENABLE_THREADS=1
4871 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4872 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4873 { (exit 1); exit 1; }; } ;;
4876 cat >>confdefs.h <<_ACEOF
4877 #define ENABLE_THREADS $ENABLE_THREADS
4881 # Check whether --enable-pic was given.
4882 if test "${enable_pic+set}" = set; then
4883 enableval=$enable_pic;
4888 case "$enableval" in
4893 default) ENABLE_PIC=1
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4900 cat >>confdefs.h <<_ACEOF
4901 #define ENABLE_PIC $ENABLE_PIC
4905 # Check whether --enable-shared was given.
4906 if test "${enable_shared+set}" = set; then
4907 enableval=$enable_shared;
4912 case "$enableval" in
4913 yes) ENABLE_SHARED=1
4917 default) ENABLE_SHARED=0
4919 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4920 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4925 # Check whether --enable-targets was given.
4926 if test "${enable_targets+set}" = set; then
4927 enableval=$enable_targets;
4932 if test "$enableval" = host-only ; then
4935 case "$enableval" in
4936 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4937 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4939 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4941 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4942 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4943 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4944 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4945 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4946 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4947 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4948 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4949 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4950 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4951 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4952 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4953 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4954 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4955 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4956 host) case "$llvm_cv_target_arch" in
4957 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4959 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4960 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4961 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4962 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4963 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4964 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4965 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4966 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4967 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4968 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4969 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4970 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4971 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4972 echo "$as_me: error: Can not set target to build" >&2;}
4973 { (exit 1); exit 1; }; } ;;
4975 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4976 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4982 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4985 # Determine whether we are building LLVM support for the native architecture.
4986 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4987 for a_target in $TARGETS_TO_BUILD; do
4988 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4989 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4991 cat >>confdefs.h <<_ACEOF
4992 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4998 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4999 # target feature def files.
5000 LLVM_ENUM_TARGETS=""
5001 LLVM_ENUM_ASM_PRINTERS=""
5002 LLVM_ENUM_ASM_PARSERS=""
5003 LLVM_ENUM_DISASSEMBLERS=""
5004 for target_to_build in $TARGETS_TO_BUILD; do
5005 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5006 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5007 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5009 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5010 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5012 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5013 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5021 # Check whether --enable-cbe-printf-a was given.
5022 if test "${enable_cbe_printf_a+set}" = set; then
5023 enableval=$enable_cbe_printf_a;
5028 case "$enableval" in
5029 yes) ENABLE_CBE_PRINTF_A=1
5031 no) ENABLE_CBE_PRINTF_A=0
5033 default) ENABLE_CBE_PRINTF_A=1
5035 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5036 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5040 cat >>confdefs.h <<_ACEOF
5041 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5046 # Check whether --with-llvmgccdir was given.
5047 if test "${with_llvmgccdir+set}" = set; then
5048 withval=$with_llvmgccdir;
5054 default) WITH_LLVMGCCDIR=default ;;
5055 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5056 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5057 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5058 { (exit 1); exit 1; }; } ;;
5062 # Check whether --with-llvmgcc was given.
5063 if test "${with_llvmgcc+set}" = set; then
5064 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5070 # Check whether --with-llvmgxx was given.
5071 if test "${with_llvmgxx+set}" = set; then
5072 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5077 if test -n "$LLVMGCC"; then
5078 LLVMGCCCOMMAND="$LLVMGCC"
5081 if test -n "$LLVMGXX"; then
5082 LLVMGXXCOMMAND="$LLVMGXX"
5085 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5086 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5087 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5088 { (exit 1); exit 1; }; };
5091 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5092 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5093 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5094 { (exit 1); exit 1; }; };
5098 # Check whether --with-clang was given.
5099 if test "${with_clang+set}" = set; then
5100 withval=$with_clang;
5107 # Check whether --with-built-clang was given.
5108 if test "${with_built_clang+set}" = set; then
5109 withval=$with_built_clang;
5111 with_built_clang=check
5115 { echo "$as_me:$LINENO: checking clang compiler" >&5
5116 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5119 if test "$with_clang" != "default"; then
5120 WITH_CLANGPATH="$with_clang"
5121 if ! test -x "$WITH_CLANGPATH"; then
5122 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5123 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5124 { (exit 1); exit 1; }; }
5126 elif test "$with_built_clang" = "yes"; then
5128 elif test "$with_built_clang" = "no"; then
5131 if test "$with_built_clang" != "check"; then
5132 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5133 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5134 { (exit 1); exit 1; }; }
5137 if test -f ${srcdir}/tools/clang/README.txt; then
5142 if ! test -z "$WITH_CLANGPATH"; then
5143 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5144 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5145 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5146 elif test "$WITH_BUILT_CLANG" = "1"; then
5147 { echo "$as_me:$LINENO: result: built" >&5
5148 echo "${ECHO_T}built" >&6; }
5150 { echo "$as_me:$LINENO: result: none" >&5
5151 echo "${ECHO_T}none" >&6; }
5153 CLANGPATH=$WITH_CLANGPATH
5155 CLANGXXPATH=$WITH_CLANGXXPATH
5157 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5161 # Check whether --with-optimize-option was given.
5162 if test "${with_optimize_option+set}" = set; then
5163 withval=$with_optimize_option;
5168 { echo "$as_me:$LINENO: checking optimization flags" >&5
5169 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5172 case "$llvm_cv_os_type" in
5173 FreeBSD) optimize_option=-O2 ;;
5174 MingW) optimize_option=-O2 ;;
5175 *) optimize_option=-O3 ;;
5177 *) optimize_option="$withval" ;;
5179 OPTIMIZE_OPTION=$optimize_option
5181 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5182 echo "${ECHO_T}$optimize_option" >&6; }
5185 # Check whether --with-extra-options was given.
5186 if test "${with_extra_options+set}" = set; then
5187 withval=$with_extra_options;
5193 default) EXTRA_OPTIONS= ;;
5194 *) EXTRA_OPTIONS=$withval ;;
5196 EXTRA_OPTIONS=$EXTRA_OPTIONS
5199 # Check whether --enable-bindings was given.
5200 if test "${enable_bindings+set}" = set; then
5201 enableval=$enable_bindings;
5206 BINDINGS_TO_BUILD=""
5207 case "$enableval" in
5208 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5209 all ) BINDINGS_TO_BUILD="ocaml" ;;
5210 none | no) BINDINGS_TO_BUILD="" ;;
5211 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5212 case "$a_binding" in
5213 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5214 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5215 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5216 { (exit 1); exit 1; }; } ;;
5223 # Check whether --with-ocaml-libdir was given.
5224 if test "${with_ocaml_libdir+set}" = set; then
5225 withval=$with_ocaml_libdir;
5231 auto) with_ocaml_libdir="$withval" ;;
5232 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5233 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5234 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5235 { (exit 1); exit 1; }; } ;;
5239 # Check whether --with-c-include-dirs was given.
5240 if test "${with_c_include_dirs+set}" = set; then
5241 withval=$with_c_include_dirs;
5247 cat >>confdefs.h <<_ACEOF
5248 #define C_INCLUDE_DIRS "$withval"
5253 # Check whether --with-cxx-include-root was given.
5254 if test "${with_cxx_include_root+set}" = set; then
5255 withval=$with_cxx_include_root;
5261 cat >>confdefs.h <<_ACEOF
5262 #define CXX_INCLUDE_ROOT "$withval"
5267 # Check whether --with-cxx-include-arch was given.
5268 if test "${with_cxx_include_arch+set}" = set; then
5269 withval=$with_cxx_include_arch;
5275 cat >>confdefs.h <<_ACEOF
5276 #define CXX_INCLUDE_ARCH "$withval"
5281 # Check whether --with-cxx-include-32bit-dir was given.
5282 if test "${with_cxx_include_32bit_dir+set}" = set; then
5283 withval=$with_cxx_include_32bit_dir;
5289 cat >>confdefs.h <<_ACEOF
5290 #define CXX_INCLUDE_32BIT_DIR "$withval"
5295 # Check whether --with-cxx-include-64bit-dir was given.
5296 if test "${with_cxx_include_64bit_dir+set}" = set; then
5297 withval=$with_cxx_include_64bit_dir;
5303 cat >>confdefs.h <<_ACEOF
5304 #define CXX_INCLUDE_64BIT_DIR "$withval"
5309 # Check whether --with-binutils-include was given.
5310 if test "${with_binutils_include+set}" = set; then
5311 withval=$with_binutils_include;
5317 default) WITH_BINUTILS_INCDIR=default ;;
5318 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5319 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5320 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5321 { (exit 1); exit 1; }; } ;;
5323 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5324 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5326 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5327 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5328 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5329 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5330 { (exit 1); exit 1; }; };
5334 # Check whether --enable-libffi was given.
5335 if test "${enable_libffi+set}" = set; then
5336 enableval=$enable_libffi; case "$enableval" in
5337 yes) llvm_cv_enable_libffi="yes" ;;
5338 no) llvm_cv_enable_libffi="no" ;;
5339 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5340 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5341 { (exit 1); exit 1; }; } ;;
5344 llvm_cv_enable_libffi=no
5348 if test "$llvm_cv_os_type" = "Win32" ; then
5354 # Check whether --enable-llvmc-dynamic was given.
5355 if test "${enable_llvmc_dynamic+set}" = set; then
5356 enableval=$enable_llvmc_dynamic;
5358 enableval=$llvmc_dynamic
5361 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5362 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5365 ENABLE_LLVMC_DYNAMIC=
5369 # Check whether --enable-llvmc-dynamic-plugins was given.
5370 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5371 enableval=$enable_llvmc_dynamic_plugins;
5376 if test ${enableval} = "yes" ; then
5377 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5380 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5386 ac_cpp='$CPP $CPPFLAGS'
5387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5390 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5391 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5392 # On Suns, sometimes $CPP names a directory.
5393 if test -n "$CPP" && test -d "$CPP"; then
5396 if test -z "$CPP"; then
5397 if test "${ac_cv_prog_CPP+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 # Double quotes because CPP needs to be expanded
5401 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5404 for ac_c_preproc_warn_flag in '' yes
5406 # Use a header file that comes with gcc, so configuring glibc
5407 # with a fresh cross-compiler works.
5408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5409 # <limits.h> exists even on freestanding compilers.
5410 # On the NeXT, cc -E runs the code through the compiler's parser,
5411 # not just through cpp. "Syntax error" is here to catch this case.
5412 cat >conftest.$ac_ext <<_ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5419 # include <limits.h>
5421 # include <assert.h>
5425 if { (ac_try="$ac_cpp conftest.$ac_ext"
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5433 grep -v '^ *+' conftest.er1 >conftest.err
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } >/dev/null; then
5438 if test -s conftest.err; then
5439 ac_cpp_err=$ac_c_preproc_warn_flag
5440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5447 if test -z "$ac_cpp_err"; then
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 # Broken: fails on valid input.
5457 rm -f conftest.err conftest.$ac_ext
5459 # OK, works on sane cases. Now check whether nonexistent headers
5460 # can be detected and how.
5461 cat >conftest.$ac_ext <<_ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5467 #include <ac_nonexistent.h>
5469 if { (ac_try="$ac_cpp conftest.$ac_ext"
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5477 grep -v '^ *+' conftest.er1 >conftest.err
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } >/dev/null; then
5482 if test -s conftest.err; then
5483 ac_cpp_err=$ac_c_preproc_warn_flag
5484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5491 if test -z "$ac_cpp_err"; then
5492 # Broken: success on invalid input.
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 # Passes both tests.
5503 rm -f conftest.err conftest.$ac_ext
5506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5507 rm -f conftest.err conftest.$ac_ext
5508 if $ac_preproc_ok; then
5520 { echo "$as_me:$LINENO: result: $CPP" >&5
5521 echo "${ECHO_T}$CPP" >&6; }
5523 for ac_c_preproc_warn_flag in '' yes
5525 # Use a header file that comes with gcc, so configuring glibc
5526 # with a fresh cross-compiler works.
5527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5528 # <limits.h> exists even on freestanding compilers.
5529 # On the NeXT, cc -E runs the code through the compiler's parser,
5530 # not just through cpp. "Syntax error" is here to catch this case.
5531 cat >conftest.$ac_ext <<_ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5538 # include <limits.h>
5540 # include <assert.h>
5544 if { (ac_try="$ac_cpp conftest.$ac_ext"
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5552 grep -v '^ *+' conftest.er1 >conftest.err
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev/null; then
5557 if test -s conftest.err; then
5558 ac_cpp_err=$ac_c_preproc_warn_flag
5559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5566 if test -z "$ac_cpp_err"; then
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 # Broken: fails on valid input.
5576 rm -f conftest.err conftest.$ac_ext
5578 # OK, works on sane cases. Now check whether nonexistent headers
5579 # can be detected and how.
5580 cat >conftest.$ac_ext <<_ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #include <ac_nonexistent.h>
5588 if { (ac_try="$ac_cpp conftest.$ac_ext"
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5596 grep -v '^ *+' conftest.er1 >conftest.err
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } >/dev/null; then
5601 if test -s conftest.err; then
5602 ac_cpp_err=$ac_c_preproc_warn_flag
5603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5610 if test -z "$ac_cpp_err"; then
5611 # Broken: success on invalid input.
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 # Passes both tests.
5622 rm -f conftest.err conftest.$ac_ext
5625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5626 rm -f conftest.err conftest.$ac_ext
5627 if $ac_preproc_ok; then
5630 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5631 See \`config.log' for more details." >&5
5632 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5633 See \`config.log' for more details." >&2;}
5634 { (exit 1); exit 1; }; }
5638 ac_cpp='$CPP $CPPFLAGS'
5639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5644 ac_cpp='$CPP $CPPFLAGS'
5645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5648 if test -n "$ac_tool_prefix"; then
5651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5655 if test "${ac_cv_prog_CC+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 if test -n "$CC"; then
5659 ac_cv_prog_CC="$CC" # Let the user override the test.
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 if test -n "$CC"; then
5680 { echo "$as_me:$LINENO: result: $CC" >&5
5681 echo "${ECHO_T}$CC" >&6; }
5683 { echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6; }
5688 test -n "$CC" && break
5691 if test -z "$CC"; then
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 if test -n "$ac_ct_CC"; then
5703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5712 ac_cv_prog_ac_ct_CC="$ac_prog"
5713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5723 if test -n "$ac_ct_CC"; then
5724 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5725 echo "${ECHO_T}$ac_ct_CC" >&6; }
5727 { echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6; }
5732 test -n "$ac_ct_CC" && break
5735 if test "x$ac_ct_CC" = x; then
5738 case $cross_compiling:$ac_tool_warned in
5740 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5741 whose name does not start with the host triplet. If you think this
5742 configuration is useful to you, please write to autoconf@gnu.org." >&5
5743 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5744 whose name does not start with the host triplet. If you think this
5745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5746 ac_tool_warned=yes ;;
5753 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5754 See \`config.log' for more details." >&5
5755 echo "$as_me: error: no acceptable C compiler found in \$PATH
5756 See \`config.log' for more details." >&2;}
5757 { (exit 1); exit 1; }; }
5759 # Provide some information about the compiler.
5760 echo "$as_me:$LINENO: checking for C compiler version" >&5
5761 ac_compiler=`set X $ac_compile; echo $2`
5762 { (ac_try="$ac_compiler --version >&5"
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compiler --version >&5") 2>&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }
5772 { (ac_try="$ac_compiler -v >&5"
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compiler -v >&5") 2>&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }
5782 { (ac_try="$ac_compiler -V >&5"
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_compiler -V >&5") 2>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }
5793 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5794 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5795 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5825 grep -v '^ *+' conftest.er1 >conftest.err
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5862 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5863 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5864 GCC=`test $ac_compiler_gnu = yes && echo yes`
5865 ac_test_CFLAGS=${CFLAGS+set}
5866 ac_save_CFLAGS=$CFLAGS
5867 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5868 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5869 if test "${ac_cv_prog_cc_g+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 ac_save_c_werror_flag=$ac_c_werror_flag
5873 ac_c_werror_flag=yes
5876 cat >conftest.$ac_ext <<_ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5891 rm -f conftest.$ac_objext
5892 if { (ac_try="$ac_compile"
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5906 { (case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_try") 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest.$ac_objext'
5916 { (case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_try") 2>&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5931 cat >conftest.$ac_ext <<_ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5961 { (case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_try") 2>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; } &&
5970 { ac_try='test -s conftest.$ac_objext'
5971 { (case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_try") 2>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5985 ac_c_werror_flag=$ac_save_c_werror_flag
5987 cat >conftest.$ac_ext <<_ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
6002 rm -f conftest.$ac_objext
6003 if { (ac_try="$ac_compile"
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_compile") 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6017 { (case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_try") 2>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest.$ac_objext'
6027 { (case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_try") 2>&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; }; then
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 ac_c_werror_flag=$ac_save_c_werror_flag
6053 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6055 if test "$ac_test_CFLAGS" = set; then
6056 CFLAGS=$ac_save_CFLAGS
6057 elif test $ac_cv_prog_cc_g = yes; then
6058 if test "$GCC" = yes; then
6064 if test "$GCC" = yes; then
6070 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6071 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6072 if test "${ac_cv_prog_cc_c89+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 ac_cv_prog_cc_c89=no
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6085 #include <sys/types.h>
6086 #include <sys/stat.h>
6087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6088 struct buf { int x; };
6089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6090 static char *e (p, i)
6096 static char *f (char * (*g) (char **, int), char **p, ...)
6101 s = g (p, va_arg (v,int));
6106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6107 function prototypes and stuff, but not '\xHH' hex character constants.
6108 These don't provoke an error unfortunately, instead are silently treated
6109 as 'x'. The following induces an error, until -std is added to get
6110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6111 array size at least. It's necessary to write '\x00'==0 to get something
6112 that's true only with -std. */
6113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6116 inside strings and character constants. */
6118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6120 int test (int i, double x);
6121 struct s1 {int (*f) (int a);};
6122 struct s2 {int (*f) (double a);};
6123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6137 CC="$ac_save_CC $ac_arg"
6138 rm -f conftest.$ac_objext
6139 if { (ac_try="$ac_compile"
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_compile") 2>conftest.er1
6147 grep -v '^ *+' conftest.er1 >conftest.err
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
6152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6153 { (case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_try") 2>&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest.$ac_objext'
6163 { (case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_try") 2>&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 ac_cv_prog_cc_c89=$ac_arg
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6180 rm -f core conftest.err conftest.$ac_objext
6181 test "x$ac_cv_prog_cc_c89" != "xno" && break
6183 rm -f conftest.$ac_ext
6188 case "x$ac_cv_prog_cc_c89" in
6190 { echo "$as_me:$LINENO: result: none needed" >&5
6191 echo "${ECHO_T}none needed" >&6; } ;;
6193 { echo "$as_me:$LINENO: result: unsupported" >&5
6194 echo "${ECHO_T}unsupported" >&6; } ;;
6196 CC="$CC $ac_cv_prog_cc_c89"
6197 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6198 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209 ac_cpp='$CXXCPP $CPPFLAGS'
6210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6213 if test -z "$CXX"; then
6214 if test -n "$CCC"; then
6217 if test -n "$ac_tool_prefix"; then
6220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_prog_CXX+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 if test -n "$CXX"; then
6228 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 if test -n "$CXX"; then
6249 { echo "$as_me:$LINENO: result: $CXX" >&5
6250 echo "${ECHO_T}$CXX" >&6; }
6252 { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6257 test -n "$CXX" && break
6260 if test -z "$CXX"; then
6264 # Extract the first word of "$ac_prog", so it can be a program name with args.
6265 set dummy $ac_prog; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 if test -n "$ac_ct_CXX"; then
6272 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_ac_ct_CXX="$ac_prog"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6292 if test -n "$ac_ct_CXX"; then
6293 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6294 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6301 test -n "$ac_ct_CXX" && break
6304 if test "x$ac_ct_CXX" = x; then
6307 case $cross_compiling:$ac_tool_warned in
6309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6310 whose name does not start with the host triplet. If you think this
6311 configuration is useful to you, please write to autoconf@gnu.org." >&5
6312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6313 whose name does not start with the host triplet. If you think this
6314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6315 ac_tool_warned=yes ;;
6323 # Provide some information about the compiler.
6324 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6325 ac_compiler=`set X $ac_compile; echo $2`
6326 { (ac_try="$ac_compiler --version >&5"
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_compiler --version >&5") 2>&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }
6336 { (ac_try="$ac_compiler -v >&5"
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compiler -v >&5") 2>&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }
6346 { (ac_try="$ac_compiler -V >&5"
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_compiler -V >&5") 2>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }
6357 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6358 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6359 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 cat >conftest.$ac_ext <<_ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6380 rm -f conftest.$ac_objext
6381 if { (ac_try="$ac_compile"
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6426 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6427 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6428 GXX=`test $ac_compiler_gnu = yes && echo yes`
6429 ac_test_CXXFLAGS=${CXXFLAGS+set}
6430 ac_save_CXXFLAGS=$CXXFLAGS
6431 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6432 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6433 if test "${ac_cv_prog_cxx_g+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6437 ac_cxx_werror_flag=yes
6440 cat >conftest.$ac_ext <<_ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6455 rm -f conftest.$ac_objext
6456 if { (ac_try="$ac_compile"
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_compile") 2>conftest.er1
6464 grep -v '^ *+' conftest.er1 >conftest.err
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6470 { (case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_try") 2>&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest.$ac_objext'
6480 { (case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_try") 2>&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6489 ac_cv_prog_cxx_g=yes
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6495 cat >conftest.$ac_ext <<_ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6510 rm -f conftest.$ac_objext
6511 if { (ac_try="$ac_compile"
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_compile") 2>conftest.er1
6519 grep -v '^ *+' conftest.er1 >conftest.err
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6525 { (case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_try") 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_try") 2>&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6566 rm -f conftest.$ac_objext
6567 if { (ac_try="$ac_compile"
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_compile") 2>conftest.er1
6575 grep -v '^ *+' conftest.er1 >conftest.err
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6581 { (case "(($ac_try" in
6582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_try") 2>&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest.$ac_objext'
6591 { (case "(($ac_try" in
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_try") 2>&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_prog_cxx_g=yes
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6617 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6618 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6619 if test "$ac_test_CXXFLAGS" = set; then
6620 CXXFLAGS=$ac_save_CXXFLAGS
6621 elif test $ac_cv_prog_cxx_g = yes; then
6622 if test "$GXX" = yes; then
6628 if test "$GXX" = yes; then
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6642 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6643 if test "${lt_cv_path_NM+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 if test -n "$NM"; then
6647 # Let the user override the test.
6650 lt_nm_to_check="${ac_tool_prefix}nm"
6651 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6652 lt_nm_to_check="$lt_nm_to_check nm"
6654 for lt_tmp_nm in $lt_nm_to_check; do
6655 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6656 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6658 test -z "$ac_dir" && ac_dir=.
6659 tmp_nm="$ac_dir/$lt_tmp_nm"
6660 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6661 # Check to see if the nm accepts a BSD-compat flag.
6662 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6663 # nm: unknown option "B" ignored
6664 # Tru64's nm complains that /dev/null is an invalid object file
6665 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6666 */dev/null* | *'Invalid file or object type'*)
6667 lt_cv_path_NM="$tmp_nm -B"
6671 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6673 lt_cv_path_NM="$tmp_nm -p"
6677 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6678 continue # so that we can try to find one that supports BSD flags
6687 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6690 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6691 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6696 { echo "$as_me:$LINENO: checking for GNU make" >&5
6697 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6698 if test "${llvm_cv_gnu_make_command+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 llvm_cv_gnu_make_command=''
6702 for a in "$MAKE" make gmake gnumake ; do
6703 if test -z "$a" ; then continue ; fi ;
6704 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6706 llvm_cv_gnu_make_command=$a ;
6711 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6712 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6713 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6717 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6718 echo "${ECHO_T}\"Not found\"" >&6; };
6722 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6723 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6725 if test "$LN_S" = "ln -s"; then
6726 { echo "$as_me:$LINENO: result: yes" >&5
6727 echo "${ECHO_T}yes" >&6; }
6729 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6730 echo "${ECHO_T}no, using $LN_S" >&6; }
6733 # Extract the first word of "cmp", so it can be a program name with args.
6734 set dummy cmp; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_CMP+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6765 if test -n "$CMP"; then
6766 { echo "$as_me:$LINENO: result: $CMP" >&5
6767 echo "${ECHO_T}$CMP" >&6; }
6769 { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6774 # Extract the first word of "cp", so it can be a program name with args.
6775 set dummy cp; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_path_CP+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6806 if test -n "$CP"; then
6807 { echo "$as_me:$LINENO: result: $CP" >&5
6808 echo "${ECHO_T}$CP" >&6; }
6810 { echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6; }
6815 # Extract the first word of "date", so it can be a program name with args.
6816 set dummy date; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_path_DATE+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6846 DATE=$ac_cv_path_DATE
6847 if test -n "$DATE"; then
6848 { echo "$as_me:$LINENO: result: $DATE" >&5
6849 echo "${ECHO_T}$DATE" >&6; }
6851 { echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6; }
6856 # Extract the first word of "find", so it can be a program name with args.
6857 set dummy find; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_path_FIND+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6887 FIND=$ac_cv_path_FIND
6888 if test -n "$FIND"; then
6889 { echo "$as_me:$LINENO: result: $FIND" >&5
6890 echo "${ECHO_T}$FIND" >&6; }
6892 { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6897 # Extract the first word of "grep", so it can be a program name with args.
6898 set dummy grep; ac_word=$2
6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901 if test "${ac_cv_path_GREP+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6928 GREP=$ac_cv_path_GREP
6929 if test -n "$GREP"; then
6930 { echo "$as_me:$LINENO: result: $GREP" >&5
6931 echo "${ECHO_T}$GREP" >&6; }
6933 { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6938 # Extract the first word of "mkdir", so it can be a program name with args.
6939 set dummy mkdir; ac_word=$2
6940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6942 if test "${ac_cv_path_MKDIR+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6969 MKDIR=$ac_cv_path_MKDIR
6970 if test -n "$MKDIR"; then
6971 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6972 echo "${ECHO_T}$MKDIR" >&6; }
6974 { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6979 # Extract the first word of "mv", so it can be a program name with args.
6980 set dummy mv; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_path_MV+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7011 if test -n "$MV"; then
7012 { echo "$as_me:$LINENO: result: $MV" >&5
7013 echo "${ECHO_T}$MV" >&6; }
7015 { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7020 if test -n "$ac_tool_prefix"; then
7021 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7022 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025 if test "${ac_cv_prog_RANLIB+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 if test -n "$RANLIB"; then
7029 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 RANLIB=$ac_cv_prog_RANLIB
7049 if test -n "$RANLIB"; then
7050 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7051 echo "${ECHO_T}$RANLIB" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7059 if test -z "$ac_cv_prog_RANLIB"; then
7060 ac_ct_RANLIB=$RANLIB
7061 # Extract the first word of "ranlib", so it can be a program name with args.
7062 set dummy ranlib; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 if test -n "$ac_ct_RANLIB"; then
7069 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_prog_ac_ct_RANLIB="ranlib"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7089 if test -n "$ac_ct_RANLIB"; then
7090 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7091 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7093 { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7097 if test "x$ac_ct_RANLIB" = x; then
7100 case $cross_compiling:$ac_tool_warned in
7102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7103 whose name does not start with the host triplet. If you think this
7104 configuration is useful to you, please write to autoconf@gnu.org." >&5
7105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7106 whose name does not start with the host triplet. If you think this
7107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7108 ac_tool_warned=yes ;;
7110 RANLIB=$ac_ct_RANLIB
7113 RANLIB="$ac_cv_prog_RANLIB"
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ar; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_prog_AR+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 if test -n "$AR"; then
7125 ac_cv_prog_AR="$AR" # Let the user override the test.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_AR="${ac_tool_prefix}ar"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 if test -n "$AR"; then
7146 { echo "$as_me:$LINENO: result: $AR" >&5
7147 echo "${ECHO_T}$AR" >&6; }
7149 { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7155 if test -z "$ac_cv_prog_AR"; then
7157 # Extract the first word of "ar", so it can be a program name with args.
7158 set dummy ar; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 if test -n "$ac_ct_AR"; then
7165 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_ac_ct_AR="ar"
7175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7185 if test -n "$ac_ct_AR"; then
7186 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7187 echo "${ECHO_T}$ac_ct_AR" >&6; }
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7193 if test "x$ac_ct_AR" = x; then
7196 case $cross_compiling:$ac_tool_warned in
7198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7199 whose name does not start with the host triplet. If you think this
7200 configuration is useful to you, please write to autoconf@gnu.org." >&5
7201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7202 whose name does not start with the host triplet. If you think this
7203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7204 ac_tool_warned=yes ;;
7212 # Extract the first word of "rm", so it can be a program name with args.
7213 set dummy rm; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_RM+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7244 if test -n "$RM"; then
7245 { echo "$as_me:$LINENO: result: $RM" >&5
7246 echo "${ECHO_T}$RM" >&6; }
7248 { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7253 # Extract the first word of "sed", so it can be a program name with args.
7254 set dummy sed; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_SED+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7285 if test -n "$SED"; then
7286 { echo "$as_me:$LINENO: result: $SED" >&5
7287 echo "${ECHO_T}$SED" >&6; }
7289 { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7294 # Extract the first word of "tar", so it can be a program name with args.
7295 set dummy tar; ac_word=$2
7296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298 if test "${ac_cv_path_TAR+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7313 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7326 if test -n "$TAR"; then
7327 { echo "$as_me:$LINENO: result: $TAR" >&5
7328 echo "${ECHO_T}$TAR" >&6; }
7330 { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7335 # Extract the first word of "pwd", so it can be a program name with args.
7336 set dummy pwd; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_path_BINPWD+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7366 BINPWD=$ac_cv_path_BINPWD
7367 if test -n "$BINPWD"; then
7368 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7369 echo "${ECHO_T}$BINPWD" >&6; }
7371 { echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6; }
7377 # Extract the first word of "Graphviz", so it can be a program name with args.
7378 set dummy Graphviz; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7408 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7409 if test -n "$GRAPHVIZ"; then
7410 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7411 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7413 { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7418 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7420 cat >>confdefs.h <<\_ACEOF
7421 #define HAVE_GRAPHVIZ 1
7424 if test "$llvm_cv_os_type" = "MingW" ; then
7425 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7428 cat >>confdefs.h <<_ACEOF
7429 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7433 # Extract the first word of "dot", so it can be a program name with args.
7434 set dummy dot; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_DOT+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7465 if test -n "$DOT"; then
7466 { echo "$as_me:$LINENO: result: $DOT" >&5
7467 echo "${ECHO_T}$DOT" >&6; }
7469 { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7474 if test "$DOT" != "echo dot" ; then
7476 cat >>confdefs.h <<\_ACEOF
7480 if test "$llvm_cv_os_type" = "MingW" ; then
7481 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7484 cat >>confdefs.h <<_ACEOF
7485 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7489 # Extract the first word of "fdp", so it can be a program name with args.
7490 set dummy fdp; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_FDP+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7521 if test -n "$FDP"; then
7522 { echo "$as_me:$LINENO: result: $FDP" >&5
7523 echo "${ECHO_T}$FDP" >&6; }
7525 { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7530 if test "$FDP" != "echo fdp" ; then
7532 cat >>confdefs.h <<\_ACEOF
7536 if test "$llvm_cv_os_type" = "MingW" ; then
7537 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7540 cat >>confdefs.h <<_ACEOF
7541 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7545 # Extract the first word of "neato", so it can be a program name with args.
7546 set dummy neato; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_path_NEATO+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7576 NEATO=$ac_cv_path_NEATO
7577 if test -n "$NEATO"; then
7578 { echo "$as_me:$LINENO: result: $NEATO" >&5
7579 echo "${ECHO_T}$NEATO" >&6; }
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7586 if test "$NEATO" != "echo neato" ; then
7588 cat >>confdefs.h <<\_ACEOF
7589 #define HAVE_NEATO 1
7592 if test "$llvm_cv_os_type" = "MingW" ; then
7593 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7596 cat >>confdefs.h <<_ACEOF
7597 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7601 # Extract the first word of "twopi", so it can be a program name with args.
7602 set dummy twopi; ac_word=$2
7603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7605 if test "${ac_cv_path_TWOPI+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7620 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7632 TWOPI=$ac_cv_path_TWOPI
7633 if test -n "$TWOPI"; then
7634 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7635 echo "${ECHO_T}$TWOPI" >&6; }
7637 { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7642 if test "$TWOPI" != "echo twopi" ; then
7644 cat >>confdefs.h <<\_ACEOF
7645 #define HAVE_TWOPI 1
7648 if test "$llvm_cv_os_type" = "MingW" ; then
7649 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7652 cat >>confdefs.h <<_ACEOF
7653 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7657 # Extract the first word of "circo", so it can be a program name with args.
7658 set dummy circo; ac_word=$2
7659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7661 if test "${ac_cv_path_CIRCO+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7676 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7688 CIRCO=$ac_cv_path_CIRCO
7689 if test -n "$CIRCO"; then
7690 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7691 echo "${ECHO_T}$CIRCO" >&6; }
7693 { echo "$as_me:$LINENO: result: no" >&5
7694 echo "${ECHO_T}no" >&6; }
7698 if test "$CIRCO" != "echo circo" ; then
7700 cat >>confdefs.h <<\_ACEOF
7701 #define HAVE_CIRCO 1
7704 if test "$llvm_cv_os_type" = "MingW" ; then
7705 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7708 cat >>confdefs.h <<_ACEOF
7709 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7713 for ac_prog in gv gsview32
7715 # Extract the first word of "$ac_prog", so it can be a program name with args.
7716 set dummy $ac_prog; ac_word=$2
7717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719 if test "${ac_cv_path_GV+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 if test -n "$GV"; then
7747 { echo "$as_me:$LINENO: result: $GV" >&5
7748 echo "${ECHO_T}$GV" >&6; }
7750 { echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6; }
7755 test -n "$GV" && break
7757 test -n "$GV" || GV="echo gv"
7759 if test "$GV" != "echo gv" ; then
7761 cat >>confdefs.h <<\_ACEOF
7765 if test "$llvm_cv_os_type" = "MingW" ; then
7766 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7769 cat >>confdefs.h <<_ACEOF
7770 #define LLVM_PATH_GV "$GV${EXEEXT}"
7774 # Extract the first word of "dotty", so it can be a program name with args.
7775 set dummy dotty; ac_word=$2
7776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7778 if test "${ac_cv_path_DOTTY+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7793 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7805 DOTTY=$ac_cv_path_DOTTY
7806 if test -n "$DOTTY"; then
7807 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7808 echo "${ECHO_T}$DOTTY" >&6; }
7810 { echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6; }
7815 if test "$DOTTY" != "echo dotty" ; then
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_DOTTY 1
7821 if test "$llvm_cv_os_type" = "MingW" ; then
7822 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7825 cat >>confdefs.h <<_ACEOF
7826 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7832 # Extract the first word of "perl", so it can be a program name with args.
7833 set dummy perl; ac_word=$2
7834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836 if test "${ac_cv_path_PERL+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7851 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7863 PERL=$ac_cv_path_PERL
7864 if test -n "$PERL"; then
7865 { echo "$as_me:$LINENO: result: $PERL" >&5
7866 echo "${ECHO_T}$PERL" >&6; }
7868 { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7873 if test "$PERL" != "none"; then
7874 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7875 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7876 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7877 { echo "$as_me:$LINENO: result: yes" >&5
7878 echo "${ECHO_T}yes" >&6; }
7881 { echo "$as_me:$LINENO: result: not found" >&5
7882 echo "${ECHO_T}not found" >&6; }
7887 if test x"$PERL" = xnone; then
7890 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7891 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7892 { (exit 1); exit 1; }; }
7898 # Find a good install program. We prefer a C program (faster),
7899 # so one script is as good as another. But avoid the broken or
7900 # incompatible versions:
7901 # SysV /etc/install, /usr/sbin/install
7902 # SunOS /usr/etc/install
7903 # IRIX /sbin/install
7905 # AmigaOS /C/install, which installs bootblocks on floppy discs
7906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7909 # OS/2's system install, which has a completely different semantic
7910 # ./install, which can be erroneously created by make from ./install.sh.
7911 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7912 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7913 if test -z "$INSTALL"; then
7914 if test "${ac_cv_path_install+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 test -z "$as_dir" && as_dir=.
7922 # Account for people who put trailing slashes in PATH elements.
7924 ./ | .// | /cC/* | \
7925 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7926 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7929 # OSF1 and SCO ODT 3.0 have their own names for install.
7930 # Don't use installbsd from OSF since it installs stuff as root
7932 for ac_prog in ginstall scoinst install; do
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7935 if test $ac_prog = install &&
7936 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7937 # AIX install. It has an incompatible calling convention.
7939 elif test $ac_prog = install &&
7940 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7941 # program-specific install script used by HP pwplus--don't use.
7944 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7957 if test "${ac_cv_path_install+set}" = set; then
7958 INSTALL=$ac_cv_path_install
7960 # As a last resort, use the slow shell script. Don't cache a
7961 # value for INSTALL within a source directory, because that will
7962 # break other packages using the cache if that directory is
7963 # removed, or if the value is a relative name.
7964 INSTALL=$ac_install_sh
7967 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7968 echo "${ECHO_T}$INSTALL" >&6; }
7970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7971 # It thinks the first close brace ends the variable substitution.
7972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7979 # Extract the first word of "bzip2", so it can be a program name with args.
7980 set dummy bzip2; ac_word=$2
7981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7983 if test "${ac_cv_path_BZIP2+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 BZIP2=$ac_cv_path_BZIP2
8010 if test -n "$BZIP2"; then
8011 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8012 echo "${ECHO_T}$BZIP2" >&6; }
8014 { echo "$as_me:$LINENO: result: no" >&5
8015 echo "${ECHO_T}no" >&6; }
8019 # Extract the first word of "doxygen", so it can be a program name with args.
8020 set dummy doxygen; ac_word=$2
8021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8023 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8038 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8049 DOXYGEN=$ac_cv_path_DOXYGEN
8050 if test -n "$DOXYGEN"; then
8051 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8052 echo "${ECHO_T}$DOXYGEN" >&6; }
8054 { echo "$as_me:$LINENO: result: no" >&5
8055 echo "${ECHO_T}no" >&6; }
8059 # Extract the first word of "groff", so it can be a program name with args.
8060 set dummy groff; ac_word=$2
8061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8063 if test "${ac_cv_path_GROFF+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8078 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 GROFF=$ac_cv_path_GROFF
8090 if test -n "$GROFF"; then
8091 { echo "$as_me:$LINENO: result: $GROFF" >&5
8092 echo "${ECHO_T}$GROFF" >&6; }
8094 { echo "$as_me:$LINENO: result: no" >&5
8095 echo "${ECHO_T}no" >&6; }
8099 # Extract the first word of "gzip", so it can be a program name with args.
8100 set dummy gzip; ac_word=$2
8101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8103 if test "${ac_cv_path_GZIP+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8118 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 GZIP=$ac_cv_path_GZIP
8130 if test -n "$GZIP"; then
8131 { echo "$as_me:$LINENO: result: $GZIP" >&5
8132 echo "${ECHO_T}$GZIP" >&6; }
8134 { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8139 # Extract the first word of "pod2html", so it can be a program name with args.
8140 set dummy pod2html; ac_word=$2
8141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8143 if test "${ac_cv_path_POD2HTML+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8158 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 POD2HTML=$ac_cv_path_POD2HTML
8170 if test -n "$POD2HTML"; then
8171 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8172 echo "${ECHO_T}$POD2HTML" >&6; }
8174 { echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6; }
8179 # Extract the first word of "pod2man", so it can be a program name with args.
8180 set dummy pod2man; ac_word=$2
8181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183 if test "${ac_cv_path_POD2MAN+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8198 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 POD2MAN=$ac_cv_path_POD2MAN
8210 if test -n "$POD2MAN"; then
8211 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8212 echo "${ECHO_T}$POD2MAN" >&6; }
8214 { echo "$as_me:$LINENO: result: no" >&5
8215 echo "${ECHO_T}no" >&6; }
8219 # Extract the first word of "runtest", so it can be a program name with args.
8220 set dummy runtest; ac_word=$2
8221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8223 if test "${ac_cv_path_RUNTEST+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8238 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 RUNTEST=$ac_cv_path_RUNTEST
8250 if test -n "$RUNTEST"; then
8251 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8252 echo "${ECHO_T}$RUNTEST" >&6; }
8254 { echo "$as_me:$LINENO: result: no" >&5
8255 echo "${ECHO_T}no" >&6; }
8261 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8262 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8264 # Check whether --with-tclinclude was given.
8265 if test "${with_tclinclude+set}" = set; then
8266 withval=$with_tclinclude; with_tclinclude=${withval}
8271 if test "${ac_cv_path_tclsh+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 if test x"${with_tclinclude}" != x ; then
8276 if test -f ${with_tclinclude}/tclsh ; then
8277 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8278 elif test -f ${with_tclinclude}/src/tclsh ; then
8279 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8281 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8282 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8283 { (exit 1); exit 1; }; }
8289 if test x"${ac_cv_path_tclsh}" = x ; then
8290 { echo "$as_me:$LINENO: result: none" >&5
8291 echo "${ECHO_T}none" >&6; }
8292 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
8294 # Extract the first word of "$ac_prog", so it can be a program name with args.
8295 set dummy $ac_prog; ac_word=$2
8296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298 if test "${ac_cv_path_TCLSH+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 TCLSH=$ac_cv_path_TCLSH
8325 if test -n "$TCLSH"; then
8326 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8327 echo "${ECHO_T}$TCLSH" >&6; }
8329 { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8334 test -n "$TCLSH" && break
8337 if test x"${TCLSH}" = x ; then
8338 ac_cv_path_tclsh='';
8340 ac_cv_path_tclsh="${TCLSH}";
8343 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8344 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8345 TCLSH="${ac_cv_path_tclsh}"
8349 # Extract the first word of "zip", so it can be a program name with args.
8350 set dummy zip; ac_word=$2
8351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8353 if test "${ac_cv_path_ZIP+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8368 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 if test -n "$ZIP"; then
8381 { echo "$as_me:$LINENO: result: $ZIP" >&5
8382 echo "${ECHO_T}$ZIP" >&6; }
8384 { echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6; }
8389 for ac_prog in ocamlc
8391 # Extract the first word of "$ac_prog", so it can be a program name with args.
8392 set dummy $ac_prog; ac_word=$2
8393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8395 if test "${ac_cv_path_OCAMLC+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8410 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 OCAMLC=$ac_cv_path_OCAMLC
8422 if test -n "$OCAMLC"; then
8423 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8424 echo "${ECHO_T}$OCAMLC" >&6; }
8426 { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8431 test -n "$OCAMLC" && break
8434 for ac_prog in ocamlopt
8436 # Extract the first word of "$ac_prog", so it can be a program name with args.
8437 set dummy $ac_prog; ac_word=$2
8438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8440 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8455 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 OCAMLOPT=$ac_cv_path_OCAMLOPT
8467 if test -n "$OCAMLOPT"; then
8468 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8469 echo "${ECHO_T}$OCAMLOPT" >&6; }
8471 { echo "$as_me:$LINENO: result: no" >&5
8472 echo "${ECHO_T}no" >&6; }
8476 test -n "$OCAMLOPT" && break
8479 for ac_prog in ocamldep
8481 # Extract the first word of "$ac_prog", so it can be a program name with args.
8482 set dummy $ac_prog; ac_word=$2
8483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8485 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8500 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 OCAMLDEP=$ac_cv_path_OCAMLDEP
8512 if test -n "$OCAMLDEP"; then
8513 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8514 echo "${ECHO_T}$OCAMLDEP" >&6; }
8516 { echo "$as_me:$LINENO: result: no" >&5
8517 echo "${ECHO_T}no" >&6; }
8521 test -n "$OCAMLDEP" && break
8524 for ac_prog in ocamldoc
8526 # Extract the first word of "$ac_prog", so it can be a program name with args.
8527 set dummy $ac_prog; ac_word=$2
8528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8530 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8545 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 OCAMLDOC=$ac_cv_path_OCAMLDOC
8557 if test -n "$OCAMLDOC"; then
8558 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8559 echo "${ECHO_T}$OCAMLDOC" >&6; }
8561 { echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6; }
8566 test -n "$OCAMLDOC" && break
8569 for ac_prog in gas as
8571 # Extract the first word of "$ac_prog", so it can be a program name with args.
8572 set dummy $ac_prog; ac_word=$2
8573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8575 if test "${ac_cv_path_GAS+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8580 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587 test -z "$as_dir" && as_dir=.
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8590 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 if test -n "$GAS"; then
8603 { echo "$as_me:$LINENO: result: $GAS" >&5
8604 echo "${ECHO_T}$GAS" >&6; }
8606 { echo "$as_me:$LINENO: result: no" >&5
8607 echo "${ECHO_T}no" >&6; }
8611 test -n "$GAS" && break
8615 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8616 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8617 if test "${llvm_cv_link_use_r+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 ac_cpp='$CPP $CPPFLAGS'
8622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8627 CFLAGS="$CFLAGS -Wl,-R."
8628 cat >conftest.$ac_ext <<_ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (ac_try="$ac_link"
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_link") 2>conftest.er1
8652 grep -v '^ *+' conftest.er1 >conftest.err
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
8657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8658 { (case "(($ac_try" in
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663 (eval "$ac_try") 2>&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; } &&
8667 { ac_try='test -s conftest$ac_exeext'
8668 { (case "(($ac_try" in
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_try") 2>&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 llvm_cv_link_use_r=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 llvm_cv_link_use_r=no
8685 rm -f core conftest.err conftest.$ac_objext \
8686 conftest$ac_exeext conftest.$ac_ext
8689 ac_cpp='$CPP $CPPFLAGS'
8690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8696 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8697 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8698 if test "$llvm_cv_link_use_r" = yes ; then
8700 cat >>confdefs.h <<\_ACEOF
8701 #define HAVE_LINK_R 1
8707 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8708 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8709 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 ac_cpp='$CPP $CPPFLAGS'
8714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8719 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8720 cat >conftest.$ac_ext <<_ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8735 rm -f conftest.$ac_objext conftest$ac_exeext
8736 if { (ac_try="$ac_link"
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_link") 2>conftest.er1
8744 grep -v '^ *+' conftest.er1 >conftest.err
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8759 { ac_try='test -s conftest$ac_exeext'
8760 { (case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_try") 2>&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 llvm_cv_link_use_export_dynamic=yes
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 llvm_cv_link_use_export_dynamic=no
8777 rm -f core conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8781 ac_cpp='$CPP $CPPFLAGS'
8782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8788 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8789 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8790 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8792 cat >>confdefs.h <<\_ACEOF
8793 #define HAVE_LINK_EXPORT_DYNAMIC 1
8799 { echo "$as_me:$LINENO: checking for compiler -Wl,-retain-symbols-file option" >&5
8800 echo $ECHO_N "checking for compiler -Wl,-retain-symbols-file option... $ECHO_C" >&6; }
8801 if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 ac_cpp='$CPP $CPPFLAGS'
8806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8812 # The following code is from the autoconf manual,
8813 # "11.13: Limitations of Usual Tools".
8814 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8815 # Use mktemp if possible; otherwise fall back on mkdir,
8816 # with $RANDOM to make collisions less likely.
8820 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8822 test -n "$tmp" && test -d "$tmp"
8824 tmp=$TMPDIR/foo$$-$RANDOM
8825 (umask 077 && mkdir "$tmp")
8828 echo "main" > "$tmp/exports"
8830 CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports"
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_link") 2>conftest.er1
8855 grep -v '^ *+' conftest.er1 >conftest.err
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8861 { (case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_try") 2>&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; } &&
8870 { ac_try='test -s conftest$ac_exeext'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 llvm_cv_link_use_retain_symbols_file=yes
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 llvm_cv_link_use_retain_symbols_file=no
8888 rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8894 ac_cpp='$CPP $CPPFLAGS'
8895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8901 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_retain_symbols_file" >&5
8902 echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; }
8903 if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then
8904 HAVE_LINK_RETAIN_SYMBOLS_FILE=1
8911 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8912 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8913 if test "${ac_cv_c_const+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8926 /* FIXME: Include the comments suggested by Paul. */
8928 /* Ultrix mips cc rejects this. */
8929 typedef int charset[2];
8931 /* SunOS 4.1.1 cc rejects this. */
8932 char const *const *ccp;
8934 /* NEC SVR4.0.2 mips cc rejects this. */
8935 struct point {int x, y;};
8936 static struct point const zero = {0,0};
8937 /* AIX XL C 1.02.0.0 rejects this.
8938 It does not let you subtract one const X* pointer from another in
8939 an arm of an if-expression whose if-part is not a constant
8941 const char *g = "string";
8942 ccp = &g + (g ? g-g : 0);
8943 /* HPUX 7.0 cc rejects these. */
8946 ccp = (char const *const *) p;
8947 { /* SCO 3.2v4 cc rejects this. */
8949 char const *s = 0 ? (char *) 0 : (char const *) 0;
8954 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8956 const int *foo = &x[0];
8959 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8960 typedef const int *iptr;
8964 { /* AIX XL C 1.02.0.0 rejects this saying
8965 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8966 struct s { int j; const int *ap[3]; };
8967 struct s *b; b->j = 5;
8969 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8973 return !x[0] && !zero.x;
8980 rm -f conftest.$ac_objext
8981 if { (ac_try="$ac_compile"
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_compile") 2>conftest.er1
8989 grep -v '^ *+' conftest.er1 >conftest.err
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8995 { (case "(($ac_try" in
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_try") 2>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; } &&
9004 { ac_try='test -s conftest.$ac_objext'
9005 { (case "(($ac_try" in
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010 (eval "$ac_try") 2>&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9025 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9026 if test $ac_cv_c_const = no; then
9028 cat >>confdefs.h <<\_ACEOF
9040 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9041 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9042 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9043 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 cat >conftest.$ac_ext <<_ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053 #include <sys/types.h>
9065 rm -f conftest.$ac_objext
9066 if { (ac_try="$ac_compile"
9068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069 *) ac_try_echo=$ac_try;;
9071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072 (eval "$ac_compile") 2>conftest.er1
9074 grep -v '^ *+' conftest.er1 >conftest.err
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9080 { (case "(($ac_try" in
9081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082 *) ac_try_echo=$ac_try;;
9084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9085 (eval "$ac_try") 2>&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; } &&
9089 { ac_try='test -s conftest.$ac_objext'
9090 { (case "(($ac_try" in
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_try") 2>&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9099 eval "$as_ac_Header=yes"
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 eval "$as_ac_Header=no"
9107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 ac_res=`eval echo '${'$as_ac_Header'}'`
9110 { echo "$as_me:$LINENO: result: $ac_res" >&5
9111 echo "${ECHO_T}$ac_res" >&6; }
9112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9113 cat >>confdefs.h <<_ACEOF
9114 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9117 ac_header_dirent=$ac_hdr; break
9121 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9122 if test $ac_header_dirent = dirent.h; then
9123 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9124 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9125 if test "${ac_cv_search_opendir+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 ac_func_search_save_LIBS=$LIBS
9129 cat >conftest.$ac_ext <<_ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9136 /* Override any GCC internal prototype to avoid an error.
9137 Use char because int might match the return type of a GCC
9138 builtin and then its argument prototype would still apply. */
9151 for ac_lib in '' dir; do
9152 if test -z "$ac_lib"; then
9153 ac_res="none required"
9156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9158 rm -f conftest.$ac_objext conftest$ac_exeext
9159 if { (ac_try="$ac_link"
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_link") 2>conftest.er1
9167 grep -v '^ *+' conftest.er1 >conftest.err
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } &&
9172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9173 { (case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_try") 2>&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest$ac_exeext'
9183 { (case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_try") 2>&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_cv_search_opendir=$ac_res
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9200 rm -f core conftest.err conftest.$ac_objext \
9202 if test "${ac_cv_search_opendir+set}" = set; then
9206 if test "${ac_cv_search_opendir+set}" = set; then
9209 ac_cv_search_opendir=no
9212 LIBS=$ac_func_search_save_LIBS
9214 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9215 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9216 ac_res=$ac_cv_search_opendir
9217 if test "$ac_res" != no; then
9218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9223 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9224 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9225 if test "${ac_cv_search_opendir+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 ac_func_search_save_LIBS=$LIBS
9229 cat >conftest.$ac_ext <<_ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9236 /* Override any GCC internal prototype to avoid an error.
9237 Use char because int might match the return type of a GCC
9238 builtin and then its argument prototype would still apply. */
9251 for ac_lib in '' x; do
9252 if test -z "$ac_lib"; then
9253 ac_res="none required"
9256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9258 rm -f conftest.$ac_objext conftest$ac_exeext
9259 if { (ac_try="$ac_link"
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_link") 2>conftest.er1
9267 grep -v '^ *+' conftest.er1 >conftest.err
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273 { (case "(($ac_try" in
9274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275 *) ac_try_echo=$ac_try;;
9277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9278 (eval "$ac_try") 2>&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (case "(($ac_try" in
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288 (eval "$ac_try") 2>&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; }; then
9292 ac_cv_search_opendir=$ac_res
9294 echo "$as_me: failed program was:" >&5
9295 sed 's/^/| /' conftest.$ac_ext >&5
9300 rm -f core conftest.err conftest.$ac_objext \
9302 if test "${ac_cv_search_opendir+set}" = set; then
9306 if test "${ac_cv_search_opendir+set}" = set; then
9309 ac_cv_search_opendir=no
9312 LIBS=$ac_func_search_save_LIBS
9314 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9315 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9316 ac_res=$ac_cv_search_opendir
9317 if test "$ac_res" != no; then
9318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9325 for ac_header in dlfcn.h
9327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 ac_res=`eval echo '${'$as_ac_Header'}'`
9335 { echo "$as_me:$LINENO: result: $ac_res" >&5
9336 echo "${ECHO_T}$ac_res" >&6; }
9338 # Is the header compilable?
9339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9341 cat >conftest.$ac_ext <<_ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 $ac_includes_default
9348 #include <$ac_header>
9350 rm -f conftest.$ac_objext
9351 if { (ac_try="$ac_compile"
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_compile") 2>conftest.er1
9359 grep -v '^ *+' conftest.er1 >conftest.err
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9374 { ac_try='test -s conftest.$ac_objext'
9375 { (case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_try") 2>&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9384 ac_header_compiler=yes
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9389 ac_header_compiler=no
9392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9394 echo "${ECHO_T}$ac_header_compiler" >&6; }
9396 # Is the header present?
9397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9399 cat >conftest.$ac_ext <<_ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9405 #include <$ac_header>
9407 if { (ac_try="$ac_cpp conftest.$ac_ext"
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9415 grep -v '^ *+' conftest.er1 >conftest.err
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } >/dev/null; then
9420 if test -s conftest.err; then
9421 ac_cpp_err=$ac_c_preproc_warn_flag
9422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9429 if test -z "$ac_cpp_err"; then
9430 ac_header_preproc=yes
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9435 ac_header_preproc=no
9438 rm -f conftest.err conftest.$ac_ext
9439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9440 echo "${ECHO_T}$ac_header_preproc" >&6; }
9442 # So? What about this header?
9443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9449 ac_header_preproc=yes
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9465 ## ----------------------------------- ##
9466 ## Report this to llvmbugs@cs.uiuc.edu ##
9467 ## ----------------------------------- ##
9469 ) | sed "s/^/$as_me: WARNING: /" >&2
9472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 eval "$as_ac_Header=\$ac_header_preproc"
9479 ac_res=`eval echo '${'$as_ac_Header'}'`
9480 { echo "$as_me:$LINENO: result: $ac_res" >&5
9481 echo "${ECHO_T}$ac_res" >&6; }
9484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9485 cat >>confdefs.h <<_ACEOF
9486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9493 # Check whether --enable-ltdl-install was given.
9494 if test "${enable_ltdl_install+set}" = set; then
9495 enableval=$enable_ltdl_install;
9501 if test x"${enable_ltdl_install-no}" != xno; then
9503 INSTALL_LTDL_FALSE='#'
9505 INSTALL_LTDL_TRUE='#'
9511 if test x"${enable_ltdl_convenience-no}" != xno; then
9512 CONVENIENCE_LTDL_TRUE=
9513 CONVENIENCE_LTDL_FALSE='#'
9515 CONVENIENCE_LTDL_TRUE='#'
9516 CONVENIENCE_LTDL_FALSE=
9520 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9521 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9523 libname_spec='lib$name'
9531 shlibpath_overrides_runpath=unknown
9533 dynamic_linker="$host_os ld.so"
9534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9535 if test "$GCC" = yes; then
9536 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9537 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9538 # if the path contains ";" then we assume it to be the separator
9539 # otherwise default to the standard path separator (i.e. ":") - it is
9540 # assumed that no part of a normal pathname contains ";" but that should
9541 # okay in the real world where ";" in dirpaths is itself problematic.
9542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9544 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9547 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9549 need_lib_prefix=unknown
9550 hardcode_into_libs=no
9552 # when you set need_version to no, make sure it does not cause -set_version
9553 # flags to be left without arguments
9554 need_version=unknown
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9560 shlibpath_var=LIBPATH
9562 # AIX 3 has no versioning support, so we append a major version to the name.
9563 soname_spec='${libname}${release}${shared_ext}$major'
9570 hardcode_into_libs=yes
9571 if test "$host_cpu" = ia64; then
9572 # AIX 5 supports IA64
9573 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9574 shlibpath_var=LD_LIBRARY_PATH
9576 # With GCC up to 2.95.x, collect2 would create an import file
9577 # for dependence libraries. The import file would start with
9578 # the line `#! .'. This would cause the generated library to
9579 # depend on `.', always an invalid library. This was fixed in
9580 # development snapshots of GCC prior to 3.0.
9582 aix4 | aix4.[01] | aix4.[01].*)
9583 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9585 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9592 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9593 # soname into executable. Probably we can add versioning support to
9594 # collect2, so additional links can be useful in future.
9595 if test "$aix_use_runtimelinking" = yes; then
9596 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9597 # instead of lib<name>.a to let people know that these are not
9598 # typical AIX shared libraries.
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 # We preserve .a as extension for shared libraries through AIX4.2
9602 # and later when we are not doing run time linking.
9603 library_names_spec='${libname}${release}.a $libname.a'
9604 soname_spec='${libname}${release}${shared_ext}$major'
9606 shlibpath_var=LIBPATH
9611 library_names_spec='$libname.ixlibrary $libname.a'
9612 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9613 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'
9617 library_names_spec='${libname}${shared_ext}'
9618 dynamic_linker="$host_os ld.so"
9619 shlibpath_var=LIBRARY_PATH
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9630 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9631 # the default ld.so.conf also contains /usr/contrib/lib and
9632 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9633 # libtool to hard-code these into programs
9636 cygwin* | mingw* | pw32*)
9637 version_type=windows
9642 case $GCC,$host_os in
9643 yes,cygwin* | yes,mingw* | yes,pw32*)
9644 library_names_spec='$libname.dll.a'
9645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9646 postinstall_cmds='base_file=`basename \${file}`~
9647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9648 dldir=$destdir/`dirname \$dlpath`~
9649 test -d \$dldir || mkdir -p \$dldir~
9650 $install_prog $dir/$dlname \$dldir/$dlname~
9651 chmod a+x \$dldir/$dlname'
9652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9653 dlpath=$dir/\$dldll~
9655 shlibpath_overrides_runpath=yes
9659 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9660 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9661 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9664 # MinGW DLLs use traditional 'lib' prefix
9665 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9667 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9668 # It is most probably a Windows format PATH printed by
9669 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9670 # path with ; separators, and with drive letters. We can handle the
9671 # drive letters (cygwin fileutils understands them), so leave them,
9672 # especially as we might pass files found there to a mingw objdump,
9673 # which wouldn't understand a cygwinified path. Ahh.
9674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9680 # pw32 DLLs use 'pw' prefix rather than 'lib'
9681 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9687 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9690 dynamic_linker='Win32 ld.exe'
9691 # FIXME: first we should search . and the directory the executable is in
9695 darwin* | rhapsody*)
9696 dynamic_linker="$host_os dyld"
9700 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9701 soname_spec='${libname}${release}${major}$shared_ext'
9702 shlibpath_overrides_runpath=yes
9703 shlibpath_var=DYLD_LIBRARY_PATH
9704 shrext_cmds='.dylib'
9705 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9706 if test "$GCC" = yes; then
9707 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"`
9709 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9711 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9719 soname_spec='${libname}${release}${shared_ext}$major'
9720 shlibpath_var=LD_LIBRARY_PATH
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 shlibpath_overrides_runpath=no
9735 hardcode_into_libs=yes
9736 dynamic_linker='GNU ld.so'
9739 freebsd* | dragonfly*)
9740 # DragonFly does not have aout. When/if they implement a new
9741 # versioning mechanism, adjust this.
9742 if test -x /usr/bin/objformat; then
9743 objformat=`/usr/bin/objformat`
9746 freebsd[123]*) objformat=aout ;;
9750 version_type=freebsd-$objformat
9751 case $version_type in
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9762 shlibpath_var=LD_LIBRARY_PATH
9765 shlibpath_overrides_runpath=yes
9767 freebsd3.[01]* | freebsdelf3.[01]*)
9768 shlibpath_overrides_runpath=yes
9769 hardcode_into_libs=yes
9771 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9772 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9773 shlibpath_overrides_runpath=no
9774 hardcode_into_libs=yes
9776 freebsd*) # from 4.6 on
9777 shlibpath_overrides_runpath=yes
9778 hardcode_into_libs=yes
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 hardcode_into_libs=yes
9793 hpux9* | hpux10* | hpux11*)
9794 # Give a soname corresponding to the major version so that dld.sl refuses to
9795 # link against other versions.
9802 hardcode_into_libs=yes
9803 dynamic_linker="$host_os dld.so"
9804 shlibpath_var=LD_LIBRARY_PATH
9805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807 soname_spec='${libname}${release}${shared_ext}$major'
9808 if test "X$HPUX_IA64_MODE" = X32; then
9809 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9811 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9817 hardcode_into_libs=yes
9818 dynamic_linker="$host_os dld.sl"
9819 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9828 dynamic_linker="$host_os dld.sl"
9829 shlibpath_var=SHLIB_PATH
9830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832 soname_spec='${libname}${release}${shared_ext}$major'
9835 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9836 postinstall_cmds='chmod 555 $lib'
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 shlibpath_overrides_runpath=no
9848 hardcode_into_libs=yes
9851 irix5* | irix6* | nonstopux*)
9853 nonstopux*) version_type=nonstopux ;;
9855 if test "$lt_cv_prog_gnu_ld" = yes; then
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9866 irix5* | nonstopux*)
9870 case $LD in # libtool.m4 will add one of these switches to LD
9871 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9872 libsuff= shlibsuff= libmagic=32-bit;;
9873 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9874 libsuff=32 shlibsuff=N32 libmagic=N32;;
9875 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9876 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9877 *) libsuff= shlibsuff= libmagic=never-match;;
9881 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9882 shlibpath_overrides_runpath=no
9883 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9884 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9885 hardcode_into_libs=yes
9888 # No shared lib support for Linux oldld, aout, or coff.
9889 linux*oldld* | linux*aout* | linux*coff*)
9893 # This must be Linux ELF.
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 soname_spec='${libname}${release}${shared_ext}$major'
9900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9901 shlibpath_var=LD_LIBRARY_PATH
9902 shlibpath_overrides_runpath=no
9903 # This implies no fast_install, which is unacceptable.
9904 # Some rework will be needed to allow for fast_install
9905 # before this can be enabled.
9906 hardcode_into_libs=yes
9908 # Append ld.so.conf contents to the search path
9909 if test -f /etc/ld.so.conf; then
9910 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' ' '`
9911 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9914 # We used to test for /lib/ld.so.1 and disable shared libraries on
9915 # powerpc, because MkLinux only supported shared libraries with the
9916 # GNU dynamic linker. Since this was broken with cross compilers,
9917 # most powerpc-linux boxes support dynamic linking these days and
9918 # people can always --disable-shared, the test was removed, and we
9919 # assume the GNU/Linux dynamic linker is in use.
9920 dynamic_linker='GNU/Linux ld.so'
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 shlibpath_overrides_runpath=no
9931 hardcode_into_libs=yes
9932 dynamic_linker='GNU ld.so'
9939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942 dynamic_linker='NetBSD (a.out) ld.so'
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 dynamic_linker='NetBSD ld.elf_so'
9948 shlibpath_var=LD_LIBRARY_PATH
9949 shlibpath_overrides_runpath=yes
9950 hardcode_into_libs=yes
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 shlibpath_overrides_runpath=yes
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=yes
9972 sys_lib_dlsearch_path_spec="/usr/lib"
9974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9976 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9977 *) need_version=no ;;
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9984 openbsd2.[89] | openbsd2.[89].*)
9985 shlibpath_overrides_runpath=no
9988 shlibpath_overrides_runpath=yes
9992 shlibpath_overrides_runpath=yes
9997 libname_spec='$name'
10000 library_names_spec='$libname${shared_ext} $libname.a'
10001 dynamic_linker='OS/2 ld.exe'
10002 shlibpath_var=LIBPATH
10005 osf3* | osf4* | osf5*)
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021 soname_spec='${libname}${release}${shared_ext}$major'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 shlibpath_overrides_runpath=yes
10024 hardcode_into_libs=yes
10025 # ldd complains unless libraries are executable
10026 postinstall_cmds='chmod +x $lib'
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10033 shlibpath_var=LD_LIBRARY_PATH
10034 shlibpath_overrides_runpath=yes
10035 if test "$with_gnu_ld" = yes; then
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 case $host_vendor in
10048 shlibpath_overrides_runpath=no
10050 export_dynamic_flag_spec='${wl}-Blargedynsym'
10051 runpath_var=LD_RUN_PATH
10059 shlibpath_overrides_runpath=no
10060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10066 if test -d /usr/nec ;then
10068 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10069 soname_spec='$libname${shared_ext}.$major'
10070 shlibpath_var=LD_LIBRARY_PATH
10074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10075 version_type=freebsd-elf
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10079 soname_spec='${libname}${release}${shared_ext}$major'
10080 shlibpath_var=LD_LIBRARY_PATH
10081 hardcode_into_libs=yes
10082 if test "$with_gnu_ld" = yes; then
10083 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10084 shlibpath_overrides_runpath=no
10086 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10087 shlibpath_overrides_runpath=yes
10090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10094 sys_lib_dlsearch_path_spec='/usr/lib'
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100 soname_spec='${libname}${release}${shared_ext}$major'
10101 shlibpath_var=LD_LIBRARY_PATH
10108 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10109 echo "${ECHO_T}$dynamic_linker" >&6; }
10110 test "$dynamic_linker" = no && can_build_shared=no
10112 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10113 if test "$GCC" = yes; then
10114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10118 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10119 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10120 if test "${libltdl_cv_shlibext+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 eval libltdl_cv_shlibext=$shrext_cmds
10128 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10129 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10130 if test -n "$libltdl_cv_shlibext"; then
10132 cat >>confdefs.h <<_ACEOF
10133 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10139 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10140 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10141 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 libltdl_cv_shlibpath_var="$shlibpath_var"
10146 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10147 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10148 if test -n "$libltdl_cv_shlibpath_var"; then
10150 cat >>confdefs.h <<_ACEOF
10151 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10157 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10158 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10159 if test "${libltdl_cv_sys_search_path+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10164 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10165 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10166 if test -n "$libltdl_cv_sys_search_path"; then
10168 for dir in $libltdl_cv_sys_search_path; do
10169 if test -z "$sys_search_path"; then
10170 sys_search_path="$dir"
10172 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10176 cat >>confdefs.h <<_ACEOF
10177 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10182 { echo "$as_me:$LINENO: checking for objdir" >&5
10183 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10184 if test "${libltdl_cv_objdir+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 libltdl_cv_objdir="$objdir"
10188 if test -n "$objdir"; then
10191 rm -f .libs 2>/dev/null
10192 mkdir .libs 2>/dev/null
10193 if test -d .libs; then
10194 libltdl_cv_objdir=.libs
10196 # MS-DOS does not allow filenames that begin with a dot.
10197 libltdl_cv_objdir=_libs
10199 rmdir .libs 2>/dev/null
10203 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10204 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10206 cat >>confdefs.h <<_ACEOF
10207 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10215 # Check for command to grab the raw symbol name followed by C symbol from nm.
10216 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10217 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10218 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 # These are sane defaults that work on at least a few old systems.
10223 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10225 # Character class describing NM global symbol codes.
10226 symcode='[BCDEGRST]'
10228 # Regexp to match symbols that can be accessed directly from C.
10229 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10231 # Transform an extracted symbol line into a proper C declaration
10232 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10234 # Transform an extracted symbol line into symbol name and symbol address
10235 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'"
10237 # Define system-specific variables.
10242 cygwin* | mingw* | pw32*)
10243 symcode='[ABCDGISTW]'
10245 hpux*) # Its linker distinguishes data from code symbols
10246 if test "$host_cpu" = ia64; then
10247 symcode='[ABCDEGRST]'
10249 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10250 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'"
10253 if test "$host_cpu" = ia64; then
10254 symcode='[ABCDGIRSTW]'
10255 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10256 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'"
10259 irix* | nonstopux*)
10260 symcode='[BCDEGRST]'
10263 symcode='[BCDEGQRST]'
10274 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10282 # Handle CRLF in mingw tool chain
10286 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10290 # If we're using GNU nm, then use its standard symbol codes.
10291 case `$NM -V 2>&1` in
10292 *GNU* | *'with BFD'*)
10293 symcode='[ABCDGIRSTW]' ;;
10296 # Try without a prefix undercore, then with it.
10297 for ac_symprfx in "" "_"; do
10299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10300 symxfrm="\\1 $ac_symprfx\\2 \\2"
10302 # Write the raw and C identifiers.
10303 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10305 # Check to see that the pipe works correctly.
10309 cat > conftest.$ac_ext <<EOF
10314 void nm_test_func(){}
10318 int main(){nm_test_var='a';nm_test_func();return(0);}
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322 (eval $ac_compile) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; then
10326 # Now try to grab the symbols.
10328 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10329 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && test -s "$nlist"; then
10333 # Try sorting and uniquifying the output.
10334 if sort "$nlist" | uniq > "$nlist"T; then
10335 mv -f "$nlist"T "$nlist"
10340 # Make sure that we snagged all the symbols we need.
10341 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10342 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10343 cat <<EOF > conftest.$ac_ext
10349 # Now generate the symbol file.
10350 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10352 cat <<EOF >> conftest.$ac_ext
10353 #if defined (__STDC__) && __STDC__
10354 # define lt_ptr_t void *
10356 # define lt_ptr_t char *
10360 /* The mapping between symbol names and symbols. */
10365 lt_preloaded_symbols[] =
10368 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10369 cat <<\EOF >> conftest.$ac_ext
10377 # Now try linking the two files.
10378 mv conftest.$ac_objext conftstm.$ac_objext
10379 lt_save_LIBS="$LIBS"
10380 lt_save_CFLAGS="$CFLAGS"
10381 LIBS="conftstm.$ac_objext"
10382 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10384 (eval $ac_link) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10390 LIBS="$lt_save_LIBS"
10391 CFLAGS="$lt_save_CFLAGS"
10393 echo "cannot find nm_test_func in $nlist" >&5
10396 echo "cannot find nm_test_var in $nlist" >&5
10399 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10402 echo "$progname: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10405 rm -f conftest* conftst*
10407 # Do not use the global_symbol_pipe unless it works.
10408 if test "$pipe_works" = yes; then
10411 lt_cv_sys_global_symbol_pipe=
10417 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10418 lt_cv_sys_global_symbol_to_cdecl=
10420 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10421 { echo "$as_me:$LINENO: result: failed" >&5
10422 echo "${ECHO_T}failed" >&6; }
10424 { echo "$as_me:$LINENO: result: ok" >&5
10425 echo "${ECHO_T}ok" >&6; }
10429 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10430 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10431 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10435 libltdl_cv_preloaded_symbols=yes
10437 libltdl_cv_preloaded_symbols=no
10441 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10442 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10443 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10445 cat >>confdefs.h <<\_ACEOF
10446 #define HAVE_PRELOADED_SYMBOLS 1
10454 ac_cpp='$CPP $CPPFLAGS'
10455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10460 { echo "$as_me:$LINENO: checking for shl_load" >&5
10461 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10462 if test "${ac_cv_func_shl_load+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 cat >conftest.$ac_ext <<_ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10473 #define shl_load innocuous_shl_load
10475 /* System header to define __stub macros and hopefully few prototypes,
10476 which can conflict with char shl_load (); below.
10477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10478 <limits.h> exists even on freestanding compilers. */
10481 # include <limits.h>
10483 # include <assert.h>
10488 /* Override any GCC internal prototype to avoid an error.
10489 Use char because int might match the return type of a GCC
10490 builtin and then its argument prototype would still apply. */
10495 /* The GNU C library defines this for functions which it implements
10496 to always fail with ENOSYS. Some functions are actually named
10497 something starting with __ and the normal name is an alias. */
10498 #if defined __stub_shl_load || defined __stub___shl_load
10505 return shl_load ();
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_link") 2>conftest.er1
10519 grep -v '^ *+' conftest.er1 >conftest.err
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525 { (case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_try") 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; } &&
10534 { ac_try='test -s conftest$ac_exeext'
10535 { (case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_try") 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 ac_cv_func_shl_load=yes
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ac_cv_func_shl_load=no
10552 rm -f core conftest.err conftest.$ac_objext \
10553 conftest$ac_exeext conftest.$ac_ext
10555 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10556 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10557 if test $ac_cv_func_shl_load = yes; then
10559 cat >>confdefs.h <<\_ACEOF
10560 #define HAVE_SHL_LOAD 1
10564 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10565 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10566 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 ac_check_lib_save_LIBS=$LIBS
10571 cat >conftest.$ac_ext <<_ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10578 /* Override any GCC internal prototype to avoid an error.
10579 Use char because int might match the return type of a GCC
10580 builtin and then its argument prototype would still apply. */
10588 return shl_load ();
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (ac_try="$ac_link"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10608 { (case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_try") 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; } &&
10617 { ac_try='test -s conftest$ac_exeext'
10618 { (case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_try") 2>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_cv_lib_dld_shl_load=yes
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10632 ac_cv_lib_dld_shl_load=no
10635 rm -f core conftest.err conftest.$ac_objext \
10636 conftest$ac_exeext conftest.$ac_ext
10637 LIBS=$ac_check_lib_save_LIBS
10639 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10640 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10641 if test $ac_cv_lib_dld_shl_load = yes; then
10643 cat >>confdefs.h <<\_ACEOF
10644 #define HAVE_SHL_LOAD 1
10647 LIBADD_DL="$LIBADD_DL -ldld"
10649 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10650 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10651 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 ac_check_lib_save_LIBS=$LIBS
10656 cat >conftest.$ac_ext <<_ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_link") 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10693 { (case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_try") 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10712 ac_cv_lib_dl_dlopen=yes
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10717 ac_cv_lib_dl_dlopen=no
10720 rm -f core conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
10722 LIBS=$ac_check_lib_save_LIBS
10724 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10725 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10726 if test $ac_cv_lib_dl_dlopen = yes; then
10728 cat >>confdefs.h <<\_ACEOF
10729 #define HAVE_LIBDL 1
10732 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10741 # include <dlfcn.h>
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (ac_try="$ac_link"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_link") 2>conftest.er1
10761 grep -v '^ *+' conftest.er1 >conftest.err
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10767 { (case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_try") 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; } &&
10776 { ac_try='test -s conftest$ac_exeext'
10777 { (case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_try") 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10787 cat >>confdefs.h <<\_ACEOF
10788 #define HAVE_LIBDL 1
10790 libltdl_cv_func_dlopen="yes"
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10796 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10797 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 ac_check_lib_save_LIBS=$LIBS
10801 LIBS="-lsvld $LIBS"
10802 cat >conftest.$ac_ext <<_ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10809 /* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10839 { (case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_try") 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; } &&
10848 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10858 ac_cv_lib_svld_dlopen=yes
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 ac_cv_lib_svld_dlopen=no
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_lib_save_LIBS
10870 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10871 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10872 if test $ac_cv_lib_svld_dlopen = yes; then
10874 cat >>confdefs.h <<\_ACEOF
10875 #define HAVE_LIBDL 1
10878 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10880 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10881 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10882 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 ac_check_lib_save_LIBS=$LIBS
10887 cat >conftest.$ac_ext <<_ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10894 /* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10904 return dld_link ();
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (ac_try="$ac_link"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_link") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1 >conftest.err
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10924 { (case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_try") 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try='test -s conftest$ac_exeext'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 ac_cv_lib_dld_dld_link=yes
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 ac_cv_lib_dld_dld_link=no
10951 rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10955 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10956 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10957 if test $ac_cv_lib_dld_dld_link = yes; then
10959 cat >>confdefs.h <<\_ACEOF
10963 LIBADD_DL="$LIBADD_DL -ldld"
10965 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10966 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10967 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 cat >conftest.$ac_ext <<_ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10976 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10978 #define _dyld_func_lookup innocuous__dyld_func_lookup
10980 /* System header to define __stub macros and hopefully few prototypes,
10981 which can conflict with char _dyld_func_lookup (); below.
10982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10983 <limits.h> exists even on freestanding compilers. */
10986 # include <limits.h>
10988 # include <assert.h>
10991 #undef _dyld_func_lookup
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10999 char _dyld_func_lookup ();
11000 /* The GNU C library defines this for functions which it implements
11001 to always fail with ENOSYS. Some functions are actually named
11002 something starting with __ and the normal name is an alias. */
11003 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11010 return _dyld_func_lookup ();
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_link") 2>conftest.er1
11024 grep -v '^ *+' conftest.er1 >conftest.err
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; } &&
11039 { ac_try='test -s conftest$ac_exeext'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_func__dyld_func_lookup=yes
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ac_cv_func__dyld_func_lookup=no
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11060 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11061 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11062 if test $ac_cv_func__dyld_func_lookup = yes; then
11064 cat >>confdefs.h <<\_ACEOF
11065 #define HAVE_DYLD 1
11079 rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11091 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11093 lt_save_LIBS="$LIBS"
11094 LIBS="$LIBS $LIBADD_DL"
11096 for ac_func in dlerror
11098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 cat >conftest.$ac_ext <<_ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11112 #define $ac_func innocuous_$ac_func
11114 /* System header to define __stub macros and hopefully few prototypes,
11115 which can conflict with char $ac_func (); below.
11116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11117 <limits.h> exists even on freestanding compilers. */
11120 # include <limits.h>
11122 # include <assert.h>
11127 /* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11134 /* The GNU C library defines this for functions which it implements
11135 to always fail with ENOSYS. Some functions are actually named
11136 something starting with __ and the normal name is an alias. */
11137 #if defined __stub_$ac_func || defined __stub___$ac_func
11144 return $ac_func ();
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (ac_try="$ac_link"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_link") 2>conftest.er1
11158 grep -v '^ *+' conftest.er1 >conftest.err
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try='test -s conftest$ac_exeext'
11174 { (case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_try") 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
11183 eval "$as_ac_var=yes"
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 eval "$as_ac_var=no"
11191 rm -f core conftest.err conftest.$ac_objext \
11192 conftest$ac_exeext conftest.$ac_ext
11194 ac_res=`eval echo '${'$as_ac_var'}'`
11195 { echo "$as_me:$LINENO: result: $ac_res" >&5
11196 echo "${ECHO_T}$ac_res" >&6; }
11197 if test `eval echo '${'$as_ac_var'}'` = yes; then
11198 cat >>confdefs.h <<_ACEOF
11199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11205 LIBS="$lt_save_LIBS"
11208 ac_cpp='$CPP $CPPFLAGS'
11209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11215 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11216 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11217 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 ac_cv_sys_symbol_underscore=no
11221 cat > conftest.$ac_ext <<EOF
11222 void nm_test_func(){}
11223 int main(){nm_test_func;return 0;}
11225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226 (eval $ac_compile) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; then
11230 # Now try to grab the symbols.
11231 ac_nlist=conftest.nm
11232 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11233 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && test -s "$ac_nlist"; then
11237 # See whether the symbols have a leading underscore.
11238 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11239 ac_cv_sys_symbol_underscore=yes
11241 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11244 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11248 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11251 echo "configure: failed program was:" >&5
11257 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11258 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11261 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11262 if test x"$libltdl_cv_func_dlopen" = xyes ||
11263 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11264 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11265 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11266 if test "${libltdl_cv_need_uscore+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 libltdl_cv_need_uscore=unknown
11271 LIBS="$LIBS $LIBADD_DL"
11272 if test "$cross_compiling" = yes; then :
11273 libltdl_cv_need_uscore=cross
11275 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11276 lt_status=$lt_dlunknown
11277 cat > conftest.$ac_ext <<EOF
11278 #line 11278 "configure"
11279 #include "confdefs.h"
11288 # define LT_DLGLOBAL RTLD_GLOBAL
11291 # define LT_DLGLOBAL DL_GLOBAL
11293 # define LT_DLGLOBAL 0
11297 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11298 find out it does not work in some platform. */
11299 #ifndef LT_DLLAZY_OR_NOW
11301 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11304 # define LT_DLLAZY_OR_NOW DL_LAZY
11307 # define LT_DLLAZY_OR_NOW RTLD_NOW
11310 # define LT_DLLAZY_OR_NOW DL_NOW
11312 # define LT_DLLAZY_OR_NOW 0
11320 extern "C" void exit (int);
11323 void fnord() { int i=42;}
11326 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11327 int status = $lt_dlunknown;
11331 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11332 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11333 /* dlclose (self); */
11341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11342 (eval $ac_link) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11346 (./conftest; exit; ) >&5 2>/dev/null
11348 case x$lt_status in
11349 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11350 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11351 x$lt_dlunknown|x*) ;;
11354 # compilation failed
11363 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11364 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11368 if test x"$libltdl_cv_need_uscore" = xyes; then
11370 cat >>confdefs.h <<\_ACEOF
11371 #define NEED_USCORE 1
11377 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11378 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11379 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 # PORTME does your system automatically load deplibs for dlopen?
11383 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11384 # For now, we just catch OSes we know something about -- in the
11385 # future, we'll try test this programmatically.
11386 libltdl_cv_sys_dlopen_deplibs=unknown
11388 aix3*|aix4.1.*|aix4.2.*)
11389 # Unknown whether this is true for these versions of AIX, but
11390 # we want this `case' here to explicitly catch those versions.
11391 libltdl_cv_sys_dlopen_deplibs=unknown
11394 libltdl_cv_sys_dlopen_deplibs=yes
11397 # Assuming the user has installed a libdl from somewhere, this is true
11398 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11399 libltdl_cv_sys_dlopen_deplibs=yes
11401 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11402 # GNU and its variants, using gnu ld.so (Glibc)
11403 libltdl_cv_sys_dlopen_deplibs=yes
11406 libltdl_cv_sys_dlopen_deplibs=yes
11409 libltdl_cv_sys_dlopen_deplibs=yes
11411 irix[12345]*|irix6.[01]*)
11412 # Catch all versions of IRIX before 6.2, and indicate that we don't
11413 # know how it worked for any of those versions.
11414 libltdl_cv_sys_dlopen_deplibs=unknown
11417 # The case above catches anything before 6.2, and it's known that
11418 # at 6.2 and later dlopen does load deplibs.
11419 libltdl_cv_sys_dlopen_deplibs=yes
11422 libltdl_cv_sys_dlopen_deplibs=yes
11425 libltdl_cv_sys_dlopen_deplibs=yes
11428 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11429 # it did *not* use an RPATH in a shared library to find objects the
11430 # library depends on, so we explictly say `no'.
11431 libltdl_cv_sys_dlopen_deplibs=no
11433 osf5.0|osf5.0a|osf5.1)
11434 # dlopen *does* load deplibs and with the right loader patch applied
11435 # it even uses RPATH in a shared library to search for shared objects
11436 # that the library depends on, but there's no easy way to know if that
11437 # patch is installed. Since this is the case, all we can really
11438 # say is unknown -- it depends on the patch being installed. If
11439 # it is, this changes to `yes'. Without it, it would be `no'.
11440 libltdl_cv_sys_dlopen_deplibs=unknown
11443 # the two cases above should catch all versions of osf <= 5.1. Read
11444 # the comments above for what we know about them.
11445 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11446 # is used to find them so we can finally say `yes'.
11447 libltdl_cv_sys_dlopen_deplibs=yes
11450 libltdl_cv_sys_dlopen_deplibs=yes
11452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11453 libltdl_cv_sys_dlopen_deplibs=yes
11458 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11459 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11460 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11462 cat >>confdefs.h <<\_ACEOF
11463 #define LTDL_DLOPEN_DEPLIBS 1
11469 for ac_header in argz.h
11471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 ac_res=`eval echo '${'$as_ac_Header'}'`
11479 { echo "$as_me:$LINENO: result: $ac_res" >&5
11480 echo "${ECHO_T}$ac_res" >&6; }
11482 # Is the header compilable?
11483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11485 cat >conftest.$ac_ext <<_ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491 $ac_includes_default
11492 #include <$ac_header>
11494 rm -f conftest.$ac_objext
11495 if { (ac_try="$ac_compile"
11496 case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_compile") 2>conftest.er1
11503 grep -v '^ *+' conftest.er1 >conftest.err
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11509 { (case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_try") 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; } &&
11518 { ac_try='test -s conftest.$ac_objext'
11519 { (case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_try") 2>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11528 ac_header_compiler=yes
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 ac_header_compiler=no
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11538 echo "${ECHO_T}$ac_header_compiler" >&6; }
11540 # Is the header present?
11541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11543 cat >conftest.$ac_ext <<_ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 #include <$ac_header>
11551 if { (ac_try="$ac_cpp conftest.$ac_ext"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11559 grep -v '^ *+' conftest.er1 >conftest.err
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } >/dev/null; then
11564 if test -s conftest.err; then
11565 ac_cpp_err=$ac_c_preproc_warn_flag
11566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11573 if test -z "$ac_cpp_err"; then
11574 ac_header_preproc=yes
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 ac_header_preproc=no
11582 rm -f conftest.err conftest.$ac_ext
11583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11584 echo "${ECHO_T}$ac_header_preproc" >&6; }
11586 # So? What about this header?
11587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11593 ac_header_preproc=yes
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11609 ## ----------------------------------- ##
11610 ## Report this to llvmbugs@cs.uiuc.edu ##
11611 ## ----------------------------------- ##
11613 ) | sed "s/^/$as_me: WARNING: /" >&2
11616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 eval "$as_ac_Header=\$ac_header_preproc"
11623 ac_res=`eval echo '${'$as_ac_Header'}'`
11624 { echo "$as_me:$LINENO: result: $ac_res" >&5
11625 echo "${ECHO_T}$ac_res" >&6; }
11628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11629 cat >>confdefs.h <<_ACEOF
11630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11638 { echo "$as_me:$LINENO: checking for error_t" >&5
11639 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11640 if test "${ac_cv_type_error_t+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11653 typedef error_t ac__type_new_;
11657 if ((ac__type_new_ *) 0)
11659 if (sizeof (ac__type_new_))
11665 rm -f conftest.$ac_objext
11666 if { (ac_try="$ac_compile"
11667 case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_compile") 2>conftest.er1
11674 grep -v '^ *+' conftest.er1 >conftest.err
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11680 { (case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_try") 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; } &&
11689 { ac_try='test -s conftest.$ac_objext'
11690 { (case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_try") 2>&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; }; then
11699 ac_cv_type_error_t=yes
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11704 ac_cv_type_error_t=no
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11709 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11710 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11711 if test $ac_cv_type_error_t = yes; then
11713 cat >>confdefs.h <<_ACEOF
11714 #define HAVE_ERROR_T 1
11720 cat >>confdefs.h <<\_ACEOF
11721 #define error_t int
11732 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11748 #define $ac_func innocuous_$ac_func
11750 /* System header to define __stub macros and hopefully few prototypes,
11751 which can conflict with char $ac_func (); below.
11752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11753 <limits.h> exists even on freestanding compilers. */
11756 # include <limits.h>
11758 # include <assert.h>
11763 /* Override any GCC internal prototype to avoid an error.
11764 Use char because int might match the return type of a GCC
11765 builtin and then its argument prototype would still apply. */
11770 /* The GNU C library defines this for functions which it implements
11771 to always fail with ENOSYS. Some functions are actually named
11772 something starting with __ and the normal name is an alias. */
11773 #if defined __stub_$ac_func || defined __stub___$ac_func
11780 return $ac_func ();
11785 rm -f conftest.$ac_objext conftest$ac_exeext
11786 if { (ac_try="$ac_link"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_link") 2>conftest.er1
11794 grep -v '^ *+' conftest.er1 >conftest.err
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest$ac_exeext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 eval "$as_ac_var=yes"
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 eval "$as_ac_var=no"
11827 rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11830 ac_res=`eval echo '${'$as_ac_var'}'`
11831 { echo "$as_me:$LINENO: result: $ac_res" >&5
11832 echo "${ECHO_T}$ac_res" >&6; }
11833 if test `eval echo '${'$as_ac_var'}'` = yes; then
11834 cat >>confdefs.h <<_ACEOF
11835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11868 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 ac_res=`eval echo '${'$as_ac_Header'}'`
11879 { echo "$as_me:$LINENO: result: $ac_res" >&5
11880 echo "${ECHO_T}$ac_res" >&6; }
11882 # Is the header compilable?
11883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11885 cat >conftest.$ac_ext <<_ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 $ac_includes_default
11892 #include <$ac_header>
11894 rm -f conftest.$ac_objext
11895 if { (ac_try="$ac_compile"
11896 case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_compile") 2>conftest.er1
11903 grep -v '^ *+' conftest.er1 >conftest.err
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11909 { (case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_try") 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest.$ac_objext'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 ac_header_compiler=yes
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 ac_header_compiler=no
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11938 echo "${ECHO_T}$ac_header_compiler" >&6; }
11940 # Is the header present?
11941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11943 cat >conftest.$ac_ext <<_ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 #include <$ac_header>
11951 if { (ac_try="$ac_cpp conftest.$ac_ext"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11959 grep -v '^ *+' conftest.er1 >conftest.err
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } >/dev/null; then
11964 if test -s conftest.err; then
11965 ac_cpp_err=$ac_c_preproc_warn_flag
11966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11973 if test -z "$ac_cpp_err"; then
11974 ac_header_preproc=yes
11976 echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11979 ac_header_preproc=no
11982 rm -f conftest.err conftest.$ac_ext
11983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11984 echo "${ECHO_T}$ac_header_preproc" >&6; }
11986 # So? What about this header?
11987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11993 ac_header_preproc=yes
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12009 ## ----------------------------------- ##
12010 ## Report this to llvmbugs@cs.uiuc.edu ##
12011 ## ----------------------------------- ##
12013 ) | sed "s/^/$as_me: WARNING: /" >&2
12016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 eval "$as_ac_Header=\$ac_header_preproc"
12023 ac_res=`eval echo '${'$as_ac_Header'}'`
12024 { echo "$as_me:$LINENO: result: $ac_res" >&5
12025 echo "${ECHO_T}$ac_res" >&6; }
12028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12029 cat >>confdefs.h <<_ACEOF
12030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12041 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 ac_res=`eval echo '${'$as_ac_Header'}'`
12051 { echo "$as_me:$LINENO: result: $ac_res" >&5
12052 echo "${ECHO_T}$ac_res" >&6; }
12054 # Is the header compilable?
12055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 $ac_includes_default
12064 #include <$ac_header>
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_compile") 2>conftest.er1
12075 grep -v '^ *+' conftest.er1 >conftest.err
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest.$ac_objext'
12091 { (case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_try") 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 ac_header_compiler=yes
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 ac_header_compiler=no
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12110 echo "${ECHO_T}$ac_header_compiler" >&6; }
12112 # Is the header present?
12113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12115 cat >conftest.$ac_ext <<_ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 #include <$ac_header>
12123 if { (ac_try="$ac_cpp conftest.$ac_ext"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12131 grep -v '^ *+' conftest.er1 >conftest.err
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } >/dev/null; then
12136 if test -s conftest.err; then
12137 ac_cpp_err=$ac_c_preproc_warn_flag
12138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12145 if test -z "$ac_cpp_err"; then
12146 ac_header_preproc=yes
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 ac_header_preproc=no
12154 rm -f conftest.err conftest.$ac_ext
12155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12156 echo "${ECHO_T}$ac_header_preproc" >&6; }
12158 # So? What about this header?
12159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12165 ac_header_preproc=yes
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12181 ## ----------------------------------- ##
12182 ## Report this to llvmbugs@cs.uiuc.edu ##
12183 ## ----------------------------------- ##
12185 ) | sed "s/^/$as_me: WARNING: /" >&2
12188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 eval "$as_ac_Header=\$ac_header_preproc"
12195 ac_res=`eval echo '${'$as_ac_Header'}'`
12196 { echo "$as_me:$LINENO: result: $ac_res" >&5
12197 echo "${ECHO_T}$ac_res" >&6; }
12200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12201 cat >>confdefs.h <<_ACEOF
12202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12211 for ac_header in string.h strings.h
12213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 ac_res=`eval echo '${'$as_ac_Header'}'`
12221 { echo "$as_me:$LINENO: result: $ac_res" >&5
12222 echo "${ECHO_T}$ac_res" >&6; }
12224 # Is the header compilable?
12225 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12227 cat >conftest.$ac_ext <<_ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233 $ac_includes_default
12234 #include <$ac_header>
12236 rm -f conftest.$ac_objext
12237 if { (ac_try="$ac_compile"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_compile") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1 >conftest.err
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12251 { (case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_try") 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest.$ac_objext'
12261 { (case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_try") 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_header_compiler=yes
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_header_compiler=no
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12280 echo "${ECHO_T}$ac_header_compiler" >&6; }
12282 # Is the header present?
12283 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12285 cat >conftest.$ac_ext <<_ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 #include <$ac_header>
12293 if { (ac_try="$ac_cpp conftest.$ac_ext"
12294 case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12301 grep -v '^ *+' conftest.er1 >conftest.err
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } >/dev/null; then
12306 if test -s conftest.err; then
12307 ac_cpp_err=$ac_c_preproc_warn_flag
12308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12315 if test -z "$ac_cpp_err"; then
12316 ac_header_preproc=yes
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12321 ac_header_preproc=no
12324 rm -f conftest.err conftest.$ac_ext
12325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12326 echo "${ECHO_T}$ac_header_preproc" >&6; }
12328 # So? What about this header?
12329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12335 ac_header_preproc=yes
12338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12351 ## ----------------------------------- ##
12352 ## Report this to llvmbugs@cs.uiuc.edu ##
12353 ## ----------------------------------- ##
12355 ) | sed "s/^/$as_me: WARNING: /" >&2
12358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 eval "$as_ac_Header=\$ac_header_preproc"
12365 ac_res=`eval echo '${'$as_ac_Header'}'`
12366 { echo "$as_me:$LINENO: result: $ac_res" >&5
12367 echo "${ECHO_T}$ac_res" >&6; }
12370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12371 cat >>confdefs.h <<_ACEOF
12372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12382 for ac_func in strchr index
12384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 cat >conftest.$ac_ext <<_ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12398 #define $ac_func innocuous_$ac_func
12400 /* System header to define __stub macros and hopefully few prototypes,
12401 which can conflict with char $ac_func (); below.
12402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12403 <limits.h> exists even on freestanding compilers. */
12406 # include <limits.h>
12408 # include <assert.h>
12413 /* Override any GCC internal prototype to avoid an error.
12414 Use char because int might match the return type of a GCC
12415 builtin and then its argument prototype would still apply. */
12420 /* The GNU C library defines this for functions which it implements
12421 to always fail with ENOSYS. Some functions are actually named
12422 something starting with __ and the normal name is an alias. */
12423 #if defined __stub_$ac_func || defined __stub___$ac_func
12430 return $ac_func ();
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (ac_try="$ac_link"
12437 case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_link") 2>conftest.er1
12444 grep -v '^ *+' conftest.er1 >conftest.err
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_try") 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 eval "$as_ac_var=yes"
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12474 eval "$as_ac_var=no"
12477 rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12480 ac_res=`eval echo '${'$as_ac_var'}'`
12481 { echo "$as_me:$LINENO: result: $ac_res" >&5
12482 echo "${ECHO_T}$ac_res" >&6; }
12483 if test `eval echo '${'$as_ac_var'}'` = yes; then
12484 cat >>confdefs.h <<_ACEOF
12485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12493 for ac_func in strrchr rindex
12495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 cat >conftest.$ac_ext <<_ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12509 #define $ac_func innocuous_$ac_func
12511 /* System header to define __stub macros and hopefully few prototypes,
12512 which can conflict with char $ac_func (); below.
12513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12514 <limits.h> exists even on freestanding compilers. */
12517 # include <limits.h>
12519 # include <assert.h>
12524 /* Override any GCC internal prototype to avoid an error.
12525 Use char because int might match the return type of a GCC
12526 builtin and then its argument prototype would still apply. */
12531 /* The GNU C library defines this for functions which it implements
12532 to always fail with ENOSYS. Some functions are actually named
12533 something starting with __ and the normal name is an alias. */
12534 #if defined __stub_$ac_func || defined __stub___$ac_func
12541 return $ac_func ();
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (ac_try="$ac_link"
12548 case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_link") 2>conftest.er1
12555 grep -v '^ *+' conftest.er1 >conftest.err
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12561 { (case "(($ac_try" in
12562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_try") 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try='test -s conftest$ac_exeext'
12571 { (case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_try") 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12580 eval "$as_ac_var=yes"
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12585 eval "$as_ac_var=no"
12588 rm -f core conftest.err conftest.$ac_objext \
12589 conftest$ac_exeext conftest.$ac_ext
12591 ac_res=`eval echo '${'$as_ac_var'}'`
12592 { echo "$as_me:$LINENO: result: $ac_res" >&5
12593 echo "${ECHO_T}$ac_res" >&6; }
12594 if test `eval echo '${'$as_ac_var'}'` = yes; then
12595 cat >>confdefs.h <<_ACEOF
12596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12604 for ac_func in memcpy bcopy
12606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 cat >conftest.$ac_ext <<_ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12620 #define $ac_func innocuous_$ac_func
12622 /* System header to define __stub macros and hopefully few prototypes,
12623 which can conflict with char $ac_func (); below.
12624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12625 <limits.h> exists even on freestanding compilers. */
12628 # include <limits.h>
12630 # include <assert.h>
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12642 /* The GNU C library defines this for functions which it implements
12643 to always fail with ENOSYS. Some functions are actually named
12644 something starting with __ and the normal name is an alias. */
12645 #if defined __stub_$ac_func || defined __stub___$ac_func
12652 return $ac_func ();
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (ac_try="$ac_link"
12659 case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_link") 2>conftest.er1
12666 grep -v '^ *+' conftest.er1 >conftest.err
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12672 { (case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_try") 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest$ac_exeext'
12682 { (case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_try") 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 eval "$as_ac_var=yes"
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 eval "$as_ac_var=no"
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12702 ac_res=`eval echo '${'$as_ac_var'}'`
12703 { echo "$as_me:$LINENO: result: $ac_res" >&5
12704 echo "${ECHO_T}$ac_res" >&6; }
12705 if test `eval echo '${'$as_ac_var'}'` = yes; then
12706 cat >>confdefs.h <<_ACEOF
12707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12715 for ac_func in memmove strcmp
12717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 cat >conftest.$ac_ext <<_ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12731 #define $ac_func innocuous_$ac_func
12733 /* System header to define __stub macros and hopefully few prototypes,
12734 which can conflict with char $ac_func (); below.
12735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736 <limits.h> exists even on freestanding compilers. */
12739 # include <limits.h>
12741 # include <assert.h>
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12753 /* The GNU C library defines this for functions which it implements
12754 to always fail with ENOSYS. Some functions are actually named
12755 something starting with __ and the normal name is an alias. */
12756 #if defined __stub_$ac_func || defined __stub___$ac_func
12763 return $ac_func ();
12768 rm -f conftest.$ac_objext conftest$ac_exeext
12769 if { (ac_try="$ac_link"
12770 case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_link") 2>conftest.er1
12777 grep -v '^ *+' conftest.er1 >conftest.err
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 eval "$as_ac_var=yes"
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 eval "$as_ac_var=no"
12810 rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12813 ac_res=`eval echo '${'$as_ac_var'}'`
12814 { echo "$as_me:$LINENO: result: $ac_res" >&5
12815 echo "${ECHO_T}$ac_res" >&6; }
12816 if test `eval echo '${'$as_ac_var'}'` = yes; then
12817 cat >>confdefs.h <<_ACEOF
12818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12827 for ac_func in closedir opendir readdir
12829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 cat >conftest.$ac_ext <<_ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12843 #define $ac_func innocuous_$ac_func
12845 /* System header to define __stub macros and hopefully few prototypes,
12846 which can conflict with char $ac_func (); below.
12847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12848 <limits.h> exists even on freestanding compilers. */
12851 # include <limits.h>
12853 # include <assert.h>
12858 /* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12865 /* The GNU C library defines this for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868 #if defined __stub_$ac_func || defined __stub___$ac_func
12875 return $ac_func ();
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
12882 case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_link") 2>conftest.er1
12889 grep -v '^ *+' conftest.er1 >conftest.err
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_try") 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 eval "$as_ac_var=yes"
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 eval "$as_ac_var=no"
12922 rm -f core conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12925 ac_res=`eval echo '${'$as_ac_var'}'`
12926 { echo "$as_me:$LINENO: result: $ac_res" >&5
12927 echo "${ECHO_T}$ac_res" >&6; }
12928 if test `eval echo '${'$as_ac_var'}'` = yes; then
12929 cat >>confdefs.h <<_ACEOF
12930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12938 if test "$WITH_LLVMGCCDIR" = "default" ; then
12939 LLVMGCC="llvm-gcc${EXEEXT}"
12940 LLVMGXX="llvm-g++${EXEEXT}"
12941 LLVMGCCCOMMAND="$LLVMGCC"
12942 LLVMGXXCOMMAND="$LLVMGXX"
12943 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12945 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12947 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12948 set dummy $LLVMGCC; ac_word=$2
12949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12951 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12963 test -z "$as_dir" && as_dir=.
12964 for ac_exec_ext in '' $ac_executable_extensions; do
12965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12966 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12977 LLVMGCC=$ac_cv_path_LLVMGCC
12978 if test -n "$LLVMGCC"; then
12979 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12980 echo "${ECHO_T}$LLVMGCC" >&6; }
12982 { echo "$as_me:$LINENO: result: no" >&5
12983 echo "${ECHO_T}no" >&6; }
12987 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12988 set dummy $LLVMGXX; ac_word=$2
12989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12991 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000 for as_dir in $PATH
13003 test -z "$as_dir" && as_dir=.
13004 for ac_exec_ext in '' $ac_executable_extensions; do
13005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13006 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13017 LLVMGXX=$ac_cv_path_LLVMGXX
13018 if test -n "$LLVMGXX"; then
13019 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13020 echo "${ECHO_T}$LLVMGXX" >&6; }
13022 { echo "$as_me:$LINENO: result: no" >&5
13023 echo "${ECHO_T}no" >&6; }
13028 if test -z "$LLVMGCC"; then
13029 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13030 LLVMGCCCOMMAND="$LLVMGCC"
13032 if test -z "$LLVMGXX"; then
13033 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13034 LLVMGXXCOMMAND="$LLVMGXX"
13041 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13043 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13048 # Check whether --with-llvmcc was given.
13049 if test "${with_llvmcc+set}" = set; then
13050 withval=$with_llvmcc;
13055 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13056 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13057 if test "$with_llvmcc" != "check"; then
13058 if (test "$with_llvmcc" != "llvm-gcc" &&
13059 test "$with_llvmcc" != "clang" &&
13060 test "$with_llvmcc" != "none"); then
13061 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13062 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13063 { (exit 1); exit 1; }; }
13065 WITH_LLVMCC="$with_llvmcc"
13066 elif test -n "$LLVMGCC"; then
13067 WITH_LLVMCC=llvm-gcc
13068 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13073 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13074 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13075 LLVMCC_OPTION=$WITH_LLVMCC
13078 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13079 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13092 if test "$GCC" != "yes" && test "$ICC" != "yes"
13094 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13095 echo "$as_me: error: gcc|icc required but not found" >&2;}
13096 { (exit 1); exit 1; }; }
13099 if test "$GXX" != "yes" && test "$IXX" != "yes"
13101 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13102 echo "$as_me: error: g++|icc required but not found" >&2;}
13103 { (exit 1); exit 1; }; }
13106 if test "$GCC" = "yes"
13108 cat >conftest.$ac_ext <<_ACEOF
13109 #if !defined(__GNUC__) || __GNUC__ < 3
13110 #error Unsupported GCC version
13114 rm -f conftest.$ac_objext
13115 if { (ac_try="$ac_compile"
13116 case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_compile") 2>conftest.er1
13123 grep -v '^ *+' conftest.er1 >conftest.err
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } &&
13138 { ac_try='test -s conftest.$ac_objext'
13139 { (case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_try") 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13154 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13155 { (exit 1); exit 1; }; }
13158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161 if test -z "$llvm_cv_gnu_make_command"
13163 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13164 echo "$as_me: error: GNU Make required but not found" >&2;}
13165 { (exit 1); exit 1; }; }
13168 { echo "$as_me:$LINENO: result: ok" >&5
13169 echo "${ECHO_T}ok" >&6; }
13171 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13172 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13173 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13175 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13177 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13178 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13182 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13183 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13184 if test "${ac_cv_lib_m_sin+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 ac_check_lib_save_LIBS=$LIBS
13189 cat >conftest.$ac_ext <<_ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13211 rm -f conftest.$ac_objext conftest$ac_exeext
13212 if { (ac_try="$ac_link"
13213 case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_link") 2>conftest.er1
13220 grep -v '^ *+' conftest.er1 >conftest.err
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13226 { (case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_try") 2>&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; } &&
13235 { ac_try='test -s conftest$ac_exeext'
13236 { (case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_try") 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13245 ac_cv_lib_m_sin=yes
13247 echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13253 rm -f core conftest.err conftest.$ac_objext \
13254 conftest$ac_exeext conftest.$ac_ext
13255 LIBS=$ac_check_lib_save_LIBS
13257 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13258 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13259 if test $ac_cv_lib_m_sin = yes; then
13260 cat >>confdefs.h <<_ACEOF
13261 #define HAVE_LIBM 1
13268 if test "$llvm_cv_os_type" = "MingW" ; then
13270 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13271 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13272 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13275 ac_check_lib_save_LIBS=$LIBS
13276 LIBS="-limagehlp $LIBS"
13277 cat >conftest.$ac_ext <<_ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
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_imagehlp_main=yes
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13332 ac_cv_lib_imagehlp_main=no
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_imagehlp_main" >&5
13340 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13341 if test $ac_cv_lib_imagehlp_main = yes; then
13342 cat >>confdefs.h <<_ACEOF
13343 #define HAVE_LIBIMAGEHLP 1
13346 LIBS="-limagehlp $LIBS"
13351 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13352 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13353 if test "${ac_cv_lib_psapi_main+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 ac_check_lib_save_LIBS=$LIBS
13357 LIBS="-lpsapi $LIBS"
13358 cat >conftest.$ac_ext <<_ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13374 rm -f conftest.$ac_objext conftest$ac_exeext
13375 if { (ac_try="$ac_link"
13376 case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_link") 2>conftest.er1
13383 grep -v '^ *+' conftest.er1 >conftest.err
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13389 { (case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_try") 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest$ac_exeext'
13399 { (case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_try") 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_lib_psapi_main=yes
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13413 ac_cv_lib_psapi_main=no
13416 rm -f core conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13418 LIBS=$ac_check_lib_save_LIBS
13420 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13421 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13422 if test $ac_cv_lib_psapi_main = yes; then
13423 cat >>confdefs.h <<_ACEOF
13424 #define HAVE_LIBPSAPI 1
13427 LIBS="-lpsapi $LIBS"
13433 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13434 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13435 if test "${ac_cv_search_dlopen+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 ac_func_search_save_LIBS=$LIBS
13439 cat >conftest.$ac_ext <<_ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13446 /* Override any GCC internal prototype to avoid an error.
13447 Use char because int might match the return type of a GCC
13448 builtin and then its argument prototype would still apply. */
13461 for ac_lib in '' dl; do
13462 if test -z "$ac_lib"; then
13463 ac_res="none required"
13466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13468 rm -f conftest.$ac_objext conftest$ac_exeext
13469 if { (ac_try="$ac_link"
13470 case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_link") 2>conftest.er1
13477 grep -v '^ *+' conftest.er1 >conftest.err
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest$ac_exeext'
13493 { (case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_try") 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_cv_search_dlopen=$ac_res
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13510 rm -f core conftest.err conftest.$ac_objext \
13512 if test "${ac_cv_search_dlopen+set}" = set; then
13516 if test "${ac_cv_search_dlopen+set}" = set; then
13519 ac_cv_search_dlopen=no
13521 rm conftest.$ac_ext
13522 LIBS=$ac_func_search_save_LIBS
13524 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13525 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13526 ac_res=$ac_cv_search_dlopen
13527 if test "$ac_res" != no; then
13528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13530 cat >>confdefs.h <<\_ACEOF
13531 #define HAVE_DLOPEN 1
13535 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13536 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13540 if test "$llvm_cv_enable_libffi" = "yes" ; then
13541 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13542 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13543 if test "${ac_cv_search_ffi_call+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 ac_func_search_save_LIBS=$LIBS
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13554 /* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13564 return ffi_call ();
13569 for ac_lib in '' ffi; do
13570 if test -z "$ac_lib"; then
13571 ac_res="none required"
13574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (ac_try="$ac_link"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_link") 2>conftest.er1
13585 grep -v '^ *+' conftest.er1 >conftest.err
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13591 { (case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_try") 2>&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; } &&
13600 { ac_try='test -s conftest$ac_exeext'
13601 { (case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_try") 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; }; then
13610 ac_cv_search_ffi_call=$ac_res
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13618 rm -f core conftest.err conftest.$ac_objext \
13620 if test "${ac_cv_search_ffi_call+set}" = set; then
13624 if test "${ac_cv_search_ffi_call+set}" = set; then
13627 ac_cv_search_ffi_call=no
13629 rm conftest.$ac_ext
13630 LIBS=$ac_func_search_save_LIBS
13632 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13633 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13634 ac_res=$ac_cv_search_ffi_call
13635 if test "$ac_res" != no; then
13636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13638 cat >>confdefs.h <<\_ACEOF
13639 #define HAVE_FFI_CALL 1
13643 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13644 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13645 { (exit 1); exit 1; }; }
13650 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13651 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13652 if test "${ac_cv_search_mallinfo+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 ac_func_search_save_LIBS=$LIBS
13656 cat >conftest.$ac_ext <<_ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13673 return mallinfo ();
13678 for ac_lib in '' malloc; do
13679 if test -z "$ac_lib"; then
13680 ac_res="none required"
13683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13685 rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (ac_try="$ac_link"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_link") 2>conftest.er1
13694 grep -v '^ *+' conftest.er1 >conftest.err
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest$ac_exeext'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_search_mallinfo=$ac_res
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13727 rm -f core conftest.err conftest.$ac_objext \
13729 if test "${ac_cv_search_mallinfo+set}" = set; then
13733 if test "${ac_cv_search_mallinfo+set}" = set; then
13736 ac_cv_search_mallinfo=no
13738 rm conftest.$ac_ext
13739 LIBS=$ac_func_search_save_LIBS
13741 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13742 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13743 ac_res=$ac_cv_search_mallinfo
13744 if test "$ac_res" != no; then
13745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13747 cat >>confdefs.h <<\_ACEOF
13748 #define HAVE_MALLINFO 1
13754 if test "$ENABLE_THREADS" -eq 1 ; then
13756 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13757 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13758 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 ac_check_lib_save_LIBS=$LIBS
13762 LIBS="-lpthread $LIBS"
13763 cat >conftest.$ac_ext <<_ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13770 /* Override any GCC internal prototype to avoid an error.
13771 Use char because int might match the return type of a GCC
13772 builtin and then its argument prototype would still apply. */
13776 char pthread_mutex_init ();
13780 return pthread_mutex_init ();
13785 rm -f conftest.$ac_objext conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_link") 2>conftest.er1
13794 grep -v '^ *+' conftest.er1 >conftest.err
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800 { (case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_try") 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest$ac_exeext'
13810 { (case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_try") 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_lib_pthread_pthread_mutex_init=yes
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13824 ac_cv_lib_pthread_pthread_mutex_init=no
13827 rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_check_lib_save_LIBS
13831 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13832 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13833 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13834 cat >>confdefs.h <<_ACEOF
13835 #define HAVE_LIBPTHREAD 1
13838 LIBS="-lpthread $LIBS"
13842 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13843 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13844 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 ac_func_search_save_LIBS=$LIBS
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 /* Override any GCC internal prototype to avoid an error.
13856 Use char because int might match the return type of a GCC
13857 builtin and then its argument prototype would still apply. */
13861 char pthread_mutex_lock ();
13865 return pthread_mutex_lock ();
13870 for ac_lib in '' pthread; do
13871 if test -z "$ac_lib"; then
13872 ac_res="none required"
13875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13877 rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (ac_try="$ac_link"
13879 case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_link") 2>conftest.er1
13886 grep -v '^ *+' conftest.er1 >conftest.err
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_try") 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 ac_cv_search_pthread_mutex_lock=$ac_res
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13919 rm -f core conftest.err conftest.$ac_objext \
13921 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13925 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13928 ac_cv_search_pthread_mutex_lock=no
13930 rm conftest.$ac_ext
13931 LIBS=$ac_func_search_save_LIBS
13933 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13934 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13935 ac_res=$ac_cv_search_pthread_mutex_lock
13936 if test "$ac_res" != no; then
13937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13939 cat >>confdefs.h <<\_ACEOF
13940 #define HAVE_PTHREAD_MUTEX_LOCK 1
13945 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13946 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13947 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 ac_func_search_save_LIBS=$LIBS
13951 cat >conftest.$ac_ext <<_ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13958 /* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
13964 char pthread_rwlock_init ();
13968 return pthread_rwlock_init ();
13973 for ac_lib in '' pthread; do
13974 if test -z "$ac_lib"; then
13975 ac_res="none required"
13978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13980 rm -f conftest.$ac_objext conftest$ac_exeext
13981 if { (ac_try="$ac_link"
13982 case "(($ac_try" in
13983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984 *) ac_try_echo=$ac_try;;
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987 (eval "$ac_link") 2>conftest.er1
13989 grep -v '^ *+' conftest.er1 >conftest.err
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13995 { (case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_try") 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try='test -s conftest$ac_exeext'
14005 { (case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_try") 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 ac_cv_search_pthread_rwlock_init=$ac_res
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14022 rm -f core conftest.err conftest.$ac_objext \
14024 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14028 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14031 ac_cv_search_pthread_rwlock_init=no
14033 rm conftest.$ac_ext
14034 LIBS=$ac_func_search_save_LIBS
14036 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14037 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14038 ac_res=$ac_cv_search_pthread_rwlock_init
14039 if test "$ac_res" != no; then
14040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14042 cat >>confdefs.h <<\_ACEOF
14043 #define HAVE_PTHREAD_RWLOCK_INIT 1
14048 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14049 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14050 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 ac_func_search_save_LIBS=$LIBS
14054 cat >conftest.$ac_ext <<_ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h. */
14061 /* Override any GCC internal prototype to avoid an error.
14062 Use char because int might match the return type of a GCC
14063 builtin and then its argument prototype would still apply. */
14067 char pthread_getspecific ();
14071 return pthread_getspecific ();
14076 for ac_lib in '' pthread; do
14077 if test -z "$ac_lib"; then
14078 ac_res="none required"
14081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14083 rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (ac_try="$ac_link"
14085 case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_link") 2>conftest.er1
14092 grep -v '^ *+' conftest.er1 >conftest.err
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14098 { (case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_try") 2>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest$ac_exeext'
14108 { (case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_try") 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_search_pthread_getspecific=$ac_res
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14125 rm -f core conftest.err conftest.$ac_objext \
14127 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14131 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14134 ac_cv_search_pthread_getspecific=no
14136 rm conftest.$ac_ext
14137 LIBS=$ac_func_search_save_LIBS
14139 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14140 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14141 ac_res=$ac_cv_search_pthread_getspecific
14142 if test "$ac_res" != no; then
14143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_PTHREAD_GETSPECIFIC 1
14154 # Check whether --with-udis86 was given.
14155 if test "${with_udis86+set}" = set; then
14156 withval=$with_udis86;
14161 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14164 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14165 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14166 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 ac_check_lib_save_LIBS=$LIBS
14170 LIBS="-ludis86 $LIBS"
14171 cat >conftest.$ac_ext <<_ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14178 /* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
14193 rm -f conftest.$ac_objext conftest$ac_exeext
14194 if { (ac_try="$ac_link"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>conftest.er1
14202 grep -v '^ *+' conftest.er1 >conftest.err
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14208 { (case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_try") 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; } &&
14217 { ac_try='test -s conftest$ac_exeext'
14218 { (case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_try") 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_lib_udis86_ud_init=yes
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 ac_cv_lib_udis86_ud_init=no
14235 rm -f core conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
14237 LIBS=$ac_check_lib_save_LIBS
14239 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14240 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14241 if test $ac_cv_lib_udis86_ud_init = yes; then
14242 cat >>confdefs.h <<_ACEOF
14243 #define HAVE_LIBUDIS86 1
14246 LIBS="-ludis86 $LIBS"
14250 echo "Error! You need to have libudis86 around."
14262 cat >>confdefs.h <<_ACEOF
14263 #define USE_UDIS86 $USE_UDIS86
14268 # Check whether --with-oprofile was given.
14269 if test "${with_oprofile+set}" = set; then
14270 withval=$with_oprofile;
14274 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14275 no) llvm_cv_oppath=
14278 *) llvm_cv_oppath="${withval}/lib/oprofile"
14279 CPPFLAGS="-I${withval}/include";;
14281 if test -n "$llvm_cv_oppath" ; then
14282 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14283 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14284 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14285 if test "${ac_cv_search_bfd_init+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 ac_func_search_save_LIBS=$LIBS
14289 cat >conftest.$ac_ext <<_ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14296 /* Override any GCC internal prototype to avoid an error.
14297 Use char because int might match the return type of a GCC
14298 builtin and then its argument prototype would still apply. */
14306 return bfd_init ();
14311 for ac_lib in '' bfd; do
14312 if test -z "$ac_lib"; then
14313 ac_res="none required"
14316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14318 rm -f conftest.$ac_objext conftest$ac_exeext
14319 if { (ac_try="$ac_link"
14320 case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_link") 2>conftest.er1
14327 grep -v '^ *+' conftest.er1 >conftest.err
14329 cat conftest.err >&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } &&
14332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14333 { (case "(($ac_try" in
14334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14335 *) ac_try_echo=$ac_try;;
14337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14338 (eval "$ac_try") 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; } &&
14342 { ac_try='test -s conftest$ac_exeext'
14343 { (case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_try") 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 ac_cv_search_bfd_init=$ac_res
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14360 rm -f core conftest.err conftest.$ac_objext \
14362 if test "${ac_cv_search_bfd_init+set}" = set; then
14366 if test "${ac_cv_search_bfd_init+set}" = set; then
14369 ac_cv_search_bfd_init=no
14371 rm conftest.$ac_ext
14372 LIBS=$ac_func_search_save_LIBS
14374 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14375 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14376 ac_res=$ac_cv_search_bfd_init
14377 if test "$ac_res" != no; then
14378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14382 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14383 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14384 if test "${ac_cv_search_op_open_agent+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 ac_func_search_save_LIBS=$LIBS
14388 cat >conftest.$ac_ext <<_ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14401 char op_open_agent ();
14405 return op_open_agent ();
14410 for ac_lib in '' opagent; do
14411 if test -z "$ac_lib"; then
14412 ac_res="none required"
14415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14417 rm -f conftest.$ac_objext conftest$ac_exeext
14418 if { (ac_try="$ac_link"
14419 case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_link") 2>conftest.er1
14426 grep -v '^ *+' conftest.er1 >conftest.err
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14432 { (case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_try") 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest$ac_exeext'
14442 { (case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_try") 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 ac_cv_search_op_open_agent=$ac_res
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14459 rm -f core conftest.err conftest.$ac_objext \
14461 if test "${ac_cv_search_op_open_agent+set}" = set; then
14465 if test "${ac_cv_search_op_open_agent+set}" = set; then
14468 ac_cv_search_op_open_agent=no
14470 rm conftest.$ac_ext
14471 LIBS=$ac_func_search_save_LIBS
14473 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14474 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14475 ac_res=$ac_cv_search_op_open_agent
14476 if test "$ac_res" != no; then
14477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14481 echo "Error! You need to have libopagent around."
14486 if test "${ac_cv_header_opagent_h+set}" = set; then
14487 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14488 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14489 if test "${ac_cv_header_opagent_h+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14493 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14495 # Is the header compilable?
14496 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14497 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14498 cat >conftest.$ac_ext <<_ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 $ac_includes_default
14505 #include <opagent.h>
14507 rm -f conftest.$ac_objext
14508 if { (ac_try="$ac_compile"
14509 case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_compile") 2>conftest.er1
14516 grep -v '^ *+' conftest.er1 >conftest.err
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } &&
14521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14522 { (case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_try") 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest.$ac_objext'
14532 { (case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_try") 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541 ac_header_compiler=yes
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14546 ac_header_compiler=no
14549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14551 echo "${ECHO_T}$ac_header_compiler" >&6; }
14553 # Is the header present?
14554 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14555 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14556 cat >conftest.$ac_ext <<_ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14562 #include <opagent.h>
14564 if { (ac_try="$ac_cpp conftest.$ac_ext"
14565 case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14572 grep -v '^ *+' conftest.er1 >conftest.err
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } >/dev/null; then
14577 if test -s conftest.err; then
14578 ac_cpp_err=$ac_c_preproc_warn_flag
14579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14586 if test -z "$ac_cpp_err"; then
14587 ac_header_preproc=yes
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14592 ac_header_preproc=no
14595 rm -f conftest.err conftest.$ac_ext
14596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14597 echo "${ECHO_T}$ac_header_preproc" >&6; }
14599 # So? What about this header?
14600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14602 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14603 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14605 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14606 ac_header_preproc=yes
14609 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14610 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14612 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14613 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14614 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14616 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14618 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14619 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14620 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14622 ## ----------------------------------- ##
14623 ## Report this to llvmbugs@cs.uiuc.edu ##
14624 ## ----------------------------------- ##
14626 ) | sed "s/^/$as_me: WARNING: /" >&2
14629 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14630 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14631 if test "${ac_cv_header_opagent_h+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 ac_cv_header_opagent_h=$ac_header_preproc
14636 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14637 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14640 if test $ac_cv_header_opagent_h = yes; then
14644 echo "Error! You need to have opagent.h around."
14660 cat >>confdefs.h <<_ACEOF
14661 #define USE_OPROFILE $USE_OPROFILE
14671 ac_header_dirent=no
14672 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14673 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14674 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14675 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 cat >conftest.$ac_ext <<_ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 #include <sys/types.h>
14697 rm -f conftest.$ac_objext
14698 if { (ac_try="$ac_compile"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_compile") 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712 { (case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_try") 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_try") 2>&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 eval "$as_ac_Header=yes"
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 eval "$as_ac_Header=no"
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 ac_res=`eval echo '${'$as_ac_Header'}'`
14742 { echo "$as_me:$LINENO: result: $ac_res" >&5
14743 echo "${ECHO_T}$ac_res" >&6; }
14744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14745 cat >>confdefs.h <<_ACEOF
14746 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14749 ac_header_dirent=$ac_hdr; break
14753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14754 if test $ac_header_dirent = dirent.h; then
14755 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14757 if test "${ac_cv_search_opendir+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 ac_func_search_save_LIBS=$LIBS
14761 cat >conftest.$ac_ext <<_ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14768 /* Override any GCC internal prototype to avoid an error.
14769 Use char because int might match the return type of a GCC
14770 builtin and then its argument prototype would still apply. */
14783 for ac_lib in '' dir; do
14784 if test -z "$ac_lib"; then
14785 ac_res="none required"
14788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14790 rm -f conftest.$ac_objext conftest$ac_exeext
14791 if { (ac_try="$ac_link"
14792 case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_link") 2>conftest.er1
14799 grep -v '^ *+' conftest.er1 >conftest.err
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14805 { (case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_try") 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest$ac_exeext'
14815 { (case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_try") 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 ac_cv_search_opendir=$ac_res
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14832 rm -f core conftest.err conftest.$ac_objext \
14834 if test "${ac_cv_search_opendir+set}" = set; then
14838 if test "${ac_cv_search_opendir+set}" = set; then
14841 ac_cv_search_opendir=no
14843 rm conftest.$ac_ext
14844 LIBS=$ac_func_search_save_LIBS
14846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14848 ac_res=$ac_cv_search_opendir
14849 if test "$ac_res" != no; then
14850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14855 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14856 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14857 if test "${ac_cv_search_opendir+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 ac_func_search_save_LIBS=$LIBS
14861 cat >conftest.$ac_ext <<_ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14868 /* Override any GCC internal prototype to avoid an error.
14869 Use char because int might match the return type of a GCC
14870 builtin and then its argument prototype would still apply. */
14883 for ac_lib in '' x; do
14884 if test -z "$ac_lib"; then
14885 ac_res="none required"
14888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (ac_try="$ac_link"
14892 case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_link") 2>conftest.er1
14899 grep -v '^ *+' conftest.er1 >conftest.err
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14905 { (case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_try") 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest$ac_exeext'
14915 { (case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14920 (eval "$ac_try") 2>&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_cv_search_opendir=$ac_res
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14932 rm -f core conftest.err conftest.$ac_objext \
14934 if test "${ac_cv_search_opendir+set}" = set; then
14938 if test "${ac_cv_search_opendir+set}" = set; then
14941 ac_cv_search_opendir=no
14943 rm conftest.$ac_ext
14944 LIBS=$ac_func_search_save_LIBS
14946 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14947 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14948 ac_res=$ac_cv_search_opendir
14949 if test "$ac_res" != no; then
14950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14956 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14957 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14958 if test "${ac_cv_header_mmap_anon+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 ac_cpp='$CPP $CPPFLAGS'
14963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 #include <sys/mman.h>
14974 #include <unistd.h>
14979 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14984 rm -f conftest.$ac_objext
14985 if { (ac_try="$ac_compile"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_compile") 2>conftest.er1
14993 grep -v '^ *+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14999 { (case "(($ac_try" in
15000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_try") 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try='test -s conftest.$ac_objext'
15009 { (case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_try") 2>&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }; then
15018 ac_cv_header_mmap_anon=yes
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_cv_header_mmap_anon=no
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 ac_cpp='$CPP $CPPFLAGS'
15029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15035 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15036 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15037 if test "$ac_cv_header_mmap_anon" = yes; then
15039 cat >>confdefs.h <<\_ACEOF
15040 #define HAVE_MMAP_ANONYMOUS 1
15045 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15046 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15047 if test "${ac_cv_header_stat_broken+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 cat >conftest.$ac_ext <<_ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 #include <sys/types.h>
15057 #include <sys/stat.h>
15059 #if defined S_ISBLK && defined S_IFDIR
15060 # if S_ISBLK (S_IFDIR)
15065 #if defined S_ISBLK && defined S_IFCHR
15066 # if S_ISBLK (S_IFCHR)
15071 #if defined S_ISLNK && defined S_IFREG
15072 # if S_ISLNK (S_IFREG)
15077 #if defined S_ISSOCK && defined S_IFREG
15078 # if S_ISSOCK (S_IFREG)
15084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15085 $EGREP "You lose" >/dev/null 2>&1; then
15086 ac_cv_header_stat_broken=yes
15088 ac_cv_header_stat_broken=no
15093 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15094 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15095 if test $ac_cv_header_stat_broken = yes; then
15097 cat >>confdefs.h <<\_ACEOF
15098 #define STAT_MACROS_BROKEN 1
15103 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15105 if test "${ac_cv_header_stdc+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 cat >conftest.$ac_ext <<_ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114 #include <stdlib.h>
15115 #include <stdarg.h>
15116 #include <string.h>
15127 rm -f conftest.$ac_objext
15128 if { (ac_try="$ac_compile"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_compile") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15142 { (case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_try") 2>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; } &&
15151 { ac_try='test -s conftest.$ac_objext'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 ac_cv_header_stdc=yes
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 ac_cv_header_stdc=no
15169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 if test $ac_cv_header_stdc = yes; then
15172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15173 cat >conftest.$ac_ext <<_ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15179 #include <string.h>
15182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15183 $EGREP "memchr" >/dev/null 2>&1; then
15186 ac_cv_header_stdc=no
15192 if test $ac_cv_header_stdc = yes; then
15193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #include <stdlib.h>
15203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15204 $EGREP "free" >/dev/null 2>&1; then
15207 ac_cv_header_stdc=no
15213 if test $ac_cv_header_stdc = yes; then
15214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15215 if test "$cross_compiling" = yes; then
15218 cat >conftest.$ac_ext <<_ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15225 #include <stdlib.h>
15226 #if ((' ' & 0x0FF) == 0x020)
15227 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15228 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15230 # define ISLOWER(c) \
15231 (('a' <= (c) && (c) <= 'i') \
15232 || ('j' <= (c) && (c) <= 'r') \
15233 || ('s' <= (c) && (c) <= 'z'))
15234 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15242 for (i = 0; i < 256; i++)
15243 if (XOR (islower (i), ISLOWER (i))
15244 || toupper (i) != TOUPPER (i))
15249 rm -f conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15260 { (case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_try") 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15271 echo "$as_me: program exited with status $ac_status" >&5
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ( exit $ac_status )
15276 ac_cv_header_stdc=no
15278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15284 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15285 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15286 if test $ac_cv_header_stdc = yes; then
15288 cat >>confdefs.h <<\_ACEOF
15289 #define STDC_HEADERS 1
15294 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15295 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15296 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 cat >conftest.$ac_ext <<_ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h. */
15305 #include <sys/types.h>
15306 #include <sys/wait.h>
15307 #ifndef WEXITSTATUS
15308 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15311 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15319 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15324 rm -f conftest.$ac_objext
15325 if { (ac_try="$ac_compile"
15326 case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_compile") 2>conftest.er1
15333 grep -v '^ *+' conftest.er1 >conftest.err
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest.$ac_objext'
15349 { (case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_try") 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_cv_header_sys_wait_h=yes
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_cv_header_sys_wait_h=no
15366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15369 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15370 if test $ac_cv_header_sys_wait_h = yes; then
15372 cat >>confdefs.h <<\_ACEOF
15373 #define HAVE_SYS_WAIT_H 1
15378 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15379 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15380 if test "${ac_cv_header_time+set}" = set; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 cat >conftest.$ac_ext <<_ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15389 #include <sys/types.h>
15390 #include <sys/time.h>
15396 if ((struct tm *) 0)
15402 rm -f conftest.$ac_objext
15403 if { (ac_try="$ac_compile"
15404 case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_compile") 2>conftest.er1
15411 grep -v '^ *+' conftest.er1 >conftest.err
15413 cat conftest.err >&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } &&
15416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15417 { (case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_try") 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest.$ac_objext'
15427 { (case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_try") 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15436 ac_cv_header_time=yes
15438 echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 ac_cv_header_time=no
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15446 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15447 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15448 if test $ac_cv_header_time = yes; then
15450 cat >>confdefs.h <<\_ACEOF
15451 #define TIME_WITH_SYS_TIME 1
15463 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 ac_res=`eval echo '${'$as_ac_Header'}'`
15473 { echo "$as_me:$LINENO: result: $ac_res" >&5
15474 echo "${ECHO_T}$ac_res" >&6; }
15476 # Is the header compilable?
15477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15485 $ac_includes_default
15486 #include <$ac_header>
15488 rm -f conftest.$ac_objext
15489 if { (ac_try="$ac_compile"
15490 case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_compile") 2>conftest.er1
15497 grep -v '^ *+' conftest.er1 >conftest.err
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15503 { (case "(($ac_try" in
15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505 *) ac_try_echo=$ac_try;;
15507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508 (eval "$ac_try") 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; } &&
15512 { ac_try='test -s conftest.$ac_objext'
15513 { (case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_try") 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 ac_header_compiler=yes
15524 echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15527 ac_header_compiler=no
15530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15532 echo "${ECHO_T}$ac_header_compiler" >&6; }
15534 # Is the header present?
15535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15537 cat >conftest.$ac_ext <<_ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 #include <$ac_header>
15545 if { (ac_try="$ac_cpp conftest.$ac_ext"
15546 case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15553 grep -v '^ *+' conftest.er1 >conftest.err
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } >/dev/null; then
15558 if test -s conftest.err; then
15559 ac_cpp_err=$ac_c_preproc_warn_flag
15560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15567 if test -z "$ac_cpp_err"; then
15568 ac_header_preproc=yes
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_header_preproc=no
15576 rm -f conftest.err conftest.$ac_ext
15577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15578 echo "${ECHO_T}$ac_header_preproc" >&6; }
15580 # So? What about this header?
15581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15587 ac_header_preproc=yes
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15603 ## ----------------------------------- ##
15604 ## Report this to llvmbugs@cs.uiuc.edu ##
15605 ## ----------------------------------- ##
15607 ) | sed "s/^/$as_me: WARNING: /" >&2
15610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 eval "$as_ac_Header=\$ac_header_preproc"
15617 ac_res=`eval echo '${'$as_ac_Header'}'`
15618 { echo "$as_me:$LINENO: result: $ac_res" >&5
15619 echo "${ECHO_T}$ac_res" >&6; }
15622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15637 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 ac_res=`eval echo '${'$as_ac_Header'}'`
15647 { echo "$as_me:$LINENO: result: $ac_res" >&5
15648 echo "${ECHO_T}$ac_res" >&6; }
15650 # Is the header compilable?
15651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15653 cat >conftest.$ac_ext <<_ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15659 $ac_includes_default
15660 #include <$ac_header>
15662 rm -f conftest.$ac_objext
15663 if { (ac_try="$ac_compile"
15664 case "(($ac_try" in
15665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_compile") 2>conftest.er1
15671 grep -v '^ *+' conftest.er1 >conftest.err
15673 cat conftest.err >&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } &&
15676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15677 { (case "(($ac_try" in
15678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679 *) ac_try_echo=$ac_try;;
15681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15682 (eval "$ac_try") 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try='test -s conftest.$ac_objext'
15687 { (case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692 (eval "$ac_try") 2>&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15696 ac_header_compiler=yes
15698 echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15701 ac_header_compiler=no
15704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15706 echo "${ECHO_T}$ac_header_compiler" >&6; }
15708 # Is the header present?
15709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 #include <$ac_header>
15719 if { (ac_try="$ac_cpp conftest.$ac_ext"
15720 case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } >/dev/null; then
15732 if test -s conftest.err; then
15733 ac_cpp_err=$ac_c_preproc_warn_flag
15734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15741 if test -z "$ac_cpp_err"; then
15742 ac_header_preproc=yes
15744 echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15747 ac_header_preproc=no
15750 rm -f conftest.err conftest.$ac_ext
15751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15752 echo "${ECHO_T}$ac_header_preproc" >&6; }
15754 # So? What about this header?
15755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15761 ac_header_preproc=yes
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15777 ## ----------------------------------- ##
15778 ## Report this to llvmbugs@cs.uiuc.edu ##
15779 ## ----------------------------------- ##
15781 ) | sed "s/^/$as_me: WARNING: /" >&2
15784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 eval "$as_ac_Header=\$ac_header_preproc"
15791 ac_res=`eval echo '${'$as_ac_Header'}'`
15792 { echo "$as_me:$LINENO: result: $ac_res" >&5
15793 echo "${ECHO_T}$ac_res" >&6; }
15796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15807 for ac_header in utime.h windows.h
15809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 ac_res=`eval echo '${'$as_ac_Header'}'`
15817 { echo "$as_me:$LINENO: result: $ac_res" >&5
15818 echo "${ECHO_T}$ac_res" >&6; }
15820 # Is the header compilable?
15821 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15823 cat >conftest.$ac_ext <<_ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 $ac_includes_default
15830 #include <$ac_header>
15832 rm -f conftest.$ac_objext
15833 if { (ac_try="$ac_compile"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_compile") 2>conftest.er1
15841 grep -v '^ *+' conftest.er1 >conftest.err
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15847 { (case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_try") 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; } &&
15856 { ac_try='test -s conftest.$ac_objext'
15857 { (case "(($ac_try" in
15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 *) ac_try_echo=$ac_try;;
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862 (eval "$ac_try") 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_header_compiler=yes
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15871 ac_header_compiler=no
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15876 echo "${ECHO_T}$ac_header_compiler" >&6; }
15878 # Is the header present?
15879 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15881 cat >conftest.$ac_ext <<_ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 #include <$ac_header>
15889 if { (ac_try="$ac_cpp conftest.$ac_ext"
15890 case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15897 grep -v '^ *+' conftest.er1 >conftest.err
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } >/dev/null; then
15902 if test -s conftest.err; then
15903 ac_cpp_err=$ac_c_preproc_warn_flag
15904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15911 if test -z "$ac_cpp_err"; then
15912 ac_header_preproc=yes
15914 echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15917 ac_header_preproc=no
15920 rm -f conftest.err conftest.$ac_ext
15921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15922 echo "${ECHO_T}$ac_header_preproc" >&6; }
15924 # So? What about this header?
15925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15931 ac_header_preproc=yes
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15947 ## ----------------------------------- ##
15948 ## Report this to llvmbugs@cs.uiuc.edu ##
15949 ## ----------------------------------- ##
15951 ) | sed "s/^/$as_me: WARNING: /" >&2
15954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 eval "$as_ac_Header=\$ac_header_preproc"
15961 ac_res=`eval echo '${'$as_ac_Header'}'`
15962 { echo "$as_me:$LINENO: result: $ac_res" >&5
15963 echo "${ECHO_T}$ac_res" >&6; }
15966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15979 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 ac_res=`eval echo '${'$as_ac_Header'}'`
15989 { echo "$as_me:$LINENO: result: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15992 # Is the header compilable?
15993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15995 cat >conftest.$ac_ext <<_ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 $ac_includes_default
16002 #include <$ac_header>
16004 rm -f conftest.$ac_objext
16005 if { (ac_try="$ac_compile"
16006 case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_compile") 2>conftest.er1
16013 grep -v '^ *+' conftest.er1 >conftest.err
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16019 { (case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_try") 2>&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; } &&
16028 { ac_try='test -s conftest.$ac_objext'
16029 { (case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_try") 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_header_compiler=yes
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 ac_header_compiler=no
16046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16048 echo "${ECHO_T}$ac_header_compiler" >&6; }
16050 # Is the header present?
16051 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16053 cat >conftest.$ac_ext <<_ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 #include <$ac_header>
16061 if { (ac_try="$ac_cpp conftest.$ac_ext"
16062 case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } >/dev/null; then
16074 if test -s conftest.err; then
16075 ac_cpp_err=$ac_c_preproc_warn_flag
16076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16083 if test -z "$ac_cpp_err"; then
16084 ac_header_preproc=yes
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 ac_header_preproc=no
16092 rm -f conftest.err conftest.$ac_ext
16093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16094 echo "${ECHO_T}$ac_header_preproc" >&6; }
16096 # So? What about this header?
16097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16103 ac_header_preproc=yes
16106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16119 ## ----------------------------------- ##
16120 ## Report this to llvmbugs@cs.uiuc.edu ##
16121 ## ----------------------------------- ##
16123 ) | sed "s/^/$as_me: WARNING: /" >&2
16126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 eval "$as_ac_Header=\$ac_header_preproc"
16133 ac_res=`eval echo '${'$as_ac_Header'}'`
16134 { echo "$as_me:$LINENO: result: $ac_res" >&5
16135 echo "${ECHO_T}$ac_res" >&6; }
16138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16139 cat >>confdefs.h <<_ACEOF
16140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16151 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 ac_res=`eval echo '${'$as_ac_Header'}'`
16161 { echo "$as_me:$LINENO: result: $ac_res" >&5
16162 echo "${ECHO_T}$ac_res" >&6; }
16164 # Is the header compilable?
16165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16167 cat >conftest.$ac_ext <<_ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16173 $ac_includes_default
16174 #include <$ac_header>
16176 rm -f conftest.$ac_objext
16177 if { (ac_try="$ac_compile"
16178 case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_compile") 2>conftest.er1
16185 grep -v '^ *+' conftest.er1 >conftest.err
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16191 { (case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_try") 2>&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; } &&
16200 { ac_try='test -s conftest.$ac_objext'
16201 { (case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_try") 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_header_compiler=yes
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ac_header_compiler=no
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16220 echo "${ECHO_T}$ac_header_compiler" >&6; }
16222 # Is the header present?
16223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16225 cat >conftest.$ac_ext <<_ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 #include <$ac_header>
16233 if { (ac_try="$ac_cpp conftest.$ac_ext"
16234 case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16241 grep -v '^ *+' conftest.er1 >conftest.err
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } >/dev/null; then
16246 if test -s conftest.err; then
16247 ac_cpp_err=$ac_c_preproc_warn_flag
16248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16255 if test -z "$ac_cpp_err"; then
16256 ac_header_preproc=yes
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16261 ac_header_preproc=no
16264 rm -f conftest.err conftest.$ac_ext
16265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16266 echo "${ECHO_T}$ac_header_preproc" >&6; }
16268 # So? What about this header?
16269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16275 ac_header_preproc=yes
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16291 ## ----------------------------------- ##
16292 ## Report this to llvmbugs@cs.uiuc.edu ##
16293 ## ----------------------------------- ##
16295 ) | sed "s/^/$as_me: WARNING: /" >&2
16298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 eval "$as_ac_Header=\$ac_header_preproc"
16305 ac_res=`eval echo '${'$as_ac_Header'}'`
16306 { echo "$as_me:$LINENO: result: $ac_res" >&5
16307 echo "${ECHO_T}$ac_res" >&6; }
16310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16311 cat >>confdefs.h <<_ACEOF
16312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16320 for ac_header in valgrind/valgrind.h
16322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330 { echo "$as_me:$LINENO: result: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16333 # Is the header compilable?
16334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16336 cat >conftest.$ac_ext <<_ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16342 $ac_includes_default
16343 #include <$ac_header>
16345 rm -f conftest.$ac_objext
16346 if { (ac_try="$ac_compile"
16347 case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_compile") 2>conftest.er1
16354 grep -v '^ *+' conftest.er1 >conftest.err
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; } &&
16369 { ac_try='test -s conftest.$ac_objext'
16370 { (case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_try") 2>&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_header_compiler=yes
16381 echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16384 ac_header_compiler=no
16387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16389 echo "${ECHO_T}$ac_header_compiler" >&6; }
16391 # Is the header present?
16392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16394 cat >conftest.$ac_ext <<_ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 #include <$ac_header>
16402 if { (ac_try="$ac_cpp conftest.$ac_ext"
16403 case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16410 grep -v '^ *+' conftest.er1 >conftest.err
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } >/dev/null; then
16415 if test -s conftest.err; then
16416 ac_cpp_err=$ac_c_preproc_warn_flag
16417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16424 if test -z "$ac_cpp_err"; then
16425 ac_header_preproc=yes
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_header_preproc=no
16433 rm -f conftest.err conftest.$ac_ext
16434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16435 echo "${ECHO_T}$ac_header_preproc" >&6; }
16437 # So? What about this header?
16438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16444 ac_header_preproc=yes
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16460 ## ----------------------------------- ##
16461 ## Report this to llvmbugs@cs.uiuc.edu ##
16462 ## ----------------------------------- ##
16464 ) | sed "s/^/$as_me: WARNING: /" >&2
16467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16472 eval "$as_ac_Header=\$ac_header_preproc"
16474 ac_res=`eval echo '${'$as_ac_Header'}'`
16475 { echo "$as_me:$LINENO: result: $ac_res" >&5
16476 echo "${ECHO_T}$ac_res" >&6; }
16479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16480 cat >>confdefs.h <<_ACEOF
16481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16488 if test "$ENABLE_THREADS" -eq 1 ; then
16490 for ac_header in pthread.h
16492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 ac_res=`eval echo '${'$as_ac_Header'}'`
16500 { echo "$as_me:$LINENO: result: $ac_res" >&5
16501 echo "${ECHO_T}$ac_res" >&6; }
16503 # Is the header compilable?
16504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16506 cat >conftest.$ac_ext <<_ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16512 $ac_includes_default
16513 #include <$ac_header>
16515 rm -f conftest.$ac_objext
16516 if { (ac_try="$ac_compile"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_compile") 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530 { (case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_try") 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; } &&
16539 { ac_try='test -s conftest.$ac_objext'
16540 { (case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_try") 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ac_header_compiler=yes
16551 echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.$ac_ext >&5
16554 ac_header_compiler=no
16557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16559 echo "${ECHO_T}$ac_header_compiler" >&6; }
16561 # Is the header present?
16562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16564 cat >conftest.$ac_ext <<_ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 #include <$ac_header>
16572 if { (ac_try="$ac_cpp conftest.$ac_ext"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } >/dev/null; then
16585 if test -s conftest.err; then
16586 ac_cpp_err=$ac_c_preproc_warn_flag
16587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16594 if test -z "$ac_cpp_err"; then
16595 ac_header_preproc=yes
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 ac_header_preproc=no
16603 rm -f conftest.err conftest.$ac_ext
16604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16605 echo "${ECHO_T}$ac_header_preproc" >&6; }
16607 # So? What about this header?
16608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16614 ac_header_preproc=yes
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16630 ## ----------------------------------- ##
16631 ## Report this to llvmbugs@cs.uiuc.edu ##
16632 ## ----------------------------------- ##
16634 ) | sed "s/^/$as_me: WARNING: /" >&2
16637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 eval "$as_ac_Header=\$ac_header_preproc"
16644 ac_res=`eval echo '${'$as_ac_Header'}'`
16645 { echo "$as_me:$LINENO: result: $ac_res" >&5
16646 echo "${ECHO_T}$ac_res" >&6; }
16649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16650 cat >>confdefs.h <<_ACEOF
16651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16667 if test "$llvm_cv_enable_libffi" = "yes" ; then
16670 for ac_header in ffi.h ffi/ffi.h
16672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 ac_res=`eval echo '${'$as_ac_Header'}'`
16680 { echo "$as_me:$LINENO: result: $ac_res" >&5
16681 echo "${ECHO_T}$ac_res" >&6; }
16683 # Is the header compilable?
16684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16686 cat >conftest.$ac_ext <<_ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692 $ac_includes_default
16693 #include <$ac_header>
16695 rm -f conftest.$ac_objext
16696 if { (ac_try="$ac_compile"
16697 case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_compile") 2>conftest.er1
16704 grep -v '^ *+' conftest.er1 >conftest.err
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_try") 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_header_compiler=yes
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_header_compiler=no
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16739 echo "${ECHO_T}$ac_header_compiler" >&6; }
16741 # Is the header present?
16742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16744 cat >conftest.$ac_ext <<_ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16750 #include <$ac_header>
16752 if { (ac_try="$ac_cpp conftest.$ac_ext"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16760 grep -v '^ *+' conftest.er1 >conftest.err
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } >/dev/null; then
16765 if test -s conftest.err; then
16766 ac_cpp_err=$ac_c_preproc_warn_flag
16767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16774 if test -z "$ac_cpp_err"; then
16775 ac_header_preproc=yes
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 ac_header_preproc=no
16783 rm -f conftest.err conftest.$ac_ext
16784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16785 echo "${ECHO_T}$ac_header_preproc" >&6; }
16787 # So? What about this header?
16788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16794 ac_header_preproc=yes
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16810 ## ----------------------------------- ##
16811 ## Report this to llvmbugs@cs.uiuc.edu ##
16812 ## ----------------------------------- ##
16814 ) | sed "s/^/$as_me: WARNING: /" >&2
16817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16822 eval "$as_ac_Header=\$ac_header_preproc"
16824 ac_res=`eval echo '${'$as_ac_Header'}'`
16825 { echo "$as_me:$LINENO: result: $ac_res" >&5
16826 echo "${ECHO_T}$ac_res" >&6; }
16829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16830 cat >>confdefs.h <<_ACEOF
16831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16843 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16844 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16845 if test "${ac_cv_huge_val_sanity+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 ac_cpp='$CXXCPP $CPPFLAGS'
16851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16855 ac_save_CXXFLAGS=$CXXFLAGS
16857 if test "$cross_compiling" = yes; then
16858 ac_cv_huge_val_sanity=yes
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16870 double x = HUGE_VAL; return x != x;
16875 rm -f conftest$ac_exeext
16876 if { (ac_try="$ac_link"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_link") 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16886 { (case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_try") 2>&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 ac_cv_huge_val_sanity=yes
16897 echo "$as_me: program exited with status $ac_status" >&5
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16901 ( exit $ac_status )
16902 ac_cv_huge_val_sanity=no
16904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16908 CXXFLAGS=$ac_save_CXXFLAGS
16910 ac_cpp='$CPP $CPPFLAGS'
16911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16917 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16918 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16919 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16922 { echo "$as_me:$LINENO: checking for pid_t" >&5
16923 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16924 if test "${ac_cv_type_pid_t+set}" = set; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16927 cat >conftest.$ac_ext <<_ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h. */
16933 $ac_includes_default
16934 typedef pid_t ac__type_new_;
16938 if ((ac__type_new_ *) 0)
16940 if (sizeof (ac__type_new_))
16946 rm -f conftest.$ac_objext
16947 if { (ac_try="$ac_compile"
16948 case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_compile") 2>conftest.er1
16955 grep -v '^ *+' conftest.er1 >conftest.err
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
16960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16961 { (case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_try") 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest.$ac_objext'
16971 { (case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_try") 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
16980 ac_cv_type_pid_t=yes
16982 echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 ac_cv_type_pid_t=no
16988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16990 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16991 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16992 if test $ac_cv_type_pid_t = yes; then
16996 cat >>confdefs.h <<_ACEOF
17002 { echo "$as_me:$LINENO: checking for size_t" >&5
17003 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17004 if test "${ac_cv_type_size_t+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 cat >conftest.$ac_ext <<_ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17013 $ac_includes_default
17014 typedef size_t ac__type_new_;
17018 if ((ac__type_new_ *) 0)
17020 if (sizeof (ac__type_new_))
17026 rm -f conftest.$ac_objext
17027 if { (ac_try="$ac_compile"
17028 case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_compile") 2>conftest.er1
17035 grep -v '^ *+' conftest.er1 >conftest.err
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17041 { (case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_try") 2>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest.$ac_objext'
17051 { (case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_try") 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 ac_cv_type_size_t=yes
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17065 ac_cv_type_size_t=no
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17071 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17072 if test $ac_cv_type_size_t = yes; then
17076 cat >>confdefs.h <<_ACEOF
17077 #define size_t unsigned int
17083 cat >>confdefs.h <<_ACEOF
17084 #define RETSIGTYPE void
17087 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17088 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17089 if test "${ac_cv_struct_tm+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
17092 cat >conftest.$ac_ext <<_ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17098 #include <sys/types.h>
17104 struct tm *tp; tp->tm_sec;
17109 rm -f conftest.$ac_objext
17110 if { (ac_try="$ac_compile"
17111 case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_compile") 2>conftest.er1
17118 grep -v '^ *+' conftest.er1 >conftest.err
17120 cat conftest.err >&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } &&
17123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17124 { (case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_try") 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; } &&
17133 { ac_try='test -s conftest.$ac_objext'
17134 { (case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_try") 2>&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 ac_cv_struct_tm=time.h
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 ac_cv_struct_tm=sys/time.h
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17153 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17154 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17155 if test $ac_cv_struct_tm = sys/time.h; then
17157 cat >>confdefs.h <<\_ACEOF
17158 #define TM_IN_SYS_TIME 1
17163 { echo "$as_me:$LINENO: checking for int64_t" >&5
17164 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17165 if test "${ac_cv_type_int64_t+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 cat >conftest.$ac_ext <<_ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174 $ac_includes_default
17175 typedef int64_t ac__type_new_;
17179 if ((ac__type_new_ *) 0)
17181 if (sizeof (ac__type_new_))
17187 rm -f conftest.$ac_objext
17188 if { (ac_try="$ac_compile"
17189 case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_compile") 2>conftest.er1
17196 grep -v '^ *+' conftest.er1 >conftest.err
17198 cat conftest.err >&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } &&
17201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17202 { (case "(($ac_try" in
17203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204 *) ac_try_echo=$ac_try;;
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207 (eval "$ac_try") 2>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; } &&
17211 { ac_try='test -s conftest.$ac_objext'
17212 { (case "(($ac_try" in
17213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214 *) ac_try_echo=$ac_try;;
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_try") 2>&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; }; then
17221 ac_cv_type_int64_t=yes
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17226 ac_cv_type_int64_t=no
17229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17232 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17233 if test $ac_cv_type_int64_t = yes; then
17235 cat >>confdefs.h <<_ACEOF
17236 #define HAVE_INT64_T 1
17241 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17242 echo "$as_me: error: Type int64_t required but not found" >&2;}
17243 { (exit 1); exit 1; }; }
17246 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17247 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17248 if test "${ac_cv_type_uint64_t+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 cat >conftest.$ac_ext <<_ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 $ac_includes_default
17258 typedef uint64_t ac__type_new_;
17262 if ((ac__type_new_ *) 0)
17264 if (sizeof (ac__type_new_))
17270 rm -f conftest.$ac_objext
17271 if { (ac_try="$ac_compile"
17272 case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_compile") 2>conftest.er1
17279 grep -v '^ *+' conftest.er1 >conftest.err
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
17284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17285 { (case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try='test -s conftest.$ac_objext'
17295 { (case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_try") 2>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_cv_type_uint64_t=yes
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 ac_cv_type_uint64_t=no
17312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17314 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17315 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17316 if test $ac_cv_type_uint64_t = yes; then
17318 cat >>confdefs.h <<_ACEOF
17319 #define HAVE_UINT64_T 1
17324 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17325 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17326 if test "${ac_cv_type_u_int64_t+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 cat >conftest.$ac_ext <<_ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17335 $ac_includes_default
17336 typedef u_int64_t ac__type_new_;
17340 if ((ac__type_new_ *) 0)
17342 if (sizeof (ac__type_new_))
17348 rm -f conftest.$ac_objext
17349 if { (ac_try="$ac_compile"
17350 case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17355 (eval "$ac_compile") 2>conftest.er1
17357 grep -v '^ *+' conftest.er1 >conftest.err
17359 cat conftest.err >&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
17362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17363 { (case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_try") 2>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; } &&
17372 { ac_try='test -s conftest.$ac_objext'
17373 { (case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_try") 2>&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; }; then
17382 ac_cv_type_u_int64_t=yes
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 ac_cv_type_u_int64_t=no
17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17392 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17393 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17394 if test $ac_cv_type_u_int64_t = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397 #define HAVE_U_INT64_T 1
17402 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17403 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17404 { (exit 1); exit 1; }; }
17418 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17426 cat >conftest.$ac_ext <<_ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17434 #define $ac_func innocuous_$ac_func
17436 /* System header to define __stub macros and hopefully few prototypes,
17437 which can conflict with char $ac_func (); below.
17438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17439 <limits.h> exists even on freestanding compilers. */
17442 # include <limits.h>
17444 # include <assert.h>
17449 /* Override any GCC internal prototype to avoid an error.
17450 Use char because int might match the return type of a GCC
17451 builtin and then its argument prototype would still apply. */
17456 /* The GNU C library defines this for functions which it implements
17457 to always fail with ENOSYS. Some functions are actually named
17458 something starting with __ and the normal name is an alias. */
17459 #if defined __stub_$ac_func || defined __stub___$ac_func
17466 return $ac_func ();
17471 rm -f conftest.$ac_objext conftest$ac_exeext
17472 if { (ac_try="$ac_link"
17473 case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_link") 2>conftest.er1
17480 grep -v '^ *+' conftest.er1 >conftest.err
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17486 { (case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_try") 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; } &&
17495 { ac_try='test -s conftest$ac_exeext'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; }; then
17505 eval "$as_ac_var=yes"
17507 echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17510 eval "$as_ac_var=no"
17513 rm -f core conftest.err conftest.$ac_objext \
17514 conftest$ac_exeext conftest.$ac_ext
17516 ac_res=`eval echo '${'$as_ac_var'}'`
17517 { echo "$as_me:$LINENO: result: $ac_res" >&5
17518 echo "${ECHO_T}$ac_res" >&6; }
17519 if test `eval echo '${'$as_ac_var'}'` = yes; then
17520 cat >>confdefs.h <<_ACEOF
17521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17531 for ac_func in powf fmodf strtof round
17533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17539 cat >conftest.$ac_ext <<_ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17547 #define $ac_func innocuous_$ac_func
17549 /* System header to define __stub macros and hopefully few prototypes,
17550 which can conflict with char $ac_func (); below.
17551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17552 <limits.h> exists even on freestanding compilers. */
17555 # include <limits.h>
17557 # include <assert.h>
17562 /* Override any GCC internal prototype to avoid an error.
17563 Use char because int might match the return type of a GCC
17564 builtin and then its argument prototype would still apply. */
17569 /* The GNU C library defines this for functions which it implements
17570 to always fail with ENOSYS. Some functions are actually named
17571 something starting with __ and the normal name is an alias. */
17572 #if defined __stub_$ac_func || defined __stub___$ac_func
17579 return $ac_func ();
17584 rm -f conftest.$ac_objext conftest$ac_exeext
17585 if { (ac_try="$ac_link"
17586 case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_link") 2>conftest.er1
17593 grep -v '^ *+' conftest.er1 >conftest.err
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
17598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17599 { (case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604 (eval "$ac_try") 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest$ac_exeext'
17609 { (case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_try") 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 eval "$as_ac_var=yes"
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 eval "$as_ac_var=no"
17626 rm -f core conftest.err conftest.$ac_objext \
17627 conftest$ac_exeext conftest.$ac_ext
17629 ac_res=`eval echo '${'$as_ac_var'}'`
17630 { echo "$as_me:$LINENO: result: $ac_res" >&5
17631 echo "${ECHO_T}$ac_res" >&6; }
17632 if test `eval echo '${'$as_ac_var'}'` = yes; then
17633 cat >>confdefs.h <<_ACEOF
17634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17645 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 cat >conftest.$ac_ext <<_ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h. */
17659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17661 #define $ac_func innocuous_$ac_func
17663 /* System header to define __stub macros and hopefully few prototypes,
17664 which can conflict with char $ac_func (); below.
17665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17666 <limits.h> exists even on freestanding compilers. */
17669 # include <limits.h>
17671 # include <assert.h>
17676 /* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17683 /* The GNU C library defines this for functions which it implements
17684 to always fail with ENOSYS. Some functions are actually named
17685 something starting with __ and the normal name is an alias. */
17686 #if defined __stub_$ac_func || defined __stub___$ac_func
17693 return $ac_func ();
17698 rm -f conftest.$ac_objext conftest$ac_exeext
17699 if { (ac_try="$ac_link"
17700 case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_link") 2>conftest.er1
17707 grep -v '^ *+' conftest.er1 >conftest.err
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_try") 2>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 eval "$as_ac_var=yes"
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 eval "$as_ac_var=no"
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17743 ac_res=`eval echo '${'$as_ac_var'}'`
17744 { echo "$as_me:$LINENO: result: $ac_res" >&5
17745 echo "${ECHO_T}$ac_res" >&6; }
17746 if test `eval echo '${'$as_ac_var'}'` = yes; then
17747 cat >>confdefs.h <<_ACEOF
17748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17757 for ac_func in isatty mkdtemp mkstemp
17759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 cat >conftest.$ac_ext <<_ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17773 #define $ac_func innocuous_$ac_func
17775 /* System header to define __stub macros and hopefully few prototypes,
17776 which can conflict with char $ac_func (); below.
17777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17778 <limits.h> exists even on freestanding compilers. */
17781 # include <limits.h>
17783 # include <assert.h>
17788 /* Override any GCC internal prototype to avoid an error.
17789 Use char because int might match the return type of a GCC
17790 builtin and then its argument prototype would still apply. */
17795 /* The GNU C library defines this for functions which it implements
17796 to always fail with ENOSYS. Some functions are actually named
17797 something starting with __ and the normal name is an alias. */
17798 #if defined __stub_$ac_func || defined __stub___$ac_func
17805 return $ac_func ();
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (ac_try="$ac_link"
17812 case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_link") 2>conftest.er1
17819 grep -v '^ *+' conftest.er1 >conftest.err
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
17824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; } &&
17834 { ac_try='test -s conftest$ac_exeext'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 eval "$as_ac_var=yes"
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17849 eval "$as_ac_var=no"
17852 rm -f core conftest.err conftest.$ac_objext \
17853 conftest$ac_exeext conftest.$ac_ext
17855 ac_res=`eval echo '${'$as_ac_var'}'`
17856 { echo "$as_me:$LINENO: result: $ac_res" >&5
17857 echo "${ECHO_T}$ac_res" >&6; }
17858 if test `eval echo '${'$as_ac_var'}'` = yes; then
17859 cat >>confdefs.h <<_ACEOF
17860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17872 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17888 #define $ac_func innocuous_$ac_func
17890 /* System header to define __stub macros and hopefully few prototypes,
17891 which can conflict with char $ac_func (); below.
17892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17893 <limits.h> exists even on freestanding compilers. */
17896 # include <limits.h>
17898 # include <assert.h>
17903 /* Override any GCC internal prototype to avoid an error.
17904 Use char because int might match the return type of a GCC
17905 builtin and then its argument prototype would still apply. */
17910 /* The GNU C library defines this for functions which it implements
17911 to always fail with ENOSYS. Some functions are actually named
17912 something starting with __ and the normal name is an alias. */
17913 #if defined __stub_$ac_func || defined __stub___$ac_func
17920 return $ac_func ();
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (ac_try="$ac_link"
17927 case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_link") 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17940 { (case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_try") 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest$ac_exeext'
17950 { (case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_try") 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 eval "$as_ac_var=yes"
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17964 eval "$as_ac_var=no"
17967 rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17970 ac_res=`eval echo '${'$as_ac_var'}'`
17971 { echo "$as_me:$LINENO: result: $ac_res" >&5
17972 echo "${ECHO_T}$ac_res" >&6; }
17973 if test `eval echo '${'$as_ac_var'}'` = yes; then
17974 cat >>confdefs.h <<_ACEOF
17975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17985 for ac_func in strerror strerror_r strerror_s setenv
17987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 cat >conftest.$ac_ext <<_ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18001 #define $ac_func innocuous_$ac_func
18003 /* System header to define __stub macros and hopefully few prototypes,
18004 which can conflict with char $ac_func (); below.
18005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18006 <limits.h> exists even on freestanding compilers. */
18009 # include <limits.h>
18011 # include <assert.h>
18016 /* Override any GCC internal prototype to avoid an error.
18017 Use char because int might match the return type of a GCC
18018 builtin and then its argument prototype would still apply. */
18023 /* The GNU C library defines this for functions which it implements
18024 to always fail with ENOSYS. Some functions are actually named
18025 something starting with __ and the normal name is an alias. */
18026 #if defined __stub_$ac_func || defined __stub___$ac_func
18033 return $ac_func ();
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (ac_try="$ac_link"
18040 case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_link") 2>conftest.er1
18047 grep -v '^ *+' conftest.er1 >conftest.err
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
18052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18053 { (case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_try") 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest$ac_exeext'
18063 { (case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_try") 2>&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 eval "$as_ac_var=yes"
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 eval "$as_ac_var=no"
18080 rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18083 ac_res=`eval echo '${'$as_ac_var'}'`
18084 { echo "$as_me:$LINENO: result: $ac_res" >&5
18085 echo "${ECHO_T}$ac_res" >&6; }
18086 if test `eval echo '${'$as_ac_var'}'` = yes; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18098 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18114 #define $ac_func innocuous_$ac_func
18116 /* System header to define __stub macros and hopefully few prototypes,
18117 which can conflict with char $ac_func (); below.
18118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18119 <limits.h> exists even on freestanding compilers. */
18122 # include <limits.h>
18124 # include <assert.h>
18129 /* Override any GCC internal prototype to avoid an error.
18130 Use char because int might match the return type of a GCC
18131 builtin and then its argument prototype would still apply. */
18136 /* The GNU C library defines this for functions which it implements
18137 to always fail with ENOSYS. Some functions are actually named
18138 something starting with __ and the normal name is an alias. */
18139 #if defined __stub_$ac_func || defined __stub___$ac_func
18146 return $ac_func ();
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_link") 2>conftest.er1
18160 grep -v '^ *+' conftest.er1 >conftest.err
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest$ac_exeext'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 eval "$as_ac_var=yes"
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 eval "$as_ac_var=no"
18193 rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18196 ac_res=`eval echo '${'$as_ac_var'}'`
18197 { echo "$as_me:$LINENO: result: $ac_res" >&5
18198 echo "${ECHO_T}$ac_res" >&6; }
18199 if test `eval echo '${'$as_ac_var'}'` = yes; then
18200 cat >>confdefs.h <<_ACEOF
18201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18211 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 cat >conftest.$ac_ext <<_ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18227 #define $ac_func innocuous_$ac_func
18229 /* System header to define __stub macros and hopefully few prototypes,
18230 which can conflict with char $ac_func (); below.
18231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18232 <limits.h> exists even on freestanding compilers. */
18235 # include <limits.h>
18237 # include <assert.h>
18242 /* Override any GCC internal prototype to avoid an error.
18243 Use char because int might match the return type of a GCC
18244 builtin and then its argument prototype would still apply. */
18249 /* The GNU C library defines this for functions which it implements
18250 to always fail with ENOSYS. Some functions are actually named
18251 something starting with __ and the normal name is an alias. */
18252 #if defined __stub_$ac_func || defined __stub___$ac_func
18259 return $ac_func ();
18264 rm -f conftest.$ac_objext conftest$ac_exeext
18265 if { (ac_try="$ac_link"
18266 case "(($ac_try" in
18267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268 *) ac_try_echo=$ac_try;;
18270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271 (eval "$ac_link") 2>conftest.er1
18273 grep -v '^ *+' conftest.er1 >conftest.err
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18279 { (case "(($ac_try" in
18280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281 *) ac_try_echo=$ac_try;;
18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284 (eval "$ac_try") 2>&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } &&
18288 { ac_try='test -s conftest$ac_exeext'
18289 { (case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294 (eval "$ac_try") 2>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; }; then
18298 eval "$as_ac_var=yes"
18300 echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18303 eval "$as_ac_var=no"
18306 rm -f core conftest.err conftest.$ac_objext \
18307 conftest$ac_exeext conftest.$ac_ext
18309 ac_res=`eval echo '${'$as_ac_var'}'`
18310 { echo "$as_me:$LINENO: result: $ac_res" >&5
18311 echo "${ECHO_T}$ac_res" >&6; }
18312 if test `eval echo '${'$as_ac_var'}'` = yes; then
18313 cat >>confdefs.h <<_ACEOF
18314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18320 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18321 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18322 if test "${llvm_cv_c_printf_a+set}" = set; then
18323 echo $ECHO_N "(cached) $ECHO_C" >&6
18326 ac_cpp='$CPP $CPPFLAGS'
18327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18331 if test "$cross_compiling" = yes; then
18332 llvmac_cv_c_printf_a=no
18334 cat >conftest.$ac_ext <<_ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h. */
18343 #include <stdlib.h>
18349 volatile double A, B;
18353 sprintf(Buffer, "%a", A);
18357 if (A != 0x1.999999999999ap-4)
18364 rm -f conftest$ac_exeext
18365 if { (ac_try="$ac_link"
18366 case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371 (eval "$ac_link") 2>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 llvm_cv_c_printf_a=yes
18386 echo "$as_me: program exited with status $ac_status" >&5
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 ( exit $ac_status )
18391 llvmac_cv_c_printf_a=no
18393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18398 ac_cpp='$CPP $CPPFLAGS'
18399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18404 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18405 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18406 if test "$llvm_cv_c_printf_a" = "yes"; then
18408 cat >>confdefs.h <<\_ACEOF
18409 #define HAVE_PRINTF_A 1
18415 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18416 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18417 if test "${ac_cv_func_rand48+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18421 ac_cpp='$CXXCPP $CPPFLAGS'
18422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18426 cat >conftest.$ac_ext <<_ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 #include <stdlib.h>
18436 srand48(0);lrand48();drand48();
18441 rm -f conftest.$ac_objext
18442 if { (ac_try="$ac_compile"
18443 case "(($ac_try" in
18444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445 *) ac_try_echo=$ac_try;;
18447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18448 (eval "$ac_compile") 2>conftest.er1
18450 grep -v '^ *+' conftest.er1 >conftest.err
18452 cat conftest.err >&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
18455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18456 { (case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_try") 2>&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; } &&
18465 { ac_try='test -s conftest.$ac_objext'
18466 { (case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18471 (eval "$ac_try") 2>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_cv_func_rand48=yes
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18480 ac_cv_func_rand48=no
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485 ac_cpp='$CPP $CPPFLAGS'
18486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18491 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18492 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18494 if test "$ac_cv_func_rand48" = "yes" ; then
18496 cat >>confdefs.h <<\_ACEOF
18497 #define HAVE_RAND48 1
18504 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18505 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18506 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 ac_cpp='$CXXCPP $CPPFLAGS'
18511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18515 cat >conftest.$ac_ext <<_ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18530 rm -f conftest.$ac_objext
18531 if { (ac_try="$ac_compile"
18532 case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_compile") 2>conftest.er1
18539 grep -v '^ *+' conftest.er1 >conftest.err
18541 cat conftest.err >&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } &&
18544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18545 { (case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_try") 2>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; } &&
18554 { ac_try='test -s conftest.$ac_objext'
18555 { (case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_try") 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_cv_func_isnan_in_math_h=yes
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18569 ac_cv_func_isnan_in_math_h=no
18572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18574 ac_cpp='$CPP $CPPFLAGS'
18575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18580 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18581 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18584 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18586 cat >>confdefs.h <<\_ACEOF
18587 #define HAVE_ISNAN_IN_MATH_H 1
18592 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18593 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18594 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 ac_cpp='$CXXCPP $CPPFLAGS'
18599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18603 cat >conftest.$ac_ext <<_ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18618 rm -f conftest.$ac_objext
18619 if { (ac_try="$ac_compile"
18620 case "(($ac_try" in
18621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_compile") 2>conftest.er1
18627 grep -v '^ *+' conftest.er1 >conftest.err
18629 cat conftest.err >&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } &&
18632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18633 { (case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638 (eval "$ac_try") 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } &&
18642 { ac_try='test -s conftest.$ac_objext'
18643 { (case "(($ac_try" in
18644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645 *) ac_try_echo=$ac_try;;
18647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648 (eval "$ac_try") 2>&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; }; then
18652 ac_cv_func_isnan_in_cmath=yes
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18657 ac_cv_func_isnan_in_cmath=no
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18662 ac_cpp='$CPP $CPPFLAGS'
18663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18668 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18669 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18671 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18673 cat >>confdefs.h <<\_ACEOF
18674 #define HAVE_ISNAN_IN_CMATH 1
18679 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18680 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18681 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 ac_cpp='$CXXCPP $CPPFLAGS'
18686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18690 cat >conftest.$ac_ext <<_ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18700 float f; std::isnan(f);
18705 rm -f conftest.$ac_objext
18706 if { (ac_try="$ac_compile"
18707 case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_compile") 2>conftest.er1
18714 grep -v '^ *+' conftest.er1 >conftest.err
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } &&
18719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; } &&
18729 { ac_try='test -s conftest.$ac_objext'
18730 { (case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_try") 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_cv_func_std_isnan_in_cmath=yes
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18744 ac_cv_func_std_isnan_in_cmath=no
18747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18749 ac_cpp='$CPP $CPPFLAGS'
18750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18755 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18756 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18758 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18760 cat >>confdefs.h <<\_ACEOF
18761 #define HAVE_STD_ISNAN_IN_CMATH 1
18767 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18768 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18769 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 ac_cpp='$CXXCPP $CPPFLAGS'
18774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18778 cat >conftest.$ac_ext <<_ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18793 rm -f conftest.$ac_objext
18794 if { (ac_try="$ac_compile"
18795 case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_compile") 2>conftest.er1
18802 grep -v '^ *+' conftest.er1 >conftest.err
18804 cat conftest.err >&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } &&
18807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18808 { (case "(($ac_try" in
18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810 *) ac_try_echo=$ac_try;;
18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813 (eval "$ac_try") 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; } &&
18817 { ac_try='test -s conftest.$ac_objext'
18818 { (case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_try") 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; }; then
18827 ac_cv_func_isinf_in_math_h=yes
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18832 ac_cv_func_isinf_in_math_h=no
18835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18837 ac_cpp='$CPP $CPPFLAGS'
18838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18843 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18844 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18846 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18848 cat >>confdefs.h <<\_ACEOF
18849 #define HAVE_ISINF_IN_MATH_H 1
18854 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18855 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18856 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 ac_cpp='$CXXCPP $CPPFLAGS'
18861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18865 cat >conftest.$ac_ext <<_ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18880 rm -f conftest.$ac_objext
18881 if { (ac_try="$ac_compile"
18882 case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_compile") 2>conftest.er1
18889 grep -v '^ *+' conftest.er1 >conftest.err
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
18894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18895 { (case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_try") 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; } &&
18904 { ac_try='test -s conftest.$ac_objext'
18905 { (case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_try") 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 ac_cv_func_isinf_in_cmath=yes
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18919 ac_cv_func_isinf_in_cmath=no
18922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18924 ac_cpp='$CPP $CPPFLAGS'
18925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18930 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18931 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18933 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18935 cat >>confdefs.h <<\_ACEOF
18936 #define HAVE_ISINF_IN_CMATH 1
18941 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18942 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18943 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18947 ac_cpp='$CXXCPP $CPPFLAGS'
18948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18952 cat >conftest.$ac_ext <<_ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18962 float f; std::isinf(f)}
18967 rm -f conftest.$ac_objext
18968 if { (ac_try="$ac_compile"
18969 case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974 (eval "$ac_compile") 2>conftest.er1
18976 grep -v '^ *+' conftest.er1 >conftest.err
18978 cat conftest.err >&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } &&
18981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18982 { (case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_try") 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_try") 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
19001 ac_cv_func_std_isinf_in_cmath=yes
19003 echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19006 ac_cv_func_std_isinf_in_cmath=no
19009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19011 ac_cpp='$CPP $CPPFLAGS'
19012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19017 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19018 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19020 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19022 cat >>confdefs.h <<\_ACEOF
19023 #define HAVE_STD_ISINF_IN_CMATH 1
19028 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19029 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19030 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19034 ac_cpp='$CXXCPP $CPPFLAGS'
19035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19039 cat >conftest.$ac_ext <<_ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 #include <ieeefp.h>
19049 float f; finite(f);
19054 rm -f conftest.$ac_objext
19055 if { (ac_try="$ac_compile"
19056 case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_compile") 2>conftest.er1
19063 grep -v '^ *+' conftest.er1 >conftest.err
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19069 { (case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_try") 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; } &&
19078 { ac_try='test -s conftest.$ac_objext'
19079 { (case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_try") 2>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 ac_cv_func_finite_in_ieeefp_h=yes
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_cv_func_finite_in_ieeefp_h=no
19096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 ac_cpp='$CPP $CPPFLAGS'
19099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19104 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19105 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19107 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19109 cat >>confdefs.h <<\_ACEOF
19110 #define HAVE_FINITE_IN_IEEEFP_H 1
19117 if test "$llvm_cv_platform_type" = "Unix" ; then
19120 for ac_header in stdlib.h unistd.h
19122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 ac_res=`eval echo '${'$as_ac_Header'}'`
19130 { echo "$as_me:$LINENO: result: $ac_res" >&5
19131 echo "${ECHO_T}$ac_res" >&6; }
19133 # Is the header compilable?
19134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19136 cat >conftest.$ac_ext <<_ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19142 $ac_includes_default
19143 #include <$ac_header>
19145 rm -f conftest.$ac_objext
19146 if { (ac_try="$ac_compile"
19147 case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19154 grep -v '^ *+' conftest.er1 >conftest.err
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } &&
19159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19160 { (case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_try") 2>&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest.$ac_objext'
19170 { (case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_try") 2>&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 ac_header_compiler=yes
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 ac_header_compiler=no
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19189 echo "${ECHO_T}$ac_header_compiler" >&6; }
19191 # Is the header present?
19192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19194 cat >conftest.$ac_ext <<_ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200 #include <$ac_header>
19202 if { (ac_try="$ac_cpp conftest.$ac_ext"
19203 case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19210 grep -v '^ *+' conftest.er1 >conftest.err
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } >/dev/null; then
19215 if test -s conftest.err; then
19216 ac_cpp_err=$ac_c_preproc_warn_flag
19217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19224 if test -z "$ac_cpp_err"; then
19225 ac_header_preproc=yes
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19230 ac_header_preproc=no
19233 rm -f conftest.err conftest.$ac_ext
19234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19235 echo "${ECHO_T}$ac_header_preproc" >&6; }
19237 # So? What about this header?
19238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19244 ac_header_preproc=yes
19247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19260 ## ----------------------------------- ##
19261 ## Report this to llvmbugs@cs.uiuc.edu ##
19262 ## ----------------------------------- ##
19264 ) | sed "s/^/$as_me: WARNING: /" >&2
19267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19272 eval "$as_ac_Header=\$ac_header_preproc"
19274 ac_res=`eval echo '${'$as_ac_Header'}'`
19275 { echo "$as_me:$LINENO: result: $ac_res" >&5
19276 echo "${ECHO_T}$ac_res" >&6; }
19279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19280 cat >>confdefs.h <<_ACEOF
19281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19289 for ac_func in getpagesize
19291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 cat >conftest.$ac_ext <<_ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19305 #define $ac_func innocuous_$ac_func
19307 /* System header to define __stub macros and hopefully few prototypes,
19308 which can conflict with char $ac_func (); below.
19309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19310 <limits.h> exists even on freestanding compilers. */
19313 # include <limits.h>
19315 # include <assert.h>
19320 /* Override any GCC internal prototype to avoid an error.
19321 Use char because int might match the return type of a GCC
19322 builtin and then its argument prototype would still apply. */
19327 /* The GNU C library defines this for functions which it implements
19328 to always fail with ENOSYS. Some functions are actually named
19329 something starting with __ and the normal name is an alias. */
19330 #if defined __stub_$ac_func || defined __stub___$ac_func
19337 return $ac_func ();
19342 rm -f conftest.$ac_objext conftest$ac_exeext
19343 if { (ac_try="$ac_link"
19344 case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_link") 2>conftest.er1
19351 grep -v '^ *+' conftest.er1 >conftest.err
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19357 { (case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_try") 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest$ac_exeext'
19367 { (case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_try") 2>&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; }; then
19376 eval "$as_ac_var=yes"
19378 echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19381 eval "$as_ac_var=no"
19384 rm -f core conftest.err conftest.$ac_objext \
19385 conftest$ac_exeext conftest.$ac_ext
19387 ac_res=`eval echo '${'$as_ac_var'}'`
19388 { echo "$as_me:$LINENO: result: $ac_res" >&5
19389 echo "${ECHO_T}$ac_res" >&6; }
19390 if test `eval echo '${'$as_ac_var'}'` = yes; then
19391 cat >>confdefs.h <<_ACEOF
19392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19398 { echo "$as_me:$LINENO: checking for working mmap" >&5
19399 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19400 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19403 if test "$cross_compiling" = yes; then
19404 ac_cv_func_mmap_fixed_mapped=no
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 $ac_includes_default
19413 /* malloc might have been renamed as rpl_malloc. */
19416 /* Thanks to Mike Haertel and Jim Avera for this test.
19417 Here is a matrix of mmap possibilities:
19418 mmap private not fixed
19419 mmap private fixed at somewhere currently unmapped
19420 mmap private fixed at somewhere already mapped
19421 mmap shared not fixed
19422 mmap shared fixed at somewhere currently unmapped
19423 mmap shared fixed at somewhere already mapped
19424 For private mappings, we should verify that changes cannot be read()
19425 back from the file, nor mmap's back from the file at a different
19426 address. (There have been systems where private was not correctly
19427 implemented like the infamous i386 svr4.0, and systems where the
19428 VM page cache was not coherent with the file system buffer cache
19429 like early versions of FreeBSD and possibly contemporary NetBSD.)
19430 For shared mappings, we should conversely verify that changes get
19431 propagated back to all the places they're supposed to be.
19433 Grep wants private fixed already mapped.
19434 The main things grep needs to know about mmap are:
19435 * does it exist and is it safe to write into the mmap'd area
19436 * how to use it (BSD variants) */
19439 #include <sys/mman.h>
19441 #if !STDC_HEADERS && !HAVE_STDLIB_H
19445 /* This mess was copied from the GNU getpagesize.h. */
19446 #if !HAVE_GETPAGESIZE
19447 /* Assume that all systems that can run configure have sys/param.h. */
19448 # if !HAVE_SYS_PARAM_H
19449 # define HAVE_SYS_PARAM_H 1
19452 # ifdef _SC_PAGESIZE
19453 # define getpagesize() sysconf(_SC_PAGESIZE)
19454 # else /* no _SC_PAGESIZE */
19455 # if HAVE_SYS_PARAM_H
19456 # include <sys/param.h>
19457 # ifdef EXEC_PAGESIZE
19458 # define getpagesize() EXEC_PAGESIZE
19459 # else /* no EXEC_PAGESIZE */
19461 # define getpagesize() NBPG * CLSIZE
19464 # endif /* no CLSIZE */
19465 # else /* no NBPG */
19467 # define getpagesize() NBPC
19468 # else /* no NBPC */
19470 # define getpagesize() PAGESIZE
19471 # endif /* PAGESIZE */
19472 # endif /* no NBPC */
19473 # endif /* no NBPG */
19474 # endif /* no EXEC_PAGESIZE */
19475 # else /* no HAVE_SYS_PARAM_H */
19476 # define getpagesize() 8192 /* punt totally */
19477 # endif /* no HAVE_SYS_PARAM_H */
19478 # endif /* no _SC_PAGESIZE */
19480 #endif /* no HAVE_GETPAGESIZE */
19485 char *data, *data2, *data3;
19489 pagesize = getpagesize ();
19491 /* First, make a file with some known garbage in it. */
19492 data = (char *) malloc (pagesize);
19495 for (i = 0; i < pagesize; ++i)
19496 *(data + i) = rand ();
19498 fd = creat ("conftest.mmap", 0600);
19501 if (write (fd, data, pagesize) != pagesize)
19505 /* Next, try to mmap the file at a fixed address which already has
19506 something else allocated at it. If we can, also make sure that
19507 we see the same garbage. */
19508 fd = open ("conftest.mmap", O_RDWR);
19511 data2 = (char *) malloc (2 * pagesize);
19514 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19515 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19516 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19518 for (i = 0; i < pagesize; ++i)
19519 if (*(data + i) != *(data2 + i))
19522 /* Finally, make sure that changes to the mapped area do not
19523 percolate back to the file as seen by read(). (This is a bug on
19524 some variants of i386 svr4.0.) */
19525 for (i = 0; i < pagesize; ++i)
19526 *(data2 + i) = *(data2 + i) + 1;
19527 data3 = (char *) malloc (pagesize);
19530 if (read (fd, data3, pagesize) != pagesize)
19532 for (i = 0; i < pagesize; ++i)
19533 if (*(data + i) != *(data3 + i))
19539 rm -f conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_link") 2>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19550 { (case "(($ac_try" in
19551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552 *) ac_try_echo=$ac_try;;
19554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555 (eval "$ac_try") 2>&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
19559 ac_cv_func_mmap_fixed_mapped=yes
19561 echo "$as_me: program exited with status $ac_status" >&5
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 ( exit $ac_status )
19566 ac_cv_func_mmap_fixed_mapped=no
19568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19573 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19574 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19575 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19577 cat >>confdefs.h <<\_ACEOF
19578 #define HAVE_MMAP 1
19582 rm -f conftest.mmap
19584 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19585 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19586 if test "${ac_cv_func_mmap_file+set}" = set; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 ac_cpp='$CPP $CPPFLAGS'
19591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19595 if test "$cross_compiling" = yes; then
19596 ac_cv_func_mmap_file=no
19598 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19606 #include <sys/types.h>
19607 #include <sys/mman.h>
19615 fd = creat ("foo",0777);
19616 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19618 return (fd != (int) MAP_FAILED);
19623 rm -f conftest$ac_exeext
19624 if { (ac_try="$ac_link"
19625 case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_link") 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19643 ac_cv_func_mmap_file=yes
19645 echo "$as_me: program exited with status $ac_status" >&5
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19649 ( exit $ac_status )
19650 ac_cv_func_mmap_file=no
19652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19657 ac_cpp='$CPP $CPPFLAGS'
19658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19665 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19666 if test "$ac_cv_func_mmap_file" = yes; then
19668 cat >>confdefs.h <<\_ACEOF
19669 #define HAVE_MMAP_FILE
19676 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19677 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19678 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 if test "$llvm_cv_os_type" = "Interix" ; then
19682 ac_cv_need_dev_zero_for_mmap=yes
19684 ac_cv_need_dev_zero_for_mmap=no
19688 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19689 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19690 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19692 cat >>confdefs.h <<\_ACEOF
19693 #define NEED_DEV_ZERO_FOR_MMAP 1
19698 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19700 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19701 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19703 if test "$ac_cv_func_mmap_file" = "no"
19705 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19706 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19710 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19711 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19712 cat >conftest.$ac_ext <<_ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19719 volatile unsigned long val = 1;
19720 __sync_synchronize();
19721 __sync_val_compare_and_swap(&val, 1, 0);
19722 __sync_add_and_fetch(&val, 1);
19723 __sync_sub_and_fetch(&val, 1);
19728 rm -f conftest.$ac_objext conftest$ac_exeext
19729 if { (ac_try="$ac_link"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_link") 2>conftest.er1
19737 grep -v '^ *+' conftest.er1 >conftest.err
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
19742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19743 { (case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_try") 2>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; } &&
19752 { ac_try='test -s conftest$ac_exeext'
19753 { (case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_try") 2>&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; }; then
19762 { echo "$as_me:$LINENO: result: yes" >&5
19763 echo "${ECHO_T}yes" >&6; }
19765 cat >>confdefs.h <<\_ACEOF
19766 #define LLVM_MULTITHREADED 1
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 { echo "$as_me:$LINENO: result: no" >&5
19774 echo "${ECHO_T}no" >&6; }
19776 cat >>confdefs.h <<\_ACEOF
19777 #define LLVM_MULTITHREADED 0
19780 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19781 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19784 rm -f core conftest.err conftest.$ac_objext \
19785 conftest$ac_exeext conftest.$ac_ext
19789 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19790 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19791 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19792 if test "${llvm_cv_linux_mixed+set}" = set; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19796 ac_cpp='$CPP $CPPFLAGS'
19797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19801 cat >conftest.$ac_ext <<_ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19808 error: Not x86-64 even if uname says so!
19819 rm -f conftest.$ac_objext
19820 if { (ac_try="$ac_compile"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_compile") 2>conftest.er1
19828 grep -v '^ *+' conftest.er1 >conftest.err
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
19833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19834 { (case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_try") 2>&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest.$ac_objext'
19844 { (case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_try") 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 llvm_cv_linux_mixed=no
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19858 llvm_cv_linux_mixed=yes
19861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863 ac_cpp='$CPP $CPPFLAGS'
19864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19870 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19871 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19873 if test "$llvm_cv_linux_mixed" = "yes"; then
19874 llvm_cv_target_arch="x86"
19880 for ac_func in __dso_handle
19882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19896 #define $ac_func innocuous_$ac_func
19898 /* System header to define __stub macros and hopefully few prototypes,
19899 which can conflict with char $ac_func (); below.
19900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19901 <limits.h> exists even on freestanding compilers. */
19904 # include <limits.h>
19906 # include <assert.h>
19911 /* Override any GCC internal prototype to avoid an error.
19912 Use char because int might match the return type of a GCC
19913 builtin and then its argument prototype would still apply. */
19918 /* The GNU C library defines this for functions which it implements
19919 to always fail with ENOSYS. Some functions are actually named
19920 something starting with __ and the normal name is an alias. */
19921 #if defined __stub_$ac_func || defined __stub___$ac_func
19928 return $ac_func ();
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_link") 2>conftest.er1
19942 grep -v '^ *+' conftest.er1 >conftest.err
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } &&
19947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19948 { (case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_try") 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest$ac_exeext'
19958 { (case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_try") 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 eval "$as_ac_var=yes"
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 eval "$as_ac_var=no"
19975 rm -f core conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
19978 ac_res=`eval echo '${'$as_ac_var'}'`
19979 { echo "$as_me:$LINENO: result: $ac_res" >&5
19980 echo "${ECHO_T}$ac_res" >&6; }
19981 if test `eval echo '${'$as_ac_var'}'` = yes; then
19982 cat >>confdefs.h <<_ACEOF
19983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19990 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19991 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19992 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 llvm_cv_llvmgcc_sanity="no"
19996 if test -x "$LLVMGCC" ; then
19997 cp /dev/null conftest.c
19998 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19999 grep 'target datalayout =' > /dev/null 2>&1
20000 if test $? -eq 0 ; then
20001 llvm_cv_llvmgcc_sanity="yes"
20006 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20007 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20009 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20010 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20011 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20012 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20013 LLVMCC1=$llvmcc1path
20015 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20016 LLVMCC1PLUS=$llvmcc1pluspath
20018 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20019 LLVMGCCDIR=$llvmgccdir
20021 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20022 LLVMGCC_LANGS=$llvmgcclangs
20024 { echo "$as_me:$LINENO: result: ok" >&5
20025 echo "${ECHO_T}ok" >&6; }
20028 SHLIBEXT=$libltdl_cv_shlibext
20031 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20034 # Translate the various configuration directories and other basic
20035 # information into substitutions that will end up in Makefile.config.in
20036 # that these configured values can be used by the makefiles
20037 if test "${prefix}" = "NONE" ; then
20038 prefix="/usr/local"
20040 eval LLVM_PREFIX="${prefix}";
20041 eval LLVM_BINDIR="${prefix}/bin";
20042 eval LLVM_LIBDIR="${prefix}/lib";
20043 eval LLVM_DATADIR="${prefix}/share/llvm";
20044 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20045 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20046 eval LLVM_INCLUDEDIR="${prefix}/include";
20047 eval LLVM_INFODIR="${prefix}/info";
20048 eval LLVM_MANDIR="${prefix}/man";
20049 LLVM_CONFIGTIME=`date`
20061 # Place the various directores into the config.h file as #defines so that we
20062 # can know about the installation paths within LLVM.
20064 cat >>confdefs.h <<_ACEOF
20065 #define LLVM_PREFIX "$LLVM_PREFIX"
20069 cat >>confdefs.h <<_ACEOF
20070 #define LLVM_BINDIR "$LLVM_BINDIR"
20074 cat >>confdefs.h <<_ACEOF
20075 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20079 cat >>confdefs.h <<_ACEOF
20080 #define LLVM_DATADIR "$LLVM_DATADIR"
20084 cat >>confdefs.h <<_ACEOF
20085 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20089 cat >>confdefs.h <<_ACEOF
20090 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20094 cat >>confdefs.h <<_ACEOF
20095 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20099 cat >>confdefs.h <<_ACEOF
20100 #define LLVM_INFODIR "$LLVM_INFODIR"
20104 cat >>confdefs.h <<_ACEOF
20105 #define LLVM_MANDIR "$LLVM_MANDIR"
20109 cat >>confdefs.h <<_ACEOF
20110 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20114 cat >>confdefs.h <<_ACEOF
20115 #define LLVM_HOSTTRIPLE "$host"
20119 # Determine which bindings to build.
20120 if test "$BINDINGS_TO_BUILD" = auto ; then
20121 BINDINGS_TO_BUILD=""
20122 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20123 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20126 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20129 # This isn't really configurey, but it avoids having to repeat the list in
20134 # Do any work necessary to ensure that bindings have what they need.
20135 binding_prereqs_failed=0
20136 for a_binding in $BINDINGS_TO_BUILD ; do
20137 case "$a_binding" in
20139 if test "x$OCAMLC" = x ; then
20140 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20141 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20142 binding_prereqs_failed=1
20144 if test "x$OCAMLDEP" = x ; then
20145 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20146 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20147 binding_prereqs_failed=1
20149 if test "x$OCAMLOPT" = x ; then
20150 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20151 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20153 if test "x$with_ocaml_libdir" != xauto ; then
20154 OCAML_LIBDIR=$with_ocaml_libdir
20157 ocaml_stdlib="`"$OCAMLC" -where`"
20158 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20160 # ocaml stdlib is beneath our prefix; use stdlib
20161 OCAML_LIBDIR=$ocaml_stdlib
20164 # ocaml stdlib is outside our prefix; use libdir/ocaml
20165 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20172 if test "$binding_prereqs_failed" = 1 ; then
20173 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20174 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20175 { (exit 1); exit 1; }; }
20178 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20179 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20180 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 ac_cpp='$CXXCPP $CPPFLAGS'
20185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20189 oldcxxflags="$CXXFLAGS"
20190 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20206 rm -f conftest.$ac_objext
20207 if { (ac_try="$ac_compile"
20208 case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_compile") 2>conftest.er1
20215 grep -v '^ *+' conftest.er1 >conftest.err
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } &&
20220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20221 { (case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; } &&
20230 { ac_try='test -s conftest.$ac_objext'
20231 { (case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_try") 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 llvm_cv_cxx_visibility_inlines_hidden=yes
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 llvm_cv_cxx_visibility_inlines_hidden=no
20248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20249 CXXFLAGS="$oldcxxflags"
20251 ac_cpp='$CPP $CPPFLAGS'
20252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20258 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20259 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20260 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20261 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20264 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20269 if test "$llvm_cv_link_use_r" = "yes" ; then
20276 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20277 RDYNAMIC="-Wl,-export-dynamic"
20284 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20286 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20288 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20290 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20292 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20294 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20297 ac_config_files="$ac_config_files Makefile.config"
20300 ac_config_files="$ac_config_files llvm.spec"
20303 ac_config_files="$ac_config_files docs/doxygen.cfg"
20306 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20309 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20312 ac_config_commands="$ac_config_commands setup"
20314 ac_config_commands="$ac_config_commands Makefile"
20317 ac_config_commands="$ac_config_commands Makefile.common"
20320 ac_config_commands="$ac_config_commands examples/Makefile"
20323 ac_config_commands="$ac_config_commands lib/Makefile"
20326 ac_config_commands="$ac_config_commands runtime/Makefile"
20329 ac_config_commands="$ac_config_commands test/Makefile"
20332 ac_config_commands="$ac_config_commands test/Makefile.tests"
20335 ac_config_commands="$ac_config_commands unittests/Makefile"
20338 ac_config_commands="$ac_config_commands tools/Makefile"
20341 ac_config_commands="$ac_config_commands utils/Makefile"
20344 ac_config_commands="$ac_config_commands projects/Makefile"
20347 ac_config_commands="$ac_config_commands bindings/Makefile"
20350 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20354 cat >confcache <<\_ACEOF
20355 # This file is a shell script that caches the results of configure
20356 # tests run on this system so they can be shared between configure
20357 # scripts and configure runs, see configure's option --config-cache.
20358 # It is not useful on other systems. If it contains results you don't
20359 # want to keep, you may remove or edit it.
20361 # config.status only pays attention to the cache file if you give it
20362 # the --recheck option to rerun configure.
20364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20366 # following values.
20370 # The following way of writing the cache mishandles newlines in values,
20371 # but we know of no workaround that is simple, portable, and efficient.
20372 # So, we kill variables containing newlines.
20373 # Ultrix sh set writes to stderr and can't be redirected directly,
20374 # and sets the high bit in the cache file unless we assign to the vars.
20376 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20377 eval ac_val=\$$ac_var
20381 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20382 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20385 _ | IFS | as_nl) ;; #(
20386 *) $as_unset $ac_var ;;
20392 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20393 *${as_nl}ac_space=\ *)
20394 # `set' does not quote correctly, so add quotes (double-quote
20395 # substitution turns \\\\ into \\, and sed turns \\ into \).
20398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20401 # `set' quotes correctly as required by POSIX, so do not add quotes.
20402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20413 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20415 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20416 if test -w "$cache_file"; then
20417 test "x$cache_file" != "x/dev/null" &&
20418 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20419 echo "$as_me: updating cache $cache_file" >&6;}
20420 cat confcache >$cache_file
20422 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20423 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20428 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20429 # Let make expand exec_prefix.
20430 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20432 DEFS=-DHAVE_CONFIG_H
20436 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20437 # 1. Remove the extension, and $U if already installed.
20438 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20439 ac_i=`echo "$ac_i" | sed "$ac_script"`
20440 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20441 # will be set to the directory where LIBOBJS objects are built.
20442 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20443 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20445 LIBOBJS=$ac_libobjs
20447 LTLIBOBJS=$ac_ltlibobjs
20450 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20451 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20452 Usually this means the macro was only invoked conditionally." >&5
20453 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20454 Usually this means the macro was only invoked conditionally." >&2;}
20455 { (exit 1); exit 1; }; }
20457 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20458 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20459 Usually this means the macro was only invoked conditionally." >&5
20460 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20461 Usually this means the macro was only invoked conditionally." >&2;}
20462 { (exit 1); exit 1; }; }
20465 : ${CONFIG_STATUS=./config.status}
20466 ac_clean_files_save=$ac_clean_files
20467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20468 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20469 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20470 cat >$CONFIG_STATUS <<_ACEOF
20472 # Generated by $as_me.
20473 # Run this file to recreate the current configuration.
20474 # Compiler output produced by configure, useful for debugging
20475 # configure, is in config.log if it exists.
20478 ac_cs_recheck=false
20480 SHELL=\${CONFIG_SHELL-$SHELL}
20483 cat >>$CONFIG_STATUS <<\_ACEOF
20484 ## --------------------- ##
20485 ## M4sh Initialization. ##
20486 ## --------------------- ##
20488 # Be Bourne compatible
20489 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20492 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20493 # is contrary to our usage. Disable this feature.
20494 alias -g '${1+"$@"}'='"$@"'
20495 setopt NO_GLOB_SUBST
20497 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20499 BIN_SH=xpg4; export BIN_SH # for Tru64
20500 DUALCASE=1; export DUALCASE # for MKS sh
20504 # Avoid depending upon Character Ranges.
20505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20508 as_cr_digits='0123456789'
20509 as_cr_alnum=$as_cr_Letters$as_cr_digits
20511 # The user is always right.
20512 if test "${PATH_SEPARATOR+set}" != set; then
20513 echo "#! /bin/sh" >conf$$.sh
20514 echo "exit 0" >>conf$$.sh
20516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20524 # Support unset when possible.
20525 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20533 # We need space, tab and new line, in precisely that order. Quoting is
20534 # there to prevent editors from complaining about space-tab.
20535 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20536 # splitting by setting IFS to empty value.)
20541 # Find who we are. Look in the path if we contain no directory separator.
20543 *[\\/]* ) as_myself=$0 ;;
20544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20545 for as_dir in $PATH
20548 test -z "$as_dir" && as_dir=.
20549 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20555 # We did not find ourselves, most probably we were run as `sh COMMAND'
20556 # in which case we are not to be found in the path.
20557 if test "x$as_myself" = x; then
20560 if test ! -f "$as_myself"; then
20561 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20562 { (exit 1); exit 1; }
20565 # Work around bugs in pre-3.0 UWIN ksh.
20566 for as_var in ENV MAIL MAILPATH
20567 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20575 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20576 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20577 LC_TELEPHONE LC_TIME
20579 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20580 eval $as_var=C; export $as_var
20582 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20586 # Required to use basename.
20587 if expr a : '\(a\)' >/dev/null 2>&1 &&
20588 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20594 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20595 as_basename=basename
20601 # Name of the executable.
20602 as_me=`$as_basename -- "$0" ||
20603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20604 X"$0" : 'X\(//\)$' \| \
20605 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20607 sed '/^.*\/\([^/][^/]*\)\/*$/{
20626 as_lineno_1=$LINENO
20627 as_lineno_2=$LINENO
20628 test "x$as_lineno_1" != "x$as_lineno_2" &&
20629 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20631 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20632 # uniformly replaced by the line number. The first 'sed' inserts a
20633 # line-number line after each line using $LINENO; the second 'sed'
20634 # does the real work. The second script uses 'N' to pair each
20635 # line-number line with the line containing $LINENO, and appends
20636 # trailing '-' during substitution so that $LINENO is not a special
20637 # case at line end.
20638 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20639 # scripts with optimization help from Paolo Bonzini. Blame Lee
20640 # E. McMahon (1931-1989) for sed's syntax. :-)
20652 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20655 ' >$as_me.lineno &&
20656 chmod +x "$as_me.lineno" ||
20657 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20658 { (exit 1); exit 1; }; }
20660 # Don't try to exec as it changes $[0], causing all sort of problems
20661 # (the dirname of $[0] is not the place where we might find the
20662 # original and so on. Autoconf is especially sensitive to this).
20663 . "./$as_me.lineno"
20664 # Exit status is that of the last command.
20669 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20675 ECHO_C= ECHO_N= ECHO_T=
20676 case `echo -n x` in
20678 case `echo 'x\c'` in
20679 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20686 if expr a : '\(a\)' >/dev/null 2>&1 &&
20687 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20693 rm -f conf$$ conf$$.exe conf$$.file
20694 if test -d conf$$.dir; then
20695 rm -f conf$$.dir/conf$$.file
20701 if ln -s conf$$.file conf$$ 2>/dev/null; then
20703 # ... but there are two gotchas:
20704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20706 # In both cases, we have to default to `cp -p'.
20707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20709 elif ln conf$$.file conf$$ 2>/dev/null; then
20714 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20715 rmdir conf$$.dir 2>/dev/null
20717 if mkdir -p . 2>/dev/null; then
20720 test -d ./-p && rmdir ./-p
20724 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20725 # systems may use methods other than mode bits to determine executability.
20726 cat >conf$$.file <<_ASEOF
20730 chmod +x conf$$.file
20731 if test -x conf$$.file >/dev/null 2>&1; then
20732 as_executable_p="test -x"
20738 # Sed expression to map a string onto a valid CPP name.
20739 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20741 # Sed expression to map a string onto a valid variable name.
20742 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20747 # Save the log message, to keep $[0] and so on meaningful, and to
20748 # report actual input values of CONFIG_FILES etc. instead of their
20749 # values after options handling.
20751 This file was extended by llvm $as_me 2.8svn, which was
20752 generated by GNU Autoconf 2.60. Invocation command line was
20754 CONFIG_FILES = $CONFIG_FILES
20755 CONFIG_HEADERS = $CONFIG_HEADERS
20756 CONFIG_LINKS = $CONFIG_LINKS
20757 CONFIG_COMMANDS = $CONFIG_COMMANDS
20760 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20765 cat >>$CONFIG_STATUS <<_ACEOF
20766 # Files that config.status was made for.
20767 config_files="$ac_config_files"
20768 config_headers="$ac_config_headers"
20769 config_commands="$ac_config_commands"
20773 cat >>$CONFIG_STATUS <<\_ACEOF
20775 \`$as_me' instantiates files from templates according to the
20776 current configuration.
20778 Usage: $0 [OPTIONS] [FILE]...
20780 -h, --help print this help, then exit
20781 -V, --version print version number, then exit
20782 -q, --quiet do not print progress messages
20783 -d, --debug don't remove temporary files
20784 --recheck update $as_me by reconfiguring in the same conditions
20785 --file=FILE[:TEMPLATE]
20786 instantiate the configuration file FILE
20787 --header=FILE[:TEMPLATE]
20788 instantiate the configuration header FILE
20790 Configuration files:
20793 Configuration headers:
20796 Configuration commands:
20799 Report bugs to <bug-autoconf@gnu.org>."
20802 cat >>$CONFIG_STATUS <<_ACEOF
20804 llvm config.status 2.8svn
20805 configured by $0, generated by GNU Autoconf 2.60,
20806 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20808 Copyright (C) 2006 Free Software Foundation, Inc.
20809 This config.status script is free software; the Free Software Foundation
20810 gives unlimited permission to copy, distribute and modify it."
20817 cat >>$CONFIG_STATUS <<\_ACEOF
20818 # If no file are specified by the user, then we need to provide default
20819 # value. By we need to know if files were specified by the user.
20825 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20837 # Handling of the options.
20838 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20840 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20841 echo "$ac_cs_version"; exit ;;
20842 --debug | --debu | --deb | --de | --d | -d )
20844 --file | --fil | --fi | --f )
20846 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20847 ac_need_defaults=false;;
20848 --header | --heade | --head | --hea )
20850 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20851 ac_need_defaults=false;;
20853 # Conflict between --help and --header
20854 { echo "$as_me: error: ambiguous option: $1
20855 Try \`$0 --help' for more information." >&2
20856 { (exit 1); exit 1; }; };;
20857 --help | --hel | -h )
20858 echo "$ac_cs_usage"; exit ;;
20859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20860 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20863 # This is an error.
20864 -*) { echo "$as_me: error: unrecognized option: $1
20865 Try \`$0 --help' for more information." >&2
20866 { (exit 1); exit 1; }; } ;;
20868 *) ac_config_targets="$ac_config_targets $1"
20869 ac_need_defaults=false ;;
20875 ac_configure_extra_args=
20877 if $ac_cs_silent; then
20879 ac_configure_extra_args="$ac_configure_extra_args --silent"
20883 cat >>$CONFIG_STATUS <<_ACEOF
20884 if \$ac_cs_recheck; then
20885 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20886 CONFIG_SHELL=$SHELL
20887 export CONFIG_SHELL
20888 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20892 cat >>$CONFIG_STATUS <<\_ACEOF
20896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20897 ## Running $as_me. ##
20903 cat >>$CONFIG_STATUS <<_ACEOF
20907 llvm_src="${srcdir}"
20911 cat >>$CONFIG_STATUS <<\_ACEOF
20913 # Handling of arguments.
20914 for ac_config_target in $ac_config_targets
20916 case $ac_config_target in
20917 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20918 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20919 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20920 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20921 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20922 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20923 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20924 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20925 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20926 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20927 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20928 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20929 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20930 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20931 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20932 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20933 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20934 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20935 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20936 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20937 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20938 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20939 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20940 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20941 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20943 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20944 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20945 { (exit 1); exit 1; }; };;
20950 # If the user did not use the arguments to specify the items to instantiate,
20951 # then the envvar interface is used. Set only those that are not.
20952 # We use the long form for the default assignment because of an extremely
20953 # bizarre bug on SunOS 4.1.3.
20954 if $ac_need_defaults; then
20955 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20956 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20957 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20960 # Have a temporary directory for convenience. Make it in the build tree
20961 # simply because there is no reason against having it here, and in addition,
20962 # creating and moving files from /tmp can sometimes cause problems.
20963 # Hook for its removal unless debugging.
20964 # Note that there is a small window in which the directory will not be cleaned:
20965 # after its creation but before its name has been assigned to `$tmp'.
20969 trap 'exit_status=$?
20970 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20972 trap '{ (exit 1); exit 1; }' 1 2 13 15
20974 # Create a (secure) tmp directory for tmp files.
20977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20978 test -n "$tmp" && test -d "$tmp"
20981 tmp=./conf$$-$RANDOM
20982 (umask 077 && mkdir "$tmp")
20985 echo "$me: cannot create a temporary directory in ." >&2
20986 { (exit 1); exit 1; }
20990 # Set up the sed scripts for CONFIG_FILES section.
20993 # No need to generate the scripts if there are no CONFIG_FILES.
20994 # This happens for instance when ./config.status config.h
20995 if test -n "$CONFIG_FILES"; then
21002 for ac_last_try in false false false false false :; do
21003 cat >conf$$subs.sed <<_ACEOF
21004 SHELL!$SHELL$ac_delim
21005 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21006 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21007 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21008 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21009 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21010 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21011 exec_prefix!$exec_prefix$ac_delim
21012 prefix!$prefix$ac_delim
21013 program_transform_name!$program_transform_name$ac_delim
21014 bindir!$bindir$ac_delim
21015 sbindir!$sbindir$ac_delim
21016 libexecdir!$libexecdir$ac_delim
21017 datarootdir!$datarootdir$ac_delim
21018 datadir!$datadir$ac_delim
21019 sysconfdir!$sysconfdir$ac_delim
21020 sharedstatedir!$sharedstatedir$ac_delim
21021 localstatedir!$localstatedir$ac_delim
21022 includedir!$includedir$ac_delim
21023 oldincludedir!$oldincludedir$ac_delim
21024 docdir!$docdir$ac_delim
21025 infodir!$infodir$ac_delim
21026 htmldir!$htmldir$ac_delim
21027 dvidir!$dvidir$ac_delim
21028 pdfdir!$pdfdir$ac_delim
21029 psdir!$psdir$ac_delim
21030 libdir!$libdir$ac_delim
21031 localedir!$localedir$ac_delim
21032 mandir!$mandir$ac_delim
21033 DEFS!$DEFS$ac_delim
21034 ECHO_C!$ECHO_C$ac_delim
21035 ECHO_N!$ECHO_N$ac_delim
21036 ECHO_T!$ECHO_T$ac_delim
21037 LIBS!$LIBS$ac_delim
21038 build_alias!$build_alias$ac_delim
21039 host_alias!$host_alias$ac_delim
21040 target_alias!$target_alias$ac_delim
21041 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21042 subdirs!$subdirs$ac_delim
21043 build!$build$ac_delim
21044 build_cpu!$build_cpu$ac_delim
21045 build_vendor!$build_vendor$ac_delim
21046 build_os!$build_os$ac_delim
21047 host!$host$ac_delim
21048 host_cpu!$host_cpu$ac_delim
21049 host_vendor!$host_vendor$ac_delim
21050 host_os!$host_os$ac_delim
21051 target!$target$ac_delim
21052 target_cpu!$target_cpu$ac_delim
21053 target_vendor!$target_vendor$ac_delim
21054 target_os!$target_os$ac_delim
21056 HOST_OS!$HOST_OS$ac_delim
21057 TARGET_OS!$TARGET_OS$ac_delim
21058 LINKALL!$LINKALL$ac_delim
21059 NOLINKALL!$NOLINKALL$ac_delim
21060 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21061 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21062 ARCH!$ARCH$ac_delim
21063 ENDIAN!$ENDIAN$ac_delim
21065 CFLAGS!$CFLAGS$ac_delim
21066 LDFLAGS!$LDFLAGS$ac_delim
21067 CPPFLAGS!$CPPFLAGS$ac_delim
21068 ac_ct_CC!$ac_ct_CC$ac_delim
21069 EXEEXT!$EXEEXT$ac_delim
21070 OBJEXT!$OBJEXT$ac_delim
21072 GREP!$GREP$ac_delim
21073 EGREP!$EGREP$ac_delim
21074 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21075 BUILD_CC!$BUILD_CC$ac_delim
21076 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21077 BUILD_CXX!$BUILD_CXX$ac_delim
21078 CVSBUILD!$CVSBUILD$ac_delim
21079 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21080 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21081 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21082 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21083 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21084 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21085 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21087 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21088 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21089 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21090 ENABLE_PIC!$ENABLE_PIC$ac_delim
21091 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21092 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21093 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21094 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21095 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21096 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21097 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21098 CLANGPATH!$CLANGPATH$ac_delim
21099 CLANGXXPATH!$CLANGXXPATH$ac_delim
21100 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21103 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21105 elif $ac_last_try; then
21106 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21107 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21108 { (exit 1); exit 1; }; }
21110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21114 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21115 if test -n "$ac_eof"; then
21116 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21117 ac_eof=`expr $ac_eof + 1`
21120 cat >>$CONFIG_STATUS <<_ACEOF
21121 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21125 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21126 s/^/s,@/; s/!/@,|#_!!_#|/
21129 s/'"$ac_delim"'$/,g/; t
21131 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21132 ' >>$CONFIG_STATUS <conf$$subs.sed
21133 rm -f conf$$subs.sed
21134 cat >>$CONFIG_STATUS <<_ACEOF
21140 for ac_last_try in false false false false false :; do
21141 cat >conf$$subs.sed <<_ACEOF
21142 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21143 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21144 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21145 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21146 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21148 CXXFLAGS!$CXXFLAGS$ac_delim
21149 ac_ct_CXX!$ac_ct_CXX$ac_delim
21151 ifGNUmake!$ifGNUmake$ac_delim
21152 LN_S!$LN_S$ac_delim
21155 DATE!$DATE$ac_delim
21156 FIND!$FIND$ac_delim
21157 MKDIR!$MKDIR$ac_delim
21159 RANLIB!$RANLIB$ac_delim
21164 BINPWD!$BINPWD$ac_delim
21165 GRAPHVIZ!$GRAPHVIZ$ac_delim
21168 NEATO!$NEATO$ac_delim
21169 TWOPI!$TWOPI$ac_delim
21170 CIRCO!$CIRCO$ac_delim
21172 DOTTY!$DOTTY$ac_delim
21173 PERL!$PERL$ac_delim
21174 HAVE_PERL!$HAVE_PERL$ac_delim
21175 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21176 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21177 INSTALL_DATA!$INSTALL_DATA$ac_delim
21178 BZIP2!$BZIP2$ac_delim
21179 DOXYGEN!$DOXYGEN$ac_delim
21180 GROFF!$GROFF$ac_delim
21181 GZIP!$GZIP$ac_delim
21182 POD2HTML!$POD2HTML$ac_delim
21183 POD2MAN!$POD2MAN$ac_delim
21184 RUNTEST!$RUNTEST$ac_delim
21185 TCLSH!$TCLSH$ac_delim
21187 OCAMLC!$OCAMLC$ac_delim
21188 OCAMLOPT!$OCAMLOPT$ac_delim
21189 OCAMLDEP!$OCAMLDEP$ac_delim
21190 OCAMLDOC!$OCAMLDOC$ac_delim
21192 HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim
21193 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21194 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21195 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21196 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21197 LIBADD_DL!$LIBADD_DL$ac_delim
21198 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21199 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21200 LLVMGCC!$LLVMGCC$ac_delim
21201 LLVMGXX!$LLVMGXX$ac_delim
21202 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21203 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21204 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21205 USE_UDIS86!$USE_UDIS86$ac_delim
21206 USE_OPROFILE!$USE_OPROFILE$ac_delim
21207 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21208 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21209 MMAP_FILE!$MMAP_FILE$ac_delim
21210 LLVMCC1!$LLVMCC1$ac_delim
21211 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21212 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21213 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21214 SHLIBEXT!$SHLIBEXT$ac_delim
21215 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21216 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21217 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21218 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21219 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21220 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21221 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21222 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21223 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21224 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21225 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21226 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21227 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21228 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21229 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21230 RPATH!$RPATH$ac_delim
21231 RDYNAMIC!$RDYNAMIC$ac_delim
21232 LIBOBJS!$LIBOBJS$ac_delim
21233 LTLIBOBJS!$LTLIBOBJS$ac_delim
21236 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
21238 elif $ac_last_try; then
21239 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21240 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21241 { (exit 1); exit 1; }; }
21243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21247 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21248 if test -n "$ac_eof"; then
21249 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21250 ac_eof=`expr $ac_eof + 1`
21253 cat >>$CONFIG_STATUS <<_ACEOF
21254 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21258 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21259 s/^/s,@/; s/!/@,|#_!!_#|/
21262 s/'"$ac_delim"'$/,g/; t
21264 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21265 ' >>$CONFIG_STATUS <conf$$subs.sed
21266 rm -f conf$$subs.sed
21267 cat >>$CONFIG_STATUS <<_ACEOF
21274 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21275 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21276 # trailing colons and then remove the whole line if VPATH becomes empty
21277 # (actually we leave an empty line to preserve line numbers).
21278 if test "x$srcdir" = x.; then
21279 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21280 s/:*\$(srcdir):*/:/
21281 s/:*\${srcdir}:*/:/
21283 s/^\([^=]*=[ ]*\):*/\1/
21289 cat >>$CONFIG_STATUS <<\_ACEOF
21290 fi # test -n "$CONFIG_FILES"
21293 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21296 :[FHLC]) ac_mode=$ac_tag; continue;;
21298 case $ac_mode$ac_tag in
21300 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21301 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21302 { (exit 1); exit 1; }; };;
21303 :[FH]-) ac_tag=-:-;;
21304 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21321 -) ac_f="$tmp/stdin";;
21322 *) # Look for the file first in the build tree, then in the source tree
21323 # (if the path is not absolute). The absolute path cannot be DOS-style,
21324 # because $ac_f cannot contain `:'.
21328 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21330 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21331 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21332 { (exit 1); exit 1; }; };;
21334 ac_file_inputs="$ac_file_inputs $ac_f"
21337 # Let's still pretend it is `configure' which instantiates (i.e., don't
21338 # use $as_me), people would be surprised to read:
21339 # /* config.h. Generated by config.status. */
21340 configure_input="Generated from "`IFS=:
21341 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21342 if test x"$ac_file" != x-; then
21343 configure_input="$ac_file. $configure_input"
21344 { echo "$as_me:$LINENO: creating $ac_file" >&5
21345 echo "$as_me: creating $ac_file" >&6;}
21349 *:-:* | *:-) cat >"$tmp/stdin";;
21354 ac_dir=`$as_dirname -- "$ac_file" ||
21355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21356 X"$ac_file" : 'X\(//\)[^/]' \| \
21357 X"$ac_file" : 'X\(//\)$' \| \
21358 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21364 /^X\(\/\/\)[^/].*/{
21379 -*) as_dir=./$as_dir;;
21381 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21385 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21386 *) as_qdir=$as_dir;;
21388 as_dirs="'$as_qdir' $as_dirs"
21389 as_dir=`$as_dirname -- "$as_dir" ||
21390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21391 X"$as_dir" : 'X\(//\)[^/]' \| \
21392 X"$as_dir" : 'X\(//\)$' \| \
21393 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21399 /^X\(\/\/\)[^/].*/{
21412 test -d "$as_dir" && break
21414 test -z "$as_dirs" || eval "mkdir $as_dirs"
21415 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21416 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21417 { (exit 1); exit 1; }; }; }
21421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21423 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21424 # A ".." for each directory in $ac_dir_suffix.
21425 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21426 case $ac_top_builddir_sub in
21427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21431 ac_abs_top_builddir=$ac_pwd
21432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21433 # for backward compatibility:
21434 ac_top_builddir=$ac_top_build_prefix
21437 .) # We are building in place.
21439 ac_top_srcdir=$ac_top_builddir_sub
21440 ac_abs_top_srcdir=$ac_pwd ;;
21441 [\\/]* | ?:[\\/]* ) # Absolute name.
21442 ac_srcdir=$srcdir$ac_dir_suffix;
21443 ac_top_srcdir=$srcdir
21444 ac_abs_top_srcdir=$srcdir ;;
21445 *) # Relative name.
21446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21447 ac_top_srcdir=$ac_top_build_prefix$srcdir
21448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21460 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21461 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21465 cat >>$CONFIG_STATUS <<\_ACEOF
21466 # If the template does not know about datarootdir, expand it.
21467 # FIXME: This hack should be removed a few years after 2.60.
21468 ac_datarootdir_hack=; ac_datarootdir_seen=
21470 case `sed -n '/datarootdir/ {
21479 ' $ac_file_inputs` in
21480 *datarootdir*) ac_datarootdir_seen=yes;;
21481 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21482 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21483 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21485 cat >>$CONFIG_STATUS <<_ACEOF
21486 ac_datarootdir_hack='
21487 s&@datadir@&$datadir&g
21488 s&@docdir@&$docdir&g
21489 s&@infodir@&$infodir&g
21490 s&@localedir@&$localedir&g
21491 s&@mandir@&$mandir&g
21492 s&\\\${datarootdir}&$datarootdir&g' ;;
21496 # Neutralize VPATH when `$srcdir' = `.'.
21497 # Shell code in configure.ac might set extrasub.
21498 # FIXME: do we really want to maintain this feature?
21499 cat >>$CONFIG_STATUS <<_ACEOF
21503 cat >>$CONFIG_STATUS <<\_ACEOF
21505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21506 s&@configure_input@&$configure_input&;t t
21507 s&@top_builddir@&$ac_top_builddir_sub&;t t
21508 s&@srcdir@&$ac_srcdir&;t t
21509 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21510 s&@top_srcdir@&$ac_top_srcdir&;t t
21511 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21512 s&@builddir@&$ac_builddir&;t t
21513 s&@abs_builddir@&$ac_abs_builddir&;t t
21514 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21515 s&@INSTALL@&$ac_INSTALL&;t t
21516 $ac_datarootdir_hack
21517 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21519 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21520 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21521 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21522 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21523 which seems to be undefined. Please make sure it is defined." >&5
21524 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21525 which seems to be undefined. Please make sure it is defined." >&2;}
21529 -) cat "$tmp/out"; rm -f "$tmp/out";;
21530 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21539 # Transform confdefs.h into a sed script `conftest.defines', that
21540 # substitutes the proper values into config.h.in to produce config.h.
21541 rm -f conftest.defines conftest.tail
21542 # First, append a space to every undef/define line, to ease matching.
21543 echo 's/$/ /' >conftest.defines
21544 # Then, protect against being on the right side of a sed subst, or in
21545 # an unquoted here document, in config.status. If some macros were
21546 # called several times there might be several #defines for the same
21547 # symbol, which is useless. But do not sort them, since the last
21548 # AC_DEFINE must be honored.
21549 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21550 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21551 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21552 # PARAMS is the parameter list in the macro definition--in most cases, it's
21553 # just an empty string.
21554 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21555 ac_dB='\\)[ (].*,\\1define\\2'
21563 s/^[ ]*#[ ]*define[ ][ ]*//
21568 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21569 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21570 ' >>conftest.defines
21572 # Remove the space that was appended to ease matching.
21573 # Then replace #undef with comments. This is necessary, for
21574 # example, in the case of _POSIX_SOURCE, which is predefined and required
21575 # on some systems where configure will not decide to define it.
21576 # (The regexp can be short, since the line contains either #define or #undef.)
21578 s,^[ #]*u.*,/* & */,' >>conftest.defines
21580 # Break up conftest.defines:
21581 ac_max_sed_lines=50
21583 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21584 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21585 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21587 ac_in='$ac_file_inputs'
21588 ac_out='"$tmp/out1"'
21589 ac_nxt='"$tmp/out2"'
21593 # Write a here document:
21594 cat >>$CONFIG_STATUS <<_ACEOF
21595 # First, check the format of the line:
21596 cat >"\$tmp/defines.sed" <<\\CEOF
21597 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21598 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21602 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21604 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21605 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21606 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21607 grep . conftest.tail >/dev/null || break
21608 rm -f conftest.defines
21609 mv conftest.tail conftest.defines
21611 rm -f conftest.defines conftest.tail
21613 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21614 cat >>$CONFIG_STATUS <<\_ACEOF
21615 if test x"$ac_file" != x-; then
21616 echo "/* $configure_input */" >"$tmp/config.h"
21617 cat "$ac_result" >>"$tmp/config.h"
21618 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21619 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21620 echo "$as_me: $ac_file is unchanged" >&6;}
21623 mv "$tmp/config.h" $ac_file
21626 echo "/* $configure_input */"
21632 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21633 echo "$as_me: executing $ac_file commands" >&6;}
21638 case $ac_file$ac_mode in
21639 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21640 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21641 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21642 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21643 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21644 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21645 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21646 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21647 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21648 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21649 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21650 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21651 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21652 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21653 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21654 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21655 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21656 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21657 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21658 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21659 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21660 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21661 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21662 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21663 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21664 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21670 { (exit 0); exit 0; }
21672 chmod +x $CONFIG_STATUS
21673 ac_clean_files=$ac_clean_files_save
21676 # configure is writing to config.log, and then calls config.status.
21677 # config.status does its own redirection, appending to config.log.
21678 # Unfortunately, on DOS this fails, as config.log is still kept open
21679 # by configure, so config.status won't be able to write to it; its
21680 # output is simply discarded. So we exec the FD to /dev/null,
21681 # effectively closing config.log, so it can be properly (re)opened and
21682 # appended to by config.status. When coming back to configure, we
21683 # need to make the FD available again.
21684 if test "$no_create" != yes; then
21686 ac_config_status_args=
21687 test "$silent" = yes &&
21688 ac_config_status_args="$ac_config_status_args --quiet"
21690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21693 # would make configure fail if this is the last instruction.
21694 $ac_cs_success || { (exit 1); exit 1; }
21698 # CONFIG_SUBDIRS section.
21700 if test "$no_recursion" != yes; then
21702 # Remove --cache-file and --srcdir arguments so they do not pile up.
21703 ac_sub_configure_args=
21705 eval "set x $ac_configure_args"
21709 if test -n "$ac_prev"; then
21714 -cache-file | --cache-file | --cache-fil | --cache-fi \
21715 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21716 ac_prev=cache_file ;;
21717 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21718 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21721 --config-cache | -C)
21723 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21725 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21727 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21729 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21733 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21735 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21739 # Always prepend --prefix to ensure using the same prefix
21740 # in subdir configurations.
21741 ac_arg="--prefix=$prefix"
21743 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21745 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21748 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21750 # Do not complain, so a configure script can configure whichever
21751 # parts of a large source tree are present.
21752 test -d "$srcdir/$ac_dir" || continue
21754 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21755 echo "$as_me:$LINENO: $ac_msg" >&5
21759 -*) as_dir=./$as_dir;;
21761 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21765 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21766 *) as_qdir=$as_dir;;
21768 as_dirs="'$as_qdir' $as_dirs"
21769 as_dir=`$as_dirname -- "$as_dir" ||
21770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21771 X"$as_dir" : 'X\(//\)[^/]' \| \
21772 X"$as_dir" : 'X\(//\)$' \| \
21773 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21779 /^X\(\/\/\)[^/].*/{
21792 test -d "$as_dir" && break
21794 test -z "$as_dirs" || eval "mkdir $as_dirs"
21795 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21796 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21797 { (exit 1); exit 1; }; }; }
21801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21804 # A ".." for each directory in $ac_dir_suffix.
21805 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21806 case $ac_top_builddir_sub in
21807 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21808 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21811 ac_abs_top_builddir=$ac_pwd
21812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21813 # for backward compatibility:
21814 ac_top_builddir=$ac_top_build_prefix
21817 .) # We are building in place.
21819 ac_top_srcdir=$ac_top_builddir_sub
21820 ac_abs_top_srcdir=$ac_pwd ;;
21821 [\\/]* | ?:[\\/]* ) # Absolute name.
21822 ac_srcdir=$srcdir$ac_dir_suffix;
21823 ac_top_srcdir=$srcdir
21824 ac_abs_top_srcdir=$srcdir ;;
21825 *) # Relative name.
21826 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21827 ac_top_srcdir=$ac_top_build_prefix$srcdir
21828 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21835 # Check for guested configure; otherwise get Cygnus style configure.
21836 if test -f "$ac_srcdir/configure.gnu"; then
21837 ac_sub_configure=$ac_srcdir/configure.gnu
21838 elif test -f "$ac_srcdir/configure"; then
21839 ac_sub_configure=$ac_srcdir/configure
21840 elif test -f "$ac_srcdir/configure.in"; then
21841 # This should be Cygnus configure.
21842 ac_sub_configure=$ac_aux_dir/configure
21844 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21845 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21849 # The recursion is here.
21850 if test -n "$ac_sub_configure"; then
21851 # Make the cache file name correct relative to the subdirectory.
21852 case $cache_file in
21853 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21854 *) # Relative name.
21855 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21858 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21859 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21860 # The eval makes quoting arguments work.
21861 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21862 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21863 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21864 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21865 { (exit 1); exit 1; }; }